configure revision 47f86ac1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for libX11 1.3.6. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error STATUS ERROR [LINENO LOG_FD] 364# ---------------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with STATUS, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$1; test $as_status -eq 0 && as_status=1 371 if test "$4"; then 372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 374 fi 375 $as_echo "$as_me: error: $2" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='libX11' 704PACKAGE_TARNAME='libX11' 705PACKAGE_VERSION='1.3.6' 706PACKAGE_STRING='libX11 1.3.6' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710ac_unique_file="Makefile.am" 711# Factoring default headers for most tests. 712ac_includes_default="\ 713#include <stdio.h> 714#ifdef HAVE_SYS_TYPES_H 715# include <sys/types.h> 716#endif 717#ifdef HAVE_SYS_STAT_H 718# include <sys/stat.h> 719#endif 720#ifdef STDC_HEADERS 721# include <stdlib.h> 722# include <stddef.h> 723#else 724# ifdef HAVE_STDLIB_H 725# include <stdlib.h> 726# endif 727#endif 728#ifdef HAVE_STRING_H 729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 730# include <memory.h> 731# endif 732# include <string.h> 733#endif 734#ifdef HAVE_STRINGS_H 735# include <strings.h> 736#endif 737#ifdef HAVE_INTTYPES_H 738# include <inttypes.h> 739#endif 740#ifdef HAVE_STDINT_H 741# include <stdint.h> 742#endif 743#ifdef HAVE_UNISTD_H 744# include <unistd.h> 745#endif" 746 747ac_header_list= 748ac_subst_vars='am__EXEEXT_FALSE 749am__EXEEXT_TRUE 750LTLIBOBJS 751LIBOBJS 752XTMALLOC_ZERO_CFLAGS 753XMALLOC_ZERO_CFLAGS 754MALLOC_ZERO_CFLAGS 755XERRORDB 756XKEYSYMDB 757X11_LOCALEDIR 758XLOCALEDIR 759X11_LOCALELIBDIR 760XLOCALELIBDIR 761X11_LOCALEDATADIR 762XLOCALEDATADIR 763X11_LIBS 764X11_CFLAGS 765X11_LIBDIR 766X11_DATADIR 767MAKE_LINT_LIB_FALSE 768MAKE_LINT_LIB_TRUE 769LINTLIB 770LINT_FALSE 771LINT_TRUE 772LINT_FLAGS 773LINT 774XKBPROTO_REQUIRES 775XKB_FALSE 776XKB_TRUE 777MANPAGES_FALSE 778MANPAGES_TRUE 779BIGFONT_LIBS 780BIGFONT_CFLAGS 781XLOCALE_FALSE 782XLOCALE_TRUE 783XCMS_FALSE 784XCMS_TRUE 785UDC_FALSE 786UDC_TRUE 787KEYSYMDEFS 788XTHREAD_CFLAGS 789XTHREADLIB 790THRSTUBS_FALSE 791THRSTUBS_TRUE 792LAUNCHD 793OS2_FALSE 794OS2_TRUE 795WCHAR32 796XLIB_LOADABLE_I18N_FALSE 797XLIB_LOADABLE_I18N_TRUE 798I18N_MODULE_LIBS 799X11_EXTRA_DEPS 800XDMCP_LIBS 801XDMCP_CFLAGS 802XCB_FALSE 803XCB_TRUE 804HAVE_PERL_FALSE 805HAVE_PERL_TRUE 806PERL 807RAWCPPFLAGS 808RAWCPP 809LDFLAGS_FOR_BUILD 810CFLAGS_FOR_BUILD 811CPPFLAGS_FOR_BUILD 812CC_FOR_BUILD 813LTCXXCOMPILE 814LTCOMPILE 815DOLT_BASH 816OTOOL64 817OTOOL 818LIPO 819NMEDIT 820DSYMUTIL 821lt_ECHO 822RANLIB 823AR 824OBJDUMP 825LN_S 826NM 827ac_ct_DUMPBIN 828DUMPBIN 829LD 830FGREP 831LIBTOOL 832HAVE_PS2PDF_FALSE 833HAVE_PS2PDF_TRUE 834PS2PDF 835HAVE_GROFF_HTML_FALSE 836HAVE_GROFF_HTML_TRUE 837HAVE_GROFF_MM_FALSE 838HAVE_GROFF_MM_TRUE 839HAVE_GROFF_MS_FALSE 840HAVE_GROFF_MS_TRUE 841HAVE_GROFF_FALSE 842HAVE_GROFF_TRUE 843PSSELECT_PATH 844PNMTOPNG_PATH 845GS_PATH 846GROFF 847ENABLE_SPECS_FALSE 848ENABLE_SPECS_TRUE 849AM_BACKSLASH 850AM_DEFAULT_VERBOSITY 851MAN_SUBSTS 852XORG_MAN_PAGE 853ADMIN_MAN_DIR 854DRIVER_MAN_DIR 855MISC_MAN_DIR 856FILE_MAN_DIR 857LIB_MAN_DIR 858APP_MAN_DIR 859ADMIN_MAN_SUFFIX 860DRIVER_MAN_SUFFIX 861MISC_MAN_SUFFIX 862FILE_MAN_SUFFIX 863LIB_MAN_SUFFIX 864APP_MAN_SUFFIX 865SED 866INSTALL_CMD 867PKG_CONFIG_LIBDIR 868PKG_CONFIG_PATH 869PKG_CONFIG 870CHANGELOG_CMD 871CWARNFLAGS 872EGREP 873GREP 874CPP 875am__fastdepCC_FALSE 876am__fastdepCC_TRUE 877CCDEPMODE 878AMDEPBACKSLASH 879AMDEP_FALSE 880AMDEP_TRUE 881am__quote 882am__include 883DEPDIR 884OBJEXT 885EXEEXT 886ac_ct_CC 887CPPFLAGS 888LDFLAGS 889CFLAGS 890CC 891MAINT 892MAINTAINER_MODE_FALSE 893MAINTAINER_MODE_TRUE 894am__untar 895am__tar 896AMTAR 897am__leading_dot 898SET_MAKE 899AWK 900mkdir_p 901MKDIR_P 902INSTALL_STRIP_PROGRAM 903STRIP 904install_sh 905MAKEINFO 906AUTOHEADER 907AUTOMAKE 908AUTOCONF 909ACLOCAL 910VERSION 911PACKAGE 912CYGPATH_W 913am__isrc 914INSTALL_DATA 915INSTALL_SCRIPT 916INSTALL_PROGRAM 917host_os 918host_vendor 919host_cpu 920host 921build_os 922build_vendor 923build_cpu 924build 925target_alias 926host_alias 927build_alias 928LIBS 929ECHO_T 930ECHO_N 931ECHO_C 932DEFS 933mandir 934localedir 935libdir 936psdir 937pdfdir 938dvidir 939htmldir 940infodir 941docdir 942oldincludedir 943includedir 944localstatedir 945sharedstatedir 946sysconfdir 947datadir 948datarootdir 949libexecdir 950sbindir 951bindir 952program_transform_name 953prefix 954exec_prefix 955PACKAGE_URL 956PACKAGE_BUGREPORT 957PACKAGE_STRING 958PACKAGE_VERSION 959PACKAGE_TARNAME 960PACKAGE_NAME 961PATH_SEPARATOR 962SHELL' 963ac_subst_files='' 964ac_user_opts=' 965enable_option_checking 966enable_maintainer_mode 967enable_dependency_tracking 968enable_strict_compilation 969enable_silent_rules 970enable_specs 971with_groff 972with_ps2pdf 973enable_shared 974enable_static 975with_pic 976enable_fast_install 977with_gnu_ld 978enable_libtool_lock 979with_perl 980with_xcb 981enable_unix_transport 982enable_tcp_transport 983enable_ipv6 984enable_local_transport 985enable_secure_rpc 986with_local_transport_order 987enable_loadable_i18n 988enable_loadable_xcursor 989with_launchd 990enable_xthreads 991enable_xcms 992enable_xlocale 993enable_xlocaledir 994enable_xf86bigfont 995enable_xkb 996enable_man_pages 997enable_composecache 998with_lint 999enable_lint_library 1000with_locale_lib_dir 1001enable_malloc0returnsnull 1002' 1003 ac_precious_vars='build_alias 1004host_alias 1005target_alias 1006CC 1007CFLAGS 1008LDFLAGS 1009LIBS 1010CPPFLAGS 1011CPP 1012PKG_CONFIG 1013PKG_CONFIG_PATH 1014PKG_CONFIG_LIBDIR 1015GROFF 1016PS2PDF 1017XDMCP_CFLAGS 1018XDMCP_LIBS 1019BIGFONT_CFLAGS 1020BIGFONT_LIBS 1021LINT 1022LINT_FLAGS 1023X11_CFLAGS 1024X11_LIBS' 1025 1026 1027# Initialize some variables set by options. 1028ac_init_help= 1029ac_init_version=false 1030ac_unrecognized_opts= 1031ac_unrecognized_sep= 1032# The variables have the same names as the options, with 1033# dashes changed to underlines. 1034cache_file=/dev/null 1035exec_prefix=NONE 1036no_create= 1037no_recursion= 1038prefix=NONE 1039program_prefix=NONE 1040program_suffix=NONE 1041program_transform_name=s,x,x, 1042silent= 1043site= 1044srcdir= 1045verbose= 1046x_includes=NONE 1047x_libraries=NONE 1048 1049# Installation directory options. 1050# These are left unexpanded so users can "make install exec_prefix=/foo" 1051# and all the variables that are supposed to be based on exec_prefix 1052# by default will actually change. 1053# Use braces instead of parens because sh, perl, etc. also accept them. 1054# (The list follows the same order as the GNU Coding Standards.) 1055bindir='${exec_prefix}/bin' 1056sbindir='${exec_prefix}/sbin' 1057libexecdir='${exec_prefix}/libexec' 1058datarootdir='${prefix}/share' 1059datadir='${datarootdir}' 1060sysconfdir='${prefix}/etc' 1061sharedstatedir='${prefix}/com' 1062localstatedir='${prefix}/var' 1063includedir='${prefix}/include' 1064oldincludedir='/usr/include' 1065docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1066infodir='${datarootdir}/info' 1067htmldir='${docdir}' 1068dvidir='${docdir}' 1069pdfdir='${docdir}' 1070psdir='${docdir}' 1071libdir='${exec_prefix}/lib' 1072localedir='${datarootdir}/locale' 1073mandir='${datarootdir}/man' 1074 1075ac_prev= 1076ac_dashdash= 1077for ac_option 1078do 1079 # If the previous option needs an argument, assign it. 1080 if test -n "$ac_prev"; then 1081 eval $ac_prev=\$ac_option 1082 ac_prev= 1083 continue 1084 fi 1085 1086 case $ac_option in 1087 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1088 *=) ac_optarg= ;; 1089 *) ac_optarg=yes ;; 1090 esac 1091 1092 # Accept the important Cygnus configure options, so we can diagnose typos. 1093 1094 case $ac_dashdash$ac_option in 1095 --) 1096 ac_dashdash=yes ;; 1097 1098 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1099 ac_prev=bindir ;; 1100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1101 bindir=$ac_optarg ;; 1102 1103 -build | --build | --buil | --bui | --bu) 1104 ac_prev=build_alias ;; 1105 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1106 build_alias=$ac_optarg ;; 1107 1108 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1110 ac_prev=cache_file ;; 1111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1113 cache_file=$ac_optarg ;; 1114 1115 --config-cache | -C) 1116 cache_file=config.cache ;; 1117 1118 -datadir | --datadir | --datadi | --datad) 1119 ac_prev=datadir ;; 1120 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1121 datadir=$ac_optarg ;; 1122 1123 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1124 | --dataroo | --dataro | --datar) 1125 ac_prev=datarootdir ;; 1126 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1127 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1128 datarootdir=$ac_optarg ;; 1129 1130 -disable-* | --disable-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid feature name: $ac_useropt" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"enable_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval enable_$ac_useropt=no ;; 1145 1146 -docdir | --docdir | --docdi | --doc | --do) 1147 ac_prev=docdir ;; 1148 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1149 docdir=$ac_optarg ;; 1150 1151 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1152 ac_prev=dvidir ;; 1153 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1154 dvidir=$ac_optarg ;; 1155 1156 -enable-* | --enable-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid feature name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"enable_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval enable_$ac_useropt=\$ac_optarg ;; 1171 1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1174 | --exec | --exe | --ex) 1175 ac_prev=exec_prefix ;; 1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1178 | --exec=* | --exe=* | --ex=*) 1179 exec_prefix=$ac_optarg ;; 1180 1181 -gas | --gas | --ga | --g) 1182 # Obsolete; use --with-gas. 1183 with_gas=yes ;; 1184 1185 -help | --help | --hel | --he | -h) 1186 ac_init_help=long ;; 1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1188 ac_init_help=recursive ;; 1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1190 ac_init_help=short ;; 1191 1192 -host | --host | --hos | --ho) 1193 ac_prev=host_alias ;; 1194 -host=* | --host=* | --hos=* | --ho=*) 1195 host_alias=$ac_optarg ;; 1196 1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1198 ac_prev=htmldir ;; 1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1200 | --ht=*) 1201 htmldir=$ac_optarg ;; 1202 1203 -includedir | --includedir | --includedi | --included | --include \ 1204 | --includ | --inclu | --incl | --inc) 1205 ac_prev=includedir ;; 1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1207 | --includ=* | --inclu=* | --incl=* | --inc=*) 1208 includedir=$ac_optarg ;; 1209 1210 -infodir | --infodir | --infodi | --infod | --info | --inf) 1211 ac_prev=infodir ;; 1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1213 infodir=$ac_optarg ;; 1214 1215 -libdir | --libdir | --libdi | --libd) 1216 ac_prev=libdir ;; 1217 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1218 libdir=$ac_optarg ;; 1219 1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1221 | --libexe | --libex | --libe) 1222 ac_prev=libexecdir ;; 1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1224 | --libexe=* | --libex=* | --libe=*) 1225 libexecdir=$ac_optarg ;; 1226 1227 -localedir | --localedir | --localedi | --localed | --locale) 1228 ac_prev=localedir ;; 1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1230 localedir=$ac_optarg ;; 1231 1232 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1233 | --localstate | --localstat | --localsta | --localst | --locals) 1234 ac_prev=localstatedir ;; 1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1237 localstatedir=$ac_optarg ;; 1238 1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1240 ac_prev=mandir ;; 1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1242 mandir=$ac_optarg ;; 1243 1244 -nfp | --nfp | --nf) 1245 # Obsolete; use --without-fp. 1246 with_fp=no ;; 1247 1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1249 | --no-cr | --no-c | -n) 1250 no_create=yes ;; 1251 1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1254 no_recursion=yes ;; 1255 1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1258 | --oldin | --oldi | --old | --ol | --o) 1259 ac_prev=oldincludedir ;; 1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1263 oldincludedir=$ac_optarg ;; 1264 1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1266 ac_prev=prefix ;; 1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1268 prefix=$ac_optarg ;; 1269 1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1271 | --program-pre | --program-pr | --program-p) 1272 ac_prev=program_prefix ;; 1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1275 program_prefix=$ac_optarg ;; 1276 1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1278 | --program-suf | --program-su | --program-s) 1279 ac_prev=program_suffix ;; 1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1282 program_suffix=$ac_optarg ;; 1283 1284 -program-transform-name | --program-transform-name \ 1285 | --program-transform-nam | --program-transform-na \ 1286 | --program-transform-n | --program-transform- \ 1287 | --program-transform | --program-transfor \ 1288 | --program-transfo | --program-transf \ 1289 | --program-trans | --program-tran \ 1290 | --progr-tra | --program-tr | --program-t) 1291 ac_prev=program_transform_name ;; 1292 -program-transform-name=* | --program-transform-name=* \ 1293 | --program-transform-nam=* | --program-transform-na=* \ 1294 | --program-transform-n=* | --program-transform-=* \ 1295 | --program-transform=* | --program-transfor=* \ 1296 | --program-transfo=* | --program-transf=* \ 1297 | --program-trans=* | --program-tran=* \ 1298 | --progr-tra=* | --program-tr=* | --program-t=*) 1299 program_transform_name=$ac_optarg ;; 1300 1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1302 ac_prev=pdfdir ;; 1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1304 pdfdir=$ac_optarg ;; 1305 1306 -psdir | --psdir | --psdi | --psd | --ps) 1307 ac_prev=psdir ;; 1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1309 psdir=$ac_optarg ;; 1310 1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1312 | -silent | --silent | --silen | --sile | --sil) 1313 silent=yes ;; 1314 1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1316 ac_prev=sbindir ;; 1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1318 | --sbi=* | --sb=*) 1319 sbindir=$ac_optarg ;; 1320 1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1323 | --sharedst | --shareds | --shared | --share | --shar \ 1324 | --sha | --sh) 1325 ac_prev=sharedstatedir ;; 1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1329 | --sha=* | --sh=*) 1330 sharedstatedir=$ac_optarg ;; 1331 1332 -site | --site | --sit) 1333 ac_prev=site ;; 1334 -site=* | --site=* | --sit=*) 1335 site=$ac_optarg ;; 1336 1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1338 ac_prev=srcdir ;; 1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1340 srcdir=$ac_optarg ;; 1341 1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1343 | --syscon | --sysco | --sysc | --sys | --sy) 1344 ac_prev=sysconfdir ;; 1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1347 sysconfdir=$ac_optarg ;; 1348 1349 -target | --target | --targe | --targ | --tar | --ta | --t) 1350 ac_prev=target_alias ;; 1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1352 target_alias=$ac_optarg ;; 1353 1354 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1355 verbose=yes ;; 1356 1357 -version | --version | --versio | --versi | --vers | -V) 1358 ac_init_version=: ;; 1359 1360 -with-* | --with-*) 1361 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1364 as_fn_error $? "invalid package name: $ac_useropt" 1365 ac_useropt_orig=$ac_useropt 1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1367 case $ac_user_opts in 1368 *" 1369"with_$ac_useropt" 1370"*) ;; 1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1372 ac_unrecognized_sep=', ';; 1373 esac 1374 eval with_$ac_useropt=\$ac_optarg ;; 1375 1376 -without-* | --without-*) 1377 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1378 # Reject names that are not valid shell variable names. 1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1380 as_fn_error $? "invalid package name: $ac_useropt" 1381 ac_useropt_orig=$ac_useropt 1382 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1383 case $ac_user_opts in 1384 *" 1385"with_$ac_useropt" 1386"*) ;; 1387 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1388 ac_unrecognized_sep=', ';; 1389 esac 1390 eval with_$ac_useropt=no ;; 1391 1392 --x) 1393 # Obsolete; use --with-x. 1394 with_x=yes ;; 1395 1396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1397 | --x-incl | --x-inc | --x-in | --x-i) 1398 ac_prev=x_includes ;; 1399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1401 x_includes=$ac_optarg ;; 1402 1403 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1405 ac_prev=x_libraries ;; 1406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1408 x_libraries=$ac_optarg ;; 1409 1410 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1411Try \`$0 --help' for more information" 1412 ;; 1413 1414 *=*) 1415 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1416 # Reject names that are not valid shell variable names. 1417 case $ac_envvar in #( 1418 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1419 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1420 esac 1421 eval $ac_envvar=\$ac_optarg 1422 export $ac_envvar ;; 1423 1424 *) 1425 # FIXME: should be removed in autoconf 3.0. 1426 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1427 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1428 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1429 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1430 ;; 1431 1432 esac 1433done 1434 1435if test -n "$ac_prev"; then 1436 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1437 as_fn_error $? "missing argument to $ac_option" 1438fi 1439 1440if test -n "$ac_unrecognized_opts"; then 1441 case $enable_option_checking in 1442 no) ;; 1443 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1444 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1445 esac 1446fi 1447 1448# Check all directory arguments for consistency. 1449for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1450 datadir sysconfdir sharedstatedir localstatedir includedir \ 1451 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1452 libdir localedir mandir 1453do 1454 eval ac_val=\$$ac_var 1455 # Remove trailing slashes. 1456 case $ac_val in 1457 */ ) 1458 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1459 eval $ac_var=\$ac_val;; 1460 esac 1461 # Be sure to have absolute directory names. 1462 case $ac_val in 1463 [\\/$]* | ?:[\\/]* ) continue;; 1464 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1465 esac 1466 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1467done 1468 1469# There might be people who depend on the old broken behavior: `$host' 1470# used to hold the argument of --host etc. 1471# FIXME: To remove some day. 1472build=$build_alias 1473host=$host_alias 1474target=$target_alias 1475 1476# FIXME: To remove some day. 1477if test "x$host_alias" != x; then 1478 if test "x$build_alias" = x; then 1479 cross_compiling=maybe 1480 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1481 If a cross compiler is detected then cross compile mode will be used" >&2 1482 elif test "x$build_alias" != "x$host_alias"; then 1483 cross_compiling=yes 1484 fi 1485fi 1486 1487ac_tool_prefix= 1488test -n "$host_alias" && ac_tool_prefix=$host_alias- 1489 1490test "$silent" = yes && exec 6>/dev/null 1491 1492 1493ac_pwd=`pwd` && test -n "$ac_pwd" && 1494ac_ls_di=`ls -di .` && 1495ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1496 as_fn_error $? "working directory cannot be determined" 1497test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1498 as_fn_error $? "pwd does not report name of working directory" 1499 1500 1501# Find the source files, if location was not specified. 1502if test -z "$srcdir"; then 1503 ac_srcdir_defaulted=yes 1504 # Try the directory containing this script, then the parent directory. 1505 ac_confdir=`$as_dirname -- "$as_myself" || 1506$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1507 X"$as_myself" : 'X\(//\)[^/]' \| \ 1508 X"$as_myself" : 'X\(//\)$' \| \ 1509 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1510$as_echo X"$as_myself" | 1511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1512 s//\1/ 1513 q 1514 } 1515 /^X\(\/\/\)[^/].*/{ 1516 s//\1/ 1517 q 1518 } 1519 /^X\(\/\/\)$/{ 1520 s//\1/ 1521 q 1522 } 1523 /^X\(\/\).*/{ 1524 s//\1/ 1525 q 1526 } 1527 s/.*/./; q'` 1528 srcdir=$ac_confdir 1529 if test ! -r "$srcdir/$ac_unique_file"; then 1530 srcdir=.. 1531 fi 1532else 1533 ac_srcdir_defaulted=no 1534fi 1535if test ! -r "$srcdir/$ac_unique_file"; then 1536 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1537 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1538fi 1539ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1540ac_abs_confdir=`( 1541 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1542 pwd)` 1543# When building in place, set srcdir=. 1544if test "$ac_abs_confdir" = "$ac_pwd"; then 1545 srcdir=. 1546fi 1547# Remove unnecessary trailing slashes from srcdir. 1548# Double slashes in file names in object file debugging info 1549# mess up M-x gdb in Emacs. 1550case $srcdir in 1551*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1552esac 1553for ac_var in $ac_precious_vars; do 1554 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1555 eval ac_env_${ac_var}_value=\$${ac_var} 1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1557 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1558done 1559 1560# 1561# Report the --help message. 1562# 1563if test "$ac_init_help" = "long"; then 1564 # Omit some internal or obsolete options to make the list less imposing. 1565 # This message is too long to be a string in the A/UX 3.1 sh. 1566 cat <<_ACEOF 1567\`configure' configures libX11 1.3.6 to adapt to many kinds of systems. 1568 1569Usage: $0 [OPTION]... [VAR=VALUE]... 1570 1571To assign environment variables (e.g., CC, CFLAGS...), specify them as 1572VAR=VALUE. See below for descriptions of some of the useful variables. 1573 1574Defaults for the options are specified in brackets. 1575 1576Configuration: 1577 -h, --help display this help and exit 1578 --help=short display options specific to this package 1579 --help=recursive display the short help of all the included packages 1580 -V, --version display version information and exit 1581 -q, --quiet, --silent do not print \`checking ...' messages 1582 --cache-file=FILE cache test results in FILE [disabled] 1583 -C, --config-cache alias for \`--cache-file=config.cache' 1584 -n, --no-create do not create output files 1585 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1586 1587Installation directories: 1588 --prefix=PREFIX install architecture-independent files in PREFIX 1589 [$ac_default_prefix] 1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1591 [PREFIX] 1592 1593By default, \`make install' will install all the files in 1594\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1595an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1596for instance \`--prefix=\$HOME'. 1597 1598For better control, use the options below. 1599 1600Fine tuning of the installation directories: 1601 --bindir=DIR user executables [EPREFIX/bin] 1602 --sbindir=DIR system admin executables [EPREFIX/sbin] 1603 --libexecdir=DIR program executables [EPREFIX/libexec] 1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1607 --libdir=DIR object code libraries [EPREFIX/lib] 1608 --includedir=DIR C header files [PREFIX/include] 1609 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1612 --infodir=DIR info documentation [DATAROOTDIR/info] 1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1614 --mandir=DIR man documentation [DATAROOTDIR/man] 1615 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1616 --htmldir=DIR html documentation [DOCDIR] 1617 --dvidir=DIR dvi documentation [DOCDIR] 1618 --pdfdir=DIR pdf documentation [DOCDIR] 1619 --psdir=DIR ps documentation [DOCDIR] 1620_ACEOF 1621 1622 cat <<\_ACEOF 1623 1624Program names: 1625 --program-prefix=PREFIX prepend PREFIX to installed program names 1626 --program-suffix=SUFFIX append SUFFIX to installed program names 1627 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1628 1629System types: 1630 --build=BUILD configure for building on BUILD [guessed] 1631 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1632_ACEOF 1633fi 1634 1635if test -n "$ac_init_help"; then 1636 case $ac_init_help in 1637 short | recursive ) echo "Configuration of libX11 1.3.6:";; 1638 esac 1639 cat <<\_ACEOF 1640 1641Optional Features: 1642 --disable-option-checking ignore unrecognized --enable/--with options 1643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1645 --enable-maintainer-mode enable make rules and dependencies not useful 1646 (and sometimes confusing) to the casual installer 1647 --disable-dependency-tracking speeds up one-time build 1648 --enable-dependency-tracking do not reject slow dependency extractors 1649 --enable-strict-compilation 1650 Enable all warnings from compiler and make them 1651 errors (default: disabled) 1652 --enable-silent-rules less verbose build output (undo: `make V=1') 1653 --disable-silent-rules verbose build output (undo: `make V=0') 1654 --enable-specs Enable building the specs (default: yes) 1655 --enable-shared[=PKGS] build shared libraries [default=yes] 1656 --enable-static[=PKGS] build static libraries [default=yes] 1657 --enable-fast-install[=PKGS] 1658 optimize for fast installation [default=yes] 1659 --disable-libtool-lock avoid locking (might break parallel builds) 1660 --enable-unix-transport Enable UNIX domain socket transport 1661 --enable-tcp-transport Enable TCP socket transport 1662 --enable-ipv6 Enable IPv6 support 1663 --enable-local-transport 1664 Enable os-specific local transport 1665 --enable-secure-rpc Enable Secure RPC 1666 --enable-loadable-i18n Controls loadable i18n module support 1667 --disable-loadable-xcursor 1668 Controls loadable xcursor library support 1669 --disable-xthreads Disable Xlib support for Multithreading 1670 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1671 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1672 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1673 --disable-xf86bigfont Disable XF86BigFont extension support 1674 --disable-xkb Disable XKB support *EXPERIMENTAL* 1675 --enable-man-pages=section 1676 Choose manual section for installing man pages 1677 --disable-composecache Disable compose table cache support 1678 --enable-lint-library Create lint library (default: disabled) 1679 --enable-malloc0returnsnull 1680 malloc(0) returns NULL (default: auto) 1681 1682Optional Packages: 1683 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1684 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1685 --with-groff Use groff to regenerate documentation (default: yes, 1686 if installed) 1687 --with-ps2pdf Use ps2pdf to regenerate documentation (default: 1688 yes, if installed) 1689 --with-pic try to use only PIC/non-PIC objects [default=use 1690 both] 1691 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1692 --with-perl=<path> path to perl interpreter for build-time tests 1693 --with-xcb use XCB for low-level protocol implementation 1694 --with-local-transport-order=LIST 1695 preference sorted list of transport types to try for 1696 local connections 1697 --with-launchd Build with support for Apple's launchd (default: 1698 auto) 1699 --with-lint Use a lint-style source code checker (default: 1700 disabled) 1701 --with-locale-lib-dir=DIR 1702 Directory where locale libraries files are installed 1703 (default: $libdir/X11/locale) 1704 1705Some influential environment variables: 1706 CC C compiler command 1707 CFLAGS C compiler flags 1708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1709 nonstandard directory <lib dir> 1710 LIBS libraries to pass to the linker, e.g. -l<library> 1711 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1712 you have headers in a nonstandard directory <include dir> 1713 CPP C preprocessor 1714 PKG_CONFIG path to pkg-config utility 1715 PKG_CONFIG_PATH 1716 directories to add to pkg-config's search path 1717 PKG_CONFIG_LIBDIR 1718 path overriding pkg-config's built-in search path 1719 GROFF Path to groff command 1720 PS2PDF Path to ps2pdf command 1721 XDMCP_CFLAGS 1722 C compiler flags for XDMCP, overriding pkg-config 1723 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1724 BIGFONT_CFLAGS 1725 C compiler flags for BIGFONT, overriding pkg-config 1726 BIGFONT_LIBS 1727 linker flags for BIGFONT, overriding pkg-config 1728 LINT Path to a lint-style command 1729 LINT_FLAGS Flags for the lint-style command 1730 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1731 X11_LIBS linker flags for X11, overriding pkg-config 1732 1733Use these variables to override the choices made by `configure' or to help 1734it to find libraries and programs with nonstandard names/locations. 1735 1736Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1737_ACEOF 1738ac_status=$? 1739fi 1740 1741if test "$ac_init_help" = "recursive"; then 1742 # If there are subdirs, report their specific --help. 1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1744 test -d "$ac_dir" || 1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1746 continue 1747 ac_builddir=. 1748 1749case "$ac_dir" in 1750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1751*) 1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1753 # A ".." for each directory in $ac_dir_suffix. 1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1755 case $ac_top_builddir_sub in 1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1758 esac ;; 1759esac 1760ac_abs_top_builddir=$ac_pwd 1761ac_abs_builddir=$ac_pwd$ac_dir_suffix 1762# for backward compatibility: 1763ac_top_builddir=$ac_top_build_prefix 1764 1765case $srcdir in 1766 .) # We are building in place. 1767 ac_srcdir=. 1768 ac_top_srcdir=$ac_top_builddir_sub 1769 ac_abs_top_srcdir=$ac_pwd ;; 1770 [\\/]* | ?:[\\/]* ) # Absolute name. 1771 ac_srcdir=$srcdir$ac_dir_suffix; 1772 ac_top_srcdir=$srcdir 1773 ac_abs_top_srcdir=$srcdir ;; 1774 *) # Relative name. 1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1776 ac_top_srcdir=$ac_top_build_prefix$srcdir 1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1778esac 1779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1780 1781 cd "$ac_dir" || { ac_status=$?; continue; } 1782 # Check for guested configure. 1783 if test -f "$ac_srcdir/configure.gnu"; then 1784 echo && 1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1786 elif test -f "$ac_srcdir/configure"; then 1787 echo && 1788 $SHELL "$ac_srcdir/configure" --help=recursive 1789 else 1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1791 fi || ac_status=$? 1792 cd "$ac_pwd" || { ac_status=$?; break; } 1793 done 1794fi 1795 1796test -n "$ac_init_help" && exit $ac_status 1797if $ac_init_version; then 1798 cat <<\_ACEOF 1799libX11 configure 1.3.6 1800generated by GNU Autoconf 2.67 1801 1802Copyright (C) 2010 Free Software Foundation, Inc. 1803This configure script is free software; the Free Software Foundation 1804gives unlimited permission to copy, distribute and modify it. 1805_ACEOF 1806 exit 1807fi 1808 1809## ------------------------ ## 1810## Autoconf initialization. ## 1811## ------------------------ ## 1812 1813# ac_fn_c_try_compile LINENO 1814# -------------------------- 1815# Try to compile conftest.$ac_ext, and return whether this succeeded. 1816ac_fn_c_try_compile () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 rm -f conftest.$ac_objext 1820 if { { ac_try="$ac_compile" 1821case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_compile") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { 1836 test -z "$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } && test -s conftest.$ac_objext; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=1 1845fi 1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_c_try_compile 1850 1851# ac_fn_c_try_cpp LINENO 1852# ---------------------- 1853# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1854ac_fn_c_try_cpp () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 if { { ac_try="$ac_cpp conftest.$ac_ext" 1858case "(($ac_try" in 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1860 *) ac_try_echo=$ac_try;; 1861esac 1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1863$as_echo "$ac_try_echo"; } >&5 1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1865 ac_status=$? 1866 if test -s conftest.err; then 1867 grep -v '^ *+' conftest.err >conftest.er1 1868 cat conftest.er1 >&5 1869 mv -f conftest.er1 conftest.err 1870 fi 1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1872 test $ac_status = 0; } > conftest.i && { 1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1874 test ! -s conftest.err 1875 }; then : 1876 ac_retval=0 1877else 1878 $as_echo "$as_me: failed program was:" >&5 1879sed 's/^/| /' conftest.$ac_ext >&5 1880 1881 ac_retval=1 1882fi 1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1884 as_fn_set_status $ac_retval 1885 1886} # ac_fn_c_try_cpp 1887 1888# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1889# ------------------------------------------------------- 1890# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1891# the include files in INCLUDES and setting the cache variable VAR 1892# accordingly. 1893ac_fn_c_check_header_mongrel () 1894{ 1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1896 if eval "test \"\${$3+set}\"" = set; then : 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898$as_echo_n "checking for $2... " >&6; } 1899if eval "test \"\${$3+set}\"" = set; then : 1900 $as_echo_n "(cached) " >&6 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905else 1906 # Is the header compilable? 1907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1908$as_echo_n "checking $2 usability... " >&6; } 1909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$4 1912#include <$2> 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 ac_header_compiler=yes 1916else 1917 ac_header_compiler=no 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1921$as_echo "$ac_header_compiler" >&6; } 1922 1923# Is the header present? 1924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1925$as_echo_n "checking $2 presence... " >&6; } 1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928#include <$2> 1929_ACEOF 1930if ac_fn_c_try_cpp "$LINENO"; then : 1931 ac_header_preproc=yes 1932else 1933 ac_header_preproc=no 1934fi 1935rm -f conftest.err conftest.i conftest.$ac_ext 1936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1937$as_echo "$ac_header_preproc" >&6; } 1938 1939# So? What about this header? 1940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1941 yes:no: ) 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1943$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1945$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1946 ;; 1947 no:yes:* ) 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1949$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1951$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1953$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1955$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1957$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1958( $as_echo "## ---------------------------------------------------------------------- ## 1959## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1960## ---------------------------------------------------------------------- ##" 1961 ) | sed "s/^/$as_me: WARNING: /" >&2 1962 ;; 1963esac 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1965$as_echo_n "checking for $2... " >&6; } 1966if eval "test \"\${$3+set}\"" = set; then : 1967 $as_echo_n "(cached) " >&6 1968else 1969 eval "$3=\$ac_header_compiler" 1970fi 1971eval ac_res=\$$3 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973$as_echo "$ac_res" >&6; } 1974fi 1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1976 1977} # ac_fn_c_check_header_mongrel 1978 1979# ac_fn_c_try_run LINENO 1980# ---------------------- 1981# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1982# that executables *can* be run. 1983ac_fn_c_try_run () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 if { { ac_try="$ac_link" 1987case "(($ac_try" in 1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1989 *) ac_try_echo=$ac_try;; 1990esac 1991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1992$as_echo "$ac_try_echo"; } >&5 1993 (eval "$ac_link") 2>&5 1994 ac_status=$? 1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1996 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1997 { { case "(($ac_try" in 1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1999 *) ac_try_echo=$ac_try;; 2000esac 2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2002$as_echo "$ac_try_echo"; } >&5 2003 (eval "$ac_try") 2>&5 2004 ac_status=$? 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; }; }; then : 2007 ac_retval=0 2008else 2009 $as_echo "$as_me: program exited with status $ac_status" >&5 2010 $as_echo "$as_me: failed program was:" >&5 2011sed 's/^/| /' conftest.$ac_ext >&5 2012 2013 ac_retval=$ac_status 2014fi 2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2017 as_fn_set_status $ac_retval 2018 2019} # ac_fn_c_try_run 2020 2021# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2022# ------------------------------------------------------- 2023# Tests whether HEADER exists and can be compiled using the include files in 2024# INCLUDES, setting the cache variable VAR accordingly. 2025ac_fn_c_check_header_compile () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2029$as_echo_n "checking for $2... " >&6; } 2030if eval "test \"\${$3+set}\"" = set; then : 2031 $as_echo_n "(cached) " >&6 2032else 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036#include <$2> 2037_ACEOF 2038if ac_fn_c_try_compile "$LINENO"; then : 2039 eval "$3=yes" 2040else 2041 eval "$3=no" 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2044fi 2045eval ac_res=\$$3 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047$as_echo "$ac_res" >&6; } 2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2049 2050} # ac_fn_c_check_header_compile 2051 2052# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2053# --------------------------------------------- 2054# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2055# accordingly. 2056ac_fn_c_check_decl () 2057{ 2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2059 as_decl_name=`echo $2|sed 's/ *(.*//'` 2060 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2062$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2063if eval "test \"\${$3+set}\"" = set; then : 2064 $as_echo_n "(cached) " >&6 2065else 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2067/* end confdefs.h. */ 2068$4 2069int 2070main () 2071{ 2072#ifndef $as_decl_name 2073#ifdef __cplusplus 2074 (void) $as_decl_use; 2075#else 2076 (void) $as_decl_name; 2077#endif 2078#endif 2079 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084if ac_fn_c_try_compile "$LINENO"; then : 2085 eval "$3=yes" 2086else 2087 eval "$3=no" 2088fi 2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090fi 2091eval ac_res=\$$3 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2093$as_echo "$ac_res" >&6; } 2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2095 2096} # ac_fn_c_check_decl 2097 2098# ac_fn_c_try_link LINENO 2099# ----------------------- 2100# Try to link conftest.$ac_ext, and return whether this succeeded. 2101ac_fn_c_try_link () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 rm -f conftest.$ac_objext conftest$ac_exeext 2105 if { { ac_try="$ac_link" 2106case "(($ac_try" in 2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2108 *) ac_try_echo=$ac_try;; 2109esac 2110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2111$as_echo "$ac_try_echo"; } >&5 2112 (eval "$ac_link") 2>conftest.err 2113 ac_status=$? 2114 if test -s conftest.err; then 2115 grep -v '^ *+' conftest.err >conftest.er1 2116 cat conftest.er1 >&5 2117 mv -f conftest.er1 conftest.err 2118 fi 2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2120 test $ac_status = 0; } && { 2121 test -z "$ac_c_werror_flag" || 2122 test ! -s conftest.err 2123 } && test -s conftest$ac_exeext && { 2124 test "$cross_compiling" = yes || 2125 $as_test_x conftest$ac_exeext 2126 }; then : 2127 ac_retval=0 2128else 2129 $as_echo "$as_me: failed program was:" >&5 2130sed 's/^/| /' conftest.$ac_ext >&5 2131 2132 ac_retval=1 2133fi 2134 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2135 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2136 # interfere with the next link command; also delete a directory that is 2137 # left behind by Apple's compiler. We do this before executing the actions. 2138 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2140 as_fn_set_status $ac_retval 2141 2142} # ac_fn_c_try_link 2143 2144# ac_fn_c_check_func LINENO FUNC VAR 2145# ---------------------------------- 2146# Tests whether FUNC exists, setting the cache variable VAR accordingly 2147ac_fn_c_check_func () 2148{ 2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2151$as_echo_n "checking for $2... " >&6; } 2152if eval "test \"\${$3+set}\"" = set; then : 2153 $as_echo_n "(cached) " >&6 2154else 2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2156/* end confdefs.h. */ 2157/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2158 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2159#define $2 innocuous_$2 2160 2161/* System header to define __stub macros and hopefully few prototypes, 2162 which can conflict with char $2 (); below. 2163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2164 <limits.h> exists even on freestanding compilers. */ 2165 2166#ifdef __STDC__ 2167# include <limits.h> 2168#else 2169# include <assert.h> 2170#endif 2171 2172#undef $2 2173 2174/* Override any GCC internal prototype to avoid an error. 2175 Use char because int might match the return type of a GCC 2176 builtin and then its argument prototype would still apply. */ 2177#ifdef __cplusplus 2178extern "C" 2179#endif 2180char $2 (); 2181/* The GNU C library defines this for functions which it implements 2182 to always fail with ENOSYS. Some functions are actually named 2183 something starting with __ and the normal name is an alias. */ 2184#if defined __stub_$2 || defined __stub___$2 2185choke me 2186#endif 2187 2188int 2189main () 2190{ 2191return $2 (); 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196if ac_fn_c_try_link "$LINENO"; then : 2197 eval "$3=yes" 2198else 2199 eval "$3=no" 2200fi 2201rm -f core conftest.err conftest.$ac_objext \ 2202 conftest$ac_exeext conftest.$ac_ext 2203fi 2204eval ac_res=\$$3 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2206$as_echo "$ac_res" >&6; } 2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2208 2209} # ac_fn_c_check_func 2210 2211# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2212# ---------------------------------------------------- 2213# Tries to find if the field MEMBER exists in type AGGR, after including 2214# INCLUDES, setting cache variable VAR accordingly. 2215ac_fn_c_check_member () 2216{ 2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2219$as_echo_n "checking for $2.$3... " >&6; } 2220if eval "test \"\${$4+set}\"" = set; then : 2221 $as_echo_n "(cached) " >&6 2222else 2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2224/* end confdefs.h. */ 2225$5 2226int 2227main () 2228{ 2229static $2 ac_aggr; 2230if (ac_aggr.$3) 2231return 0; 2232 ; 2233 return 0; 2234} 2235_ACEOF 2236if ac_fn_c_try_compile "$LINENO"; then : 2237 eval "$4=yes" 2238else 2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2240/* end confdefs.h. */ 2241$5 2242int 2243main () 2244{ 2245static $2 ac_aggr; 2246if (sizeof ac_aggr.$3) 2247return 0; 2248 ; 2249 return 0; 2250} 2251_ACEOF 2252if ac_fn_c_try_compile "$LINENO"; then : 2253 eval "$4=yes" 2254else 2255 eval "$4=no" 2256fi 2257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2258fi 2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260fi 2261eval ac_res=\$$4 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2263$as_echo "$ac_res" >&6; } 2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2265 2266} # ac_fn_c_check_member 2267 2268# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2269# ------------------------------------------- 2270# Tests whether TYPE exists after having included INCLUDES, setting cache 2271# variable VAR accordingly. 2272ac_fn_c_check_type () 2273{ 2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2276$as_echo_n "checking for $2... " >&6; } 2277if eval "test \"\${$3+set}\"" = set; then : 2278 $as_echo_n "(cached) " >&6 2279else 2280 eval "$3=no" 2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282/* end confdefs.h. */ 2283$4 2284int 2285main () 2286{ 2287if (sizeof ($2)) 2288 return 0; 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_compile "$LINENO"; then : 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main () 2299{ 2300if (sizeof (($2))) 2301 return 0; 2302 ; 2303 return 0; 2304} 2305_ACEOF 2306if ac_fn_c_try_compile "$LINENO"; then : 2307 2308else 2309 eval "$3=yes" 2310fi 2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2312fi 2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2314fi 2315eval ac_res=\$$3 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2317$as_echo "$ac_res" >&6; } 2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2319 2320} # ac_fn_c_check_type 2321cat >config.log <<_ACEOF 2322This file contains any messages produced by compilers while 2323running configure, to aid debugging if configure makes a mistake. 2324 2325It was created by libX11 $as_me 1.3.6, which was 2326generated by GNU Autoconf 2.67. Invocation command line was 2327 2328 $ $0 $@ 2329 2330_ACEOF 2331exec 5>>config.log 2332{ 2333cat <<_ASUNAME 2334## --------- ## 2335## Platform. ## 2336## --------- ## 2337 2338hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2339uname -m = `(uname -m) 2>/dev/null || echo unknown` 2340uname -r = `(uname -r) 2>/dev/null || echo unknown` 2341uname -s = `(uname -s) 2>/dev/null || echo unknown` 2342uname -v = `(uname -v) 2>/dev/null || echo unknown` 2343 2344/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2345/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2346 2347/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2348/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2349/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2350/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2351/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2352/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2353/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2354 2355_ASUNAME 2356 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 $as_echo "PATH: $as_dir" 2363 done 2364IFS=$as_save_IFS 2365 2366} >&5 2367 2368cat >&5 <<_ACEOF 2369 2370 2371## ----------- ## 2372## Core tests. ## 2373## ----------- ## 2374 2375_ACEOF 2376 2377 2378# Keep a trace of the command line. 2379# Strip out --no-create and --no-recursion so they do not pile up. 2380# Strip out --silent because we don't want to record it for future runs. 2381# Also quote any args containing shell meta-characters. 2382# Make two passes to allow for proper duplicate-argument suppression. 2383ac_configure_args= 2384ac_configure_args0= 2385ac_configure_args1= 2386ac_must_keep_next=false 2387for ac_pass in 1 2 2388do 2389 for ac_arg 2390 do 2391 case $ac_arg in 2392 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2394 | -silent | --silent | --silen | --sile | --sil) 2395 continue ;; 2396 *\'*) 2397 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2398 esac 2399 case $ac_pass in 2400 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2401 2) 2402 as_fn_append ac_configure_args1 " '$ac_arg'" 2403 if test $ac_must_keep_next = true; then 2404 ac_must_keep_next=false # Got value, back to normal. 2405 else 2406 case $ac_arg in 2407 *=* | --config-cache | -C | -disable-* | --disable-* \ 2408 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2409 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2410 | -with-* | --with-* | -without-* | --without-* | --x) 2411 case "$ac_configure_args0 " in 2412 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2413 esac 2414 ;; 2415 -* ) ac_must_keep_next=true ;; 2416 esac 2417 fi 2418 as_fn_append ac_configure_args " '$ac_arg'" 2419 ;; 2420 esac 2421 done 2422done 2423{ ac_configure_args0=; unset ac_configure_args0;} 2424{ ac_configure_args1=; unset ac_configure_args1;} 2425 2426# When interrupted or exit'd, cleanup temporary files, and complete 2427# config.log. We remove comments because anyway the quotes in there 2428# would cause problems or look ugly. 2429# WARNING: Use '\'' to represent an apostrophe within the trap. 2430# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2431trap 'exit_status=$? 2432 # Save into config.log some information that might help in debugging. 2433 { 2434 echo 2435 2436 $as_echo "## ---------------- ## 2437## Cache variables. ## 2438## ---------------- ##" 2439 echo 2440 # The following way of writing the cache mishandles newlines in values, 2441( 2442 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2443 eval ac_val=\$$ac_var 2444 case $ac_val in #( 2445 *${as_nl}*) 2446 case $ac_var in #( 2447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2448$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2449 esac 2450 case $ac_var in #( 2451 _ | IFS | as_nl) ;; #( 2452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2453 *) { eval $ac_var=; unset $ac_var;} ;; 2454 esac ;; 2455 esac 2456 done 2457 (set) 2>&1 | 2458 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2459 *${as_nl}ac_space=\ *) 2460 sed -n \ 2461 "s/'\''/'\''\\\\'\'''\''/g; 2462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2463 ;; #( 2464 *) 2465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2466 ;; 2467 esac | 2468 sort 2469) 2470 echo 2471 2472 $as_echo "## ----------------- ## 2473## Output variables. ## 2474## ----------------- ##" 2475 echo 2476 for ac_var in $ac_subst_vars 2477 do 2478 eval ac_val=\$$ac_var 2479 case $ac_val in 2480 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2481 esac 2482 $as_echo "$ac_var='\''$ac_val'\''" 2483 done | sort 2484 echo 2485 2486 if test -n "$ac_subst_files"; then 2487 $as_echo "## ------------------- ## 2488## File substitutions. ## 2489## ------------------- ##" 2490 echo 2491 for ac_var in $ac_subst_files 2492 do 2493 eval ac_val=\$$ac_var 2494 case $ac_val in 2495 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2496 esac 2497 $as_echo "$ac_var='\''$ac_val'\''" 2498 done | sort 2499 echo 2500 fi 2501 2502 if test -s confdefs.h; then 2503 $as_echo "## ----------- ## 2504## confdefs.h. ## 2505## ----------- ##" 2506 echo 2507 cat confdefs.h 2508 echo 2509 fi 2510 test "$ac_signal" != 0 && 2511 $as_echo "$as_me: caught signal $ac_signal" 2512 $as_echo "$as_me: exit $exit_status" 2513 } >&5 2514 rm -f core *.core core.conftest.* && 2515 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2516 exit $exit_status 2517' 0 2518for ac_signal in 1 2 13 15; do 2519 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2520done 2521ac_signal=0 2522 2523# confdefs.h avoids OS command line length limits that DEFS can exceed. 2524rm -f -r conftest* confdefs.h 2525 2526$as_echo "/* confdefs.h */" > confdefs.h 2527 2528# Predefined preprocessor variables. 2529 2530cat >>confdefs.h <<_ACEOF 2531#define PACKAGE_NAME "$PACKAGE_NAME" 2532_ACEOF 2533 2534cat >>confdefs.h <<_ACEOF 2535#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2536_ACEOF 2537 2538cat >>confdefs.h <<_ACEOF 2539#define PACKAGE_VERSION "$PACKAGE_VERSION" 2540_ACEOF 2541 2542cat >>confdefs.h <<_ACEOF 2543#define PACKAGE_STRING "$PACKAGE_STRING" 2544_ACEOF 2545 2546cat >>confdefs.h <<_ACEOF 2547#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2548_ACEOF 2549 2550cat >>confdefs.h <<_ACEOF 2551#define PACKAGE_URL "$PACKAGE_URL" 2552_ACEOF 2553 2554 2555# Let the site file select an alternate cache file if it wants to. 2556# Prefer an explicitly selected file to automatically selected ones. 2557ac_site_file1=NONE 2558ac_site_file2=NONE 2559if test -n "$CONFIG_SITE"; then 2560 # We do not want a PATH search for config.site. 2561 case $CONFIG_SITE in #(( 2562 -*) ac_site_file1=./$CONFIG_SITE;; 2563 */*) ac_site_file1=$CONFIG_SITE;; 2564 *) ac_site_file1=./$CONFIG_SITE;; 2565 esac 2566elif test "x$prefix" != xNONE; then 2567 ac_site_file1=$prefix/share/config.site 2568 ac_site_file2=$prefix/etc/config.site 2569else 2570 ac_site_file1=$ac_default_prefix/share/config.site 2571 ac_site_file2=$ac_default_prefix/etc/config.site 2572fi 2573for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2574do 2575 test "x$ac_site_file" = xNONE && continue 2576 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2578$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2579 sed 's/^/| /' "$ac_site_file" >&5 2580 . "$ac_site_file" \ 2581 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2583as_fn_error $? "failed to load site script $ac_site_file 2584See \`config.log' for more details" "$LINENO" 5 ; } 2585 fi 2586done 2587 2588if test -r "$cache_file"; then 2589 # Some versions of bash will fail to source /dev/null (special files 2590 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2591 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2593$as_echo "$as_me: loading cache $cache_file" >&6;} 2594 case $cache_file in 2595 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2596 *) . "./$cache_file";; 2597 esac 2598 fi 2599else 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2601$as_echo "$as_me: creating cache $cache_file" >&6;} 2602 >$cache_file 2603fi 2604 2605as_fn_append ac_header_list " stdlib.h" 2606as_fn_append ac_header_list " unistd.h" 2607as_fn_append ac_header_list " sys/param.h" 2608# Check that the precious variables saved in the cache have kept the same 2609# value. 2610ac_cache_corrupted=false 2611for ac_var in $ac_precious_vars; do 2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2613 eval ac_new_set=\$ac_env_${ac_var}_set 2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2615 eval ac_new_val=\$ac_env_${ac_var}_value 2616 case $ac_old_set,$ac_new_set in 2617 set,) 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2619$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2620 ac_cache_corrupted=: ;; 2621 ,set) 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2623$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2624 ac_cache_corrupted=: ;; 2625 ,);; 2626 *) 2627 if test "x$ac_old_val" != "x$ac_new_val"; then 2628 # differences in whitespace do not lead to failure. 2629 ac_old_val_w=`echo x $ac_old_val` 2630 ac_new_val_w=`echo x $ac_new_val` 2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2633$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2634 ac_cache_corrupted=: 2635 else 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2637$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2638 eval $ac_var=\$ac_old_val 2639 fi 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2641$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2643$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2644 fi;; 2645 esac 2646 # Pass precious variables to config.status. 2647 if test "$ac_new_set" = set; then 2648 case $ac_new_val in 2649 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2650 *) ac_arg=$ac_var=$ac_new_val ;; 2651 esac 2652 case " $ac_configure_args " in 2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2655 esac 2656 fi 2657done 2658if $ac_cache_corrupted; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2662$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2663 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2664fi 2665## -------------------- ## 2666## Main body of script. ## 2667## -------------------- ## 2668 2669ac_ext=c 2670ac_cpp='$CPP $CPPFLAGS' 2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2673ac_compiler_gnu=$ac_cv_c_compiler_gnu 2674 2675 2676 2677 2678ac_aux_dir= 2679for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2680 if test -f "$ac_dir/install-sh"; then 2681 ac_aux_dir=$ac_dir 2682 ac_install_sh="$ac_aux_dir/install-sh -c" 2683 break 2684 elif test -f "$ac_dir/install.sh"; then 2685 ac_aux_dir=$ac_dir 2686 ac_install_sh="$ac_aux_dir/install.sh -c" 2687 break 2688 elif test -f "$ac_dir/shtool"; then 2689 ac_aux_dir=$ac_dir 2690 ac_install_sh="$ac_aux_dir/shtool install -c" 2691 break 2692 fi 2693done 2694if test -z "$ac_aux_dir"; then 2695 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2696fi 2697 2698# These three variables are undocumented and unsupported, 2699# and are intended to be withdrawn in a future Autoconf release. 2700# They can cause serious problems if a builder's source tree is in a directory 2701# whose full name contains unusual characters. 2702ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2703ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2704ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2705 2706 2707# Make sure we can run config.sub. 2708$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2709 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2710 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2712$as_echo_n "checking build system type... " >&6; } 2713if test "${ac_cv_build+set}" = set; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 ac_build_alias=$build_alias 2717test "x$ac_build_alias" = x && 2718 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2719test "x$ac_build_alias" = x && 2720 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2721ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2722 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2723 2724fi 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2726$as_echo "$ac_cv_build" >&6; } 2727case $ac_cv_build in 2728*-*-*) ;; 2729*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 2730esac 2731build=$ac_cv_build 2732ac_save_IFS=$IFS; IFS='-' 2733set x $ac_cv_build 2734shift 2735build_cpu=$1 2736build_vendor=$2 2737shift; shift 2738# Remember, the first character of IFS is used to create $*, 2739# except with old shells: 2740build_os=$* 2741IFS=$ac_save_IFS 2742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2743 2744 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2746$as_echo_n "checking host system type... " >&6; } 2747if test "${ac_cv_host+set}" = set; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 if test "x$host_alias" = x; then 2751 ac_cv_host=$ac_cv_build 2752else 2753 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2755fi 2756 2757fi 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2759$as_echo "$ac_cv_host" >&6; } 2760case $ac_cv_host in 2761*-*-*) ;; 2762*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 2763esac 2764host=$ac_cv_host 2765ac_save_IFS=$IFS; IFS='-' 2766set x $ac_cv_host 2767shift 2768host_cpu=$1 2769host_vendor=$2 2770shift; shift 2771# Remember, the first character of IFS is used to create $*, 2772# except with old shells: 2773host_os=$* 2774IFS=$ac_save_IFS 2775case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2776 2777 2778 2779am__api_version='1.11' 2780 2781# Find a good install program. We prefer a C program (faster), 2782# so one script is as good as another. But avoid the broken or 2783# incompatible versions: 2784# SysV /etc/install, /usr/sbin/install 2785# SunOS /usr/etc/install 2786# IRIX /sbin/install 2787# AIX /bin/install 2788# AmigaOS /C/install, which installs bootblocks on floppy discs 2789# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2790# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2791# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2792# OS/2's system install, which has a completely different semantic 2793# ./install, which can be erroneously created by make from ./install.sh. 2794# Reject install programs that cannot install multiple files. 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2796$as_echo_n "checking for a BSD-compatible install... " >&6; } 2797if test -z "$INSTALL"; then 2798if test "${ac_cv_path_install+set}" = set; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH 2803do 2804 IFS=$as_save_IFS 2805 test -z "$as_dir" && as_dir=. 2806 # Account for people who put trailing slashes in PATH elements. 2807case $as_dir/ in #(( 2808 ./ | .// | /[cC]/* | \ 2809 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2810 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2811 /usr/ucb/* ) ;; 2812 *) 2813 # OSF1 and SCO ODT 3.0 have their own names for install. 2814 # Don't use installbsd from OSF since it installs stuff as root 2815 # by default. 2816 for ac_prog in ginstall scoinst install; do 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2819 if test $ac_prog = install && 2820 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2821 # AIX install. It has an incompatible calling convention. 2822 : 2823 elif test $ac_prog = install && 2824 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2825 # program-specific install script used by HP pwplus--don't use. 2826 : 2827 else 2828 rm -rf conftest.one conftest.two conftest.dir 2829 echo one > conftest.one 2830 echo two > conftest.two 2831 mkdir conftest.dir 2832 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2833 test -s conftest.one && test -s conftest.two && 2834 test -s conftest.dir/conftest.one && 2835 test -s conftest.dir/conftest.two 2836 then 2837 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2838 break 3 2839 fi 2840 fi 2841 fi 2842 done 2843 done 2844 ;; 2845esac 2846 2847 done 2848IFS=$as_save_IFS 2849 2850rm -rf conftest.one conftest.two conftest.dir 2851 2852fi 2853 if test "${ac_cv_path_install+set}" = set; then 2854 INSTALL=$ac_cv_path_install 2855 else 2856 # As a last resort, use the slow shell script. Don't cache a 2857 # value for INSTALL within a source directory, because that will 2858 # break other packages using the cache if that directory is 2859 # removed, or if the value is a relative name. 2860 INSTALL=$ac_install_sh 2861 fi 2862fi 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2864$as_echo "$INSTALL" >&6; } 2865 2866# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2867# It thinks the first close brace ends the variable substitution. 2868test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2869 2870test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2871 2872test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2873 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2875$as_echo_n "checking whether build environment is sane... " >&6; } 2876# Just in case 2877sleep 1 2878echo timestamp > conftest.file 2879# Reject unsafe characters in $srcdir or the absolute working directory 2880# name. Accept space and tab only in the latter. 2881am_lf=' 2882' 2883case `pwd` in 2884 *[\\\"\#\$\&\'\`$am_lf]*) 2885 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2886esac 2887case $srcdir in 2888 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2889 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2890esac 2891 2892# Do `set' in a subshell so we don't clobber the current shell's 2893# arguments. Must try -L first in case configure is actually a 2894# symlink; some systems play weird games with the mod time of symlinks 2895# (eg FreeBSD returns the mod time of the symlink's containing 2896# directory). 2897if ( 2898 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2899 if test "$*" = "X"; then 2900 # -L didn't work. 2901 set X `ls -t "$srcdir/configure" conftest.file` 2902 fi 2903 rm -f conftest.file 2904 if test "$*" != "X $srcdir/configure conftest.file" \ 2905 && test "$*" != "X conftest.file $srcdir/configure"; then 2906 2907 # If neither matched, then we have a broken ls. This can happen 2908 # if, for instance, CONFIG_SHELL is bash and it inherits a 2909 # broken ls alias from the environment. This has actually 2910 # happened. Such a system could not be considered "sane". 2911 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2912alias in your environment" "$LINENO" 5 2913 fi 2914 2915 test "$2" = conftest.file 2916 ) 2917then 2918 # Ok. 2919 : 2920else 2921 as_fn_error $? "newly created file is older than distributed files! 2922Check your system clock" "$LINENO" 5 2923fi 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2925$as_echo "yes" >&6; } 2926test "$program_prefix" != NONE && 2927 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2928# Use a double $ so make ignores it. 2929test "$program_suffix" != NONE && 2930 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2931# Double any \ or $. 2932# By default was `s,x,x', remove it if useless. 2933ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2934program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2935 2936# expand $ac_aux_dir to an absolute path 2937am_aux_dir=`cd $ac_aux_dir && pwd` 2938 2939if test x"${MISSING+set}" != xset; then 2940 case $am_aux_dir in 2941 *\ * | *\ *) 2942 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2943 *) 2944 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2945 esac 2946fi 2947# Use eval to expand $SHELL 2948if eval "$MISSING --run true"; then 2949 am_missing_run="$MISSING --run " 2950else 2951 am_missing_run= 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2953$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2954fi 2955 2956if test x"${install_sh}" != xset; then 2957 case $am_aux_dir in 2958 *\ * | *\ *) 2959 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2960 *) 2961 install_sh="\${SHELL} $am_aux_dir/install-sh" 2962 esac 2963fi 2964 2965# Installed binaries are usually stripped using `strip' when the user 2966# run `make install-strip'. However `strip' might not be the right 2967# tool to use in cross-compilation environments, therefore Automake 2968# will honor the `STRIP' environment variable to overrule this program. 2969if test "$cross_compiling" != no; then 2970 if test -n "$ac_tool_prefix"; then 2971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2972set dummy ${ac_tool_prefix}strip; ac_word=$2 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2974$as_echo_n "checking for $ac_word... " >&6; } 2975if test "${ac_cv_prog_STRIP+set}" = set; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if test -n "$STRIP"; then 2979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2980else 2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2988 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997fi 2998STRIP=$ac_cv_prog_STRIP 2999if test -n "$STRIP"; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3001$as_echo "$STRIP" >&6; } 3002else 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004$as_echo "no" >&6; } 3005fi 3006 3007 3008fi 3009if test -z "$ac_cv_prog_STRIP"; then 3010 ac_ct_STRIP=$STRIP 3011 # Extract the first word of "strip", so it can be a program name with args. 3012set dummy strip; ac_word=$2 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014$as_echo_n "checking for $ac_word... " >&6; } 3015if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if test -n "$ac_ct_STRIP"; then 3019 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3020else 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3028 ac_cv_prog_ac_ct_STRIP="strip" 3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037fi 3038ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3039if test -n "$ac_ct_STRIP"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3041$as_echo "$ac_ct_STRIP" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 if test "x$ac_ct_STRIP" = x; then 3048 STRIP=":" 3049 else 3050 case $cross_compiling:$ac_tool_warned in 3051yes:) 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3054ac_tool_warned=yes ;; 3055esac 3056 STRIP=$ac_ct_STRIP 3057 fi 3058else 3059 STRIP="$ac_cv_prog_STRIP" 3060fi 3061 3062fi 3063INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3064 3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3066$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3067if test -z "$MKDIR_P"; then 3068 if test "${ac_cv_path_mkdir+set}" = set; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_prog in mkdir gmkdir; do 3077 for ac_exec_ext in '' $ac_executable_extensions; do 3078 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3079 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3080 'mkdir (GNU coreutils) '* | \ 3081 'mkdir (coreutils) '* | \ 3082 'mkdir (fileutils) '4.1*) 3083 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3084 break 3;; 3085 esac 3086 done 3087 done 3088 done 3089IFS=$as_save_IFS 3090 3091fi 3092 3093 test -d ./--version && rmdir ./--version 3094 if test "${ac_cv_path_mkdir+set}" = set; then 3095 MKDIR_P="$ac_cv_path_mkdir -p" 3096 else 3097 # As a last resort, use the slow shell script. Don't cache a 3098 # value for MKDIR_P within a source directory, because that will 3099 # break other packages using the cache if that directory is 3100 # removed, or if the value is a relative name. 3101 MKDIR_P="$ac_install_sh -d" 3102 fi 3103fi 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3105$as_echo "$MKDIR_P" >&6; } 3106 3107mkdir_p="$MKDIR_P" 3108case $mkdir_p in 3109 [\\/$]* | ?:[\\/]*) ;; 3110 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3111esac 3112 3113for ac_prog in gawk mawk nawk awk 3114do 3115 # Extract the first word of "$ac_prog", so it can be a program name with args. 3116set dummy $ac_prog; ac_word=$2 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3118$as_echo_n "checking for $ac_word... " >&6; } 3119if test "${ac_cv_prog_AWK+set}" = set; then : 3120 $as_echo_n "(cached) " >&6 3121else 3122 if test -n "$AWK"; then 3123 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3124else 3125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3126for as_dir in $PATH 3127do 3128 IFS=$as_save_IFS 3129 test -z "$as_dir" && as_dir=. 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3132 ac_cv_prog_AWK="$ac_prog" 3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137 done 3138IFS=$as_save_IFS 3139 3140fi 3141fi 3142AWK=$ac_cv_prog_AWK 3143if test -n "$AWK"; then 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3145$as_echo "$AWK" >&6; } 3146else 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148$as_echo "no" >&6; } 3149fi 3150 3151 3152 test -n "$AWK" && break 3153done 3154 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3156$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3157set x ${MAKE-make} 3158ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3159if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 cat >conftest.make <<\_ACEOF 3163SHELL = /bin/sh 3164all: 3165 @echo '@@@%%%=$(MAKE)=@@@%%%' 3166_ACEOF 3167# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3168case `${MAKE-make} -f conftest.make 2>/dev/null` in 3169 *@@@%%%=?*=@@@%%%*) 3170 eval ac_cv_prog_make_${ac_make}_set=yes;; 3171 *) 3172 eval ac_cv_prog_make_${ac_make}_set=no;; 3173esac 3174rm -f conftest.make 3175fi 3176if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3178$as_echo "yes" >&6; } 3179 SET_MAKE= 3180else 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3182$as_echo "no" >&6; } 3183 SET_MAKE="MAKE=${MAKE-make}" 3184fi 3185 3186rm -rf .tst 2>/dev/null 3187mkdir .tst 2>/dev/null 3188if test -d .tst; then 3189 am__leading_dot=. 3190else 3191 am__leading_dot=_ 3192fi 3193rmdir .tst 2>/dev/null 3194 3195if test "`cd $srcdir && pwd`" != "`pwd`"; then 3196 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3197 # is not polluted with repeated "-I." 3198 am__isrc=' -I$(srcdir)' 3199 # test to see if srcdir already configured 3200 if test -f $srcdir/config.status; then 3201 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3202 fi 3203fi 3204 3205# test whether we have cygpath 3206if test -z "$CYGPATH_W"; then 3207 if (cygpath --version) >/dev/null 2>/dev/null; then 3208 CYGPATH_W='cygpath -w' 3209 else 3210 CYGPATH_W=echo 3211 fi 3212fi 3213 3214 3215# Define the identity of the package. 3216 PACKAGE='libX11' 3217 VERSION='1.3.6' 3218 3219 3220cat >>confdefs.h <<_ACEOF 3221#define PACKAGE "$PACKAGE" 3222_ACEOF 3223 3224 3225cat >>confdefs.h <<_ACEOF 3226#define VERSION "$VERSION" 3227_ACEOF 3228 3229# Some tools Automake needs. 3230 3231ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3232 3233 3234AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3235 3236 3237AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3238 3239 3240AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3241 3242 3243MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3244 3245# We need awk for the "check" target. The system "awk" is bad on 3246# some platforms. 3247# Always define AMTAR for backward compatibility. 3248 3249AMTAR=${AMTAR-"${am_missing_run}tar"} 3250 3251am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3252 3253 3254 3255 3256 3257 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3259$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3260 # Check whether --enable-maintainer-mode was given. 3261if test "${enable_maintainer_mode+set}" = set; then : 3262 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3263else 3264 USE_MAINTAINER_MODE=no 3265fi 3266 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3268$as_echo "$USE_MAINTAINER_MODE" >&6; } 3269 if test $USE_MAINTAINER_MODE = yes; then 3270 MAINTAINER_MODE_TRUE= 3271 MAINTAINER_MODE_FALSE='#' 3272else 3273 MAINTAINER_MODE_TRUE='#' 3274 MAINTAINER_MODE_FALSE= 3275fi 3276 3277 MAINT=$MAINTAINER_MODE_TRUE 3278 3279 3280ac_config_headers="$ac_config_headers src/config.h" 3281 3282ac_config_headers="$ac_config_headers include/X11/XlibConf.h" 3283 3284 3285# Require xorg-macros: XORG_DEFAULT_OPTIONS 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3299# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3300# to avoid autoconf errors. 3301DEPDIR="${am__leading_dot}deps" 3302 3303ac_config_commands="$ac_config_commands depfiles" 3304 3305 3306am_make=${MAKE-make} 3307cat > confinc << 'END' 3308am__doit: 3309 @echo this is the am__doit target 3310.PHONY: am__doit 3311END 3312# If we don't find an include directive, just comment out the code. 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3314$as_echo_n "checking for style of include used by $am_make... " >&6; } 3315am__include="#" 3316am__quote= 3317_am_result=none 3318# First try GNU make style include. 3319echo "include confinc" > confmf 3320# Ignore all kinds of additional output from `make'. 3321case `$am_make -s -f confmf 2> /dev/null` in #( 3322*the\ am__doit\ target*) 3323 am__include=include 3324 am__quote= 3325 _am_result=GNU 3326 ;; 3327esac 3328# Now try BSD make style include. 3329if test "$am__include" = "#"; then 3330 echo '.include "confinc"' > confmf 3331 case `$am_make -s -f confmf 2> /dev/null` in #( 3332 *the\ am__doit\ target*) 3333 am__include=.include 3334 am__quote="\"" 3335 _am_result=BSD 3336 ;; 3337 esac 3338fi 3339 3340 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3342$as_echo "$_am_result" >&6; } 3343rm -f confinc confmf 3344 3345# Check whether --enable-dependency-tracking was given. 3346if test "${enable_dependency_tracking+set}" = set; then : 3347 enableval=$enable_dependency_tracking; 3348fi 3349 3350if test "x$enable_dependency_tracking" != xno; then 3351 am_depcomp="$ac_aux_dir/depcomp" 3352 AMDEPBACKSLASH='\' 3353fi 3354 if test "x$enable_dependency_tracking" != xno; then 3355 AMDEP_TRUE= 3356 AMDEP_FALSE='#' 3357else 3358 AMDEP_TRUE='#' 3359 AMDEP_FALSE= 3360fi 3361 3362 3363ac_ext=c 3364ac_cpp='$CPP $CPPFLAGS' 3365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3367ac_compiler_gnu=$ac_cv_c_compiler_gnu 3368if test -n "$ac_tool_prefix"; then 3369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3370set dummy ${ac_tool_prefix}gcc; ac_word=$2 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3372$as_echo_n "checking for $ac_word... " >&6; } 3373if test "${ac_cv_prog_CC+set}" = set; then : 3374 $as_echo_n "(cached) " >&6 3375else 3376 if test -n "$CC"; then 3377 ac_cv_prog_CC="$CC" # Let the user override the test. 3378else 3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380for as_dir in $PATH 3381do 3382 IFS=$as_save_IFS 3383 test -z "$as_dir" && as_dir=. 3384 for ac_exec_ext in '' $ac_executable_extensions; do 3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3386 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3388 break 2 3389 fi 3390done 3391 done 3392IFS=$as_save_IFS 3393 3394fi 3395fi 3396CC=$ac_cv_prog_CC 3397if test -n "$CC"; then 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3399$as_echo "$CC" >&6; } 3400else 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3402$as_echo "no" >&6; } 3403fi 3404 3405 3406fi 3407if test -z "$ac_cv_prog_CC"; then 3408 ac_ct_CC=$CC 3409 # Extract the first word of "gcc", so it can be a program name with args. 3410set dummy gcc; ac_word=$2 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3412$as_echo_n "checking for $ac_word... " >&6; } 3413if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3414 $as_echo_n "(cached) " >&6 3415else 3416 if test -n "$ac_ct_CC"; then 3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3418else 3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3420for as_dir in $PATH 3421do 3422 IFS=$as_save_IFS 3423 test -z "$as_dir" && as_dir=. 3424 for ac_exec_ext in '' $ac_executable_extensions; do 3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3426 ac_cv_prog_ac_ct_CC="gcc" 3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3428 break 2 3429 fi 3430done 3431 done 3432IFS=$as_save_IFS 3433 3434fi 3435fi 3436ac_ct_CC=$ac_cv_prog_ac_ct_CC 3437if test -n "$ac_ct_CC"; then 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3439$as_echo "$ac_ct_CC" >&6; } 3440else 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3442$as_echo "no" >&6; } 3443fi 3444 3445 if test "x$ac_ct_CC" = x; then 3446 CC="" 3447 else 3448 case $cross_compiling:$ac_tool_warned in 3449yes:) 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3452ac_tool_warned=yes ;; 3453esac 3454 CC=$ac_ct_CC 3455 fi 3456else 3457 CC="$ac_cv_prog_CC" 3458fi 3459 3460if test -z "$CC"; then 3461 if test -n "$ac_tool_prefix"; then 3462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3463set dummy ${ac_tool_prefix}cc; ac_word=$2 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3465$as_echo_n "checking for $ac_word... " >&6; } 3466if test "${ac_cv_prog_CC+set}" = set; then : 3467 $as_echo_n "(cached) " >&6 3468else 3469 if test -n "$CC"; then 3470 ac_cv_prog_CC="$CC" # Let the user override the test. 3471else 3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH 3474do 3475 IFS=$as_save_IFS 3476 test -z "$as_dir" && as_dir=. 3477 for ac_exec_ext in '' $ac_executable_extensions; do 3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3479 ac_cv_prog_CC="${ac_tool_prefix}cc" 3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3481 break 2 3482 fi 3483done 3484 done 3485IFS=$as_save_IFS 3486 3487fi 3488fi 3489CC=$ac_cv_prog_CC 3490if test -n "$CC"; then 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3492$as_echo "$CC" >&6; } 3493else 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3495$as_echo "no" >&6; } 3496fi 3497 3498 3499 fi 3500fi 3501if test -z "$CC"; then 3502 # Extract the first word of "cc", so it can be a program name with args. 3503set dummy cc; ac_word=$2 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3505$as_echo_n "checking for $ac_word... " >&6; } 3506if test "${ac_cv_prog_CC+set}" = set; then : 3507 $as_echo_n "(cached) " >&6 3508else 3509 if test -n "$CC"; then 3510 ac_cv_prog_CC="$CC" # Let the user override the test. 3511else 3512 ac_prog_rejected=no 3513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3514for as_dir in $PATH 3515do 3516 IFS=$as_save_IFS 3517 test -z "$as_dir" && as_dir=. 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3521 ac_prog_rejected=yes 3522 continue 3523 fi 3524 ac_cv_prog_CC="cc" 3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3526 break 2 3527 fi 3528done 3529 done 3530IFS=$as_save_IFS 3531 3532if test $ac_prog_rejected = yes; then 3533 # We found a bogon in the path, so make sure we never use it. 3534 set dummy $ac_cv_prog_CC 3535 shift 3536 if test $# != 0; then 3537 # We chose a different compiler from the bogus one. 3538 # However, it has the same basename, so the bogon will be chosen 3539 # first if we set CC to just the basename; use the full file name. 3540 shift 3541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3542 fi 3543fi 3544fi 3545fi 3546CC=$ac_cv_prog_CC 3547if test -n "$CC"; then 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3549$as_echo "$CC" >&6; } 3550else 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3552$as_echo "no" >&6; } 3553fi 3554 3555 3556fi 3557if test -z "$CC"; then 3558 if test -n "$ac_tool_prefix"; then 3559 for ac_prog in cl.exe 3560 do 3561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3562set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3564$as_echo_n "checking for $ac_word... " >&6; } 3565if test "${ac_cv_prog_CC+set}" = set; then : 3566 $as_echo_n "(cached) " >&6 3567else 3568 if test -n "$CC"; then 3569 ac_cv_prog_CC="$CC" # Let the user override the test. 3570else 3571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 test -z "$as_dir" && as_dir=. 3576 for ac_exec_ext in '' $ac_executable_extensions; do 3577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 break 2 3581 fi 3582done 3583 done 3584IFS=$as_save_IFS 3585 3586fi 3587fi 3588CC=$ac_cv_prog_CC 3589if test -n "$CC"; then 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3591$as_echo "$CC" >&6; } 3592else 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3594$as_echo "no" >&6; } 3595fi 3596 3597 3598 test -n "$CC" && break 3599 done 3600fi 3601if test -z "$CC"; then 3602 ac_ct_CC=$CC 3603 for ac_prog in cl.exe 3604do 3605 # Extract the first word of "$ac_prog", so it can be a program name with args. 3606set dummy $ac_prog; ac_word=$2 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3608$as_echo_n "checking for $ac_word... " >&6; } 3609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 if test -n "$ac_ct_CC"; then 3613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3614else 3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3616for as_dir in $PATH 3617do 3618 IFS=$as_save_IFS 3619 test -z "$as_dir" && as_dir=. 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3622 ac_cv_prog_ac_ct_CC="$ac_prog" 3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3624 break 2 3625 fi 3626done 3627 done 3628IFS=$as_save_IFS 3629 3630fi 3631fi 3632ac_ct_CC=$ac_cv_prog_ac_ct_CC 3633if test -n "$ac_ct_CC"; then 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3635$as_echo "$ac_ct_CC" >&6; } 3636else 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638$as_echo "no" >&6; } 3639fi 3640 3641 3642 test -n "$ac_ct_CC" && break 3643done 3644 3645 if test "x$ac_ct_CC" = x; then 3646 CC="" 3647 else 3648 case $cross_compiling:$ac_tool_warned in 3649yes:) 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3652ac_tool_warned=yes ;; 3653esac 3654 CC=$ac_ct_CC 3655 fi 3656fi 3657 3658fi 3659 3660 3661test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3663as_fn_error $? "no acceptable C compiler found in \$PATH 3664See \`config.log' for more details" "$LINENO" 5 ; } 3665 3666# Provide some information about the compiler. 3667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3668set X $ac_compile 3669ac_compiler=$2 3670for ac_option in --version -v -V -qversion; do 3671 { { ac_try="$ac_compiler $ac_option >&5" 3672case "(($ac_try" in 3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3674 *) ac_try_echo=$ac_try;; 3675esac 3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3677$as_echo "$ac_try_echo"; } >&5 3678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3679 ac_status=$? 3680 if test -s conftest.err; then 3681 sed '10a\ 3682... rest of stderr output deleted ... 3683 10q' conftest.err >conftest.er1 3684 cat conftest.er1 >&5 3685 fi 3686 rm -f conftest.er1 conftest.err 3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3688 test $ac_status = 0; } 3689done 3690 3691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3692/* end confdefs.h. */ 3693 3694int 3695main () 3696{ 3697 3698 ; 3699 return 0; 3700} 3701_ACEOF 3702ac_clean_files_save=$ac_clean_files 3703ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3704# Try to create an executable without -o first, disregard a.out. 3705# It will help us diagnose broken compilers, and finding out an intuition 3706# of exeext. 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3708$as_echo_n "checking whether the C compiler works... " >&6; } 3709ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3710 3711# The possible output files: 3712ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3713 3714ac_rmfiles= 3715for ac_file in $ac_files 3716do 3717 case $ac_file in 3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3719 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3720 esac 3721done 3722rm -f $ac_rmfiles 3723 3724if { { ac_try="$ac_link_default" 3725case "(($ac_try" in 3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3727 *) ac_try_echo=$ac_try;; 3728esac 3729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3730$as_echo "$ac_try_echo"; } >&5 3731 (eval "$ac_link_default") 2>&5 3732 ac_status=$? 3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3734 test $ac_status = 0; }; then : 3735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3736# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3737# in a Makefile. We should not override ac_cv_exeext if it was cached, 3738# so that the user can short-circuit this test for compilers unknown to 3739# Autoconf. 3740for ac_file in $ac_files '' 3741do 3742 test -f "$ac_file" || continue 3743 case $ac_file in 3744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3745 ;; 3746 [ab].out ) 3747 # We found the default executable, but exeext='' is most 3748 # certainly right. 3749 break;; 3750 *.* ) 3751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3752 then :; else 3753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3754 fi 3755 # We set ac_cv_exeext here because the later test for it is not 3756 # safe: cross compilers may not add the suffix if given an `-o' 3757 # argument, so we may need to know it at that point already. 3758 # Even if this section looks crufty: it has the advantage of 3759 # actually working. 3760 break;; 3761 * ) 3762 break;; 3763 esac 3764done 3765test "$ac_cv_exeext" = no && ac_cv_exeext= 3766 3767else 3768 ac_file='' 3769fi 3770if test -z "$ac_file"; then : 3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3772$as_echo "no" >&6; } 3773$as_echo "$as_me: failed program was:" >&5 3774sed 's/^/| /' conftest.$ac_ext >&5 3775 3776{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3778as_fn_error 77 "C compiler cannot create executables 3779See \`config.log' for more details" "$LINENO" 5 ; } 3780else 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3782$as_echo "yes" >&6; } 3783fi 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3785$as_echo_n "checking for C compiler default output file name... " >&6; } 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3787$as_echo "$ac_file" >&6; } 3788ac_exeext=$ac_cv_exeext 3789 3790rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3791ac_clean_files=$ac_clean_files_save 3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3793$as_echo_n "checking for suffix of executables... " >&6; } 3794if { { ac_try="$ac_link" 3795case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798esac 3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3800$as_echo "$ac_try_echo"; } >&5 3801 (eval "$ac_link") 2>&5 3802 ac_status=$? 3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3804 test $ac_status = 0; }; then : 3805 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3806# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3807# work properly (i.e., refer to `conftest.exe'), while it won't with 3808# `rm'. 3809for ac_file in conftest.exe conftest conftest.*; do 3810 test -f "$ac_file" || continue 3811 case $ac_file in 3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3814 break;; 3815 * ) break;; 3816 esac 3817done 3818else 3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3821as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3822See \`config.log' for more details" "$LINENO" 5 ; } 3823fi 3824rm -f conftest conftest$ac_cv_exeext 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3826$as_echo "$ac_cv_exeext" >&6; } 3827 3828rm -f conftest.$ac_ext 3829EXEEXT=$ac_cv_exeext 3830ac_exeext=$EXEEXT 3831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3832/* end confdefs.h. */ 3833#include <stdio.h> 3834int 3835main () 3836{ 3837FILE *f = fopen ("conftest.out", "w"); 3838 return ferror (f) || fclose (f) != 0; 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844ac_clean_files="$ac_clean_files conftest.out" 3845# Check that the compiler produces executables we can run. If not, either 3846# the compiler is broken, or we cross compile. 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3848$as_echo_n "checking whether we are cross compiling... " >&6; } 3849if test "$cross_compiling" != yes; then 3850 { { ac_try="$ac_link" 3851case "(($ac_try" in 3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3853 *) ac_try_echo=$ac_try;; 3854esac 3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3856$as_echo "$ac_try_echo"; } >&5 3857 (eval "$ac_link") 2>&5 3858 ac_status=$? 3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3860 test $ac_status = 0; } 3861 if { ac_try='./conftest$ac_cv_exeext' 3862 { { case "(($ac_try" in 3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3864 *) ac_try_echo=$ac_try;; 3865esac 3866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3867$as_echo "$ac_try_echo"; } >&5 3868 (eval "$ac_try") 2>&5 3869 ac_status=$? 3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3871 test $ac_status = 0; }; }; then 3872 cross_compiling=no 3873 else 3874 if test "$cross_compiling" = maybe; then 3875 cross_compiling=yes 3876 else 3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3879as_fn_error $? "cannot run C compiled programs. 3880If you meant to cross compile, use \`--host'. 3881See \`config.log' for more details" "$LINENO" 5 ; } 3882 fi 3883 fi 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3886$as_echo "$cross_compiling" >&6; } 3887 3888rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3889ac_clean_files=$ac_clean_files_save 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3891$as_echo_n "checking for suffix of object files... " >&6; } 3892if test "${ac_cv_objext+set}" = set; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897 3898int 3899main () 3900{ 3901 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906rm -f conftest.o conftest.obj 3907if { { ac_try="$ac_compile" 3908case "(($ac_try" in 3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3910 *) ac_try_echo=$ac_try;; 3911esac 3912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3913$as_echo "$ac_try_echo"; } >&5 3914 (eval "$ac_compile") 2>&5 3915 ac_status=$? 3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3917 test $ac_status = 0; }; then : 3918 for ac_file in conftest.o conftest.obj conftest.*; do 3919 test -f "$ac_file" || continue; 3920 case $ac_file in 3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3923 break;; 3924 esac 3925done 3926else 3927 $as_echo "$as_me: failed program was:" >&5 3928sed 's/^/| /' conftest.$ac_ext >&5 3929 3930{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3932as_fn_error $? "cannot compute suffix of object files: cannot compile 3933See \`config.log' for more details" "$LINENO" 5 ; } 3934fi 3935rm -f conftest.$ac_cv_objext conftest.$ac_ext 3936fi 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3938$as_echo "$ac_cv_objext" >&6; } 3939OBJEXT=$ac_cv_objext 3940ac_objext=$OBJEXT 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3942$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3943if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3947/* end confdefs.h. */ 3948 3949int 3950main () 3951{ 3952#ifndef __GNUC__ 3953 choke me 3954#endif 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960if ac_fn_c_try_compile "$LINENO"; then : 3961 ac_compiler_gnu=yes 3962else 3963 ac_compiler_gnu=no 3964fi 3965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3966ac_cv_c_compiler_gnu=$ac_compiler_gnu 3967 3968fi 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3970$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3971if test $ac_compiler_gnu = yes; then 3972 GCC=yes 3973else 3974 GCC= 3975fi 3976ac_test_CFLAGS=${CFLAGS+set} 3977ac_save_CFLAGS=$CFLAGS 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3979$as_echo_n "checking whether $CC accepts -g... " >&6; } 3980if test "${ac_cv_prog_cc_g+set}" = set; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 ac_save_c_werror_flag=$ac_c_werror_flag 3984 ac_c_werror_flag=yes 3985 ac_cv_prog_cc_g=no 3986 CFLAGS="-g" 3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3988/* end confdefs.h. */ 3989 3990int 3991main () 3992{ 3993 3994 ; 3995 return 0; 3996} 3997_ACEOF 3998if ac_fn_c_try_compile "$LINENO"; then : 3999 ac_cv_prog_cc_g=yes 4000else 4001 CFLAGS="" 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004 4005int 4006main () 4007{ 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013if ac_fn_c_try_compile "$LINENO"; then : 4014 4015else 4016 ac_c_werror_flag=$ac_save_c_werror_flag 4017 CFLAGS="-g" 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020 4021int 4022main () 4023{ 4024 4025 ; 4026 return 0; 4027} 4028_ACEOF 4029if ac_fn_c_try_compile "$LINENO"; then : 4030 ac_cv_prog_cc_g=yes 4031fi 4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4035fi 4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4037 ac_c_werror_flag=$ac_save_c_werror_flag 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4040$as_echo "$ac_cv_prog_cc_g" >&6; } 4041if test "$ac_test_CFLAGS" = set; then 4042 CFLAGS=$ac_save_CFLAGS 4043elif test $ac_cv_prog_cc_g = yes; then 4044 if test "$GCC" = yes; then 4045 CFLAGS="-g -O2" 4046 else 4047 CFLAGS="-g" 4048 fi 4049else 4050 if test "$GCC" = yes; then 4051 CFLAGS="-O2" 4052 else 4053 CFLAGS= 4054 fi 4055fi 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4057$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4058if test "${ac_cv_prog_cc_c89+set}" = set; then : 4059 $as_echo_n "(cached) " >&6 4060else 4061 ac_cv_prog_cc_c89=no 4062ac_save_CC=$CC 4063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065#include <stdarg.h> 4066#include <stdio.h> 4067#include <sys/types.h> 4068#include <sys/stat.h> 4069/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4070struct buf { int x; }; 4071FILE * (*rcsopen) (struct buf *, struct stat *, int); 4072static char *e (p, i) 4073 char **p; 4074 int i; 4075{ 4076 return p[i]; 4077} 4078static char *f (char * (*g) (char **, int), char **p, ...) 4079{ 4080 char *s; 4081 va_list v; 4082 va_start (v,p); 4083 s = g (p, va_arg (v,int)); 4084 va_end (v); 4085 return s; 4086} 4087 4088/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4089 function prototypes and stuff, but not '\xHH' hex character constants. 4090 These don't provoke an error unfortunately, instead are silently treated 4091 as 'x'. The following induces an error, until -std is added to get 4092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4093 array size at least. It's necessary to write '\x00'==0 to get something 4094 that's true only with -std. */ 4095int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4096 4097/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4098 inside strings and character constants. */ 4099#define FOO(x) 'x' 4100int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4101 4102int test (int i, double x); 4103struct s1 {int (*f) (int a);}; 4104struct s2 {int (*f) (double a);}; 4105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4106int argc; 4107char **argv; 4108int 4109main () 4110{ 4111return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4112 ; 4113 return 0; 4114} 4115_ACEOF 4116for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4118do 4119 CC="$ac_save_CC $ac_arg" 4120 if ac_fn_c_try_compile "$LINENO"; then : 4121 ac_cv_prog_cc_c89=$ac_arg 4122fi 4123rm -f core conftest.err conftest.$ac_objext 4124 test "x$ac_cv_prog_cc_c89" != "xno" && break 4125done 4126rm -f conftest.$ac_ext 4127CC=$ac_save_CC 4128 4129fi 4130# AC_CACHE_VAL 4131case "x$ac_cv_prog_cc_c89" in 4132 x) 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4134$as_echo "none needed" >&6; } ;; 4135 xno) 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4137$as_echo "unsupported" >&6; } ;; 4138 *) 4139 CC="$CC $ac_cv_prog_cc_c89" 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4141$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4142esac 4143if test "x$ac_cv_prog_cc_c89" != xno; then : 4144 4145fi 4146 4147ac_ext=c 4148ac_cpp='$CPP $CPPFLAGS' 4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4151ac_compiler_gnu=$ac_cv_c_compiler_gnu 4152 4153depcc="$CC" am_compiler_list= 4154 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4156$as_echo_n "checking dependency style of $depcc... " >&6; } 4157if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4161 # We make a subdir and do the tests there. Otherwise we can end up 4162 # making bogus files that we don't know about and never remove. For 4163 # instance it was reported that on HP-UX the gcc test will end up 4164 # making a dummy file named `D' -- because `-MD' means `put the output 4165 # in D'. 4166 mkdir conftest.dir 4167 # Copy depcomp to subdir because otherwise we won't find it if we're 4168 # using a relative directory. 4169 cp "$am_depcomp" conftest.dir 4170 cd conftest.dir 4171 # We will build objects and dependencies in a subdirectory because 4172 # it helps to detect inapplicable dependency modes. For instance 4173 # both Tru64's cc and ICC support -MD to output dependencies as a 4174 # side effect of compilation, but ICC will put the dependencies in 4175 # the current directory while Tru64 will put them in the object 4176 # directory. 4177 mkdir sub 4178 4179 am_cv_CC_dependencies_compiler_type=none 4180 if test "$am_compiler_list" = ""; then 4181 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4182 fi 4183 am__universal=false 4184 case " $depcc " in #( 4185 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4186 esac 4187 4188 for depmode in $am_compiler_list; do 4189 # Setup a source with many dependencies, because some compilers 4190 # like to wrap large dependency lists on column 80 (with \), and 4191 # we should not choose a depcomp mode which is confused by this. 4192 # 4193 # We need to recreate these files for each test, as the compiler may 4194 # overwrite some of them when testing with obscure command lines. 4195 # This happens at least with the AIX C compiler. 4196 : > sub/conftest.c 4197 for i in 1 2 3 4 5 6; do 4198 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4199 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4200 # Solaris 8's {/usr,}/bin/sh. 4201 touch sub/conftst$i.h 4202 done 4203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4204 4205 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4206 # mode. It turns out that the SunPro C++ compiler does not properly 4207 # handle `-M -o', and we need to detect this. Also, some Intel 4208 # versions had trouble with output in subdirs 4209 am__obj=sub/conftest.${OBJEXT-o} 4210 am__minus_obj="-o $am__obj" 4211 case $depmode in 4212 gcc) 4213 # This depmode causes a compiler race in universal mode. 4214 test "$am__universal" = false || continue 4215 ;; 4216 nosideeffect) 4217 # after this tag, mechanisms are not by side-effect, so they'll 4218 # only be used when explicitly requested 4219 if test "x$enable_dependency_tracking" = xyes; then 4220 continue 4221 else 4222 break 4223 fi 4224 ;; 4225 msvisualcpp | msvcmsys) 4226 # This compiler won't grok `-c -o', but also, the minuso test has 4227 # not run yet. These depmodes are late enough in the game, and 4228 # so weak that their functioning should not be impacted. 4229 am__obj=conftest.${OBJEXT-o} 4230 am__minus_obj= 4231 ;; 4232 none) break ;; 4233 esac 4234 if depmode=$depmode \ 4235 source=sub/conftest.c object=$am__obj \ 4236 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4237 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4238 >/dev/null 2>conftest.err && 4239 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4240 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4241 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4242 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4243 # icc doesn't choke on unknown options, it will just issue warnings 4244 # or remarks (even with -Werror). So we grep stderr for any message 4245 # that says an option was ignored or not supported. 4246 # When given -MP, icc 7.0 and 7.1 complain thusly: 4247 # icc: Command line warning: ignoring option '-M'; no argument required 4248 # The diagnosis changed in icc 8.0: 4249 # icc: Command line remark: option '-MP' not supported 4250 if (grep 'ignoring option' conftest.err || 4251 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4252 am_cv_CC_dependencies_compiler_type=$depmode 4253 break 4254 fi 4255 fi 4256 done 4257 4258 cd .. 4259 rm -rf conftest.dir 4260else 4261 am_cv_CC_dependencies_compiler_type=none 4262fi 4263 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4266$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4267CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4268 4269 if 4270 test "x$enable_dependency_tracking" != xno \ 4271 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4272 am__fastdepCC_TRUE= 4273 am__fastdepCC_FALSE='#' 4274else 4275 am__fastdepCC_TRUE='#' 4276 am__fastdepCC_FALSE= 4277fi 4278 4279 4280 4281ac_ext=c 4282ac_cpp='$CPP $CPPFLAGS' 4283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4285ac_compiler_gnu=$ac_cv_c_compiler_gnu 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4287$as_echo_n "checking how to run the C preprocessor... " >&6; } 4288# On Suns, sometimes $CPP names a directory. 4289if test -n "$CPP" && test -d "$CPP"; then 4290 CPP= 4291fi 4292if test -z "$CPP"; then 4293 if test "${ac_cv_prog_CPP+set}" = set; then : 4294 $as_echo_n "(cached) " >&6 4295else 4296 # Double quotes because CPP needs to be expanded 4297 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4298 do 4299 ac_preproc_ok=false 4300for ac_c_preproc_warn_flag in '' yes 4301do 4302 # Use a header file that comes with gcc, so configuring glibc 4303 # with a fresh cross-compiler works. 4304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4305 # <limits.h> exists even on freestanding compilers. 4306 # On the NeXT, cc -E runs the code through the compiler's parser, 4307 # not just through cpp. "Syntax error" is here to catch this case. 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310#ifdef __STDC__ 4311# include <limits.h> 4312#else 4313# include <assert.h> 4314#endif 4315 Syntax error 4316_ACEOF 4317if ac_fn_c_try_cpp "$LINENO"; then : 4318 4319else 4320 # Broken: fails on valid input. 4321continue 4322fi 4323rm -f conftest.err conftest.i conftest.$ac_ext 4324 4325 # OK, works on sane cases. Now check whether nonexistent headers 4326 # can be detected and how. 4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328/* end confdefs.h. */ 4329#include <ac_nonexistent.h> 4330_ACEOF 4331if ac_fn_c_try_cpp "$LINENO"; then : 4332 # Broken: success on invalid input. 4333continue 4334else 4335 # Passes both tests. 4336ac_preproc_ok=: 4337break 4338fi 4339rm -f conftest.err conftest.i conftest.$ac_ext 4340 4341done 4342# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4343rm -f conftest.i conftest.err conftest.$ac_ext 4344if $ac_preproc_ok; then : 4345 break 4346fi 4347 4348 done 4349 ac_cv_prog_CPP=$CPP 4350 4351fi 4352 CPP=$ac_cv_prog_CPP 4353else 4354 ac_cv_prog_CPP=$CPP 4355fi 4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4357$as_echo "$CPP" >&6; } 4358ac_preproc_ok=false 4359for ac_c_preproc_warn_flag in '' yes 4360do 4361 # Use a header file that comes with gcc, so configuring glibc 4362 # with a fresh cross-compiler works. 4363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4364 # <limits.h> exists even on freestanding compilers. 4365 # On the NeXT, cc -E runs the code through the compiler's parser, 4366 # not just through cpp. "Syntax error" is here to catch this case. 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368/* end confdefs.h. */ 4369#ifdef __STDC__ 4370# include <limits.h> 4371#else 4372# include <assert.h> 4373#endif 4374 Syntax error 4375_ACEOF 4376if ac_fn_c_try_cpp "$LINENO"; then : 4377 4378else 4379 # Broken: fails on valid input. 4380continue 4381fi 4382rm -f conftest.err conftest.i conftest.$ac_ext 4383 4384 # OK, works on sane cases. Now check whether nonexistent headers 4385 # can be detected and how. 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388#include <ac_nonexistent.h> 4389_ACEOF 4390if ac_fn_c_try_cpp "$LINENO"; then : 4391 # Broken: success on invalid input. 4392continue 4393else 4394 # Passes both tests. 4395ac_preproc_ok=: 4396break 4397fi 4398rm -f conftest.err conftest.i conftest.$ac_ext 4399 4400done 4401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4402rm -f conftest.i conftest.err conftest.$ac_ext 4403if $ac_preproc_ok; then : 4404 4405else 4406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4408as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4409See \`config.log' for more details" "$LINENO" 5 ; } 4410fi 4411 4412ac_ext=c 4413ac_cpp='$CPP $CPPFLAGS' 4414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4416ac_compiler_gnu=$ac_cv_c_compiler_gnu 4417 4418 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4420$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4421if test "${ac_cv_path_GREP+set}" = set; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -z "$GREP"; then 4425 ac_path_GREP_found=false 4426 # Loop through the user's path and test for each of PROGNAME-LIST 4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_prog in grep ggrep; do 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4435 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4436# Check for GNU ac_path_GREP and select it if it is found. 4437 # Check for GNU $ac_path_GREP 4438case `"$ac_path_GREP" --version 2>&1` in 4439*GNU*) 4440 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4441*) 4442 ac_count=0 4443 $as_echo_n 0123456789 >"conftest.in" 4444 while : 4445 do 4446 cat "conftest.in" "conftest.in" >"conftest.tmp" 4447 mv "conftest.tmp" "conftest.in" 4448 cp "conftest.in" "conftest.nl" 4449 $as_echo 'GREP' >> "conftest.nl" 4450 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4452 as_fn_arith $ac_count + 1 && ac_count=$as_val 4453 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4454 # Best one so far, save it but keep looking for a better one 4455 ac_cv_path_GREP="$ac_path_GREP" 4456 ac_path_GREP_max=$ac_count 4457 fi 4458 # 10*(2^10) chars as input seems more than enough 4459 test $ac_count -gt 10 && break 4460 done 4461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4462esac 4463 4464 $ac_path_GREP_found && break 3 4465 done 4466 done 4467 done 4468IFS=$as_save_IFS 4469 if test -z "$ac_cv_path_GREP"; then 4470 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4471 fi 4472else 4473 ac_cv_path_GREP=$GREP 4474fi 4475 4476fi 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4478$as_echo "$ac_cv_path_GREP" >&6; } 4479 GREP="$ac_cv_path_GREP" 4480 4481 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4483$as_echo_n "checking for egrep... " >&6; } 4484if test "${ac_cv_path_EGREP+set}" = set; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4488 then ac_cv_path_EGREP="$GREP -E" 4489 else 4490 if test -z "$EGREP"; then 4491 ac_path_EGREP_found=false 4492 # Loop through the user's path and test for each of PROGNAME-LIST 4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4494for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4495do 4496 IFS=$as_save_IFS 4497 test -z "$as_dir" && as_dir=. 4498 for ac_prog in egrep; do 4499 for ac_exec_ext in '' $ac_executable_extensions; do 4500 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4501 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4502# Check for GNU ac_path_EGREP and select it if it is found. 4503 # Check for GNU $ac_path_EGREP 4504case `"$ac_path_EGREP" --version 2>&1` in 4505*GNU*) 4506 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4507*) 4508 ac_count=0 4509 $as_echo_n 0123456789 >"conftest.in" 4510 while : 4511 do 4512 cat "conftest.in" "conftest.in" >"conftest.tmp" 4513 mv "conftest.tmp" "conftest.in" 4514 cp "conftest.in" "conftest.nl" 4515 $as_echo 'EGREP' >> "conftest.nl" 4516 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4518 as_fn_arith $ac_count + 1 && ac_count=$as_val 4519 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4520 # Best one so far, save it but keep looking for a better one 4521 ac_cv_path_EGREP="$ac_path_EGREP" 4522 ac_path_EGREP_max=$ac_count 4523 fi 4524 # 10*(2^10) chars as input seems more than enough 4525 test $ac_count -gt 10 && break 4526 done 4527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4528esac 4529 4530 $ac_path_EGREP_found && break 3 4531 done 4532 done 4533 done 4534IFS=$as_save_IFS 4535 if test -z "$ac_cv_path_EGREP"; then 4536 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4537 fi 4538else 4539 ac_cv_path_EGREP=$EGREP 4540fi 4541 4542 fi 4543fi 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4545$as_echo "$ac_cv_path_EGREP" >&6; } 4546 EGREP="$ac_cv_path_EGREP" 4547 4548 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4550$as_echo_n "checking for ANSI C header files... " >&6; } 4551if test "${ac_cv_header_stdc+set}" = set; then : 4552 $as_echo_n "(cached) " >&6 4553else 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555/* end confdefs.h. */ 4556#include <stdlib.h> 4557#include <stdarg.h> 4558#include <string.h> 4559#include <float.h> 4560 4561int 4562main () 4563{ 4564 4565 ; 4566 return 0; 4567} 4568_ACEOF 4569if ac_fn_c_try_compile "$LINENO"; then : 4570 ac_cv_header_stdc=yes 4571else 4572 ac_cv_header_stdc=no 4573fi 4574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4575 4576if test $ac_cv_header_stdc = yes; then 4577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4579/* end confdefs.h. */ 4580#include <string.h> 4581 4582_ACEOF 4583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4584 $EGREP "memchr" >/dev/null 2>&1; then : 4585 4586else 4587 ac_cv_header_stdc=no 4588fi 4589rm -f conftest* 4590 4591fi 4592 4593if test $ac_cv_header_stdc = yes; then 4594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596/* end confdefs.h. */ 4597#include <stdlib.h> 4598 4599_ACEOF 4600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4601 $EGREP "free" >/dev/null 2>&1; then : 4602 4603else 4604 ac_cv_header_stdc=no 4605fi 4606rm -f conftest* 4607 4608fi 4609 4610if test $ac_cv_header_stdc = yes; then 4611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4612 if test "$cross_compiling" = yes; then : 4613 : 4614else 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617#include <ctype.h> 4618#include <stdlib.h> 4619#if ((' ' & 0x0FF) == 0x020) 4620# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4621# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4622#else 4623# define ISLOWER(c) \ 4624 (('a' <= (c) && (c) <= 'i') \ 4625 || ('j' <= (c) && (c) <= 'r') \ 4626 || ('s' <= (c) && (c) <= 'z')) 4627# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4628#endif 4629 4630#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4631int 4632main () 4633{ 4634 int i; 4635 for (i = 0; i < 256; i++) 4636 if (XOR (islower (i), ISLOWER (i)) 4637 || toupper (i) != TOUPPER (i)) 4638 return 2; 4639 return 0; 4640} 4641_ACEOF 4642if ac_fn_c_try_run "$LINENO"; then : 4643 4644else 4645 ac_cv_header_stdc=no 4646fi 4647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4648 conftest.$ac_objext conftest.beam conftest.$ac_ext 4649fi 4650 4651fi 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4654$as_echo "$ac_cv_header_stdc" >&6; } 4655if test $ac_cv_header_stdc = yes; then 4656 4657$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4658 4659fi 4660 4661# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4662for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4663 inttypes.h stdint.h unistd.h 4664do : 4665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4666ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4667" 4668if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4669 cat >>confdefs.h <<_ACEOF 4670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4671_ACEOF 4672 4673fi 4674 4675done 4676 4677 4678 4679 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4680if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4681 MINIX=yes 4682else 4683 MINIX= 4684fi 4685 4686 4687 if test "$MINIX" = yes; then 4688 4689$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4690 4691 4692$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4693 4694 4695$as_echo "#define _MINIX 1" >>confdefs.h 4696 4697 fi 4698 4699 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4701$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4702if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4703 $as_echo_n "(cached) " >&6 4704else 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706/* end confdefs.h. */ 4707 4708# define __EXTENSIONS__ 1 4709 $ac_includes_default 4710int 4711main () 4712{ 4713 4714 ; 4715 return 0; 4716} 4717_ACEOF 4718if ac_fn_c_try_compile "$LINENO"; then : 4719 ac_cv_safe_to_define___extensions__=yes 4720else 4721 ac_cv_safe_to_define___extensions__=no 4722fi 4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4724fi 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4726$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4727 test $ac_cv_safe_to_define___extensions__ = yes && 4728 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4729 4730 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4731 4732 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4733 4734 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4735 4736 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4737 4738 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4740$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4741if test "${ac_cv_prog_cc_c99+set}" = set; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 ac_cv_prog_cc_c99=no 4745ac_save_CC=$CC 4746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748#include <stdarg.h> 4749#include <stdbool.h> 4750#include <stdlib.h> 4751#include <wchar.h> 4752#include <stdio.h> 4753 4754// Check varargs macros. These examples are taken from C99 6.10.3.5. 4755#define debug(...) fprintf (stderr, __VA_ARGS__) 4756#define showlist(...) puts (#__VA_ARGS__) 4757#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4758static void 4759test_varargs_macros (void) 4760{ 4761 int x = 1234; 4762 int y = 5678; 4763 debug ("Flag"); 4764 debug ("X = %d\n", x); 4765 showlist (The first, second, and third items.); 4766 report (x>y, "x is %d but y is %d", x, y); 4767} 4768 4769// Check long long types. 4770#define BIG64 18446744073709551615ull 4771#define BIG32 4294967295ul 4772#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4773#if !BIG_OK 4774 your preprocessor is broken; 4775#endif 4776#if BIG_OK 4777#else 4778 your preprocessor is broken; 4779#endif 4780static long long int bignum = -9223372036854775807LL; 4781static unsigned long long int ubignum = BIG64; 4782 4783struct incomplete_array 4784{ 4785 int datasize; 4786 double data[]; 4787}; 4788 4789struct named_init { 4790 int number; 4791 const wchar_t *name; 4792 double average; 4793}; 4794 4795typedef const char *ccp; 4796 4797static inline int 4798test_restrict (ccp restrict text) 4799{ 4800 // See if C++-style comments work. 4801 // Iterate through items via the restricted pointer. 4802 // Also check for declarations in for loops. 4803 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4804 continue; 4805 return 0; 4806} 4807 4808// Check varargs and va_copy. 4809static void 4810test_varargs (const char *format, ...) 4811{ 4812 va_list args; 4813 va_start (args, format); 4814 va_list args_copy; 4815 va_copy (args_copy, args); 4816 4817 const char *str; 4818 int number; 4819 float fnumber; 4820 4821 while (*format) 4822 { 4823 switch (*format++) 4824 { 4825 case 's': // string 4826 str = va_arg (args_copy, const char *); 4827 break; 4828 case 'd': // int 4829 number = va_arg (args_copy, int); 4830 break; 4831 case 'f': // float 4832 fnumber = va_arg (args_copy, double); 4833 break; 4834 default: 4835 break; 4836 } 4837 } 4838 va_end (args_copy); 4839 va_end (args); 4840} 4841 4842int 4843main () 4844{ 4845 4846 // Check bool. 4847 _Bool success = false; 4848 4849 // Check restrict. 4850 if (test_restrict ("String literal") == 0) 4851 success = true; 4852 char *restrict newvar = "Another string"; 4853 4854 // Check varargs. 4855 test_varargs ("s, d' f .", "string", 65, 34.234); 4856 test_varargs_macros (); 4857 4858 // Check flexible array members. 4859 struct incomplete_array *ia = 4860 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4861 ia->datasize = 10; 4862 for (int i = 0; i < ia->datasize; ++i) 4863 ia->data[i] = i * 1.234; 4864 4865 // Check named initializers. 4866 struct named_init ni = { 4867 .number = 34, 4868 .name = L"Test wide string", 4869 .average = 543.34343, 4870 }; 4871 4872 ni.number = 58; 4873 4874 int dynamic_array[ni.number]; 4875 dynamic_array[ni.number - 1] = 543; 4876 4877 // work around unused variable warnings 4878 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4879 || dynamic_array[ni.number - 1] != 543); 4880 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4886do 4887 CC="$ac_save_CC $ac_arg" 4888 if ac_fn_c_try_compile "$LINENO"; then : 4889 ac_cv_prog_cc_c99=$ac_arg 4890fi 4891rm -f core conftest.err conftest.$ac_objext 4892 test "x$ac_cv_prog_cc_c99" != "xno" && break 4893done 4894rm -f conftest.$ac_ext 4895CC=$ac_save_CC 4896 4897fi 4898# AC_CACHE_VAL 4899case "x$ac_cv_prog_cc_c99" in 4900 x) 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4902$as_echo "none needed" >&6; } ;; 4903 xno) 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4905$as_echo "unsupported" >&6; } ;; 4906 *) 4907 CC="$CC $ac_cv_prog_cc_c99" 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4909$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4910esac 4911if test "x$ac_cv_prog_cc_c99" != xno; then : 4912 4913fi 4914 4915 4916 4917 4918 4919 4920 4921 4922if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4923 if test -n "$ac_tool_prefix"; then 4924 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4925set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4927$as_echo_n "checking for $ac_word... " >&6; } 4928if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 case $PKG_CONFIG in 4932 [\\/]* | ?:[\\/]*) 4933 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4934 ;; 4935 *) 4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4937for as_dir in $PATH 4938do 4939 IFS=$as_save_IFS 4940 test -z "$as_dir" && as_dir=. 4941 for ac_exec_ext in '' $ac_executable_extensions; do 4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4943 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4945 break 2 4946 fi 4947done 4948 done 4949IFS=$as_save_IFS 4950 4951 ;; 4952esac 4953fi 4954PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4955if test -n "$PKG_CONFIG"; then 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4957$as_echo "$PKG_CONFIG" >&6; } 4958else 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4960$as_echo "no" >&6; } 4961fi 4962 4963 4964fi 4965if test -z "$ac_cv_path_PKG_CONFIG"; then 4966 ac_pt_PKG_CONFIG=$PKG_CONFIG 4967 # Extract the first word of "pkg-config", so it can be a program name with args. 4968set dummy pkg-config; ac_word=$2 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4970$as_echo_n "checking for $ac_word... " >&6; } 4971if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 case $ac_pt_PKG_CONFIG in 4975 [\\/]* | ?:[\\/]*) 4976 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4977 ;; 4978 *) 4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4980for as_dir in $PATH 4981do 4982 IFS=$as_save_IFS 4983 test -z "$as_dir" && as_dir=. 4984 for ac_exec_ext in '' $ac_executable_extensions; do 4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4986 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4988 break 2 4989 fi 4990done 4991 done 4992IFS=$as_save_IFS 4993 4994 ;; 4995esac 4996fi 4997ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4998if test -n "$ac_pt_PKG_CONFIG"; then 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5000$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5001else 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003$as_echo "no" >&6; } 5004fi 5005 5006 if test "x$ac_pt_PKG_CONFIG" = x; then 5007 PKG_CONFIG="" 5008 else 5009 case $cross_compiling:$ac_tool_warned in 5010yes:) 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5013ac_tool_warned=yes ;; 5014esac 5015 PKG_CONFIG=$ac_pt_PKG_CONFIG 5016 fi 5017else 5018 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5019fi 5020 5021fi 5022if test -n "$PKG_CONFIG"; then 5023 _pkg_min_version=0.9.0 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5025$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5026 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5028$as_echo "yes" >&6; } 5029 else 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5031$as_echo "no" >&6; } 5032 PKG_CONFIG="" 5033 fi 5034fi 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5036$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5037if test "${ac_cv_path_SED+set}" = set; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5041 for ac_i in 1 2 3 4 5 6 7; do 5042 ac_script="$ac_script$as_nl$ac_script" 5043 done 5044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5045 { ac_script=; unset ac_script;} 5046 if test -z "$SED"; then 5047 ac_path_SED_found=false 5048 # Loop through the user's path and test for each of PROGNAME-LIST 5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5050for as_dir in $PATH 5051do 5052 IFS=$as_save_IFS 5053 test -z "$as_dir" && as_dir=. 5054 for ac_prog in sed gsed; do 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5057 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5058# Check for GNU ac_path_SED and select it if it is found. 5059 # Check for GNU $ac_path_SED 5060case `"$ac_path_SED" --version 2>&1` in 5061*GNU*) 5062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5063*) 5064 ac_count=0 5065 $as_echo_n 0123456789 >"conftest.in" 5066 while : 5067 do 5068 cat "conftest.in" "conftest.in" >"conftest.tmp" 5069 mv "conftest.tmp" "conftest.in" 5070 cp "conftest.in" "conftest.nl" 5071 $as_echo '' >> "conftest.nl" 5072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5074 as_fn_arith $ac_count + 1 && ac_count=$as_val 5075 if test $ac_count -gt ${ac_path_SED_max-0}; then 5076 # Best one so far, save it but keep looking for a better one 5077 ac_cv_path_SED="$ac_path_SED" 5078 ac_path_SED_max=$ac_count 5079 fi 5080 # 10*(2^10) chars as input seems more than enough 5081 test $ac_count -gt 10 && break 5082 done 5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5084esac 5085 5086 $ac_path_SED_found && break 3 5087 done 5088 done 5089 done 5090IFS=$as_save_IFS 5091 if test -z "$ac_cv_path_SED"; then 5092 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5093 fi 5094else 5095 ac_cv_path_SED=$SED 5096fi 5097 5098fi 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5100$as_echo "$ac_cv_path_SED" >&6; } 5101 SED="$ac_cv_path_SED" 5102 rm -f conftest.sed 5103 5104 5105 5106 5107 5108if test "x$GCC" = xyes ; then 5109 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 5110-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 5111-Wbad-function-cast -Wformat=2" 5112 case `$CC -dumpversion` in 5113 3.4.* | 4.*) 5114 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 5115 ;; 5116 esac 5117else 5118 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5119if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5120 SUNCC="yes" 5121else 5122 SUNCC="no" 5123fi 5124 5125 if test "x$SUNCC" = "xyes"; then 5126 CWARNFLAGS="-v" 5127 fi 5128fi 5129 5130 5131 5132# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 5133 5134 5135 5136# Check whether --enable-strict-compilation was given. 5137if test "${enable_strict_compilation+set}" = set; then : 5138 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 5139else 5140 STRICT_COMPILE=no 5141fi 5142 5143if test "x$STRICT_COMPILE" = "xyes"; then 5144 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5145if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5146 SUNCC="yes" 5147else 5148 SUNCC="no" 5149fi 5150 5151 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5152if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 5153 INTELCC="yes" 5154else 5155 INTELCC="no" 5156fi 5157 5158 if test "x$GCC" = xyes ; then 5159 STRICT_CFLAGS="-pedantic -Werror" 5160 elif test "x$SUNCC" = "xyes"; then 5161 STRICT_CFLAGS="-errwarn" 5162 elif test "x$INTELCC" = "xyes"; then 5163 STRICT_CFLAGS="-Werror" 5164 fi 5165fi 5166CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5167 5168 5169 5170 5171cat >>confdefs.h <<_ACEOF 5172#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5173_ACEOF 5174 5175 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5176 if test "x$PVM" = "x"; then 5177 PVM="0" 5178 fi 5179 5180cat >>confdefs.h <<_ACEOF 5181#define PACKAGE_VERSION_MINOR $PVM 5182_ACEOF 5183 5184 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5185 if test "x$PVP" = "x"; then 5186 PVP="0" 5187 fi 5188 5189cat >>confdefs.h <<_ACEOF 5190#define PACKAGE_VERSION_PATCHLEVEL $PVP 5191_ACEOF 5192 5193 5194 5195CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5196mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5197|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5198echo 'git directory not found: installing possibly empty changelog.' >&2)" 5199 5200 5201 5202 5203macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5204INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5205mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5206|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5207echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5208 5209 5210 5211 5212 5213 5214if test x$APP_MAN_SUFFIX = x ; then 5215 APP_MAN_SUFFIX=1 5216fi 5217if test x$APP_MAN_DIR = x ; then 5218 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5219fi 5220 5221if test x$LIB_MAN_SUFFIX = x ; then 5222 LIB_MAN_SUFFIX=3 5223fi 5224if test x$LIB_MAN_DIR = x ; then 5225 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5226fi 5227 5228if test x$FILE_MAN_SUFFIX = x ; then 5229 case $host_os in 5230 solaris*) FILE_MAN_SUFFIX=4 ;; 5231 *) FILE_MAN_SUFFIX=5 ;; 5232 esac 5233fi 5234if test x$FILE_MAN_DIR = x ; then 5235 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5236fi 5237 5238if test x$MISC_MAN_SUFFIX = x ; then 5239 case $host_os in 5240 solaris*) MISC_MAN_SUFFIX=5 ;; 5241 *) MISC_MAN_SUFFIX=7 ;; 5242 esac 5243fi 5244if test x$MISC_MAN_DIR = x ; then 5245 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5246fi 5247 5248if test x$DRIVER_MAN_SUFFIX = x ; then 5249 case $host_os in 5250 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5251 *) DRIVER_MAN_SUFFIX=4 ;; 5252 esac 5253fi 5254if test x$DRIVER_MAN_DIR = x ; then 5255 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5256fi 5257 5258if test x$ADMIN_MAN_SUFFIX = x ; then 5259 case $host_os in 5260 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5261 *) ADMIN_MAN_SUFFIX=8 ;; 5262 esac 5263fi 5264if test x$ADMIN_MAN_DIR = x ; then 5265 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5266fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282XORG_MAN_PAGE="X Version 11" 5283 5284MAN_SUBSTS="\ 5285 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5286 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 5287 -e 's|__xservername__|Xorg|g' \ 5288 -e 's|__xconfigfile__|xorg.conf|g' \ 5289 -e 's|__projectroot__|\$(prefix)|g' \ 5290 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 5291 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 5292 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 5293 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 5294 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 5295 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 5296 5297 5298 5299# Check whether --enable-silent-rules was given. 5300if test "${enable_silent_rules+set}" = set; then : 5301 enableval=$enable_silent_rules; 5302fi 5303 5304case $enable_silent_rules in 5305yes) AM_DEFAULT_VERBOSITY=0;; 5306no) AM_DEFAULT_VERBOSITY=1;; 5307*) AM_DEFAULT_VERBOSITY=0;; 5308esac 5309AM_BACKSLASH='\' 5310 5311 5312 5313spec_default= 5314if test "x$spec_default" = x ; then 5315 spec_default="yes" 5316fi 5317# Check whether --enable-specs was given. 5318if test "${enable_specs+set}" = set; then : 5319 enableval=$enable_specs; build_specs=$enableval 5320else 5321 build_specs=$spec_default 5322fi 5323 5324 if test x$build_specs = xyes; then 5325 ENABLE_SPECS_TRUE= 5326 ENABLE_SPECS_FALSE='#' 5327else 5328 ENABLE_SPECS_TRUE='#' 5329 ENABLE_SPECS_FALSE= 5330fi 5331 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 5333$as_echo_n "checking whether to build functional specifications... " >&6; } 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 5335$as_echo "$build_specs" >&6; } 5336 5337 5338 5339 5340# Check whether --with-groff was given. 5341if test "${with_groff+set}" = set; then : 5342 withval=$with_groff; use_groff=$withval 5343else 5344 use_groff=auto 5345fi 5346 5347 5348if test "x$use_groff" = x"auto"; then 5349 # Extract the first word of "groff", so it can be a program name with args. 5350set dummy groff; ac_word=$2 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352$as_echo_n "checking for $ac_word... " >&6; } 5353if test "${ac_cv_path_GROFF+set}" = set; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 case $GROFF in 5357 [\\/]* | ?:[\\/]*) 5358 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 5359 ;; 5360 *) 5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5362for as_dir in $PATH 5363do 5364 IFS=$as_save_IFS 5365 test -z "$as_dir" && as_dir=. 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5368 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5370 break 2 5371 fi 5372done 5373 done 5374IFS=$as_save_IFS 5375 5376 ;; 5377esac 5378fi 5379GROFF=$ac_cv_path_GROFF 5380if test -n "$GROFF"; then 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 5382$as_echo "$GROFF" >&6; } 5383else 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5385$as_echo "no" >&6; } 5386fi 5387 5388 5389 if test "x$GROFF" = "x"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: groff not found - documentation targets will be skipped" >&5 5391$as_echo "$as_me: WARNING: groff not found - documentation targets will be skipped" >&2;} 5392 have_groff=no 5393 else 5394 have_groff=yes 5395 fi 5396elif test "x$use_groff" = x"yes" ; then 5397 # Extract the first word of "groff", so it can be a program name with args. 5398set dummy groff; ac_word=$2 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5400$as_echo_n "checking for $ac_word... " >&6; } 5401if test "${ac_cv_path_GROFF+set}" = set; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 case $GROFF in 5405 [\\/]* | ?:[\\/]*) 5406 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 5407 ;; 5408 *) 5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5410for as_dir in $PATH 5411do 5412 IFS=$as_save_IFS 5413 test -z "$as_dir" && as_dir=. 5414 for ac_exec_ext in '' $ac_executable_extensions; do 5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5416 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5418 break 2 5419 fi 5420done 5421 done 5422IFS=$as_save_IFS 5423 5424 ;; 5425esac 5426fi 5427GROFF=$ac_cv_path_GROFF 5428if test -n "$GROFF"; then 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 5430$as_echo "$GROFF" >&6; } 5431else 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433$as_echo "no" >&6; } 5434fi 5435 5436 5437 if test "x$GROFF" = "x"; then 5438 as_fn_error $? "--with-groff=yes specified but groff not found in PATH" "$LINENO" 5 5439 fi 5440 have_groff=yes 5441elif test "x$use_groff" = x"no" ; then 5442 if test "x$GROFF" != "x"; then 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring GROFF environment variable since --with-groff=no was specified" >&5 5444$as_echo "$as_me: WARNING: ignoring GROFF environment variable since --with-groff=no was specified" >&2;} 5445 fi 5446 have_groff=no 5447else 5448 as_fn_error $? "--with-groff expects 'yes' or 'no'" "$LINENO" 5 5449fi 5450 5451# We have groff, test for the presence of the macro packages 5452if test "x$have_groff" = x"yes"; then 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GROFF} -ms macros" >&5 5454$as_echo_n "checking for ${GROFF} -ms macros... " >&6; } 5455 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 5456 groff_ms_works=yes 5457 else 5458 groff_ms_works=no 5459 fi 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_ms_works" >&5 5461$as_echo "$groff_ms_works" >&6; } 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GROFF} -mm macros" >&5 5463$as_echo_n "checking for ${GROFF} -mm macros... " >&6; } 5464 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 5465 groff_mm_works=yes 5466 else 5467 groff_mm_works=no 5468 fi 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_mm_works" >&5 5470$as_echo "$groff_mm_works" >&6; } 5471fi 5472 5473# We have groff, test for HTML dependencies, one command per package 5474if test "x$have_groff" = x"yes"; then 5475 for ac_prog in gs gswin32c 5476do 5477 # Extract the first word of "$ac_prog", so it can be a program name with args. 5478set dummy $ac_prog; ac_word=$2 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480$as_echo_n "checking for $ac_word... " >&6; } 5481if test "${ac_cv_path_GS_PATH+set}" = set; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 case $GS_PATH in 5485 [\\/]* | ?:[\\/]*) 5486 ac_cv_path_GS_PATH="$GS_PATH" # Let the user override the test with a path. 5487 ;; 5488 *) 5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490for as_dir in $PATH 5491do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5496 ac_cv_path_GS_PATH="$as_dir/$ac_word$ac_exec_ext" 5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5498 break 2 5499 fi 5500done 5501 done 5502IFS=$as_save_IFS 5503 5504 ;; 5505esac 5506fi 5507GS_PATH=$ac_cv_path_GS_PATH 5508if test -n "$GS_PATH"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_PATH" >&5 5510$as_echo "$GS_PATH" >&6; } 5511else 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513$as_echo "no" >&6; } 5514fi 5515 5516 5517 test -n "$GS_PATH" && break 5518done 5519 5520 # Extract the first word of "pnmtopng", so it can be a program name with args. 5521set dummy pnmtopng; ac_word=$2 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5523$as_echo_n "checking for $ac_word... " >&6; } 5524if test "${ac_cv_path_PNMTOPNG_PATH+set}" = set; then : 5525 $as_echo_n "(cached) " >&6 5526else 5527 case $PNMTOPNG_PATH in 5528 [\\/]* | ?:[\\/]*) 5529 ac_cv_path_PNMTOPNG_PATH="$PNMTOPNG_PATH" # Let the user override the test with a path. 5530 ;; 5531 *) 5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5533for as_dir in $PATH 5534do 5535 IFS=$as_save_IFS 5536 test -z "$as_dir" && as_dir=. 5537 for ac_exec_ext in '' $ac_executable_extensions; do 5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5539 ac_cv_path_PNMTOPNG_PATH="$as_dir/$ac_word$ac_exec_ext" 5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5541 break 2 5542 fi 5543done 5544 done 5545IFS=$as_save_IFS 5546 5547 ;; 5548esac 5549fi 5550PNMTOPNG_PATH=$ac_cv_path_PNMTOPNG_PATH 5551if test -n "$PNMTOPNG_PATH"; then 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNMTOPNG_PATH" >&5 5553$as_echo "$PNMTOPNG_PATH" >&6; } 5554else 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5556$as_echo "no" >&6; } 5557fi 5558 5559 5560 # Extract the first word of "psselect", so it can be a program name with args. 5561set dummy psselect; ac_word=$2 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5563$as_echo_n "checking for $ac_word... " >&6; } 5564if test "${ac_cv_path_PSSELECT_PATH+set}" = set; then : 5565 $as_echo_n "(cached) " >&6 5566else 5567 case $PSSELECT_PATH in 5568 [\\/]* | ?:[\\/]*) 5569 ac_cv_path_PSSELECT_PATH="$PSSELECT_PATH" # Let the user override the test with a path. 5570 ;; 5571 *) 5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5573for as_dir in $PATH 5574do 5575 IFS=$as_save_IFS 5576 test -z "$as_dir" && as_dir=. 5577 for ac_exec_ext in '' $ac_executable_extensions; do 5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5579 ac_cv_path_PSSELECT_PATH="$as_dir/$ac_word$ac_exec_ext" 5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5581 break 2 5582 fi 5583done 5584 done 5585IFS=$as_save_IFS 5586 5587 ;; 5588esac 5589fi 5590PSSELECT_PATH=$ac_cv_path_PSSELECT_PATH 5591if test -n "$PSSELECT_PATH"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSSELECT_PATH" >&5 5593$as_echo "$PSSELECT_PATH" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5596$as_echo "no" >&6; } 5597fi 5598 5599 5600 if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 5601 have_groff_html=yes 5602 else 5603 have_groff_html=no 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages" >&5 5605$as_echo "$as_me: WARNING: grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages" >&2;} 5606 fi 5607fi 5608 5609# Set Automake conditionals for Makefiles 5610 if test "$have_groff" = yes; then 5611 HAVE_GROFF_TRUE= 5612 HAVE_GROFF_FALSE='#' 5613else 5614 HAVE_GROFF_TRUE='#' 5615 HAVE_GROFF_FALSE= 5616fi 5617 5618 if test "$groff_ms_works" = yes; then 5619 HAVE_GROFF_MS_TRUE= 5620 HAVE_GROFF_MS_FALSE='#' 5621else 5622 HAVE_GROFF_MS_TRUE='#' 5623 HAVE_GROFF_MS_FALSE= 5624fi 5625 5626 if test "$groff_mm_works" = yes; then 5627 HAVE_GROFF_MM_TRUE= 5628 HAVE_GROFF_MM_FALSE='#' 5629else 5630 HAVE_GROFF_MM_TRUE='#' 5631 HAVE_GROFF_MM_FALSE= 5632fi 5633 5634 if test "$have_groff_html" = yes; then 5635 HAVE_GROFF_HTML_TRUE= 5636 HAVE_GROFF_HTML_FALSE='#' 5637else 5638 HAVE_GROFF_HTML_TRUE='#' 5639 HAVE_GROFF_HTML_FALSE= 5640fi 5641 5642 5643 5644 5645 5646# Check whether --with-ps2pdf was given. 5647if test "${with_ps2pdf+set}" = set; then : 5648 withval=$with_ps2pdf; use_ps2pdf=$withval 5649else 5650 use_ps2pdf=auto 5651fi 5652 5653 5654if test "x$use_ps2pdf" = x"auto"; then 5655 # Extract the first word of "ps2pdf", so it can be a program name with args. 5656set dummy ps2pdf; ac_word=$2 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5658$as_echo_n "checking for $ac_word... " >&6; } 5659if test "${ac_cv_path_PS2PDF+set}" = set; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 case $PS2PDF in 5663 [\\/]* | ?:[\\/]*) 5664 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 5665 ;; 5666 *) 5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5668for as_dir in $PATH 5669do 5670 IFS=$as_save_IFS 5671 test -z "$as_dir" && as_dir=. 5672 for ac_exec_ext in '' $ac_executable_extensions; do 5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5674 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5676 break 2 5677 fi 5678done 5679 done 5680IFS=$as_save_IFS 5681 5682 ;; 5683esac 5684fi 5685PS2PDF=$ac_cv_path_PS2PDF 5686if test -n "$PS2PDF"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 5688$as_echo "$PS2PDF" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 5695 if test "x$PS2PDF" = "x"; then 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ps2pdf not found - documentation targets will be skipped" >&5 5697$as_echo "$as_me: WARNING: ps2pdf not found - documentation targets will be skipped" >&2;} 5698 have_ps2pdf=no 5699 else 5700 have_ps2pdf=yes 5701 fi 5702elif test "x$use_ps2pdf" = x"yes" ; then 5703 # Extract the first word of "ps2pdf", so it can be a program name with args. 5704set dummy ps2pdf; ac_word=$2 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5706$as_echo_n "checking for $ac_word... " >&6; } 5707if test "${ac_cv_path_PS2PDF+set}" = set; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 case $PS2PDF in 5711 [\\/]* | ?:[\\/]*) 5712 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 5713 ;; 5714 *) 5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716for as_dir in $PATH 5717do 5718 IFS=$as_save_IFS 5719 test -z "$as_dir" && as_dir=. 5720 for ac_exec_ext in '' $ac_executable_extensions; do 5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5722 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5724 break 2 5725 fi 5726done 5727 done 5728IFS=$as_save_IFS 5729 5730 ;; 5731esac 5732fi 5733PS2PDF=$ac_cv_path_PS2PDF 5734if test -n "$PS2PDF"; then 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 5736$as_echo "$PS2PDF" >&6; } 5737else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5739$as_echo "no" >&6; } 5740fi 5741 5742 5743 if test "x$PS2PDF" = "x"; then 5744 as_fn_error $? "--with-ps2pdf=yes specified but ps2pdf not found in PATH" "$LINENO" 5 5745 fi 5746 have_ps2pdf=yes 5747elif test "x$use_ps2pdf" = x"no" ; then 5748 if test "x$PS2PDF" != "x"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PS2PDF environment variable since --with-ps2pdf=no was specified" >&5 5750$as_echo "$as_me: WARNING: ignoring PS2PDF environment variable since --with-ps2pdf=no was specified" >&2;} 5751 fi 5752 have_ps2pdf=no 5753else 5754 as_fn_error $? "--with-ps2pdf expects 'yes' or 'no'" "$LINENO" 5 5755fi 5756 if test "$have_ps2pdf" = yes; then 5757 HAVE_PS2PDF_TRUE= 5758 HAVE_PS2PDF_FALSE='#' 5759else 5760 HAVE_PS2PDF_TRUE='#' 5761 HAVE_PS2PDF_FALSE= 5762fi 5763 5764 5765 5766# Checks for programs. 5767case `pwd` in 5768 *\ * | *\ *) 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5770$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5771esac 5772 5773 5774 5775macro_version='2.2.6b' 5776macro_revision='1.3017' 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790ltmain="$ac_aux_dir/ltmain.sh" 5791 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5793$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5794if test "${ac_cv_path_SED+set}" = set; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5798 for ac_i in 1 2 3 4 5 6 7; do 5799 ac_script="$ac_script$as_nl$ac_script" 5800 done 5801 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5802 { ac_script=; unset ac_script;} 5803 if test -z "$SED"; then 5804 ac_path_SED_found=false 5805 # Loop through the user's path and test for each of PROGNAME-LIST 5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5807for as_dir in $PATH 5808do 5809 IFS=$as_save_IFS 5810 test -z "$as_dir" && as_dir=. 5811 for ac_prog in sed gsed; do 5812 for ac_exec_ext in '' $ac_executable_extensions; do 5813 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5814 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5815# Check for GNU ac_path_SED and select it if it is found. 5816 # Check for GNU $ac_path_SED 5817case `"$ac_path_SED" --version 2>&1` in 5818*GNU*) 5819 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5820*) 5821 ac_count=0 5822 $as_echo_n 0123456789 >"conftest.in" 5823 while : 5824 do 5825 cat "conftest.in" "conftest.in" >"conftest.tmp" 5826 mv "conftest.tmp" "conftest.in" 5827 cp "conftest.in" "conftest.nl" 5828 $as_echo '' >> "conftest.nl" 5829 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5831 as_fn_arith $ac_count + 1 && ac_count=$as_val 5832 if test $ac_count -gt ${ac_path_SED_max-0}; then 5833 # Best one so far, save it but keep looking for a better one 5834 ac_cv_path_SED="$ac_path_SED" 5835 ac_path_SED_max=$ac_count 5836 fi 5837 # 10*(2^10) chars as input seems more than enough 5838 test $ac_count -gt 10 && break 5839 done 5840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5841esac 5842 5843 $ac_path_SED_found && break 3 5844 done 5845 done 5846 done 5847IFS=$as_save_IFS 5848 if test -z "$ac_cv_path_SED"; then 5849 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5850 fi 5851else 5852 ac_cv_path_SED=$SED 5853fi 5854 5855fi 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5857$as_echo "$ac_cv_path_SED" >&6; } 5858 SED="$ac_cv_path_SED" 5859 rm -f conftest.sed 5860 5861test -z "$SED" && SED=sed 5862Xsed="$SED -e 1s/^X//" 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5875$as_echo_n "checking for fgrep... " >&6; } 5876if test "${ac_cv_path_FGREP+set}" = set; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5880 then ac_cv_path_FGREP="$GREP -F" 5881 else 5882 if test -z "$FGREP"; then 5883 ac_path_FGREP_found=false 5884 # Loop through the user's path and test for each of PROGNAME-LIST 5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5887do 5888 IFS=$as_save_IFS 5889 test -z "$as_dir" && as_dir=. 5890 for ac_prog in fgrep; do 5891 for ac_exec_ext in '' $ac_executable_extensions; do 5892 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5893 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5894# Check for GNU ac_path_FGREP and select it if it is found. 5895 # Check for GNU $ac_path_FGREP 5896case `"$ac_path_FGREP" --version 2>&1` in 5897*GNU*) 5898 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5899*) 5900 ac_count=0 5901 $as_echo_n 0123456789 >"conftest.in" 5902 while : 5903 do 5904 cat "conftest.in" "conftest.in" >"conftest.tmp" 5905 mv "conftest.tmp" "conftest.in" 5906 cp "conftest.in" "conftest.nl" 5907 $as_echo 'FGREP' >> "conftest.nl" 5908 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5910 as_fn_arith $ac_count + 1 && ac_count=$as_val 5911 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5912 # Best one so far, save it but keep looking for a better one 5913 ac_cv_path_FGREP="$ac_path_FGREP" 5914 ac_path_FGREP_max=$ac_count 5915 fi 5916 # 10*(2^10) chars as input seems more than enough 5917 test $ac_count -gt 10 && break 5918 done 5919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5920esac 5921 5922 $ac_path_FGREP_found && break 3 5923 done 5924 done 5925 done 5926IFS=$as_save_IFS 5927 if test -z "$ac_cv_path_FGREP"; then 5928 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5929 fi 5930else 5931 ac_cv_path_FGREP=$FGREP 5932fi 5933 5934 fi 5935fi 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5937$as_echo "$ac_cv_path_FGREP" >&6; } 5938 FGREP="$ac_cv_path_FGREP" 5939 5940 5941test -z "$GREP" && GREP=grep 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961# Check whether --with-gnu-ld was given. 5962if test "${with_gnu_ld+set}" = set; then : 5963 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5964else 5965 with_gnu_ld=no 5966fi 5967 5968ac_prog=ld 5969if test "$GCC" = yes; then 5970 # Check if gcc -print-prog-name=ld gives a path. 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5972$as_echo_n "checking for ld used by $CC... " >&6; } 5973 case $host in 5974 *-*-mingw*) 5975 # gcc leaves a trailing carriage return which upsets mingw 5976 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5977 *) 5978 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5979 esac 5980 case $ac_prog in 5981 # Accept absolute paths. 5982 [\\/]* | ?:[\\/]*) 5983 re_direlt='/[^/][^/]*/\.\./' 5984 # Canonicalize the pathname of ld 5985 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5986 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5987 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5988 done 5989 test -z "$LD" && LD="$ac_prog" 5990 ;; 5991 "") 5992 # If it fails, then pretend we aren't using GCC. 5993 ac_prog=ld 5994 ;; 5995 *) 5996 # If it is relative, then search for the first ld in PATH. 5997 with_gnu_ld=unknown 5998 ;; 5999 esac 6000elif test "$with_gnu_ld" = yes; then 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6002$as_echo_n "checking for GNU ld... " >&6; } 6003else 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6005$as_echo_n "checking for non-GNU ld... " >&6; } 6006fi 6007if test "${lt_cv_path_LD+set}" = set; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 if test -z "$LD"; then 6011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6012 for ac_dir in $PATH; do 6013 IFS="$lt_save_ifs" 6014 test -z "$ac_dir" && ac_dir=. 6015 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6016 lt_cv_path_LD="$ac_dir/$ac_prog" 6017 # Check to see if the program is GNU ld. I'd rather use --version, 6018 # but apparently some variants of GNU ld only accept -v. 6019 # Break only if it was the GNU/non-GNU ld that we prefer. 6020 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6021 *GNU* | *'with BFD'*) 6022 test "$with_gnu_ld" != no && break 6023 ;; 6024 *) 6025 test "$with_gnu_ld" != yes && break 6026 ;; 6027 esac 6028 fi 6029 done 6030 IFS="$lt_save_ifs" 6031else 6032 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6033fi 6034fi 6035 6036LD="$lt_cv_path_LD" 6037if test -n "$LD"; then 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6039$as_echo "$LD" >&6; } 6040else 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6042$as_echo "no" >&6; } 6043fi 6044test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6046$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6047if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6048 $as_echo_n "(cached) " >&6 6049else 6050 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6051case `$LD -v 2>&1 </dev/null` in 6052*GNU* | *'with BFD'*) 6053 lt_cv_prog_gnu_ld=yes 6054 ;; 6055*) 6056 lt_cv_prog_gnu_ld=no 6057 ;; 6058esac 6059fi 6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6061$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6062with_gnu_ld=$lt_cv_prog_gnu_ld 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6073$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6074if test "${lt_cv_path_NM+set}" = set; then : 6075 $as_echo_n "(cached) " >&6 6076else 6077 if test -n "$NM"; then 6078 # Let the user override the test. 6079 lt_cv_path_NM="$NM" 6080else 6081 lt_nm_to_check="${ac_tool_prefix}nm" 6082 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6083 lt_nm_to_check="$lt_nm_to_check nm" 6084 fi 6085 for lt_tmp_nm in $lt_nm_to_check; do 6086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6087 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6088 IFS="$lt_save_ifs" 6089 test -z "$ac_dir" && ac_dir=. 6090 tmp_nm="$ac_dir/$lt_tmp_nm" 6091 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6092 # Check to see if the nm accepts a BSD-compat flag. 6093 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6094 # nm: unknown option "B" ignored 6095 # Tru64's nm complains that /dev/null is an invalid object file 6096 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6097 */dev/null* | *'Invalid file or object type'*) 6098 lt_cv_path_NM="$tmp_nm -B" 6099 break 6100 ;; 6101 *) 6102 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6103 */dev/null*) 6104 lt_cv_path_NM="$tmp_nm -p" 6105 break 6106 ;; 6107 *) 6108 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6109 continue # so that we can try to find one that supports BSD flags 6110 ;; 6111 esac 6112 ;; 6113 esac 6114 fi 6115 done 6116 IFS="$lt_save_ifs" 6117 done 6118 : ${lt_cv_path_NM=no} 6119fi 6120fi 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6122$as_echo "$lt_cv_path_NM" >&6; } 6123if test "$lt_cv_path_NM" != "no"; then 6124 NM="$lt_cv_path_NM" 6125else 6126 # Didn't find any BSD compatible name lister, look for dumpbin. 6127 if test -n "$ac_tool_prefix"; then 6128 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6129 do 6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6131set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6133$as_echo_n "checking for $ac_word... " >&6; } 6134if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 if test -n "$DUMPBIN"; then 6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6139else 6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6141for as_dir in $PATH 6142do 6143 IFS=$as_save_IFS 6144 test -z "$as_dir" && as_dir=. 6145 for ac_exec_ext in '' $ac_executable_extensions; do 6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151done 6152 done 6153IFS=$as_save_IFS 6154 6155fi 6156fi 6157DUMPBIN=$ac_cv_prog_DUMPBIN 6158if test -n "$DUMPBIN"; then 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6160$as_echo "$DUMPBIN" >&6; } 6161else 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6163$as_echo "no" >&6; } 6164fi 6165 6166 6167 test -n "$DUMPBIN" && break 6168 done 6169fi 6170if test -z "$DUMPBIN"; then 6171 ac_ct_DUMPBIN=$DUMPBIN 6172 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6173do 6174 # Extract the first word of "$ac_prog", so it can be a program name with args. 6175set dummy $ac_prog; ac_word=$2 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177$as_echo_n "checking for $ac_word... " >&6; } 6178if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 if test -n "$ac_ct_DUMPBIN"; then 6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6183else 6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6185for as_dir in $PATH 6186do 6187 IFS=$as_save_IFS 6188 test -z "$as_dir" && as_dir=. 6189 for ac_exec_ext in '' $ac_executable_extensions; do 6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6193 break 2 6194 fi 6195done 6196 done 6197IFS=$as_save_IFS 6198 6199fi 6200fi 6201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6202if test -n "$ac_ct_DUMPBIN"; then 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6204$as_echo "$ac_ct_DUMPBIN" >&6; } 6205else 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6207$as_echo "no" >&6; } 6208fi 6209 6210 6211 test -n "$ac_ct_DUMPBIN" && break 6212done 6213 6214 if test "x$ac_ct_DUMPBIN" = x; then 6215 DUMPBIN=":" 6216 else 6217 case $cross_compiling:$ac_tool_warned in 6218yes:) 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6221ac_tool_warned=yes ;; 6222esac 6223 DUMPBIN=$ac_ct_DUMPBIN 6224 fi 6225fi 6226 6227 6228 if test "$DUMPBIN" != ":"; then 6229 NM="$DUMPBIN" 6230 fi 6231fi 6232test -z "$NM" && NM=nm 6233 6234 6235 6236 6237 6238 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6240$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6241if test "${lt_cv_nm_interface+set}" = set; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 lt_cv_nm_interface="BSD nm" 6245 echo "int some_variable = 0;" > conftest.$ac_ext 6246 (eval echo "\"\$as_me:6246: $ac_compile\"" >&5) 6247 (eval "$ac_compile" 2>conftest.err) 6248 cat conftest.err >&5 6249 (eval echo "\"\$as_me:6249: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6251 cat conftest.err >&5 6252 (eval echo "\"\$as_me:6252: output\"" >&5) 6253 cat conftest.out >&5 6254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6255 lt_cv_nm_interface="MS dumpbin" 6256 fi 6257 rm -f conftest* 6258fi 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6260$as_echo "$lt_cv_nm_interface" >&6; } 6261 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6263$as_echo_n "checking whether ln -s works... " >&6; } 6264LN_S=$as_ln_s 6265if test "$LN_S" = "ln -s"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6267$as_echo "yes" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6270$as_echo "no, using $LN_S" >&6; } 6271fi 6272 6273# find the maximum length of command line arguments 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6275$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6276if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 i=0 6280 teststring="ABCD" 6281 6282 case $build_os in 6283 msdosdjgpp*) 6284 # On DJGPP, this test can blow up pretty badly due to problems in libc 6285 # (any single argument exceeding 2000 bytes causes a buffer overrun 6286 # during glob expansion). Even if it were fixed, the result of this 6287 # check would be larger than it should be. 6288 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6289 ;; 6290 6291 gnu*) 6292 # Under GNU Hurd, this test is not required because there is 6293 # no limit to the length of command line arguments. 6294 # Libtool will interpret -1 as no limit whatsoever 6295 lt_cv_sys_max_cmd_len=-1; 6296 ;; 6297 6298 cygwin* | mingw* | cegcc*) 6299 # On Win9x/ME, this test blows up -- it succeeds, but takes 6300 # about 5 minutes as the teststring grows exponentially. 6301 # Worse, since 9x/ME are not pre-emptively multitasking, 6302 # you end up with a "frozen" computer, even though with patience 6303 # the test eventually succeeds (with a max line length of 256k). 6304 # Instead, let's just punt: use the minimum linelength reported by 6305 # all of the supported platforms: 8192 (on NT/2K/XP). 6306 lt_cv_sys_max_cmd_len=8192; 6307 ;; 6308 6309 amigaos*) 6310 # On AmigaOS with pdksh, this test takes hours, literally. 6311 # So we just punt and use a minimum line length of 8192. 6312 lt_cv_sys_max_cmd_len=8192; 6313 ;; 6314 6315 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6316 # This has been around since 386BSD, at least. Likely further. 6317 if test -x /sbin/sysctl; then 6318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6319 elif test -x /usr/sbin/sysctl; then 6320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6321 else 6322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6323 fi 6324 # And add a safety zone 6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6327 ;; 6328 6329 interix*) 6330 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6331 lt_cv_sys_max_cmd_len=196608 6332 ;; 6333 6334 osf*) 6335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6337 # nice to cause kernel panics so lets avoid the loop below. 6338 # First set a reasonable default. 6339 lt_cv_sys_max_cmd_len=16384 6340 # 6341 if test -x /sbin/sysconfig; then 6342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6343 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6344 esac 6345 fi 6346 ;; 6347 sco3.2v5*) 6348 lt_cv_sys_max_cmd_len=102400 6349 ;; 6350 sysv5* | sco5v6* | sysv4.2uw2*) 6351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6352 if test -n "$kargmax"; then 6353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6354 else 6355 lt_cv_sys_max_cmd_len=32768 6356 fi 6357 ;; 6358 *) 6359 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6360 if test -n "$lt_cv_sys_max_cmd_len"; then 6361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6363 else 6364 # Make teststring a little bigger before we do anything with it. 6365 # a 1K string should be a reasonable start. 6366 for i in 1 2 3 4 5 6 7 8 ; do 6367 teststring=$teststring$teststring 6368 done 6369 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6370 # If test is not a shell built-in, we'll probably end up computing a 6371 # maximum length that is only half of the actual maximum length, but 6372 # we can't tell. 6373 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6374 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6375 test $i != 17 # 1/2 MB should be enough 6376 do 6377 i=`expr $i + 1` 6378 teststring=$teststring$teststring 6379 done 6380 # Only check the string length outside the loop. 6381 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6382 teststring= 6383 # Add a significant safety factor because C++ compilers can tack on 6384 # massive amounts of additional arguments before passing them to the 6385 # linker. It appears as though 1/2 is a usable value. 6386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6387 fi 6388 ;; 6389 esac 6390 6391fi 6392 6393if test -n $lt_cv_sys_max_cmd_len ; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6395$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6396else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6398$as_echo "none" >&6; } 6399fi 6400max_cmd_len=$lt_cv_sys_max_cmd_len 6401 6402 6403 6404 6405 6406 6407: ${CP="cp -f"} 6408: ${MV="mv -f"} 6409: ${RM="rm -f"} 6410 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6412$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6413# Try some XSI features 6414xsi_shell=no 6415( _lt_dummy="a/b/c" 6416 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6417 = c,a/b,, \ 6418 && eval 'test $(( 1 + 1 )) -eq 2 \ 6419 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6420 && xsi_shell=yes 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6422$as_echo "$xsi_shell" >&6; } 6423 6424 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6426$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6427lt_shell_append=no 6428( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6429 >/dev/null 2>&1 \ 6430 && lt_shell_append=yes 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6432$as_echo "$lt_shell_append" >&6; } 6433 6434 6435if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6436 lt_unset=unset 6437else 6438 lt_unset=false 6439fi 6440 6441 6442 6443 6444 6445# test EBCDIC or ASCII 6446case `echo X|tr X '\101'` in 6447 A) # ASCII based system 6448 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6449 lt_SP2NL='tr \040 \012' 6450 lt_NL2SP='tr \015\012 \040\040' 6451 ;; 6452 *) # EBCDIC based system 6453 lt_SP2NL='tr \100 \n' 6454 lt_NL2SP='tr \r\n \100\100' 6455 ;; 6456esac 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6467$as_echo_n "checking for $LD option to reload object files... " >&6; } 6468if test "${lt_cv_ld_reload_flag+set}" = set; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 lt_cv_ld_reload_flag='-r' 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6474$as_echo "$lt_cv_ld_reload_flag" >&6; } 6475reload_flag=$lt_cv_ld_reload_flag 6476case $reload_flag in 6477"" | " "*) ;; 6478*) reload_flag=" $reload_flag" ;; 6479esac 6480reload_cmds='$LD$reload_flag -o $output$reload_objs' 6481case $host_os in 6482 darwin*) 6483 if test "$GCC" = yes; then 6484 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6485 else 6486 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6487 fi 6488 ;; 6489esac 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499if test -n "$ac_tool_prefix"; then 6500 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6501set dummy ${ac_tool_prefix}objdump; ac_word=$2 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6503$as_echo_n "checking for $ac_word... " >&6; } 6504if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6505 $as_echo_n "(cached) " >&6 6506else 6507 if test -n "$OBJDUMP"; then 6508 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6509else 6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6511for as_dir in $PATH 6512do 6513 IFS=$as_save_IFS 6514 test -z "$as_dir" && as_dir=. 6515 for ac_exec_ext in '' $ac_executable_extensions; do 6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6517 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6519 break 2 6520 fi 6521done 6522 done 6523IFS=$as_save_IFS 6524 6525fi 6526fi 6527OBJDUMP=$ac_cv_prog_OBJDUMP 6528if test -n "$OBJDUMP"; then 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6530$as_echo "$OBJDUMP" >&6; } 6531else 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6533$as_echo "no" >&6; } 6534fi 6535 6536 6537fi 6538if test -z "$ac_cv_prog_OBJDUMP"; then 6539 ac_ct_OBJDUMP=$OBJDUMP 6540 # Extract the first word of "objdump", so it can be a program name with args. 6541set dummy objdump; ac_word=$2 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6543$as_echo_n "checking for $ac_word... " >&6; } 6544if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6545 $as_echo_n "(cached) " >&6 6546else 6547 if test -n "$ac_ct_OBJDUMP"; then 6548 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6549else 6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6551for as_dir in $PATH 6552do 6553 IFS=$as_save_IFS 6554 test -z "$as_dir" && as_dir=. 6555 for ac_exec_ext in '' $ac_executable_extensions; do 6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6557 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6559 break 2 6560 fi 6561done 6562 done 6563IFS=$as_save_IFS 6564 6565fi 6566fi 6567ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6568if test -n "$ac_ct_OBJDUMP"; then 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6570$as_echo "$ac_ct_OBJDUMP" >&6; } 6571else 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6573$as_echo "no" >&6; } 6574fi 6575 6576 if test "x$ac_ct_OBJDUMP" = x; then 6577 OBJDUMP="false" 6578 else 6579 case $cross_compiling:$ac_tool_warned in 6580yes:) 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6583ac_tool_warned=yes ;; 6584esac 6585 OBJDUMP=$ac_ct_OBJDUMP 6586 fi 6587else 6588 OBJDUMP="$ac_cv_prog_OBJDUMP" 6589fi 6590 6591test -z "$OBJDUMP" && OBJDUMP=objdump 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6602$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6603if test "${lt_cv_deplibs_check_method+set}" = set; then : 6604 $as_echo_n "(cached) " >&6 6605else 6606 lt_cv_file_magic_cmd='$MAGIC_CMD' 6607lt_cv_file_magic_test_file= 6608lt_cv_deplibs_check_method='unknown' 6609# Need to set the preceding variable on all platforms that support 6610# interlibrary dependencies. 6611# 'none' -- dependencies not supported. 6612# `unknown' -- same as none, but documents that we really don't know. 6613# 'pass_all' -- all dependencies passed with no checks. 6614# 'test_compile' -- check by making test program. 6615# 'file_magic [[regex]]' -- check by looking for files in library path 6616# which responds to the $file_magic_cmd with a given extended regex. 6617# If you have `file' or equivalent on your system and you're not sure 6618# whether `pass_all' will *always* work, you probably want this one. 6619 6620case $host_os in 6621aix[4-9]*) 6622 lt_cv_deplibs_check_method=pass_all 6623 ;; 6624 6625beos*) 6626 lt_cv_deplibs_check_method=pass_all 6627 ;; 6628 6629bsdi[45]*) 6630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6631 lt_cv_file_magic_cmd='/usr/bin/file -L' 6632 lt_cv_file_magic_test_file=/shlib/libc.so 6633 ;; 6634 6635cygwin*) 6636 # func_win32_libid is a shell function defined in ltmain.sh 6637 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6638 lt_cv_file_magic_cmd='func_win32_libid' 6639 ;; 6640 6641mingw* | pw32*) 6642 # Base MSYS/MinGW do not provide the 'file' command needed by 6643 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6644 # unless we find 'file', for example because we are cross-compiling. 6645 if ( file / ) >/dev/null 2>&1; then 6646 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6647 lt_cv_file_magic_cmd='func_win32_libid' 6648 else 6649 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6650 lt_cv_file_magic_cmd='$OBJDUMP -f' 6651 fi 6652 ;; 6653 6654cegcc) 6655 # use the weaker test based on 'objdump'. See mingw*. 6656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6657 lt_cv_file_magic_cmd='$OBJDUMP -f' 6658 ;; 6659 6660darwin* | rhapsody*) 6661 lt_cv_deplibs_check_method=pass_all 6662 ;; 6663 6664freebsd* | dragonfly*) 6665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6666 case $host_cpu in 6667 i*86 ) 6668 # Not sure whether the presence of OpenBSD here was a mistake. 6669 # Let's accept both of them until this is cleared up. 6670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6671 lt_cv_file_magic_cmd=/usr/bin/file 6672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6673 ;; 6674 esac 6675 else 6676 lt_cv_deplibs_check_method=pass_all 6677 fi 6678 ;; 6679 6680gnu*) 6681 lt_cv_deplibs_check_method=pass_all 6682 ;; 6683 6684hpux10.20* | hpux11*) 6685 lt_cv_file_magic_cmd=/usr/bin/file 6686 case $host_cpu in 6687 ia64*) 6688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6690 ;; 6691 hppa*64*) 6692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6694 ;; 6695 *) 6696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6697 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6698 ;; 6699 esac 6700 ;; 6701 6702interix[3-9]*) 6703 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6705 ;; 6706 6707irix5* | irix6* | nonstopux*) 6708 case $LD in 6709 *-32|*"-32 ") libmagic=32-bit;; 6710 *-n32|*"-n32 ") libmagic=N32;; 6711 *-64|*"-64 ") libmagic=64-bit;; 6712 *) libmagic=never-match;; 6713 esac 6714 lt_cv_deplibs_check_method=pass_all 6715 ;; 6716 6717# This must be Linux ELF. 6718linux* | k*bsd*-gnu | kopensolaris*-gnu) 6719 lt_cv_deplibs_check_method=pass_all 6720 ;; 6721 6722netbsd* | netbsdelf*-gnu) 6723 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6725 else 6726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6727 fi 6728 ;; 6729 6730newos6*) 6731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6732 lt_cv_file_magic_cmd=/usr/bin/file 6733 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6734 ;; 6735 6736*nto* | *qnx*) 6737 lt_cv_deplibs_check_method=pass_all 6738 ;; 6739 6740openbsd*) 6741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6743 else 6744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6745 fi 6746 ;; 6747 6748osf3* | osf4* | osf5*) 6749 lt_cv_deplibs_check_method=pass_all 6750 ;; 6751 6752rdos*) 6753 lt_cv_deplibs_check_method=pass_all 6754 ;; 6755 6756solaris*) 6757 lt_cv_deplibs_check_method=pass_all 6758 ;; 6759 6760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6761 lt_cv_deplibs_check_method=pass_all 6762 ;; 6763 6764sysv4 | sysv4.3*) 6765 case $host_vendor in 6766 motorola) 6767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6769 ;; 6770 ncr) 6771 lt_cv_deplibs_check_method=pass_all 6772 ;; 6773 sequent) 6774 lt_cv_file_magic_cmd='/bin/file' 6775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6776 ;; 6777 sni) 6778 lt_cv_file_magic_cmd='/bin/file' 6779 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6780 lt_cv_file_magic_test_file=/lib/libc.so 6781 ;; 6782 siemens) 6783 lt_cv_deplibs_check_method=pass_all 6784 ;; 6785 pc) 6786 lt_cv_deplibs_check_method=pass_all 6787 ;; 6788 esac 6789 ;; 6790 6791tpf*) 6792 lt_cv_deplibs_check_method=pass_all 6793 ;; 6794esac 6795 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6798$as_echo "$lt_cv_deplibs_check_method" >&6; } 6799file_magic_cmd=$lt_cv_file_magic_cmd 6800deplibs_check_method=$lt_cv_deplibs_check_method 6801test -z "$deplibs_check_method" && deplibs_check_method=unknown 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814if test -n "$ac_tool_prefix"; then 6815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6816set dummy ${ac_tool_prefix}ar; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if test "${ac_cv_prog_AR+set}" = set; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$AR"; then 6823 ac_cv_prog_AR="$AR" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6832 ac_cv_prog_AR="${ac_tool_prefix}ar" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842AR=$ac_cv_prog_AR 6843if test -n "$AR"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6845$as_echo "$AR" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 6852fi 6853if test -z "$ac_cv_prog_AR"; then 6854 ac_ct_AR=$AR 6855 # Extract the first word of "ar", so it can be a program name with args. 6856set dummy ar; ac_word=$2 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6858$as_echo_n "checking for $ac_word... " >&6; } 6859if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if test -n "$ac_ct_AR"; then 6863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6864else 6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6866for as_dir in $PATH 6867do 6868 IFS=$as_save_IFS 6869 test -z "$as_dir" && as_dir=. 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6872 ac_cv_prog_ac_ct_AR="ar" 6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876done 6877 done 6878IFS=$as_save_IFS 6879 6880fi 6881fi 6882ac_ct_AR=$ac_cv_prog_ac_ct_AR 6883if test -n "$ac_ct_AR"; then 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6885$as_echo "$ac_ct_AR" >&6; } 6886else 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6888$as_echo "no" >&6; } 6889fi 6890 6891 if test "x$ac_ct_AR" = x; then 6892 AR="false" 6893 else 6894 case $cross_compiling:$ac_tool_warned in 6895yes:) 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6898ac_tool_warned=yes ;; 6899esac 6900 AR=$ac_ct_AR 6901 fi 6902else 6903 AR="$ac_cv_prog_AR" 6904fi 6905 6906test -z "$AR" && AR=ar 6907test -z "$AR_FLAGS" && AR_FLAGS=cru 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919if test -n "$ac_tool_prefix"; then 6920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6921set dummy ${ac_tool_prefix}strip; ac_word=$2 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6923$as_echo_n "checking for $ac_word... " >&6; } 6924if test "${ac_cv_prog_STRIP+set}" = set; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 if test -n "$STRIP"; then 6928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6929else 6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931for as_dir in $PATH 6932do 6933 IFS=$as_save_IFS 6934 test -z "$as_dir" && as_dir=. 6935 for ac_exec_ext in '' $ac_executable_extensions; do 6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6937 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6939 break 2 6940 fi 6941done 6942 done 6943IFS=$as_save_IFS 6944 6945fi 6946fi 6947STRIP=$ac_cv_prog_STRIP 6948if test -n "$STRIP"; then 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6950$as_echo "$STRIP" >&6; } 6951else 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6953$as_echo "no" >&6; } 6954fi 6955 6956 6957fi 6958if test -z "$ac_cv_prog_STRIP"; then 6959 ac_ct_STRIP=$STRIP 6960 # Extract the first word of "strip", so it can be a program name with args. 6961set dummy strip; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$ac_ct_STRIP"; then 6968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6977 ac_cv_prog_ac_ct_STRIP="strip" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6988if test -n "$ac_ct_STRIP"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6990$as_echo "$ac_ct_STRIP" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 if test "x$ac_ct_STRIP" = x; then 6997 STRIP=":" 6998 else 6999 case $cross_compiling:$ac_tool_warned in 7000yes:) 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7003ac_tool_warned=yes ;; 7004esac 7005 STRIP=$ac_ct_STRIP 7006 fi 7007else 7008 STRIP="$ac_cv_prog_STRIP" 7009fi 7010 7011test -z "$STRIP" && STRIP=: 7012 7013 7014 7015 7016 7017 7018if test -n "$ac_tool_prefix"; then 7019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7020set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022$as_echo_n "checking for $ac_word... " >&6; } 7023if test "${ac_cv_prog_RANLIB+set}" = set; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 if test -n "$RANLIB"; then 7027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7028else 7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7030for as_dir in $PATH 7031do 7032 IFS=$as_save_IFS 7033 test -z "$as_dir" && as_dir=. 7034 for ac_exec_ext in '' $ac_executable_extensions; do 7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7038 break 2 7039 fi 7040done 7041 done 7042IFS=$as_save_IFS 7043 7044fi 7045fi 7046RANLIB=$ac_cv_prog_RANLIB 7047if test -n "$RANLIB"; then 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7049$as_echo "$RANLIB" >&6; } 7050else 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7052$as_echo "no" >&6; } 7053fi 7054 7055 7056fi 7057if test -z "$ac_cv_prog_RANLIB"; then 7058 ac_ct_RANLIB=$RANLIB 7059 # Extract the first word of "ranlib", so it can be a program name with args. 7060set dummy ranlib; ac_word=$2 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7062$as_echo_n "checking for $ac_word... " >&6; } 7063if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7064 $as_echo_n "(cached) " >&6 7065else 7066 if test -n "$ac_ct_RANLIB"; then 7067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7068else 7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7070for as_dir in $PATH 7071do 7072 IFS=$as_save_IFS 7073 test -z "$as_dir" && as_dir=. 7074 for ac_exec_ext in '' $ac_executable_extensions; do 7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7076 ac_cv_prog_ac_ct_RANLIB="ranlib" 7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7078 break 2 7079 fi 7080done 7081 done 7082IFS=$as_save_IFS 7083 7084fi 7085fi 7086ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7087if test -n "$ac_ct_RANLIB"; then 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7089$as_echo "$ac_ct_RANLIB" >&6; } 7090else 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7092$as_echo "no" >&6; } 7093fi 7094 7095 if test "x$ac_ct_RANLIB" = x; then 7096 RANLIB=":" 7097 else 7098 case $cross_compiling:$ac_tool_warned in 7099yes:) 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7102ac_tool_warned=yes ;; 7103esac 7104 RANLIB=$ac_ct_RANLIB 7105 fi 7106else 7107 RANLIB="$ac_cv_prog_RANLIB" 7108fi 7109 7110test -z "$RANLIB" && RANLIB=: 7111 7112 7113 7114 7115 7116 7117# Determine commands to create old-style static archives. 7118old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7119old_postinstall_cmds='chmod 644 $oldlib' 7120old_postuninstall_cmds= 7121 7122if test -n "$RANLIB"; then 7123 case $host_os in 7124 openbsd*) 7125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7126 ;; 7127 *) 7128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7129 ;; 7130 esac 7131 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7132fi 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167# If no C compiler was specified, use CC. 7168LTCC=${LTCC-"$CC"} 7169 7170# If no C compiler flags were specified, use CFLAGS. 7171LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7172 7173# Allow CC to be a program name with arguments. 7174compiler=$CC 7175 7176 7177# Check for command to grab the raw symbol name followed by C symbol from nm. 7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7179$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7180if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 7184# These are sane defaults that work on at least a few old systems. 7185# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7186 7187# Character class describing NM global symbol codes. 7188symcode='[BCDEGRST]' 7189 7190# Regexp to match symbols that can be accessed directly from C. 7191sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7192 7193# Define system-specific variables. 7194case $host_os in 7195aix*) 7196 symcode='[BCDT]' 7197 ;; 7198cygwin* | mingw* | pw32* | cegcc*) 7199 symcode='[ABCDGISTW]' 7200 ;; 7201hpux*) 7202 if test "$host_cpu" = ia64; then 7203 symcode='[ABCDEGRST]' 7204 fi 7205 ;; 7206irix* | nonstopux*) 7207 symcode='[BCDEGRST]' 7208 ;; 7209osf*) 7210 symcode='[BCDEGQRST]' 7211 ;; 7212solaris*) 7213 symcode='[BDRT]' 7214 ;; 7215sco3.2v5*) 7216 symcode='[DT]' 7217 ;; 7218sysv4.2uw2*) 7219 symcode='[DT]' 7220 ;; 7221sysv5* | sco5v6* | unixware* | OpenUNIX*) 7222 symcode='[ABDT]' 7223 ;; 7224sysv4) 7225 symcode='[DFNSTU]' 7226 ;; 7227esac 7228 7229# If we're using GNU nm, then use its standard symbol codes. 7230case `$NM -V 2>&1` in 7231*GNU* | *'with BFD'*) 7232 symcode='[ABCDGIRSTW]' ;; 7233esac 7234 7235# Transform an extracted symbol line into a proper C declaration. 7236# Some systems (esp. on ia64) link data and code symbols differently, 7237# so use this general approach. 7238lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7239 7240# Transform an extracted symbol line into symbol name and symbol address 7241lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7242lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7243 7244# Handle CRLF in mingw tool chain 7245opt_cr= 7246case $build_os in 7247mingw*) 7248 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7249 ;; 7250esac 7251 7252# Try without a prefix underscore, then with it. 7253for ac_symprfx in "" "_"; do 7254 7255 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7256 symxfrm="\\1 $ac_symprfx\\2 \\2" 7257 7258 # Write the raw and C identifiers. 7259 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7260 # Fake it for dumpbin and say T for any non-static function 7261 # and D for any global variable. 7262 # Also find C++ and __fastcall symbols from MSVC++, 7263 # which start with @ or ?. 7264 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7265" {last_section=section; section=\$ 3};"\ 7266" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7267" \$ 0!~/External *\|/{next};"\ 7268" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7269" {if(hide[section]) next};"\ 7270" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7271" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7272" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7273" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7274" ' prfx=^$ac_symprfx" 7275 else 7276 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7277 fi 7278 7279 # Check to see that the pipe works correctly. 7280 pipe_works=no 7281 7282 rm -f conftest* 7283 cat > conftest.$ac_ext <<_LT_EOF 7284#ifdef __cplusplus 7285extern "C" { 7286#endif 7287char nm_test_var; 7288void nm_test_func(void); 7289void nm_test_func(void){} 7290#ifdef __cplusplus 7291} 7292#endif 7293int main(){nm_test_var='a';nm_test_func();return(0);} 7294_LT_EOF 7295 7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7297 (eval $ac_compile) 2>&5 7298 ac_status=$? 7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7300 test $ac_status = 0; }; then 7301 # Now try to grab the symbols. 7302 nlist=conftest.nm 7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7304 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7305 ac_status=$? 7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7307 test $ac_status = 0; } && test -s "$nlist"; then 7308 # Try sorting and uniquifying the output. 7309 if sort "$nlist" | uniq > "$nlist"T; then 7310 mv -f "$nlist"T "$nlist" 7311 else 7312 rm -f "$nlist"T 7313 fi 7314 7315 # Make sure that we snagged all the symbols we need. 7316 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7317 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7318 cat <<_LT_EOF > conftest.$ac_ext 7319#ifdef __cplusplus 7320extern "C" { 7321#endif 7322 7323_LT_EOF 7324 # Now generate the symbol file. 7325 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7326 7327 cat <<_LT_EOF >> conftest.$ac_ext 7328 7329/* The mapping between symbol names and symbols. */ 7330const struct { 7331 const char *name; 7332 void *address; 7333} 7334lt__PROGRAM__LTX_preloaded_symbols[] = 7335{ 7336 { "@PROGRAM@", (void *) 0 }, 7337_LT_EOF 7338 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7339 cat <<\_LT_EOF >> conftest.$ac_ext 7340 {0, (void *) 0} 7341}; 7342 7343/* This works around a problem in FreeBSD linker */ 7344#ifdef FREEBSD_WORKAROUND 7345static const void *lt_preloaded_setup() { 7346 return lt__PROGRAM__LTX_preloaded_symbols; 7347} 7348#endif 7349 7350#ifdef __cplusplus 7351} 7352#endif 7353_LT_EOF 7354 # Now try linking the two files. 7355 mv conftest.$ac_objext conftstm.$ac_objext 7356 lt_save_LIBS="$LIBS" 7357 lt_save_CFLAGS="$CFLAGS" 7358 LIBS="conftstm.$ac_objext" 7359 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7361 (eval $ac_link) 2>&5 7362 ac_status=$? 7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7364 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7365 pipe_works=yes 7366 fi 7367 LIBS="$lt_save_LIBS" 7368 CFLAGS="$lt_save_CFLAGS" 7369 else 7370 echo "cannot find nm_test_func in $nlist" >&5 7371 fi 7372 else 7373 echo "cannot find nm_test_var in $nlist" >&5 7374 fi 7375 else 7376 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7377 fi 7378 else 7379 echo "$progname: failed program was:" >&5 7380 cat conftest.$ac_ext >&5 7381 fi 7382 rm -rf conftest* conftst* 7383 7384 # Do not use the global_symbol_pipe unless it works. 7385 if test "$pipe_works" = yes; then 7386 break 7387 else 7388 lt_cv_sys_global_symbol_pipe= 7389 fi 7390done 7391 7392fi 7393 7394if test -z "$lt_cv_sys_global_symbol_pipe"; then 7395 lt_cv_sys_global_symbol_to_cdecl= 7396fi 7397if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7399$as_echo "failed" >&6; } 7400else 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7402$as_echo "ok" >&6; } 7403fi 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426# Check whether --enable-libtool-lock was given. 7427if test "${enable_libtool_lock+set}" = set; then : 7428 enableval=$enable_libtool_lock; 7429fi 7430 7431test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7432 7433# Some flags need to be propagated to the compiler or linker for good 7434# libtool support. 7435case $host in 7436ia64-*-hpux*) 7437 # Find out which ABI we are using. 7438 echo 'int i;' > conftest.$ac_ext 7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7440 (eval $ac_compile) 2>&5 7441 ac_status=$? 7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7443 test $ac_status = 0; }; then 7444 case `/usr/bin/file conftest.$ac_objext` in 7445 *ELF-32*) 7446 HPUX_IA64_MODE="32" 7447 ;; 7448 *ELF-64*) 7449 HPUX_IA64_MODE="64" 7450 ;; 7451 esac 7452 fi 7453 rm -rf conftest* 7454 ;; 7455*-*-irix6*) 7456 # Find out which ABI we are using. 7457 echo '#line 7457 "configure"' > conftest.$ac_ext 7458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7459 (eval $ac_compile) 2>&5 7460 ac_status=$? 7461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7462 test $ac_status = 0; }; then 7463 if test "$lt_cv_prog_gnu_ld" = yes; then 7464 case `/usr/bin/file conftest.$ac_objext` in 7465 *32-bit*) 7466 LD="${LD-ld} -melf32bsmip" 7467 ;; 7468 *N32*) 7469 LD="${LD-ld} -melf32bmipn32" 7470 ;; 7471 *64-bit*) 7472 LD="${LD-ld} -melf64bmip" 7473 ;; 7474 esac 7475 else 7476 case `/usr/bin/file conftest.$ac_objext` in 7477 *32-bit*) 7478 LD="${LD-ld} -32" 7479 ;; 7480 *N32*) 7481 LD="${LD-ld} -n32" 7482 ;; 7483 *64-bit*) 7484 LD="${LD-ld} -64" 7485 ;; 7486 esac 7487 fi 7488 fi 7489 rm -rf conftest* 7490 ;; 7491 7492x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7493s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7494 # Find out which ABI we are using. 7495 echo 'int i;' > conftest.$ac_ext 7496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7497 (eval $ac_compile) 2>&5 7498 ac_status=$? 7499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7500 test $ac_status = 0; }; then 7501 case `/usr/bin/file conftest.o` in 7502 *32-bit*) 7503 case $host in 7504 x86_64-*kfreebsd*-gnu) 7505 LD="${LD-ld} -m elf_i386_fbsd" 7506 ;; 7507 x86_64-*linux*) 7508 LD="${LD-ld} -m elf_i386" 7509 ;; 7510 ppc64-*linux*|powerpc64-*linux*) 7511 LD="${LD-ld} -m elf32ppclinux" 7512 ;; 7513 s390x-*linux*) 7514 LD="${LD-ld} -m elf_s390" 7515 ;; 7516 sparc64-*linux*) 7517 LD="${LD-ld} -m elf32_sparc" 7518 ;; 7519 esac 7520 ;; 7521 *64-bit*) 7522 case $host in 7523 x86_64-*kfreebsd*-gnu) 7524 LD="${LD-ld} -m elf_x86_64_fbsd" 7525 ;; 7526 x86_64-*linux*) 7527 LD="${LD-ld} -m elf_x86_64" 7528 ;; 7529 ppc*-*linux*|powerpc*-*linux*) 7530 LD="${LD-ld} -m elf64ppc" 7531 ;; 7532 s390*-*linux*|s390*-*tpf*) 7533 LD="${LD-ld} -m elf64_s390" 7534 ;; 7535 sparc*-*linux*) 7536 LD="${LD-ld} -m elf64_sparc" 7537 ;; 7538 esac 7539 ;; 7540 esac 7541 fi 7542 rm -rf conftest* 7543 ;; 7544 7545*-*-sco3.2v5*) 7546 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7547 SAVE_CFLAGS="$CFLAGS" 7548 CFLAGS="$CFLAGS -belf" 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7550$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7551if test "${lt_cv_cc_needs_belf+set}" = set; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 ac_ext=c 7555ac_cpp='$CPP $CPPFLAGS' 7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7558ac_compiler_gnu=$ac_cv_c_compiler_gnu 7559 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561/* end confdefs.h. */ 7562 7563int 7564main () 7565{ 7566 7567 ; 7568 return 0; 7569} 7570_ACEOF 7571if ac_fn_c_try_link "$LINENO"; then : 7572 lt_cv_cc_needs_belf=yes 7573else 7574 lt_cv_cc_needs_belf=no 7575fi 7576rm -f core conftest.err conftest.$ac_objext \ 7577 conftest$ac_exeext conftest.$ac_ext 7578 ac_ext=c 7579ac_cpp='$CPP $CPPFLAGS' 7580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7582ac_compiler_gnu=$ac_cv_c_compiler_gnu 7583 7584fi 7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7586$as_echo "$lt_cv_cc_needs_belf" >&6; } 7587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7589 CFLAGS="$SAVE_CFLAGS" 7590 fi 7591 ;; 7592sparc*-*solaris*) 7593 # Find out which ABI we are using. 7594 echo 'int i;' > conftest.$ac_ext 7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7596 (eval $ac_compile) 2>&5 7597 ac_status=$? 7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7599 test $ac_status = 0; }; then 7600 case `/usr/bin/file conftest.o` in 7601 *64-bit*) 7602 case $lt_cv_prog_gnu_ld in 7603 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7604 *) 7605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7606 LD="${LD-ld} -64" 7607 fi 7608 ;; 7609 esac 7610 ;; 7611 esac 7612 fi 7613 rm -rf conftest* 7614 ;; 7615esac 7616 7617need_locks="$enable_libtool_lock" 7618 7619 7620 case $host_os in 7621 rhapsody* | darwin*) 7622 if test -n "$ac_tool_prefix"; then 7623 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7624set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626$as_echo_n "checking for $ac_word... " >&6; } 7627if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7628 $as_echo_n "(cached) " >&6 7629else 7630 if test -n "$DSYMUTIL"; then 7631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7632else 7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7634for as_dir in $PATH 7635do 7636 IFS=$as_save_IFS 7637 test -z "$as_dir" && as_dir=. 7638 for ac_exec_ext in '' $ac_executable_extensions; do 7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7640 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7642 break 2 7643 fi 7644done 7645 done 7646IFS=$as_save_IFS 7647 7648fi 7649fi 7650DSYMUTIL=$ac_cv_prog_DSYMUTIL 7651if test -n "$DSYMUTIL"; then 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7653$as_echo "$DSYMUTIL" >&6; } 7654else 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7656$as_echo "no" >&6; } 7657fi 7658 7659 7660fi 7661if test -z "$ac_cv_prog_DSYMUTIL"; then 7662 ac_ct_DSYMUTIL=$DSYMUTIL 7663 # Extract the first word of "dsymutil", so it can be a program name with args. 7664set dummy dsymutil; ac_word=$2 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7666$as_echo_n "checking for $ac_word... " >&6; } 7667if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7668 $as_echo_n "(cached) " >&6 7669else 7670 if test -n "$ac_ct_DSYMUTIL"; then 7671 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7672else 7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7674for as_dir in $PATH 7675do 7676 IFS=$as_save_IFS 7677 test -z "$as_dir" && as_dir=. 7678 for ac_exec_ext in '' $ac_executable_extensions; do 7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7682 break 2 7683 fi 7684done 7685 done 7686IFS=$as_save_IFS 7687 7688fi 7689fi 7690ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7691if test -n "$ac_ct_DSYMUTIL"; then 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7693$as_echo "$ac_ct_DSYMUTIL" >&6; } 7694else 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7696$as_echo "no" >&6; } 7697fi 7698 7699 if test "x$ac_ct_DSYMUTIL" = x; then 7700 DSYMUTIL=":" 7701 else 7702 case $cross_compiling:$ac_tool_warned in 7703yes:) 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7706ac_tool_warned=yes ;; 7707esac 7708 DSYMUTIL=$ac_ct_DSYMUTIL 7709 fi 7710else 7711 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7712fi 7713 7714 if test -n "$ac_tool_prefix"; then 7715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7716set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7718$as_echo_n "checking for $ac_word... " >&6; } 7719if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7720 $as_echo_n "(cached) " >&6 7721else 7722 if test -n "$NMEDIT"; then 7723 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7724else 7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7726for as_dir in $PATH 7727do 7728 IFS=$as_save_IFS 7729 test -z "$as_dir" && as_dir=. 7730 for ac_exec_ext in '' $ac_executable_extensions; do 7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7732 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7734 break 2 7735 fi 7736done 7737 done 7738IFS=$as_save_IFS 7739 7740fi 7741fi 7742NMEDIT=$ac_cv_prog_NMEDIT 7743if test -n "$NMEDIT"; then 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7745$as_echo "$NMEDIT" >&6; } 7746else 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7748$as_echo "no" >&6; } 7749fi 7750 7751 7752fi 7753if test -z "$ac_cv_prog_NMEDIT"; then 7754 ac_ct_NMEDIT=$NMEDIT 7755 # Extract the first word of "nmedit", so it can be a program name with args. 7756set dummy nmedit; ac_word=$2 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7758$as_echo_n "checking for $ac_word... " >&6; } 7759if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 if test -n "$ac_ct_NMEDIT"; then 7763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7764else 7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7766for as_dir in $PATH 7767do 7768 IFS=$as_save_IFS 7769 test -z "$as_dir" && as_dir=. 7770 for ac_exec_ext in '' $ac_executable_extensions; do 7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7772 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7774 break 2 7775 fi 7776done 7777 done 7778IFS=$as_save_IFS 7779 7780fi 7781fi 7782ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7783if test -n "$ac_ct_NMEDIT"; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7785$as_echo "$ac_ct_NMEDIT" >&6; } 7786else 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7788$as_echo "no" >&6; } 7789fi 7790 7791 if test "x$ac_ct_NMEDIT" = x; then 7792 NMEDIT=":" 7793 else 7794 case $cross_compiling:$ac_tool_warned in 7795yes:) 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7798ac_tool_warned=yes ;; 7799esac 7800 NMEDIT=$ac_ct_NMEDIT 7801 fi 7802else 7803 NMEDIT="$ac_cv_prog_NMEDIT" 7804fi 7805 7806 if test -n "$ac_tool_prefix"; then 7807 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7808set dummy ${ac_tool_prefix}lipo; ac_word=$2 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7810$as_echo_n "checking for $ac_word... " >&6; } 7811if test "${ac_cv_prog_LIPO+set}" = set; then : 7812 $as_echo_n "(cached) " >&6 7813else 7814 if test -n "$LIPO"; then 7815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7816else 7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7818for as_dir in $PATH 7819do 7820 IFS=$as_save_IFS 7821 test -z "$as_dir" && as_dir=. 7822 for ac_exec_ext in '' $ac_executable_extensions; do 7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7824 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7826 break 2 7827 fi 7828done 7829 done 7830IFS=$as_save_IFS 7831 7832fi 7833fi 7834LIPO=$ac_cv_prog_LIPO 7835if test -n "$LIPO"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7837$as_echo "$LIPO" >&6; } 7838else 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840$as_echo "no" >&6; } 7841fi 7842 7843 7844fi 7845if test -z "$ac_cv_prog_LIPO"; then 7846 ac_ct_LIPO=$LIPO 7847 # Extract the first word of "lipo", so it can be a program name with args. 7848set dummy lipo; ac_word=$2 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7850$as_echo_n "checking for $ac_word... " >&6; } 7851if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 if test -n "$ac_ct_LIPO"; then 7855 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7856else 7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7858for as_dir in $PATH 7859do 7860 IFS=$as_save_IFS 7861 test -z "$as_dir" && as_dir=. 7862 for ac_exec_ext in '' $ac_executable_extensions; do 7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7864 ac_cv_prog_ac_ct_LIPO="lipo" 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7866 break 2 7867 fi 7868done 7869 done 7870IFS=$as_save_IFS 7871 7872fi 7873fi 7874ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7875if test -n "$ac_ct_LIPO"; then 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7877$as_echo "$ac_ct_LIPO" >&6; } 7878else 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7880$as_echo "no" >&6; } 7881fi 7882 7883 if test "x$ac_ct_LIPO" = x; then 7884 LIPO=":" 7885 else 7886 case $cross_compiling:$ac_tool_warned in 7887yes:) 7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7890ac_tool_warned=yes ;; 7891esac 7892 LIPO=$ac_ct_LIPO 7893 fi 7894else 7895 LIPO="$ac_cv_prog_LIPO" 7896fi 7897 7898 if test -n "$ac_tool_prefix"; then 7899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7900set dummy ${ac_tool_prefix}otool; ac_word=$2 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7902$as_echo_n "checking for $ac_word... " >&6; } 7903if test "${ac_cv_prog_OTOOL+set}" = set; then : 7904 $as_echo_n "(cached) " >&6 7905else 7906 if test -n "$OTOOL"; then 7907 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7908else 7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7910for as_dir in $PATH 7911do 7912 IFS=$as_save_IFS 7913 test -z "$as_dir" && as_dir=. 7914 for ac_exec_ext in '' $ac_executable_extensions; do 7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7918 break 2 7919 fi 7920done 7921 done 7922IFS=$as_save_IFS 7923 7924fi 7925fi 7926OTOOL=$ac_cv_prog_OTOOL 7927if test -n "$OTOOL"; then 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7929$as_echo "$OTOOL" >&6; } 7930else 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7932$as_echo "no" >&6; } 7933fi 7934 7935 7936fi 7937if test -z "$ac_cv_prog_OTOOL"; then 7938 ac_ct_OTOOL=$OTOOL 7939 # Extract the first word of "otool", so it can be a program name with args. 7940set dummy otool; ac_word=$2 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7942$as_echo_n "checking for $ac_word... " >&6; } 7943if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 if test -n "$ac_ct_OTOOL"; then 7947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7948else 7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7950for as_dir in $PATH 7951do 7952 IFS=$as_save_IFS 7953 test -z "$as_dir" && as_dir=. 7954 for ac_exec_ext in '' $ac_executable_extensions; do 7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7956 ac_cv_prog_ac_ct_OTOOL="otool" 7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7958 break 2 7959 fi 7960done 7961 done 7962IFS=$as_save_IFS 7963 7964fi 7965fi 7966ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7967if test -n "$ac_ct_OTOOL"; then 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7969$as_echo "$ac_ct_OTOOL" >&6; } 7970else 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7972$as_echo "no" >&6; } 7973fi 7974 7975 if test "x$ac_ct_OTOOL" = x; then 7976 OTOOL=":" 7977 else 7978 case $cross_compiling:$ac_tool_warned in 7979yes:) 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7982ac_tool_warned=yes ;; 7983esac 7984 OTOOL=$ac_ct_OTOOL 7985 fi 7986else 7987 OTOOL="$ac_cv_prog_OTOOL" 7988fi 7989 7990 if test -n "$ac_tool_prefix"; then 7991 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7992set dummy ${ac_tool_prefix}otool64; ac_word=$2 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7994$as_echo_n "checking for $ac_word... " >&6; } 7995if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7996 $as_echo_n "(cached) " >&6 7997else 7998 if test -n "$OTOOL64"; then 7999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8000else 8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8002for as_dir in $PATH 8003do 8004 IFS=$as_save_IFS 8005 test -z "$as_dir" && as_dir=. 8006 for ac_exec_ext in '' $ac_executable_extensions; do 8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8010 break 2 8011 fi 8012done 8013 done 8014IFS=$as_save_IFS 8015 8016fi 8017fi 8018OTOOL64=$ac_cv_prog_OTOOL64 8019if test -n "$OTOOL64"; then 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8021$as_echo "$OTOOL64" >&6; } 8022else 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8024$as_echo "no" >&6; } 8025fi 8026 8027 8028fi 8029if test -z "$ac_cv_prog_OTOOL64"; then 8030 ac_ct_OTOOL64=$OTOOL64 8031 # Extract the first word of "otool64", so it can be a program name with args. 8032set dummy otool64; ac_word=$2 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8034$as_echo_n "checking for $ac_word... " >&6; } 8035if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 if test -n "$ac_ct_OTOOL64"; then 8039 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8040else 8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8042for as_dir in $PATH 8043do 8044 IFS=$as_save_IFS 8045 test -z "$as_dir" && as_dir=. 8046 for ac_exec_ext in '' $ac_executable_extensions; do 8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8048 ac_cv_prog_ac_ct_OTOOL64="otool64" 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8050 break 2 8051 fi 8052done 8053 done 8054IFS=$as_save_IFS 8055 8056fi 8057fi 8058ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8059if test -n "$ac_ct_OTOOL64"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8061$as_echo "$ac_ct_OTOOL64" >&6; } 8062else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064$as_echo "no" >&6; } 8065fi 8066 8067 if test "x$ac_ct_OTOOL64" = x; then 8068 OTOOL64=":" 8069 else 8070 case $cross_compiling:$ac_tool_warned in 8071yes:) 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8074ac_tool_warned=yes ;; 8075esac 8076 OTOOL64=$ac_ct_OTOOL64 8077 fi 8078else 8079 OTOOL64="$ac_cv_prog_OTOOL64" 8080fi 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8109$as_echo_n "checking for -single_module linker flag... " >&6; } 8110if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 lt_cv_apple_cc_single_mod=no 8114 if test -z "${LT_MULTI_MODULE}"; then 8115 # By default we will add the -single_module flag. You can override 8116 # by either setting the environment variable LT_MULTI_MODULE 8117 # non-empty at configure time, or by adding -multi_module to the 8118 # link flags. 8119 rm -rf libconftest.dylib* 8120 echo "int foo(void){return 1;}" > conftest.c 8121 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8122-dynamiclib -Wl,-single_module conftest.c" >&5 8123 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8124 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8125 _lt_result=$? 8126 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8127 lt_cv_apple_cc_single_mod=yes 8128 else 8129 cat conftest.err >&5 8130 fi 8131 rm -rf libconftest.dylib* 8132 rm -f conftest.* 8133 fi 8134fi 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8136$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8138$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8139if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8140 $as_echo_n "(cached) " >&6 8141else 8142 lt_cv_ld_exported_symbols_list=no 8143 save_LDFLAGS=$LDFLAGS 8144 echo "_main" > conftest.sym 8145 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8147/* end confdefs.h. */ 8148 8149int 8150main () 8151{ 8152 8153 ; 8154 return 0; 8155} 8156_ACEOF 8157if ac_fn_c_try_link "$LINENO"; then : 8158 lt_cv_ld_exported_symbols_list=yes 8159else 8160 lt_cv_ld_exported_symbols_list=no 8161fi 8162rm -f core conftest.err conftest.$ac_objext \ 8163 conftest$ac_exeext conftest.$ac_ext 8164 LDFLAGS="$save_LDFLAGS" 8165 8166fi 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8168$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8169 case $host_os in 8170 rhapsody* | darwin1.[012]) 8171 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8172 darwin1.*) 8173 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8174 darwin*) # darwin 5.x on 8175 # if running on 10.5 or later, the deployment target defaults 8176 # to the OS version, if on x86, and 10.4, the deployment 8177 # target defaults to 10.4. Don't you love it? 8178 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8179 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8180 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8181 10.[012]*) 8182 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8183 10.*) 8184 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8185 esac 8186 ;; 8187 esac 8188 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8189 _lt_dar_single_mod='$single_module' 8190 fi 8191 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8192 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8193 else 8194 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8195 fi 8196 if test "$DSYMUTIL" != ":"; then 8197 _lt_dsymutil='~$DSYMUTIL $lib || :' 8198 else 8199 _lt_dsymutil= 8200 fi 8201 ;; 8202 esac 8203 8204for ac_header in dlfcn.h 8205do : 8206 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8207" 8208if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8209 cat >>confdefs.h <<_ACEOF 8210#define HAVE_DLFCN_H 1 8211_ACEOF 8212 8213fi 8214 8215done 8216 8217 8218 8219# Set options 8220 8221 8222 8223 enable_dlopen=no 8224 8225 8226 enable_win32_dll=no 8227 8228 8229 # Check whether --enable-shared was given. 8230if test "${enable_shared+set}" = set; then : 8231 enableval=$enable_shared; p=${PACKAGE-default} 8232 case $enableval in 8233 yes) enable_shared=yes ;; 8234 no) enable_shared=no ;; 8235 *) 8236 enable_shared=no 8237 # Look at the argument we got. We use all the common list separators. 8238 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8239 for pkg in $enableval; do 8240 IFS="$lt_save_ifs" 8241 if test "X$pkg" = "X$p"; then 8242 enable_shared=yes 8243 fi 8244 done 8245 IFS="$lt_save_ifs" 8246 ;; 8247 esac 8248else 8249 enable_shared=yes 8250fi 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 # Check whether --enable-static was given. 8261if test "${enable_static+set}" = set; then : 8262 enableval=$enable_static; p=${PACKAGE-default} 8263 case $enableval in 8264 yes) enable_static=yes ;; 8265 no) enable_static=no ;; 8266 *) 8267 enable_static=no 8268 # Look at the argument we got. We use all the common list separators. 8269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8270 for pkg in $enableval; do 8271 IFS="$lt_save_ifs" 8272 if test "X$pkg" = "X$p"; then 8273 enable_static=yes 8274 fi 8275 done 8276 IFS="$lt_save_ifs" 8277 ;; 8278 esac 8279else 8280 enable_static=yes 8281fi 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292# Check whether --with-pic was given. 8293if test "${with_pic+set}" = set; then : 8294 withval=$with_pic; pic_mode="$withval" 8295else 8296 pic_mode=default 8297fi 8298 8299 8300test -z "$pic_mode" && pic_mode=default 8301 8302 8303 8304 8305 8306 8307 8308 # Check whether --enable-fast-install was given. 8309if test "${enable_fast_install+set}" = set; then : 8310 enableval=$enable_fast_install; p=${PACKAGE-default} 8311 case $enableval in 8312 yes) enable_fast_install=yes ;; 8313 no) enable_fast_install=no ;; 8314 *) 8315 enable_fast_install=no 8316 # Look at the argument we got. We use all the common list separators. 8317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8318 for pkg in $enableval; do 8319 IFS="$lt_save_ifs" 8320 if test "X$pkg" = "X$p"; then 8321 enable_fast_install=yes 8322 fi 8323 done 8324 IFS="$lt_save_ifs" 8325 ;; 8326 esac 8327else 8328 enable_fast_install=yes 8329fi 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341# This can be used to rebuild libtool when needed 8342LIBTOOL_DEPS="$ltmain" 8343 8344# Always use our own libtool. 8345LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371test -z "$LN_S" && LN_S="ln -s" 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386if test -n "${ZSH_VERSION+set}" ; then 8387 setopt NO_GLOB_SUBST 8388fi 8389 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8391$as_echo_n "checking for objdir... " >&6; } 8392if test "${lt_cv_objdir+set}" = set; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 rm -f .libs 2>/dev/null 8396mkdir .libs 2>/dev/null 8397if test -d .libs; then 8398 lt_cv_objdir=.libs 8399else 8400 # MS-DOS does not allow filenames that begin with a dot. 8401 lt_cv_objdir=_libs 8402fi 8403rmdir .libs 2>/dev/null 8404fi 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8406$as_echo "$lt_cv_objdir" >&6; } 8407objdir=$lt_cv_objdir 8408 8409 8410 8411 8412 8413cat >>confdefs.h <<_ACEOF 8414#define LT_OBJDIR "$lt_cv_objdir/" 8415_ACEOF 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433case $host_os in 8434aix3*) 8435 # AIX sometimes has problems with the GCC collect2 program. For some 8436 # reason, if we set the COLLECT_NAMES environment variable, the problems 8437 # vanish in a puff of smoke. 8438 if test "X${COLLECT_NAMES+set}" != Xset; then 8439 COLLECT_NAMES= 8440 export COLLECT_NAMES 8441 fi 8442 ;; 8443esac 8444 8445# Sed substitution that helps us do robust quoting. It backslashifies 8446# metacharacters that are still active within double-quoted strings. 8447sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8448 8449# Same as above, but do not quote variable references. 8450double_quote_subst='s/\(["`\\]\)/\\\1/g' 8451 8452# Sed substitution to delay expansion of an escaped shell variable in a 8453# double_quote_subst'ed string. 8454delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8455 8456# Sed substitution to delay expansion of an escaped single quote. 8457delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8458 8459# Sed substitution to avoid accidental globbing in evaled expressions 8460no_glob_subst='s/\*/\\\*/g' 8461 8462# Global variables: 8463ofile=libtool 8464can_build_shared=yes 8465 8466# All known linkers require a `.a' archive for static linking (except MSVC, 8467# which needs '.lib'). 8468libext=a 8469 8470with_gnu_ld="$lt_cv_prog_gnu_ld" 8471 8472old_CC="$CC" 8473old_CFLAGS="$CFLAGS" 8474 8475# Set sane defaults for various variables 8476test -z "$CC" && CC=cc 8477test -z "$LTCC" && LTCC=$CC 8478test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8479test -z "$LD" && LD=ld 8480test -z "$ac_objext" && ac_objext=o 8481 8482for cc_temp in $compiler""; do 8483 case $cc_temp in 8484 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8485 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8486 \-*) ;; 8487 *) break;; 8488 esac 8489done 8490cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8491 8492 8493# Only perform the check for file, if the check method requires it 8494test -z "$MAGIC_CMD" && MAGIC_CMD=file 8495case $deplibs_check_method in 8496file_magic*) 8497 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8499$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8500if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 case $MAGIC_CMD in 8504[\\/*] | ?:[\\/]*) 8505 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8506 ;; 8507*) 8508 lt_save_MAGIC_CMD="$MAGIC_CMD" 8509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8511 for ac_dir in $ac_dummy; do 8512 IFS="$lt_save_ifs" 8513 test -z "$ac_dir" && ac_dir=. 8514 if test -f $ac_dir/${ac_tool_prefix}file; then 8515 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8516 if test -n "$file_magic_test_file"; then 8517 case $deplibs_check_method in 8518 "file_magic "*) 8519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8522 $EGREP "$file_magic_regex" > /dev/null; then 8523 : 8524 else 8525 cat <<_LT_EOF 1>&2 8526 8527*** Warning: the command libtool uses to detect shared libraries, 8528*** $file_magic_cmd, produces output that libtool cannot recognize. 8529*** The result is that libtool may fail to recognize shared libraries 8530*** as such. This will affect the creation of libtool libraries that 8531*** depend on shared libraries, but programs linked with such libtool 8532*** libraries will work regardless of this problem. Nevertheless, you 8533*** may want to report the problem to your system manager and/or to 8534*** bug-libtool@gnu.org 8535 8536_LT_EOF 8537 fi ;; 8538 esac 8539 fi 8540 break 8541 fi 8542 done 8543 IFS="$lt_save_ifs" 8544 MAGIC_CMD="$lt_save_MAGIC_CMD" 8545 ;; 8546esac 8547fi 8548 8549MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8550if test -n "$MAGIC_CMD"; then 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8552$as_echo "$MAGIC_CMD" >&6; } 8553else 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8555$as_echo "no" >&6; } 8556fi 8557 8558 8559 8560 8561 8562if test -z "$lt_cv_path_MAGIC_CMD"; then 8563 if test -n "$ac_tool_prefix"; then 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8565$as_echo_n "checking for file... " >&6; } 8566if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8567 $as_echo_n "(cached) " >&6 8568else 8569 case $MAGIC_CMD in 8570[\\/*] | ?:[\\/]*) 8571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8572 ;; 8573*) 8574 lt_save_MAGIC_CMD="$MAGIC_CMD" 8575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8577 for ac_dir in $ac_dummy; do 8578 IFS="$lt_save_ifs" 8579 test -z "$ac_dir" && ac_dir=. 8580 if test -f $ac_dir/file; then 8581 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8582 if test -n "$file_magic_test_file"; then 8583 case $deplibs_check_method in 8584 "file_magic "*) 8585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8588 $EGREP "$file_magic_regex" > /dev/null; then 8589 : 8590 else 8591 cat <<_LT_EOF 1>&2 8592 8593*** Warning: the command libtool uses to detect shared libraries, 8594*** $file_magic_cmd, produces output that libtool cannot recognize. 8595*** The result is that libtool may fail to recognize shared libraries 8596*** as such. This will affect the creation of libtool libraries that 8597*** depend on shared libraries, but programs linked with such libtool 8598*** libraries will work regardless of this problem. Nevertheless, you 8599*** may want to report the problem to your system manager and/or to 8600*** bug-libtool@gnu.org 8601 8602_LT_EOF 8603 fi ;; 8604 esac 8605 fi 8606 break 8607 fi 8608 done 8609 IFS="$lt_save_ifs" 8610 MAGIC_CMD="$lt_save_MAGIC_CMD" 8611 ;; 8612esac 8613fi 8614 8615MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8616if test -n "$MAGIC_CMD"; then 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8618$as_echo "$MAGIC_CMD" >&6; } 8619else 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8621$as_echo "no" >&6; } 8622fi 8623 8624 8625 else 8626 MAGIC_CMD=: 8627 fi 8628fi 8629 8630 fi 8631 ;; 8632esac 8633 8634# Use C for the default configuration in the libtool script 8635 8636lt_save_CC="$CC" 8637ac_ext=c 8638ac_cpp='$CPP $CPPFLAGS' 8639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8641ac_compiler_gnu=$ac_cv_c_compiler_gnu 8642 8643 8644# Source file extension for C test sources. 8645ac_ext=c 8646 8647# Object file extension for compiled C test sources. 8648objext=o 8649objext=$objext 8650 8651# Code to be used in simple compile tests 8652lt_simple_compile_test_code="int some_variable = 0;" 8653 8654# Code to be used in simple link tests 8655lt_simple_link_test_code='int main(){return(0);}' 8656 8657 8658 8659 8660 8661 8662 8663# If no C compiler was specified, use CC. 8664LTCC=${LTCC-"$CC"} 8665 8666# If no C compiler flags were specified, use CFLAGS. 8667LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8668 8669# Allow CC to be a program name with arguments. 8670compiler=$CC 8671 8672# Save the default compiler, since it gets overwritten when the other 8673# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8674compiler_DEFAULT=$CC 8675 8676# save warnings/boilerplate of simple test code 8677ac_outfile=conftest.$ac_objext 8678echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8679eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8680_lt_compiler_boilerplate=`cat conftest.err` 8681$RM conftest* 8682 8683ac_outfile=conftest.$ac_objext 8684echo "$lt_simple_link_test_code" >conftest.$ac_ext 8685eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8686_lt_linker_boilerplate=`cat conftest.err` 8687$RM -r conftest* 8688 8689 8690## CAVEAT EMPTOR: 8691## There is no encapsulation within the following macros, do not change 8692## the running order or otherwise move them around unless you know exactly 8693## what you are doing... 8694if test -n "$compiler"; then 8695 8696lt_prog_compiler_no_builtin_flag= 8697 8698if test "$GCC" = yes; then 8699 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8700 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8702$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8703if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 lt_cv_prog_compiler_rtti_exceptions=no 8707 ac_outfile=conftest.$ac_objext 8708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8709 lt_compiler_flag="-fno-rtti -fno-exceptions" 8710 # Insert the option either (1) after the last *FLAGS variable, or 8711 # (2) before a word containing "conftest.", or (3) at the end. 8712 # Note that $ac_compile itself does not contain backslashes and begins 8713 # with a dollar sign (not a hyphen), so the echo should work correctly. 8714 # The option is referenced via a variable to avoid confusing sed. 8715 lt_compile=`echo "$ac_compile" | $SED \ 8716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8718 -e 's:$: $lt_compiler_flag:'` 8719 (eval echo "\"\$as_me:8719: $lt_compile\"" >&5) 8720 (eval "$lt_compile" 2>conftest.err) 8721 ac_status=$? 8722 cat conftest.err >&5 8723 echo "$as_me:8723: \$? = $ac_status" >&5 8724 if (exit $ac_status) && test -s "$ac_outfile"; then 8725 # The compiler can only warn and ignore the option if not recognized 8726 # So say no if there are warnings other than the usual output. 8727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8730 lt_cv_prog_compiler_rtti_exceptions=yes 8731 fi 8732 fi 8733 $RM conftest* 8734 8735fi 8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8737$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8738 8739if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8740 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8741else 8742 : 8743fi 8744 8745fi 8746 8747 8748 8749 8750 8751 8752 lt_prog_compiler_wl= 8753lt_prog_compiler_pic= 8754lt_prog_compiler_static= 8755 8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8757$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8758 8759 if test "$GCC" = yes; then 8760 lt_prog_compiler_wl='-Wl,' 8761 lt_prog_compiler_static='-static' 8762 8763 case $host_os in 8764 aix*) 8765 # All AIX code is PIC. 8766 if test "$host_cpu" = ia64; then 8767 # AIX 5 now supports IA64 processor 8768 lt_prog_compiler_static='-Bstatic' 8769 fi 8770 ;; 8771 8772 amigaos*) 8773 case $host_cpu in 8774 powerpc) 8775 # see comment about AmigaOS4 .so support 8776 lt_prog_compiler_pic='-fPIC' 8777 ;; 8778 m68k) 8779 # FIXME: we need at least 68020 code to build shared libraries, but 8780 # adding the `-m68020' flag to GCC prevents building anything better, 8781 # like `-m68040'. 8782 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8783 ;; 8784 esac 8785 ;; 8786 8787 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8788 # PIC is the default for these OSes. 8789 ;; 8790 8791 mingw* | cygwin* | pw32* | os2* | cegcc*) 8792 # This hack is so that the source file can tell whether it is being 8793 # built for inclusion in a dll (and should export symbols for example). 8794 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8795 # (--disable-auto-import) libraries 8796 lt_prog_compiler_pic='-DDLL_EXPORT' 8797 ;; 8798 8799 darwin* | rhapsody*) 8800 # PIC is the default on this platform 8801 # Common symbols not allowed in MH_DYLIB files 8802 lt_prog_compiler_pic='-fno-common' 8803 ;; 8804 8805 hpux*) 8806 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8807 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8808 # sets the default TLS model and affects inlining. 8809 case $host_cpu in 8810 hppa*64*) 8811 # +Z the default 8812 ;; 8813 *) 8814 lt_prog_compiler_pic='-fPIC' 8815 ;; 8816 esac 8817 ;; 8818 8819 interix[3-9]*) 8820 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8821 # Instead, we relocate shared libraries at runtime. 8822 ;; 8823 8824 msdosdjgpp*) 8825 # Just because we use GCC doesn't mean we suddenly get shared libraries 8826 # on systems that don't support them. 8827 lt_prog_compiler_can_build_shared=no 8828 enable_shared=no 8829 ;; 8830 8831 *nto* | *qnx*) 8832 # QNX uses GNU C++, but need to define -shared option too, otherwise 8833 # it will coredump. 8834 lt_prog_compiler_pic='-fPIC -shared' 8835 ;; 8836 8837 sysv4*MP*) 8838 if test -d /usr/nec; then 8839 lt_prog_compiler_pic=-Kconform_pic 8840 fi 8841 ;; 8842 8843 *) 8844 lt_prog_compiler_pic='-fPIC' 8845 ;; 8846 esac 8847 else 8848 # PORTME Check for flag to pass linker flags through the system compiler. 8849 case $host_os in 8850 aix*) 8851 lt_prog_compiler_wl='-Wl,' 8852 if test "$host_cpu" = ia64; then 8853 # AIX 5 now supports IA64 processor 8854 lt_prog_compiler_static='-Bstatic' 8855 else 8856 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8857 fi 8858 ;; 8859 8860 mingw* | cygwin* | pw32* | os2* | cegcc*) 8861 # This hack is so that the source file can tell whether it is being 8862 # built for inclusion in a dll (and should export symbols for example). 8863 lt_prog_compiler_pic='-DDLL_EXPORT' 8864 ;; 8865 8866 hpux9* | hpux10* | hpux11*) 8867 lt_prog_compiler_wl='-Wl,' 8868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8869 # not for PA HP-UX. 8870 case $host_cpu in 8871 hppa*64*|ia64*) 8872 # +Z the default 8873 ;; 8874 *) 8875 lt_prog_compiler_pic='+Z' 8876 ;; 8877 esac 8878 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8879 lt_prog_compiler_static='${wl}-a ${wl}archive' 8880 ;; 8881 8882 irix5* | irix6* | nonstopux*) 8883 lt_prog_compiler_wl='-Wl,' 8884 # PIC (with -KPIC) is the default. 8885 lt_prog_compiler_static='-non_shared' 8886 ;; 8887 8888 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8889 case $cc_basename in 8890 # old Intel for x86_64 which still supported -KPIC. 8891 ecc*) 8892 lt_prog_compiler_wl='-Wl,' 8893 lt_prog_compiler_pic='-KPIC' 8894 lt_prog_compiler_static='-static' 8895 ;; 8896 # icc used to be incompatible with GCC. 8897 # ICC 10 doesn't accept -KPIC any more. 8898 icc* | ifort*) 8899 lt_prog_compiler_wl='-Wl,' 8900 lt_prog_compiler_pic='-fPIC' 8901 lt_prog_compiler_static='-static' 8902 ;; 8903 # Lahey Fortran 8.1. 8904 lf95*) 8905 lt_prog_compiler_wl='-Wl,' 8906 lt_prog_compiler_pic='--shared' 8907 lt_prog_compiler_static='--static' 8908 ;; 8909 pgcc* | pgf77* | pgf90* | pgf95*) 8910 # Portland Group compilers (*not* the Pentium gcc compiler, 8911 # which looks to be a dead project) 8912 lt_prog_compiler_wl='-Wl,' 8913 lt_prog_compiler_pic='-fpic' 8914 lt_prog_compiler_static='-Bstatic' 8915 ;; 8916 ccc*) 8917 lt_prog_compiler_wl='-Wl,' 8918 # All Alpha code is PIC. 8919 lt_prog_compiler_static='-non_shared' 8920 ;; 8921 xl*) 8922 # IBM XL C 8.0/Fortran 10.1 on PPC 8923 lt_prog_compiler_wl='-Wl,' 8924 lt_prog_compiler_pic='-qpic' 8925 lt_prog_compiler_static='-qstaticlink' 8926 ;; 8927 *) 8928 case `$CC -V 2>&1 | sed 5q` in 8929 *Sun\ C*) 8930 # Sun C 5.9 8931 lt_prog_compiler_pic='-KPIC' 8932 lt_prog_compiler_static='-Bstatic' 8933 lt_prog_compiler_wl='-Wl,' 8934 ;; 8935 *Sun\ F*) 8936 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8937 lt_prog_compiler_pic='-KPIC' 8938 lt_prog_compiler_static='-Bstatic' 8939 lt_prog_compiler_wl='' 8940 ;; 8941 esac 8942 ;; 8943 esac 8944 ;; 8945 8946 newsos6) 8947 lt_prog_compiler_pic='-KPIC' 8948 lt_prog_compiler_static='-Bstatic' 8949 ;; 8950 8951 *nto* | *qnx*) 8952 # QNX uses GNU C++, but need to define -shared option too, otherwise 8953 # it will coredump. 8954 lt_prog_compiler_pic='-fPIC -shared' 8955 ;; 8956 8957 osf3* | osf4* | osf5*) 8958 lt_prog_compiler_wl='-Wl,' 8959 # All OSF/1 code is PIC. 8960 lt_prog_compiler_static='-non_shared' 8961 ;; 8962 8963 rdos*) 8964 lt_prog_compiler_static='-non_shared' 8965 ;; 8966 8967 solaris*) 8968 lt_prog_compiler_pic='-KPIC' 8969 lt_prog_compiler_static='-Bstatic' 8970 case $cc_basename in 8971 f77* | f90* | f95*) 8972 lt_prog_compiler_wl='-Qoption ld ';; 8973 *) 8974 lt_prog_compiler_wl='-Wl,';; 8975 esac 8976 ;; 8977 8978 sunos4*) 8979 lt_prog_compiler_wl='-Qoption ld ' 8980 lt_prog_compiler_pic='-PIC' 8981 lt_prog_compiler_static='-Bstatic' 8982 ;; 8983 8984 sysv4 | sysv4.2uw2* | sysv4.3*) 8985 lt_prog_compiler_wl='-Wl,' 8986 lt_prog_compiler_pic='-KPIC' 8987 lt_prog_compiler_static='-Bstatic' 8988 ;; 8989 8990 sysv4*MP*) 8991 if test -d /usr/nec ;then 8992 lt_prog_compiler_pic='-Kconform_pic' 8993 lt_prog_compiler_static='-Bstatic' 8994 fi 8995 ;; 8996 8997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8998 lt_prog_compiler_wl='-Wl,' 8999 lt_prog_compiler_pic='-KPIC' 9000 lt_prog_compiler_static='-Bstatic' 9001 ;; 9002 9003 unicos*) 9004 lt_prog_compiler_wl='-Wl,' 9005 lt_prog_compiler_can_build_shared=no 9006 ;; 9007 9008 uts4*) 9009 lt_prog_compiler_pic='-pic' 9010 lt_prog_compiler_static='-Bstatic' 9011 ;; 9012 9013 *) 9014 lt_prog_compiler_can_build_shared=no 9015 ;; 9016 esac 9017 fi 9018 9019case $host_os in 9020 # For platforms which do not support PIC, -DPIC is meaningless: 9021 *djgpp*) 9022 lt_prog_compiler_pic= 9023 ;; 9024 *) 9025 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9026 ;; 9027esac 9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9029$as_echo "$lt_prog_compiler_pic" >&6; } 9030 9031 9032 9033 9034 9035 9036# 9037# Check to make sure the PIC flag actually works. 9038# 9039if test -n "$lt_prog_compiler_pic"; then 9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9041$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9042if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9043 $as_echo_n "(cached) " >&6 9044else 9045 lt_cv_prog_compiler_pic_works=no 9046 ac_outfile=conftest.$ac_objext 9047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9048 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9049 # Insert the option either (1) after the last *FLAGS variable, or 9050 # (2) before a word containing "conftest.", or (3) at the end. 9051 # Note that $ac_compile itself does not contain backslashes and begins 9052 # with a dollar sign (not a hyphen), so the echo should work correctly. 9053 # The option is referenced via a variable to avoid confusing sed. 9054 lt_compile=`echo "$ac_compile" | $SED \ 9055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9057 -e 's:$: $lt_compiler_flag:'` 9058 (eval echo "\"\$as_me:9058: $lt_compile\"" >&5) 9059 (eval "$lt_compile" 2>conftest.err) 9060 ac_status=$? 9061 cat conftest.err >&5 9062 echo "$as_me:9062: \$? = $ac_status" >&5 9063 if (exit $ac_status) && test -s "$ac_outfile"; then 9064 # The compiler can only warn and ignore the option if not recognized 9065 # So say no if there are warnings other than the usual output. 9066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9068 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9069 lt_cv_prog_compiler_pic_works=yes 9070 fi 9071 fi 9072 $RM conftest* 9073 9074fi 9075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9076$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9077 9078if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9079 case $lt_prog_compiler_pic in 9080 "" | " "*) ;; 9081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9082 esac 9083else 9084 lt_prog_compiler_pic= 9085 lt_prog_compiler_can_build_shared=no 9086fi 9087 9088fi 9089 9090 9091 9092 9093 9094 9095# 9096# Check to make sure the static flag actually works. 9097# 9098wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9100$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9101if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9102 $as_echo_n "(cached) " >&6 9103else 9104 lt_cv_prog_compiler_static_works=no 9105 save_LDFLAGS="$LDFLAGS" 9106 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9107 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9109 # The linker can only warn and ignore the option if not recognized 9110 # So say no if there are warnings 9111 if test -s conftest.err; then 9112 # Append any errors to the config.log. 9113 cat conftest.err 1>&5 9114 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9116 if diff conftest.exp conftest.er2 >/dev/null; then 9117 lt_cv_prog_compiler_static_works=yes 9118 fi 9119 else 9120 lt_cv_prog_compiler_static_works=yes 9121 fi 9122 fi 9123 $RM -r conftest* 9124 LDFLAGS="$save_LDFLAGS" 9125 9126fi 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9128$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9129 9130if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9131 : 9132else 9133 lt_prog_compiler_static= 9134fi 9135 9136 9137 9138 9139 9140 9141 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9143$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9144if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9145 $as_echo_n "(cached) " >&6 9146else 9147 lt_cv_prog_compiler_c_o=no 9148 $RM -r conftest 2>/dev/null 9149 mkdir conftest 9150 cd conftest 9151 mkdir out 9152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9153 9154 lt_compiler_flag="-o out/conftest2.$ac_objext" 9155 # Insert the option either (1) after the last *FLAGS variable, or 9156 # (2) before a word containing "conftest.", or (3) at the end. 9157 # Note that $ac_compile itself does not contain backslashes and begins 9158 # with a dollar sign (not a hyphen), so the echo should work correctly. 9159 lt_compile=`echo "$ac_compile" | $SED \ 9160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9162 -e 's:$: $lt_compiler_flag:'` 9163 (eval echo "\"\$as_me:9163: $lt_compile\"" >&5) 9164 (eval "$lt_compile" 2>out/conftest.err) 9165 ac_status=$? 9166 cat out/conftest.err >&5 9167 echo "$as_me:9167: \$? = $ac_status" >&5 9168 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9169 then 9170 # The compiler can only warn and ignore the option if not recognized 9171 # So say no if there are warnings 9172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9175 lt_cv_prog_compiler_c_o=yes 9176 fi 9177 fi 9178 chmod u+w . 2>&5 9179 $RM conftest* 9180 # SGI C++ compiler will create directory out/ii_files/ for 9181 # template instantiation 9182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9183 $RM out/* && rmdir out 9184 cd .. 9185 $RM -r conftest 9186 $RM conftest* 9187 9188fi 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9190$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9191 9192 9193 9194 9195 9196 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9198$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9199if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 lt_cv_prog_compiler_c_o=no 9203 $RM -r conftest 2>/dev/null 9204 mkdir conftest 9205 cd conftest 9206 mkdir out 9207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9208 9209 lt_compiler_flag="-o out/conftest2.$ac_objext" 9210 # Insert the option either (1) after the last *FLAGS variable, or 9211 # (2) before a word containing "conftest.", or (3) at the end. 9212 # Note that $ac_compile itself does not contain backslashes and begins 9213 # with a dollar sign (not a hyphen), so the echo should work correctly. 9214 lt_compile=`echo "$ac_compile" | $SED \ 9215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9217 -e 's:$: $lt_compiler_flag:'` 9218 (eval echo "\"\$as_me:9218: $lt_compile\"" >&5) 9219 (eval "$lt_compile" 2>out/conftest.err) 9220 ac_status=$? 9221 cat out/conftest.err >&5 9222 echo "$as_me:9222: \$? = $ac_status" >&5 9223 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9224 then 9225 # The compiler can only warn and ignore the option if not recognized 9226 # So say no if there are warnings 9227 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9230 lt_cv_prog_compiler_c_o=yes 9231 fi 9232 fi 9233 chmod u+w . 2>&5 9234 $RM conftest* 9235 # SGI C++ compiler will create directory out/ii_files/ for 9236 # template instantiation 9237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9238 $RM out/* && rmdir out 9239 cd .. 9240 $RM -r conftest 9241 $RM conftest* 9242 9243fi 9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9245$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9246 9247 9248 9249 9250hard_links="nottested" 9251if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9252 # do not overwrite the value of need_locks provided by the user 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9254$as_echo_n "checking if we can lock with hard links... " >&6; } 9255 hard_links=yes 9256 $RM conftest* 9257 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9258 touch conftest.a 9259 ln conftest.a conftest.b 2>&5 || hard_links=no 9260 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9262$as_echo "$hard_links" >&6; } 9263 if test "$hard_links" = no; then 9264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9265$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9266 need_locks=warn 9267 fi 9268else 9269 need_locks=no 9270fi 9271 9272 9273 9274 9275 9276 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9278$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9279 9280 runpath_var= 9281 allow_undefined_flag= 9282 always_export_symbols=no 9283 archive_cmds= 9284 archive_expsym_cmds= 9285 compiler_needs_object=no 9286 enable_shared_with_static_runtimes=no 9287 export_dynamic_flag_spec= 9288 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9289 hardcode_automatic=no 9290 hardcode_direct=no 9291 hardcode_direct_absolute=no 9292 hardcode_libdir_flag_spec= 9293 hardcode_libdir_flag_spec_ld= 9294 hardcode_libdir_separator= 9295 hardcode_minus_L=no 9296 hardcode_shlibpath_var=unsupported 9297 inherit_rpath=no 9298 link_all_deplibs=unknown 9299 module_cmds= 9300 module_expsym_cmds= 9301 old_archive_from_new_cmds= 9302 old_archive_from_expsyms_cmds= 9303 thread_safe_flag_spec= 9304 whole_archive_flag_spec= 9305 # include_expsyms should be a list of space-separated symbols to be *always* 9306 # included in the symbol list 9307 include_expsyms= 9308 # exclude_expsyms can be an extended regexp of symbols to exclude 9309 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9310 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9311 # as well as any symbol that contains `d'. 9312 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9313 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9314 # platforms (ab)use it in PIC code, but their linkers get confused if 9315 # the symbol is explicitly referenced. Since portable code cannot 9316 # rely on this symbol name, it's probably fine to never include it in 9317 # preloaded symbol tables. 9318 # Exclude shared library initialization/finalization symbols. 9319 extract_expsyms_cmds= 9320 9321 case $host_os in 9322 cygwin* | mingw* | pw32* | cegcc*) 9323 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9324 # When not using gcc, we currently assume that we are using 9325 # Microsoft Visual C++. 9326 if test "$GCC" != yes; then 9327 with_gnu_ld=no 9328 fi 9329 ;; 9330 interix*) 9331 # we just hope/assume this is gcc and not c89 (= MSVC++) 9332 with_gnu_ld=yes 9333 ;; 9334 openbsd*) 9335 with_gnu_ld=no 9336 ;; 9337 linux* | k*bsd*-gnu) 9338 link_all_deplibs=no 9339 ;; 9340 esac 9341 9342 ld_shlibs=yes 9343 if test "$with_gnu_ld" = yes; then 9344 # If archive_cmds runs LD, not CC, wlarc should be empty 9345 wlarc='${wl}' 9346 9347 # Set some defaults for GNU ld with shared library support. These 9348 # are reset later if shared libraries are not supported. Putting them 9349 # here allows them to be overridden if necessary. 9350 runpath_var=LD_RUN_PATH 9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9352 export_dynamic_flag_spec='${wl}--export-dynamic' 9353 # ancient GNU ld didn't support --whole-archive et. al. 9354 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9355 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9356 else 9357 whole_archive_flag_spec= 9358 fi 9359 supports_anon_versioning=no 9360 case `$LD -v 2>&1` in 9361 *GNU\ gold*) supports_anon_versioning=yes ;; 9362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9365 *\ 2.11.*) ;; # other 2.11 versions 9366 *) supports_anon_versioning=yes ;; 9367 esac 9368 9369 # See if GNU ld supports shared libraries. 9370 case $host_os in 9371 aix[3-9]*) 9372 # On AIX/PPC, the GNU linker is very broken 9373 if test "$host_cpu" != ia64; then 9374 ld_shlibs=no 9375 cat <<_LT_EOF 1>&2 9376 9377*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9378*** to be unable to reliably create shared libraries on AIX. 9379*** Therefore, libtool is disabling shared libraries support. If you 9380*** really care for shared libraries, you may want to modify your PATH 9381*** so that a non-GNU linker is found, and then restart. 9382 9383_LT_EOF 9384 fi 9385 ;; 9386 9387 amigaos*) 9388 case $host_cpu in 9389 powerpc) 9390 # see comment about AmigaOS4 .so support 9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9392 archive_expsym_cmds='' 9393 ;; 9394 m68k) 9395 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9396 hardcode_libdir_flag_spec='-L$libdir' 9397 hardcode_minus_L=yes 9398 ;; 9399 esac 9400 ;; 9401 9402 beos*) 9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9404 allow_undefined_flag=unsupported 9405 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9406 # support --undefined. This deserves some investigation. FIXME 9407 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9408 else 9409 ld_shlibs=no 9410 fi 9411 ;; 9412 9413 cygwin* | mingw* | pw32* | cegcc*) 9414 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9415 # as there is no search path for DLLs. 9416 hardcode_libdir_flag_spec='-L$libdir' 9417 allow_undefined_flag=unsupported 9418 always_export_symbols=no 9419 enable_shared_with_static_runtimes=yes 9420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9421 9422 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9424 # If the export-symbols file already is a .def file (1st line 9425 # is EXPORTS), use it as is; otherwise, prepend... 9426 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9427 cp $export_symbols $output_objdir/$soname.def; 9428 else 9429 echo EXPORTS > $output_objdir/$soname.def; 9430 cat $export_symbols >> $output_objdir/$soname.def; 9431 fi~ 9432 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9433 else 9434 ld_shlibs=no 9435 fi 9436 ;; 9437 9438 interix[3-9]*) 9439 hardcode_direct=no 9440 hardcode_shlibpath_var=no 9441 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9442 export_dynamic_flag_spec='${wl}-E' 9443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9444 # Instead, shared libraries are loaded at an image base (0x10000000 by 9445 # default) and relocated if they conflict, which is a slow very memory 9446 # consuming and fragmenting process. To avoid this, we pick a random, 9447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9448 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9450 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9451 ;; 9452 9453 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9454 tmp_diet=no 9455 if test "$host_os" = linux-dietlibc; then 9456 case $cc_basename in 9457 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9458 esac 9459 fi 9460 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9461 && test "$tmp_diet" = no 9462 then 9463 tmp_addflag= 9464 tmp_sharedflag='-shared' 9465 case $cc_basename,$host_cpu in 9466 pgcc*) # Portland Group C compiler 9467 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9468 tmp_addflag=' $pic_flag' 9469 ;; 9470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9471 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9472 tmp_addflag=' $pic_flag -Mnomain' ;; 9473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9474 tmp_addflag=' -i_dynamic' ;; 9475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9476 tmp_addflag=' -i_dynamic -nofor_main' ;; 9477 ifc* | ifort*) # Intel Fortran compiler 9478 tmp_addflag=' -nofor_main' ;; 9479 lf95*) # Lahey Fortran 8.1 9480 whole_archive_flag_spec= 9481 tmp_sharedflag='--shared' ;; 9482 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9483 tmp_sharedflag='-qmkshrobj' 9484 tmp_addflag= ;; 9485 esac 9486 case `$CC -V 2>&1 | sed 5q` in 9487 *Sun\ C*) # Sun C 5.9 9488 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9489 compiler_needs_object=yes 9490 tmp_sharedflag='-G' ;; 9491 *Sun\ F*) # Sun Fortran 8.3 9492 tmp_sharedflag='-G' ;; 9493 esac 9494 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9495 9496 if test "x$supports_anon_versioning" = xyes; then 9497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9499 echo "local: *; };" >> $output_objdir/$libname.ver~ 9500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9501 fi 9502 9503 case $cc_basename in 9504 xlf*) 9505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9507 hardcode_libdir_flag_spec= 9508 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9509 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9510 if test "x$supports_anon_versioning" = xyes; then 9511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9513 echo "local: *; };" >> $output_objdir/$libname.ver~ 9514 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9515 fi 9516 ;; 9517 esac 9518 else 9519 ld_shlibs=no 9520 fi 9521 ;; 9522 9523 netbsd* | netbsdelf*-gnu) 9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9525 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9526 wlarc= 9527 else 9528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9530 fi 9531 ;; 9532 9533 solaris*) 9534 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9535 ld_shlibs=no 9536 cat <<_LT_EOF 1>&2 9537 9538*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9539*** create shared libraries on Solaris systems. Therefore, libtool 9540*** is disabling shared libraries support. We urge you to upgrade GNU 9541*** binutils to release 2.9.1 or newer. Another option is to modify 9542*** your PATH or compiler configuration so that the native linker is 9543*** used, and then restart. 9544 9545_LT_EOF 9546 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9549 else 9550 ld_shlibs=no 9551 fi 9552 ;; 9553 9554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9555 case `$LD -v 2>&1` in 9556 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9557 ld_shlibs=no 9558 cat <<_LT_EOF 1>&2 9559 9560*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9561*** reliably create shared libraries on SCO systems. Therefore, libtool 9562*** is disabling shared libraries support. We urge you to upgrade GNU 9563*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9564*** your PATH or compiler configuration so that the native linker is 9565*** used, and then restart. 9566 9567_LT_EOF 9568 ;; 9569 *) 9570 # For security reasons, it is highly recommended that you always 9571 # use absolute paths for naming shared libraries, and exclude the 9572 # DT_RUNPATH tag from executables and libraries. But doing so 9573 # requires that you compile everything twice, which is a pain. 9574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9578 else 9579 ld_shlibs=no 9580 fi 9581 ;; 9582 esac 9583 ;; 9584 9585 sunos4*) 9586 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9587 wlarc= 9588 hardcode_direct=yes 9589 hardcode_shlibpath_var=no 9590 ;; 9591 9592 *) 9593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9596 else 9597 ld_shlibs=no 9598 fi 9599 ;; 9600 esac 9601 9602 if test "$ld_shlibs" = no; then 9603 runpath_var= 9604 hardcode_libdir_flag_spec= 9605 export_dynamic_flag_spec= 9606 whole_archive_flag_spec= 9607 fi 9608 else 9609 # PORTME fill in a description of your system's linker (not GNU ld) 9610 case $host_os in 9611 aix3*) 9612 allow_undefined_flag=unsupported 9613 always_export_symbols=yes 9614 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9615 # Note: this linker hardcodes the directories in LIBPATH if there 9616 # are no directories specified by -L. 9617 hardcode_minus_L=yes 9618 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9619 # Neither direct hardcoding nor static linking is supported with a 9620 # broken collect2. 9621 hardcode_direct=unsupported 9622 fi 9623 ;; 9624 9625 aix[4-9]*) 9626 if test "$host_cpu" = ia64; then 9627 # On IA64, the linker does run time linking by default, so we don't 9628 # have to do anything special. 9629 aix_use_runtimelinking=no 9630 exp_sym_flag='-Bexport' 9631 no_entry_flag="" 9632 else 9633 # If we're using GNU nm, then we don't want the "-C" option. 9634 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9635 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9636 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9637 else 9638 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9639 fi 9640 aix_use_runtimelinking=no 9641 9642 # Test if we are trying to use run time linking or normal 9643 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9644 # need to do runtime linking. 9645 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9646 for ld_flag in $LDFLAGS; do 9647 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9648 aix_use_runtimelinking=yes 9649 break 9650 fi 9651 done 9652 ;; 9653 esac 9654 9655 exp_sym_flag='-bexport' 9656 no_entry_flag='-bnoentry' 9657 fi 9658 9659 # When large executables or shared objects are built, AIX ld can 9660 # have problems creating the table of contents. If linking a library 9661 # or program results in "error TOC overflow" add -mminimal-toc to 9662 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9663 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9664 9665 archive_cmds='' 9666 hardcode_direct=yes 9667 hardcode_direct_absolute=yes 9668 hardcode_libdir_separator=':' 9669 link_all_deplibs=yes 9670 file_list_spec='${wl}-f,' 9671 9672 if test "$GCC" = yes; then 9673 case $host_os in aix4.[012]|aix4.[012].*) 9674 # We only want to do this on AIX 4.2 and lower, the check 9675 # below for broken collect2 doesn't work under 4.3+ 9676 collect2name=`${CC} -print-prog-name=collect2` 9677 if test -f "$collect2name" && 9678 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9679 then 9680 # We have reworked collect2 9681 : 9682 else 9683 # We have old collect2 9684 hardcode_direct=unsupported 9685 # It fails to find uninstalled libraries when the uninstalled 9686 # path is not listed in the libpath. Setting hardcode_minus_L 9687 # to unsupported forces relinking 9688 hardcode_minus_L=yes 9689 hardcode_libdir_flag_spec='-L$libdir' 9690 hardcode_libdir_separator= 9691 fi 9692 ;; 9693 esac 9694 shared_flag='-shared' 9695 if test "$aix_use_runtimelinking" = yes; then 9696 shared_flag="$shared_flag "'${wl}-G' 9697 fi 9698 link_all_deplibs=no 9699 else 9700 # not using gcc 9701 if test "$host_cpu" = ia64; then 9702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9703 # chokes on -Wl,-G. The following line is correct: 9704 shared_flag='-G' 9705 else 9706 if test "$aix_use_runtimelinking" = yes; then 9707 shared_flag='${wl}-G' 9708 else 9709 shared_flag='${wl}-bM:SRE' 9710 fi 9711 fi 9712 fi 9713 9714 export_dynamic_flag_spec='${wl}-bexpall' 9715 # It seems that -bexpall does not export symbols beginning with 9716 # underscore (_), so it is better to generate a list of symbols to export. 9717 always_export_symbols=yes 9718 if test "$aix_use_runtimelinking" = yes; then 9719 # Warning - without using the other runtime loading flags (-brtl), 9720 # -berok will link without error, but may produce a broken library. 9721 allow_undefined_flag='-berok' 9722 # Determine the default libpath from the value encoded in an 9723 # empty executable. 9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725/* end confdefs.h. */ 9726 9727int 9728main () 9729{ 9730 9731 ; 9732 return 0; 9733} 9734_ACEOF 9735if ac_fn_c_try_link "$LINENO"; then : 9736 9737lt_aix_libpath_sed=' 9738 /Import File Strings/,/^$/ { 9739 /^0/ { 9740 s/^0 *\(.*\)$/\1/ 9741 p 9742 } 9743 }' 9744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9745# Check for a 64-bit object if we didn't find anything. 9746if test -z "$aix_libpath"; then 9747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9748fi 9749fi 9750rm -f core conftest.err conftest.$ac_objext \ 9751 conftest$ac_exeext conftest.$ac_ext 9752if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9753 9754 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9755 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9756 else 9757 if test "$host_cpu" = ia64; then 9758 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9759 allow_undefined_flag="-z nodefs" 9760 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9761 else 9762 # Determine the default libpath from the value encoded in an 9763 # empty executable. 9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9765/* end confdefs.h. */ 9766 9767int 9768main () 9769{ 9770 9771 ; 9772 return 0; 9773} 9774_ACEOF 9775if ac_fn_c_try_link "$LINENO"; then : 9776 9777lt_aix_libpath_sed=' 9778 /Import File Strings/,/^$/ { 9779 /^0/ { 9780 s/^0 *\(.*\)$/\1/ 9781 p 9782 } 9783 }' 9784aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9785# Check for a 64-bit object if we didn't find anything. 9786if test -z "$aix_libpath"; then 9787 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9788fi 9789fi 9790rm -f core conftest.err conftest.$ac_objext \ 9791 conftest$ac_exeext conftest.$ac_ext 9792if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9793 9794 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9795 # Warning - without using the other run time loading flags, 9796 # -berok will link without error, but may produce a broken library. 9797 no_undefined_flag=' ${wl}-bernotok' 9798 allow_undefined_flag=' ${wl}-berok' 9799 # Exported symbols can be pulled into shared objects from archives 9800 whole_archive_flag_spec='$convenience' 9801 archive_cmds_need_lc=yes 9802 # This is similar to how AIX traditionally builds its shared libraries. 9803 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9804 fi 9805 fi 9806 ;; 9807 9808 amigaos*) 9809 case $host_cpu in 9810 powerpc) 9811 # see comment about AmigaOS4 .so support 9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9813 archive_expsym_cmds='' 9814 ;; 9815 m68k) 9816 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9817 hardcode_libdir_flag_spec='-L$libdir' 9818 hardcode_minus_L=yes 9819 ;; 9820 esac 9821 ;; 9822 9823 bsdi[45]*) 9824 export_dynamic_flag_spec=-rdynamic 9825 ;; 9826 9827 cygwin* | mingw* | pw32* | cegcc*) 9828 # When not using gcc, we currently assume that we are using 9829 # Microsoft Visual C++. 9830 # hardcode_libdir_flag_spec is actually meaningless, as there is 9831 # no search path for DLLs. 9832 hardcode_libdir_flag_spec=' ' 9833 allow_undefined_flag=unsupported 9834 # Tell ltmain to make .lib files, not .a files. 9835 libext=lib 9836 # Tell ltmain to make .dll files, not .so files. 9837 shrext_cmds=".dll" 9838 # FIXME: Setting linknames here is a bad hack. 9839 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9840 # The linker will automatically build a .lib file if we build a DLL. 9841 old_archive_from_new_cmds='true' 9842 # FIXME: Should let the user specify the lib program. 9843 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9844 fix_srcfile_path='`cygpath -w "$srcfile"`' 9845 enable_shared_with_static_runtimes=yes 9846 ;; 9847 9848 darwin* | rhapsody*) 9849 9850 9851 archive_cmds_need_lc=no 9852 hardcode_direct=no 9853 hardcode_automatic=yes 9854 hardcode_shlibpath_var=unsupported 9855 whole_archive_flag_spec='' 9856 link_all_deplibs=yes 9857 allow_undefined_flag="$_lt_dar_allow_undefined" 9858 case $cc_basename in 9859 ifort*) _lt_dar_can_shared=yes ;; 9860 *) _lt_dar_can_shared=$GCC ;; 9861 esac 9862 if test "$_lt_dar_can_shared" = "yes"; then 9863 output_verbose_link_cmd=echo 9864 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9865 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9866 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9867 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9868 9869 else 9870 ld_shlibs=no 9871 fi 9872 9873 ;; 9874 9875 dgux*) 9876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9877 hardcode_libdir_flag_spec='-L$libdir' 9878 hardcode_shlibpath_var=no 9879 ;; 9880 9881 freebsd1*) 9882 ld_shlibs=no 9883 ;; 9884 9885 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9886 # support. Future versions do this automatically, but an explicit c++rt0.o 9887 # does not break anything, and helps significantly (at the cost of a little 9888 # extra space). 9889 freebsd2.2*) 9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9891 hardcode_libdir_flag_spec='-R$libdir' 9892 hardcode_direct=yes 9893 hardcode_shlibpath_var=no 9894 ;; 9895 9896 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9897 freebsd2*) 9898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9899 hardcode_direct=yes 9900 hardcode_minus_L=yes 9901 hardcode_shlibpath_var=no 9902 ;; 9903 9904 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9905 freebsd* | dragonfly*) 9906 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9907 hardcode_libdir_flag_spec='-R$libdir' 9908 hardcode_direct=yes 9909 hardcode_shlibpath_var=no 9910 ;; 9911 9912 hpux9*) 9913 if test "$GCC" = yes; then 9914 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9915 else 9916 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9917 fi 9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9919 hardcode_libdir_separator=: 9920 hardcode_direct=yes 9921 9922 # hardcode_minus_L: Not really in the search PATH, 9923 # but as the default location of the library. 9924 hardcode_minus_L=yes 9925 export_dynamic_flag_spec='${wl}-E' 9926 ;; 9927 9928 hpux10*) 9929 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9930 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9931 else 9932 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9933 fi 9934 if test "$with_gnu_ld" = no; then 9935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9936 hardcode_libdir_flag_spec_ld='+b $libdir' 9937 hardcode_libdir_separator=: 9938 hardcode_direct=yes 9939 hardcode_direct_absolute=yes 9940 export_dynamic_flag_spec='${wl}-E' 9941 # hardcode_minus_L: Not really in the search PATH, 9942 # but as the default location of the library. 9943 hardcode_minus_L=yes 9944 fi 9945 ;; 9946 9947 hpux11*) 9948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9949 case $host_cpu in 9950 hppa*64*) 9951 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 ;; 9953 ia64*) 9954 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9955 ;; 9956 *) 9957 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9958 ;; 9959 esac 9960 else 9961 case $host_cpu in 9962 hppa*64*) 9963 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 ;; 9965 ia64*) 9966 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9967 ;; 9968 *) 9969 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9970 ;; 9971 esac 9972 fi 9973 if test "$with_gnu_ld" = no; then 9974 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9975 hardcode_libdir_separator=: 9976 9977 case $host_cpu in 9978 hppa*64*|ia64*) 9979 hardcode_direct=no 9980 hardcode_shlibpath_var=no 9981 ;; 9982 *) 9983 hardcode_direct=yes 9984 hardcode_direct_absolute=yes 9985 export_dynamic_flag_spec='${wl}-E' 9986 9987 # hardcode_minus_L: Not really in the search PATH, 9988 # but as the default location of the library. 9989 hardcode_minus_L=yes 9990 ;; 9991 esac 9992 fi 9993 ;; 9994 9995 irix5* | irix6* | nonstopux*) 9996 if test "$GCC" = yes; then 9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9998 # Try to use the -exported_symbol ld option, if it does not 9999 # work, assume that -exports_file does not work either and 10000 # implicitly export all symbols. 10001 save_LDFLAGS="$LDFLAGS" 10002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10004/* end confdefs.h. */ 10005int foo(void) {} 10006_ACEOF 10007if ac_fn_c_try_link "$LINENO"; then : 10008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10009 10010fi 10011rm -f core conftest.err conftest.$ac_objext \ 10012 conftest$ac_exeext conftest.$ac_ext 10013 LDFLAGS="$save_LDFLAGS" 10014 else 10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10017 fi 10018 archive_cmds_need_lc='no' 10019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10020 hardcode_libdir_separator=: 10021 inherit_rpath=yes 10022 link_all_deplibs=yes 10023 ;; 10024 10025 netbsd* | netbsdelf*-gnu) 10026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10028 else 10029 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10030 fi 10031 hardcode_libdir_flag_spec='-R$libdir' 10032 hardcode_direct=yes 10033 hardcode_shlibpath_var=no 10034 ;; 10035 10036 newsos6) 10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10038 hardcode_direct=yes 10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10040 hardcode_libdir_separator=: 10041 hardcode_shlibpath_var=no 10042 ;; 10043 10044 *nto* | *qnx*) 10045 ;; 10046 10047 openbsd*) 10048 if test -f /usr/libexec/ld.so; then 10049 hardcode_direct=yes 10050 hardcode_shlibpath_var=no 10051 hardcode_direct_absolute=yes 10052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10053 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10054 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10056 export_dynamic_flag_spec='${wl}-E' 10057 else 10058 case $host_os in 10059 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10061 hardcode_libdir_flag_spec='-R$libdir' 10062 ;; 10063 *) 10064 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10066 ;; 10067 esac 10068 fi 10069 else 10070 ld_shlibs=no 10071 fi 10072 ;; 10073 10074 os2*) 10075 hardcode_libdir_flag_spec='-L$libdir' 10076 hardcode_minus_L=yes 10077 allow_undefined_flag=unsupported 10078 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10079 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10080 ;; 10081 10082 osf3*) 10083 if test "$GCC" = yes; then 10084 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10085 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10086 else 10087 allow_undefined_flag=' -expect_unresolved \*' 10088 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10089 fi 10090 archive_cmds_need_lc='no' 10091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10092 hardcode_libdir_separator=: 10093 ;; 10094 10095 osf4* | osf5*) # as osf3* with the addition of -msym flag 10096 if test "$GCC" = yes; then 10097 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10098 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10100 else 10101 allow_undefined_flag=' -expect_unresolved \*' 10102 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10103 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10104 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10105 10106 # Both c and cxx compiler support -rpath directly 10107 hardcode_libdir_flag_spec='-rpath $libdir' 10108 fi 10109 archive_cmds_need_lc='no' 10110 hardcode_libdir_separator=: 10111 ;; 10112 10113 solaris*) 10114 no_undefined_flag=' -z defs' 10115 if test "$GCC" = yes; then 10116 wlarc='${wl}' 10117 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10118 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10119 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10120 else 10121 case `$CC -V 2>&1` in 10122 *"Compilers 5.0"*) 10123 wlarc='' 10124 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10126 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10127 ;; 10128 *) 10129 wlarc='${wl}' 10130 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10131 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10132 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10133 ;; 10134 esac 10135 fi 10136 hardcode_libdir_flag_spec='-R$libdir' 10137 hardcode_shlibpath_var=no 10138 case $host_os in 10139 solaris2.[0-5] | solaris2.[0-5].*) ;; 10140 *) 10141 # The compiler driver will combine and reorder linker options, 10142 # but understands `-z linker_flag'. GCC discards it without `$wl', 10143 # but is careful enough not to reorder. 10144 # Supported since Solaris 2.6 (maybe 2.5.1?) 10145 if test "$GCC" = yes; then 10146 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10147 else 10148 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10149 fi 10150 ;; 10151 esac 10152 link_all_deplibs=yes 10153 ;; 10154 10155 sunos4*) 10156 if test "x$host_vendor" = xsequent; then 10157 # Use $CC to link under sequent, because it throws in some extra .o 10158 # files that make .init and .fini sections work. 10159 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10160 else 10161 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10162 fi 10163 hardcode_libdir_flag_spec='-L$libdir' 10164 hardcode_direct=yes 10165 hardcode_minus_L=yes 10166 hardcode_shlibpath_var=no 10167 ;; 10168 10169 sysv4) 10170 case $host_vendor in 10171 sni) 10172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10173 hardcode_direct=yes # is this really true??? 10174 ;; 10175 siemens) 10176 ## LD is ld it makes a PLAMLIB 10177 ## CC just makes a GrossModule. 10178 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10179 reload_cmds='$CC -r -o $output$reload_objs' 10180 hardcode_direct=no 10181 ;; 10182 motorola) 10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10184 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10185 ;; 10186 esac 10187 runpath_var='LD_RUN_PATH' 10188 hardcode_shlibpath_var=no 10189 ;; 10190 10191 sysv4.3*) 10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10193 hardcode_shlibpath_var=no 10194 export_dynamic_flag_spec='-Bexport' 10195 ;; 10196 10197 sysv4*MP*) 10198 if test -d /usr/nec; then 10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10200 hardcode_shlibpath_var=no 10201 runpath_var=LD_RUN_PATH 10202 hardcode_runpath_var=yes 10203 ld_shlibs=yes 10204 fi 10205 ;; 10206 10207 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10208 no_undefined_flag='${wl}-z,text' 10209 archive_cmds_need_lc=no 10210 hardcode_shlibpath_var=no 10211 runpath_var='LD_RUN_PATH' 10212 10213 if test "$GCC" = yes; then 10214 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10215 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10216 else 10217 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10218 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10219 fi 10220 ;; 10221 10222 sysv5* | sco3.2v5* | sco5v6*) 10223 # Note: We can NOT use -z defs as we might desire, because we do not 10224 # link with -lc, and that would cause any symbols used from libc to 10225 # always be unresolved, which means just about no library would 10226 # ever link correctly. If we're not using GNU ld we use -z text 10227 # though, which does catch some bad symbols but isn't as heavy-handed 10228 # as -z defs. 10229 no_undefined_flag='${wl}-z,text' 10230 allow_undefined_flag='${wl}-z,nodefs' 10231 archive_cmds_need_lc=no 10232 hardcode_shlibpath_var=no 10233 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10234 hardcode_libdir_separator=':' 10235 link_all_deplibs=yes 10236 export_dynamic_flag_spec='${wl}-Bexport' 10237 runpath_var='LD_RUN_PATH' 10238 10239 if test "$GCC" = yes; then 10240 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10241 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10242 else 10243 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10244 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10245 fi 10246 ;; 10247 10248 uts4*) 10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10250 hardcode_libdir_flag_spec='-L$libdir' 10251 hardcode_shlibpath_var=no 10252 ;; 10253 10254 *) 10255 ld_shlibs=no 10256 ;; 10257 esac 10258 10259 if test x$host_vendor = xsni; then 10260 case $host in 10261 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10262 export_dynamic_flag_spec='${wl}-Blargedynsym' 10263 ;; 10264 esac 10265 fi 10266 fi 10267 10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10269$as_echo "$ld_shlibs" >&6; } 10270test "$ld_shlibs" = no && can_build_shared=no 10271 10272with_gnu_ld=$with_gnu_ld 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288# 10289# Do we need to explicitly link libc? 10290# 10291case "x$archive_cmds_need_lc" in 10292x|xyes) 10293 # Assume -lc should be added 10294 archive_cmds_need_lc=yes 10295 10296 if test "$enable_shared" = yes && test "$GCC" = yes; then 10297 case $archive_cmds in 10298 *'~'*) 10299 # FIXME: we may have to deal with multi-command sequences. 10300 ;; 10301 '$CC '*) 10302 # Test whether the compiler implicitly links with -lc since on some 10303 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10304 # to ld, don't add -lc before -lgcc. 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10306$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10307 $RM conftest* 10308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10309 10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10311 (eval $ac_compile) 2>&5 10312 ac_status=$? 10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10314 test $ac_status = 0; } 2>conftest.err; then 10315 soname=conftest 10316 lib=conftest 10317 libobjs=conftest.$ac_objext 10318 deplibs= 10319 wl=$lt_prog_compiler_wl 10320 pic_flag=$lt_prog_compiler_pic 10321 compiler_flags=-v 10322 linker_flags=-v 10323 verstring= 10324 output_objdir=. 10325 libname=conftest 10326 lt_save_allow_undefined_flag=$allow_undefined_flag 10327 allow_undefined_flag= 10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10329 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10330 ac_status=$? 10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10332 test $ac_status = 0; } 10333 then 10334 archive_cmds_need_lc=no 10335 else 10336 archive_cmds_need_lc=yes 10337 fi 10338 allow_undefined_flag=$lt_save_allow_undefined_flag 10339 else 10340 cat conftest.err 1>&5 10341 fi 10342 $RM conftest* 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10344$as_echo "$archive_cmds_need_lc" >&6; } 10345 ;; 10346 esac 10347 fi 10348 ;; 10349esac 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10508$as_echo_n "checking dynamic linker characteristics... " >&6; } 10509 10510if test "$GCC" = yes; then 10511 case $host_os in 10512 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10513 *) lt_awk_arg="/^libraries:/" ;; 10514 esac 10515 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10516 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10517 # if the path contains ";" then we assume it to be the separator 10518 # otherwise default to the standard path separator (i.e. ":") - it is 10519 # assumed that no part of a normal pathname contains ";" but that should 10520 # okay in the real world where ";" in dirpaths is itself problematic. 10521 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10522 else 10523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10524 fi 10525 # Ok, now we have the path, separated by spaces, we can step through it 10526 # and add multilib dir if necessary. 10527 lt_tmp_lt_search_path_spec= 10528 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10529 for lt_sys_path in $lt_search_path_spec; do 10530 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10531 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10532 else 10533 test -d "$lt_sys_path" && \ 10534 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10535 fi 10536 done 10537 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10538BEGIN {RS=" "; FS="/|\n";} { 10539 lt_foo=""; 10540 lt_count=0; 10541 for (lt_i = NF; lt_i > 0; lt_i--) { 10542 if ($lt_i != "" && $lt_i != ".") { 10543 if ($lt_i == "..") { 10544 lt_count++; 10545 } else { 10546 if (lt_count == 0) { 10547 lt_foo="/" $lt_i lt_foo; 10548 } else { 10549 lt_count--; 10550 } 10551 } 10552 } 10553 } 10554 if (lt_foo != "") { lt_freq[lt_foo]++; } 10555 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10556}'` 10557 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10558else 10559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10560fi 10561library_names_spec= 10562libname_spec='lib$name' 10563soname_spec= 10564shrext_cmds=".so" 10565postinstall_cmds= 10566postuninstall_cmds= 10567finish_cmds= 10568finish_eval= 10569shlibpath_var= 10570shlibpath_overrides_runpath=unknown 10571version_type=none 10572dynamic_linker="$host_os ld.so" 10573sys_lib_dlsearch_path_spec="/lib /usr/lib" 10574need_lib_prefix=unknown 10575hardcode_into_libs=no 10576 10577# when you set need_version to no, make sure it does not cause -set_version 10578# flags to be left without arguments 10579need_version=unknown 10580 10581case $host_os in 10582aix3*) 10583 version_type=linux 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10585 shlibpath_var=LIBPATH 10586 10587 # AIX 3 has no versioning support, so we append a major version to the name. 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 ;; 10590 10591aix[4-9]*) 10592 version_type=linux 10593 need_lib_prefix=no 10594 need_version=no 10595 hardcode_into_libs=yes 10596 if test "$host_cpu" = ia64; then 10597 # AIX 5 supports IA64 10598 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10599 shlibpath_var=LD_LIBRARY_PATH 10600 else 10601 # With GCC up to 2.95.x, collect2 would create an import file 10602 # for dependence libraries. The import file would start with 10603 # the line `#! .'. This would cause the generated library to 10604 # depend on `.', always an invalid library. This was fixed in 10605 # development snapshots of GCC prior to 3.0. 10606 case $host_os in 10607 aix4 | aix4.[01] | aix4.[01].*) 10608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10609 echo ' yes ' 10610 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10611 : 10612 else 10613 can_build_shared=no 10614 fi 10615 ;; 10616 esac 10617 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10618 # soname into executable. Probably we can add versioning support to 10619 # collect2, so additional links can be useful in future. 10620 if test "$aix_use_runtimelinking" = yes; then 10621 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10622 # instead of lib<name>.a to let people know that these are not 10623 # typical AIX shared libraries. 10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10625 else 10626 # We preserve .a as extension for shared libraries through AIX4.2 10627 # and later when we are not doing run time linking. 10628 library_names_spec='${libname}${release}.a $libname.a' 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 fi 10631 shlibpath_var=LIBPATH 10632 fi 10633 ;; 10634 10635amigaos*) 10636 case $host_cpu in 10637 powerpc) 10638 # Since July 2007 AmigaOS4 officially supports .so libraries. 10639 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10641 ;; 10642 m68k) 10643 library_names_spec='$libname.ixlibrary $libname.a' 10644 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10645 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10646 ;; 10647 esac 10648 ;; 10649 10650beos*) 10651 library_names_spec='${libname}${shared_ext}' 10652 dynamic_linker="$host_os ld.so" 10653 shlibpath_var=LIBRARY_PATH 10654 ;; 10655 10656bsdi[45]*) 10657 version_type=linux 10658 need_version=no 10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10660 soname_spec='${libname}${release}${shared_ext}$major' 10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10662 shlibpath_var=LD_LIBRARY_PATH 10663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10665 # the default ld.so.conf also contains /usr/contrib/lib and 10666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10667 # libtool to hard-code these into programs 10668 ;; 10669 10670cygwin* | mingw* | pw32* | cegcc*) 10671 version_type=windows 10672 shrext_cmds=".dll" 10673 need_version=no 10674 need_lib_prefix=no 10675 10676 case $GCC,$host_os in 10677 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10678 library_names_spec='$libname.dll.a' 10679 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10680 postinstall_cmds='base_file=`basename \${file}`~ 10681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10682 dldir=$destdir/`dirname \$dlpath`~ 10683 test -d \$dldir || mkdir -p \$dldir~ 10684 $install_prog $dir/$dlname \$dldir/$dlname~ 10685 chmod a+x \$dldir/$dlname~ 10686 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10687 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10688 fi' 10689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10690 dlpath=$dir/\$dldll~ 10691 $RM \$dlpath' 10692 shlibpath_overrides_runpath=yes 10693 10694 case $host_os in 10695 cygwin*) 10696 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10697 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10698 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10699 ;; 10700 mingw* | cegcc*) 10701 # MinGW DLLs use traditional 'lib' prefix 10702 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10703 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10704 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10705 # It is most probably a Windows format PATH printed by 10706 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10707 # path with ; separators, and with drive letters. We can handle the 10708 # drive letters (cygwin fileutils understands them), so leave them, 10709 # especially as we might pass files found there to a mingw objdump, 10710 # which wouldn't understand a cygwinified path. Ahh. 10711 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10712 else 10713 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10714 fi 10715 ;; 10716 pw32*) 10717 # pw32 DLLs use 'pw' prefix rather than 'lib' 10718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10719 ;; 10720 esac 10721 ;; 10722 10723 *) 10724 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10725 ;; 10726 esac 10727 dynamic_linker='Win32 ld.exe' 10728 # FIXME: first we should search . and the directory the executable is in 10729 shlibpath_var=PATH 10730 ;; 10731 10732darwin* | rhapsody*) 10733 dynamic_linker="$host_os dyld" 10734 version_type=darwin 10735 need_lib_prefix=no 10736 need_version=no 10737 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10738 soname_spec='${libname}${release}${major}$shared_ext' 10739 shlibpath_overrides_runpath=yes 10740 shlibpath_var=DYLD_LIBRARY_PATH 10741 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10742 10743 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10745 ;; 10746 10747dgux*) 10748 version_type=linux 10749 need_lib_prefix=no 10750 need_version=no 10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10752 soname_spec='${libname}${release}${shared_ext}$major' 10753 shlibpath_var=LD_LIBRARY_PATH 10754 ;; 10755 10756freebsd1*) 10757 dynamic_linker=no 10758 ;; 10759 10760freebsd* | dragonfly*) 10761 # DragonFly does not have aout. When/if they implement a new 10762 # versioning mechanism, adjust this. 10763 if test -x /usr/bin/objformat; then 10764 objformat=`/usr/bin/objformat` 10765 else 10766 case $host_os in 10767 freebsd[123]*) objformat=aout ;; 10768 *) objformat=elf ;; 10769 esac 10770 fi 10771 version_type=freebsd-$objformat 10772 case $version_type in 10773 freebsd-elf*) 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10775 need_version=no 10776 need_lib_prefix=no 10777 ;; 10778 freebsd-*) 10779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10780 need_version=yes 10781 ;; 10782 esac 10783 shlibpath_var=LD_LIBRARY_PATH 10784 case $host_os in 10785 freebsd2*) 10786 shlibpath_overrides_runpath=yes 10787 ;; 10788 freebsd3.[01]* | freebsdelf3.[01]*) 10789 shlibpath_overrides_runpath=yes 10790 hardcode_into_libs=yes 10791 ;; 10792 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10793 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10794 shlibpath_overrides_runpath=no 10795 hardcode_into_libs=yes 10796 ;; 10797 *) # from 4.6 on, and DragonFly 10798 shlibpath_overrides_runpath=yes 10799 hardcode_into_libs=yes 10800 ;; 10801 esac 10802 ;; 10803 10804gnu*) 10805 version_type=linux 10806 need_lib_prefix=no 10807 need_version=no 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10809 soname_spec='${libname}${release}${shared_ext}$major' 10810 shlibpath_var=LD_LIBRARY_PATH 10811 hardcode_into_libs=yes 10812 ;; 10813 10814hpux9* | hpux10* | hpux11*) 10815 # Give a soname corresponding to the major version so that dld.sl refuses to 10816 # link against other versions. 10817 version_type=sunos 10818 need_lib_prefix=no 10819 need_version=no 10820 case $host_cpu in 10821 ia64*) 10822 shrext_cmds='.so' 10823 hardcode_into_libs=yes 10824 dynamic_linker="$host_os dld.so" 10825 shlibpath_var=LD_LIBRARY_PATH 10826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10828 soname_spec='${libname}${release}${shared_ext}$major' 10829 if test "X$HPUX_IA64_MODE" = X32; then 10830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10831 else 10832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10833 fi 10834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10835 ;; 10836 hppa*64*) 10837 shrext_cmds='.sl' 10838 hardcode_into_libs=yes 10839 dynamic_linker="$host_os dld.sl" 10840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10843 soname_spec='${libname}${release}${shared_ext}$major' 10844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10846 ;; 10847 *) 10848 shrext_cmds='.sl' 10849 dynamic_linker="$host_os dld.sl" 10850 shlibpath_var=SHLIB_PATH 10851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10853 soname_spec='${libname}${release}${shared_ext}$major' 10854 ;; 10855 esac 10856 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10857 postinstall_cmds='chmod 555 $lib' 10858 ;; 10859 10860interix[3-9]*) 10861 version_type=linux 10862 need_lib_prefix=no 10863 need_version=no 10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10865 soname_spec='${libname}${release}${shared_ext}$major' 10866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10867 shlibpath_var=LD_LIBRARY_PATH 10868 shlibpath_overrides_runpath=no 10869 hardcode_into_libs=yes 10870 ;; 10871 10872irix5* | irix6* | nonstopux*) 10873 case $host_os in 10874 nonstopux*) version_type=nonstopux ;; 10875 *) 10876 if test "$lt_cv_prog_gnu_ld" = yes; then 10877 version_type=linux 10878 else 10879 version_type=irix 10880 fi ;; 10881 esac 10882 need_lib_prefix=no 10883 need_version=no 10884 soname_spec='${libname}${release}${shared_ext}$major' 10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10886 case $host_os in 10887 irix5* | nonstopux*) 10888 libsuff= shlibsuff= 10889 ;; 10890 *) 10891 case $LD in # libtool.m4 will add one of these switches to LD 10892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10893 libsuff= shlibsuff= libmagic=32-bit;; 10894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10895 libsuff=32 shlibsuff=N32 libmagic=N32;; 10896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10897 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10898 *) libsuff= shlibsuff= libmagic=never-match;; 10899 esac 10900 ;; 10901 esac 10902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10903 shlibpath_overrides_runpath=no 10904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10906 hardcode_into_libs=yes 10907 ;; 10908 10909# No shared lib support for Linux oldld, aout, or coff. 10910linux*oldld* | linux*aout* | linux*coff*) 10911 dynamic_linker=no 10912 ;; 10913 10914# This must be Linux ELF. 10915linux* | k*bsd*-gnu | kopensolaris*-gnu) 10916 version_type=linux 10917 need_lib_prefix=no 10918 need_version=no 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10920 soname_spec='${libname}${release}${shared_ext}$major' 10921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10922 shlibpath_var=LD_LIBRARY_PATH 10923 shlibpath_overrides_runpath=no 10924 # Some binutils ld are patched to set DT_RUNPATH 10925 save_LDFLAGS=$LDFLAGS 10926 save_libdir=$libdir 10927 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10928 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10930/* end confdefs.h. */ 10931 10932int 10933main () 10934{ 10935 10936 ; 10937 return 0; 10938} 10939_ACEOF 10940if ac_fn_c_try_link "$LINENO"; then : 10941 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10942 shlibpath_overrides_runpath=yes 10943fi 10944fi 10945rm -f core conftest.err conftest.$ac_objext \ 10946 conftest$ac_exeext conftest.$ac_ext 10947 LDFLAGS=$save_LDFLAGS 10948 libdir=$save_libdir 10949 10950 # This implies no fast_install, which is unacceptable. 10951 # Some rework will be needed to allow for fast_install 10952 # before this can be enabled. 10953 hardcode_into_libs=yes 10954 10955 # Append ld.so.conf contents to the search path 10956 if test -f /etc/ld.so.conf; then 10957 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10959 fi 10960 10961 # We used to test for /lib/ld.so.1 and disable shared libraries on 10962 # powerpc, because MkLinux only supported shared libraries with the 10963 # GNU dynamic linker. Since this was broken with cross compilers, 10964 # most powerpc-linux boxes support dynamic linking these days and 10965 # people can always --disable-shared, the test was removed, and we 10966 # assume the GNU/Linux dynamic linker is in use. 10967 dynamic_linker='GNU/Linux ld.so' 10968 ;; 10969 10970netbsdelf*-gnu) 10971 version_type=linux 10972 need_lib_prefix=no 10973 need_version=no 10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10975 soname_spec='${libname}${release}${shared_ext}$major' 10976 shlibpath_var=LD_LIBRARY_PATH 10977 shlibpath_overrides_runpath=no 10978 hardcode_into_libs=yes 10979 dynamic_linker='NetBSD ld.elf_so' 10980 ;; 10981 10982netbsd*) 10983 version_type=sunos 10984 need_lib_prefix=no 10985 need_version=no 10986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10989 dynamic_linker='NetBSD (a.out) ld.so' 10990 else 10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10992 soname_spec='${libname}${release}${shared_ext}$major' 10993 dynamic_linker='NetBSD ld.elf_so' 10994 fi 10995 shlibpath_var=LD_LIBRARY_PATH 10996 shlibpath_overrides_runpath=yes 10997 hardcode_into_libs=yes 10998 ;; 10999 11000newsos6) 11001 version_type=linux 11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11003 shlibpath_var=LD_LIBRARY_PATH 11004 shlibpath_overrides_runpath=yes 11005 ;; 11006 11007*nto* | *qnx*) 11008 version_type=qnx 11009 need_lib_prefix=no 11010 need_version=no 11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11012 soname_spec='${libname}${release}${shared_ext}$major' 11013 shlibpath_var=LD_LIBRARY_PATH 11014 shlibpath_overrides_runpath=no 11015 hardcode_into_libs=yes 11016 dynamic_linker='ldqnx.so' 11017 ;; 11018 11019openbsd*) 11020 version_type=sunos 11021 sys_lib_dlsearch_path_spec="/usr/lib" 11022 need_lib_prefix=no 11023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11024 case $host_os in 11025 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11026 *) need_version=no ;; 11027 esac 11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11030 shlibpath_var=LD_LIBRARY_PATH 11031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11032 case $host_os in 11033 openbsd2.[89] | openbsd2.[89].*) 11034 shlibpath_overrides_runpath=no 11035 ;; 11036 *) 11037 shlibpath_overrides_runpath=yes 11038 ;; 11039 esac 11040 else 11041 shlibpath_overrides_runpath=yes 11042 fi 11043 ;; 11044 11045os2*) 11046 libname_spec='$name' 11047 shrext_cmds=".dll" 11048 need_lib_prefix=no 11049 library_names_spec='$libname${shared_ext} $libname.a' 11050 dynamic_linker='OS/2 ld.exe' 11051 shlibpath_var=LIBPATH 11052 ;; 11053 11054osf3* | osf4* | osf5*) 11055 version_type=osf 11056 need_lib_prefix=no 11057 need_version=no 11058 soname_spec='${libname}${release}${shared_ext}$major' 11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11060 shlibpath_var=LD_LIBRARY_PATH 11061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11063 ;; 11064 11065rdos*) 11066 dynamic_linker=no 11067 ;; 11068 11069solaris*) 11070 version_type=linux 11071 need_lib_prefix=no 11072 need_version=no 11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11074 soname_spec='${libname}${release}${shared_ext}$major' 11075 shlibpath_var=LD_LIBRARY_PATH 11076 shlibpath_overrides_runpath=yes 11077 hardcode_into_libs=yes 11078 # ldd complains unless libraries are executable 11079 postinstall_cmds='chmod +x $lib' 11080 ;; 11081 11082sunos4*) 11083 version_type=sunos 11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11086 shlibpath_var=LD_LIBRARY_PATH 11087 shlibpath_overrides_runpath=yes 11088 if test "$with_gnu_ld" = yes; then 11089 need_lib_prefix=no 11090 fi 11091 need_version=yes 11092 ;; 11093 11094sysv4 | sysv4.3*) 11095 version_type=linux 11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11097 soname_spec='${libname}${release}${shared_ext}$major' 11098 shlibpath_var=LD_LIBRARY_PATH 11099 case $host_vendor in 11100 sni) 11101 shlibpath_overrides_runpath=no 11102 need_lib_prefix=no 11103 runpath_var=LD_RUN_PATH 11104 ;; 11105 siemens) 11106 need_lib_prefix=no 11107 ;; 11108 motorola) 11109 need_lib_prefix=no 11110 need_version=no 11111 shlibpath_overrides_runpath=no 11112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11113 ;; 11114 esac 11115 ;; 11116 11117sysv4*MP*) 11118 if test -d /usr/nec ;then 11119 version_type=linux 11120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11121 soname_spec='$libname${shared_ext}.$major' 11122 shlibpath_var=LD_LIBRARY_PATH 11123 fi 11124 ;; 11125 11126sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11127 version_type=freebsd-elf 11128 need_lib_prefix=no 11129 need_version=no 11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11131 soname_spec='${libname}${release}${shared_ext}$major' 11132 shlibpath_var=LD_LIBRARY_PATH 11133 shlibpath_overrides_runpath=yes 11134 hardcode_into_libs=yes 11135 if test "$with_gnu_ld" = yes; then 11136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11137 else 11138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11139 case $host_os in 11140 sco3.2v5*) 11141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11142 ;; 11143 esac 11144 fi 11145 sys_lib_dlsearch_path_spec='/usr/lib' 11146 ;; 11147 11148tpf*) 11149 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11150 version_type=linux 11151 need_lib_prefix=no 11152 need_version=no 11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11154 shlibpath_var=LD_LIBRARY_PATH 11155 shlibpath_overrides_runpath=no 11156 hardcode_into_libs=yes 11157 ;; 11158 11159uts4*) 11160 version_type=linux 11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11162 soname_spec='${libname}${release}${shared_ext}$major' 11163 shlibpath_var=LD_LIBRARY_PATH 11164 ;; 11165 11166*) 11167 dynamic_linker=no 11168 ;; 11169esac 11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11171$as_echo "$dynamic_linker" >&6; } 11172test "$dynamic_linker" = no && can_build_shared=no 11173 11174variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11175if test "$GCC" = yes; then 11176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11177fi 11178 11179if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11180 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11181fi 11182if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11183 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11184fi 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11273$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11274hardcode_action= 11275if test -n "$hardcode_libdir_flag_spec" || 11276 test -n "$runpath_var" || 11277 test "X$hardcode_automatic" = "Xyes" ; then 11278 11279 # We can hardcode non-existent directories. 11280 if test "$hardcode_direct" != no && 11281 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11282 # have to relink, otherwise we might link with an installed library 11283 # when we should be linking with a yet-to-be-installed one 11284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11285 test "$hardcode_minus_L" != no; then 11286 # Linking always hardcodes the temporary library directory. 11287 hardcode_action=relink 11288 else 11289 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11290 hardcode_action=immediate 11291 fi 11292else 11293 # We cannot hardcode anything, or else we can only hardcode existing 11294 # directories. 11295 hardcode_action=unsupported 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11298$as_echo "$hardcode_action" >&6; } 11299 11300if test "$hardcode_action" = relink || 11301 test "$inherit_rpath" = yes; then 11302 # Fast installation is not supported 11303 enable_fast_install=no 11304elif test "$shlibpath_overrides_runpath" = yes || 11305 test "$enable_shared" = no; then 11306 # Fast installation is not necessary 11307 enable_fast_install=needless 11308fi 11309 11310 11311 11312 11313 11314 11315 if test "x$enable_dlopen" != xyes; then 11316 enable_dlopen=unknown 11317 enable_dlopen_self=unknown 11318 enable_dlopen_self_static=unknown 11319else 11320 lt_cv_dlopen=no 11321 lt_cv_dlopen_libs= 11322 11323 case $host_os in 11324 beos*) 11325 lt_cv_dlopen="load_add_on" 11326 lt_cv_dlopen_libs= 11327 lt_cv_dlopen_self=yes 11328 ;; 11329 11330 mingw* | pw32* | cegcc*) 11331 lt_cv_dlopen="LoadLibrary" 11332 lt_cv_dlopen_libs= 11333 ;; 11334 11335 cygwin*) 11336 lt_cv_dlopen="dlopen" 11337 lt_cv_dlopen_libs= 11338 ;; 11339 11340 darwin*) 11341 # if libdl is installed we need to link against it 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11343$as_echo_n "checking for dlopen in -ldl... " >&6; } 11344if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11345 $as_echo_n "(cached) " >&6 11346else 11347 ac_check_lib_save_LIBS=$LIBS 11348LIBS="-ldl $LIBS" 11349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351 11352/* Override any GCC internal prototype to avoid an error. 11353 Use char because int might match the return type of a GCC 11354 builtin and then its argument prototype would still apply. */ 11355#ifdef __cplusplus 11356extern "C" 11357#endif 11358char dlopen (); 11359int 11360main () 11361{ 11362return dlopen (); 11363 ; 11364 return 0; 11365} 11366_ACEOF 11367if ac_fn_c_try_link "$LINENO"; then : 11368 ac_cv_lib_dl_dlopen=yes 11369else 11370 ac_cv_lib_dl_dlopen=no 11371fi 11372rm -f core conftest.err conftest.$ac_objext \ 11373 conftest$ac_exeext conftest.$ac_ext 11374LIBS=$ac_check_lib_save_LIBS 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11377$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11378if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11380else 11381 11382 lt_cv_dlopen="dyld" 11383 lt_cv_dlopen_libs= 11384 lt_cv_dlopen_self=yes 11385 11386fi 11387 11388 ;; 11389 11390 *) 11391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11392if test "x$ac_cv_func_shl_load" = x""yes; then : 11393 lt_cv_dlopen="shl_load" 11394else 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11396$as_echo_n "checking for shl_load in -ldld... " >&6; } 11397if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11398 $as_echo_n "(cached) " >&6 11399else 11400 ac_check_lib_save_LIBS=$LIBS 11401LIBS="-ldld $LIBS" 11402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11403/* end confdefs.h. */ 11404 11405/* Override any GCC internal prototype to avoid an error. 11406 Use char because int might match the return type of a GCC 11407 builtin and then its argument prototype would still apply. */ 11408#ifdef __cplusplus 11409extern "C" 11410#endif 11411char shl_load (); 11412int 11413main () 11414{ 11415return shl_load (); 11416 ; 11417 return 0; 11418} 11419_ACEOF 11420if ac_fn_c_try_link "$LINENO"; then : 11421 ac_cv_lib_dld_shl_load=yes 11422else 11423 ac_cv_lib_dld_shl_load=no 11424fi 11425rm -f core conftest.err conftest.$ac_objext \ 11426 conftest$ac_exeext conftest.$ac_ext 11427LIBS=$ac_check_lib_save_LIBS 11428fi 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11430$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11431if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11433else 11434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11435if test "x$ac_cv_func_dlopen" = x""yes; then : 11436 lt_cv_dlopen="dlopen" 11437else 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11439$as_echo_n "checking for dlopen in -ldl... " >&6; } 11440if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11441 $as_echo_n "(cached) " >&6 11442else 11443 ac_check_lib_save_LIBS=$LIBS 11444LIBS="-ldl $LIBS" 11445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446/* end confdefs.h. */ 11447 11448/* Override any GCC internal prototype to avoid an error. 11449 Use char because int might match the return type of a GCC 11450 builtin and then its argument prototype would still apply. */ 11451#ifdef __cplusplus 11452extern "C" 11453#endif 11454char dlopen (); 11455int 11456main () 11457{ 11458return dlopen (); 11459 ; 11460 return 0; 11461} 11462_ACEOF 11463if ac_fn_c_try_link "$LINENO"; then : 11464 ac_cv_lib_dl_dlopen=yes 11465else 11466 ac_cv_lib_dl_dlopen=no 11467fi 11468rm -f core conftest.err conftest.$ac_objext \ 11469 conftest$ac_exeext conftest.$ac_ext 11470LIBS=$ac_check_lib_save_LIBS 11471fi 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11473$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11474if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11476else 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11478$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11479if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11480 $as_echo_n "(cached) " >&6 11481else 11482 ac_check_lib_save_LIBS=$LIBS 11483LIBS="-lsvld $LIBS" 11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11485/* end confdefs.h. */ 11486 11487/* Override any GCC internal prototype to avoid an error. 11488 Use char because int might match the return type of a GCC 11489 builtin and then its argument prototype would still apply. */ 11490#ifdef __cplusplus 11491extern "C" 11492#endif 11493char dlopen (); 11494int 11495main () 11496{ 11497return dlopen (); 11498 ; 11499 return 0; 11500} 11501_ACEOF 11502if ac_fn_c_try_link "$LINENO"; then : 11503 ac_cv_lib_svld_dlopen=yes 11504else 11505 ac_cv_lib_svld_dlopen=no 11506fi 11507rm -f core conftest.err conftest.$ac_objext \ 11508 conftest$ac_exeext conftest.$ac_ext 11509LIBS=$ac_check_lib_save_LIBS 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11512$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11513if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11515else 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11517$as_echo_n "checking for dld_link in -ldld... " >&6; } 11518if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11519 $as_echo_n "(cached) " >&6 11520else 11521 ac_check_lib_save_LIBS=$LIBS 11522LIBS="-ldld $LIBS" 11523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11524/* end confdefs.h. */ 11525 11526/* Override any GCC internal prototype to avoid an error. 11527 Use char because int might match the return type of a GCC 11528 builtin and then its argument prototype would still apply. */ 11529#ifdef __cplusplus 11530extern "C" 11531#endif 11532char dld_link (); 11533int 11534main () 11535{ 11536return dld_link (); 11537 ; 11538 return 0; 11539} 11540_ACEOF 11541if ac_fn_c_try_link "$LINENO"; then : 11542 ac_cv_lib_dld_dld_link=yes 11543else 11544 ac_cv_lib_dld_dld_link=no 11545fi 11546rm -f core conftest.err conftest.$ac_objext \ 11547 conftest$ac_exeext conftest.$ac_ext 11548LIBS=$ac_check_lib_save_LIBS 11549fi 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11551$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11552if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11554fi 11555 11556 11557fi 11558 11559 11560fi 11561 11562 11563fi 11564 11565 11566fi 11567 11568 11569fi 11570 11571 ;; 11572 esac 11573 11574 if test "x$lt_cv_dlopen" != xno; then 11575 enable_dlopen=yes 11576 else 11577 enable_dlopen=no 11578 fi 11579 11580 case $lt_cv_dlopen in 11581 dlopen) 11582 save_CPPFLAGS="$CPPFLAGS" 11583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11584 11585 save_LDFLAGS="$LDFLAGS" 11586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11587 11588 save_LIBS="$LIBS" 11589 LIBS="$lt_cv_dlopen_libs $LIBS" 11590 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11592$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11593if test "${lt_cv_dlopen_self+set}" = set; then : 11594 $as_echo_n "(cached) " >&6 11595else 11596 if test "$cross_compiling" = yes; then : 11597 lt_cv_dlopen_self=cross 11598else 11599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11600 lt_status=$lt_dlunknown 11601 cat > conftest.$ac_ext <<_LT_EOF 11602#line 11602 "configure" 11603#include "confdefs.h" 11604 11605#if HAVE_DLFCN_H 11606#include <dlfcn.h> 11607#endif 11608 11609#include <stdio.h> 11610 11611#ifdef RTLD_GLOBAL 11612# define LT_DLGLOBAL RTLD_GLOBAL 11613#else 11614# ifdef DL_GLOBAL 11615# define LT_DLGLOBAL DL_GLOBAL 11616# else 11617# define LT_DLGLOBAL 0 11618# endif 11619#endif 11620 11621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11622 find out it does not work in some platform. */ 11623#ifndef LT_DLLAZY_OR_NOW 11624# ifdef RTLD_LAZY 11625# define LT_DLLAZY_OR_NOW RTLD_LAZY 11626# else 11627# ifdef DL_LAZY 11628# define LT_DLLAZY_OR_NOW DL_LAZY 11629# else 11630# ifdef RTLD_NOW 11631# define LT_DLLAZY_OR_NOW RTLD_NOW 11632# else 11633# ifdef DL_NOW 11634# define LT_DLLAZY_OR_NOW DL_NOW 11635# else 11636# define LT_DLLAZY_OR_NOW 0 11637# endif 11638# endif 11639# endif 11640# endif 11641#endif 11642 11643void fnord() { int i=42;} 11644int main () 11645{ 11646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11647 int status = $lt_dlunknown; 11648 11649 if (self) 11650 { 11651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11653 /* dlclose (self); */ 11654 } 11655 else 11656 puts (dlerror ()); 11657 11658 return status; 11659} 11660_LT_EOF 11661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11662 (eval $ac_link) 2>&5 11663 ac_status=$? 11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11665 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11666 (./conftest; exit; ) >&5 2>/dev/null 11667 lt_status=$? 11668 case x$lt_status in 11669 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11670 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11671 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11672 esac 11673 else : 11674 # compilation failed 11675 lt_cv_dlopen_self=no 11676 fi 11677fi 11678rm -fr conftest* 11679 11680 11681fi 11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11683$as_echo "$lt_cv_dlopen_self" >&6; } 11684 11685 if test "x$lt_cv_dlopen_self" = xyes; then 11686 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11688$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11689if test "${lt_cv_dlopen_self_static+set}" = set; then : 11690 $as_echo_n "(cached) " >&6 11691else 11692 if test "$cross_compiling" = yes; then : 11693 lt_cv_dlopen_self_static=cross 11694else 11695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11696 lt_status=$lt_dlunknown 11697 cat > conftest.$ac_ext <<_LT_EOF 11698#line 11698 "configure" 11699#include "confdefs.h" 11700 11701#if HAVE_DLFCN_H 11702#include <dlfcn.h> 11703#endif 11704 11705#include <stdio.h> 11706 11707#ifdef RTLD_GLOBAL 11708# define LT_DLGLOBAL RTLD_GLOBAL 11709#else 11710# ifdef DL_GLOBAL 11711# define LT_DLGLOBAL DL_GLOBAL 11712# else 11713# define LT_DLGLOBAL 0 11714# endif 11715#endif 11716 11717/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11718 find out it does not work in some platform. */ 11719#ifndef LT_DLLAZY_OR_NOW 11720# ifdef RTLD_LAZY 11721# define LT_DLLAZY_OR_NOW RTLD_LAZY 11722# else 11723# ifdef DL_LAZY 11724# define LT_DLLAZY_OR_NOW DL_LAZY 11725# else 11726# ifdef RTLD_NOW 11727# define LT_DLLAZY_OR_NOW RTLD_NOW 11728# else 11729# ifdef DL_NOW 11730# define LT_DLLAZY_OR_NOW DL_NOW 11731# else 11732# define LT_DLLAZY_OR_NOW 0 11733# endif 11734# endif 11735# endif 11736# endif 11737#endif 11738 11739void fnord() { int i=42;} 11740int main () 11741{ 11742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11743 int status = $lt_dlunknown; 11744 11745 if (self) 11746 { 11747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11748 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11749 /* dlclose (self); */ 11750 } 11751 else 11752 puts (dlerror ()); 11753 11754 return status; 11755} 11756_LT_EOF 11757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11758 (eval $ac_link) 2>&5 11759 ac_status=$? 11760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11762 (./conftest; exit; ) >&5 2>/dev/null 11763 lt_status=$? 11764 case x$lt_status in 11765 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11766 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11767 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11768 esac 11769 else : 11770 # compilation failed 11771 lt_cv_dlopen_self_static=no 11772 fi 11773fi 11774rm -fr conftest* 11775 11776 11777fi 11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11779$as_echo "$lt_cv_dlopen_self_static" >&6; } 11780 fi 11781 11782 CPPFLAGS="$save_CPPFLAGS" 11783 LDFLAGS="$save_LDFLAGS" 11784 LIBS="$save_LIBS" 11785 ;; 11786 esac 11787 11788 case $lt_cv_dlopen_self in 11789 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11790 *) enable_dlopen_self=unknown ;; 11791 esac 11792 11793 case $lt_cv_dlopen_self_static in 11794 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11795 *) enable_dlopen_self_static=unknown ;; 11796 esac 11797fi 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815striplib= 11816old_striplib= 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11818$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11819if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11821 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11823$as_echo "yes" >&6; } 11824else 11825# FIXME - insert some real tests, host_os isn't really good enough 11826 case $host_os in 11827 darwin*) 11828 if test -n "$STRIP" ; then 11829 striplib="$STRIP -x" 11830 old_striplib="$STRIP -S" 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11832$as_echo "yes" >&6; } 11833 else 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11835$as_echo "no" >&6; } 11836 fi 11837 ;; 11838 *) 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11840$as_echo "no" >&6; } 11841 ;; 11842 esac 11843fi 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 # Report which library types will actually be built 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11858$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11860$as_echo "$can_build_shared" >&6; } 11861 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11863$as_echo_n "checking whether to build shared libraries... " >&6; } 11864 test "$can_build_shared" = "no" && enable_shared=no 11865 11866 # On AIX, shared libraries and static libraries use the same namespace, and 11867 # are all built from PIC. 11868 case $host_os in 11869 aix3*) 11870 test "$enable_shared" = yes && enable_static=no 11871 if test -n "$RANLIB"; then 11872 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11873 postinstall_cmds='$RANLIB $lib' 11874 fi 11875 ;; 11876 11877 aix[4-9]*) 11878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11879 test "$enable_shared" = yes && enable_static=no 11880 fi 11881 ;; 11882 esac 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11884$as_echo "$enable_shared" >&6; } 11885 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11887$as_echo_n "checking whether to build static libraries... " >&6; } 11888 # Make sure either enable_shared or enable_static is yes. 11889 test "$enable_shared" = yes || enable_static=yes 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11891$as_echo "$enable_static" >&6; } 11892 11893 11894 11895 11896fi 11897ac_ext=c 11898ac_cpp='$CPP $CPPFLAGS' 11899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11901ac_compiler_gnu=$ac_cv_c_compiler_gnu 11902 11903CC="$lt_save_CC" 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 ac_config_commands="$ac_config_commands libtool" 11918 11919 11920 11921 11922# Only expand once: 11923 11924 11925 11926 11927# dolt, a replacement for libtool 11928# Josh Triplett <josh@freedesktop.org> 11929# Extract the first word of "bash", so it can be a program name with args. 11930set dummy bash; ac_word=$2 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11932$as_echo_n "checking for $ac_word... " >&6; } 11933if test "${ac_cv_path_DOLT_BASH+set}" = set; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 case $DOLT_BASH in 11937 [\\/]* | ?:[\\/]*) 11938 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path. 11939 ;; 11940 *) 11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11942for as_dir in $PATH 11943do 11944 IFS=$as_save_IFS 11945 test -z "$as_dir" && as_dir=. 11946 for ac_exec_ext in '' $ac_executable_extensions; do 11947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11948 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext" 11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11950 break 2 11951 fi 11952done 11953 done 11954IFS=$as_save_IFS 11955 11956 ;; 11957esac 11958fi 11959DOLT_BASH=$ac_cv_path_DOLT_BASH 11960if test -n "$DOLT_BASH"; then 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5 11962$as_echo "$DOLT_BASH" >&6; } 11963else 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11965$as_echo "no" >&6; } 11966fi 11967 11968 11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5 11970$as_echo_n "checking if dolt supports this host... " >&6; } 11971dolt_supported=yes 11972if test x$DOLT_BASH = x; then 11973 dolt_supported=no 11974fi 11975if test x$GCC != xyes; then 11976 dolt_supported=no 11977fi 11978case $host in 11979i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \ 11980|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) 11981 pic_options='-fPIC' 11982 ;; 11983i?86-pc-cygwin*) 11984 pic_options='-DDLL_EXPORT' 11985 ;; 11986i?86-apple-darwin*) 11987 pic_options='-fno-common' 11988 ;; 11989*) 11990 dolt_supported=no 11991 ;; 11992esac 11993if test x$dolt_supported = xno ; then 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5 11995$as_echo "no, falling back to libtool" >&6; } 11996 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)' 11997 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)' 11998else 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5 12000$as_echo "yes, replacing libtool" >&6; } 12001 12002 cat <<__DOLTCOMPILE__EOF__ >doltcompile 12003#!$DOLT_BASH 12004__DOLTCOMPILE__EOF__ 12005 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12006args=("$@") 12007for ((arg=0; arg<${#args[@]}; arg++)) ; do 12008 if test x"${args[$arg]}" = x-o ; then 12009 objarg=$((arg+1)) 12010 break 12011 fi 12012done 12013if test x$objarg = x ; then 12014 echo 'Error: no -o on compiler command line' 1>&2 12015 exit 1 12016fi 12017lo="${args[$objarg]}" 12018obj="${lo%.lo}" 12019if test x"$lo" = x"$obj" ; then 12020 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2 12021 exit 1 12022fi 12023objbase="${obj##*/}" 12024__DOLTCOMPILE__EOF__ 12025 12026 if test x$enable_shared = xyes; then 12027 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12028libobjdir="${obj%$objbase}.libs" 12029if test ! -d "$libobjdir" ; then 12030 mkdir_out="$(mkdir "$libobjdir" 2>&1)" 12031 mkdir_ret=$? 12032 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then 12033 echo "$mkdir_out" 1>&2 12034 exit $mkdir_ret 12035 fi 12036fi 12037pic_object="$libobjdir/$objbase.o" 12038args[$objarg]="$pic_object" 12039__DOLTCOMPILE__EOF__ 12040 cat <<__DOLTCOMPILE__EOF__ >>doltcompile 12041"\${args[@]}" $pic_options -DPIC || exit \$? 12042__DOLTCOMPILE__EOF__ 12043 fi 12044 12045 if test x$enable_static = xyes; then 12046 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12047non_pic_object="$obj.o" 12048args[$objarg]="$non_pic_object" 12049__DOLTCOMPILE__EOF__ 12050 if test x$enable_shared = xyes; then 12051 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12052"${args[@]}" >/dev/null 2>&1 || exit $? 12053__DOLTCOMPILE__EOF__ 12054 else 12055 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12056"${args[@]}" || exit $? 12057__DOLTCOMPILE__EOF__ 12058 fi 12059 fi 12060 12061 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12062{ 12063echo "# $lo - a libtool object file" 12064echo "# Generated by doltcompile, not libtool" 12065__DOLTCOMPILE__EOF__ 12066 12067 if test x$enable_shared = xyes; then 12068 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12069echo "pic_object='.libs/${objbase}.o'" 12070__DOLTCOMPILE__EOF__ 12071 else 12072 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12073echo pic_object=none 12074__DOLTCOMPILE__EOF__ 12075 fi 12076 12077 if test x$enable_static = xyes; then 12078 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12079echo "non_pic_object='${objbase}.o'" 12080__DOLTCOMPILE__EOF__ 12081 else 12082 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12083echo non_pic_object=none 12084__DOLTCOMPILE__EOF__ 12085 fi 12086 12087 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 12088} > "$lo" 12089__DOLTCOMPILE__EOF__ 12090 12091 chmod +x doltcompile 12092 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' 12093 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' 12094 12095 cat <<__DOLTLIBTOOL__EOF__ > doltlibtool 12096#!$DOLT_BASH 12097__DOLTLIBTOOL__EOF__ 12098 cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool 12099top_builddir_slash="${0%%doltlibtool}" 12100: ${top_builddir_slash:=./} 12101args=() 12102modeok=false 12103tagok=false 12104for arg in "$@"; do 12105 case "$arg" in 12106 --mode=compile) modeok=true ;; 12107 --tag=CC|--tag=CXX) tagok=true ;; 12108 *) args[${#args[@]}]="$arg" ;; 12109 esac 12110done 12111if $modeok && $tagok ; then 12112 . ${top_builddir_slash}doltcompile "${args[@]}" 12113else 12114 exec ${top_builddir_slash}libtool "$@" 12115fi 12116__DOLTLIBTOOL__EOF__ 12117 12118 chmod +x doltlibtool 12119 LIBTOOL='$(top_builddir)/doltlibtool' 12120fi 12121 12122 12123# end dolt 12124 12125ac_ext=c 12126ac_cpp='$CPP $CPPFLAGS' 12127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12129ac_compiler_gnu=$ac_cv_c_compiler_gnu 12130if test -n "$ac_tool_prefix"; then 12131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12132set dummy ${ac_tool_prefix}gcc; ac_word=$2 12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12134$as_echo_n "checking for $ac_word... " >&6; } 12135if test "${ac_cv_prog_CC+set}" = set; then : 12136 $as_echo_n "(cached) " >&6 12137else 12138 if test -n "$CC"; then 12139 ac_cv_prog_CC="$CC" # Let the user override the test. 12140else 12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12142for as_dir in $PATH 12143do 12144 IFS=$as_save_IFS 12145 test -z "$as_dir" && as_dir=. 12146 for ac_exec_ext in '' $ac_executable_extensions; do 12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12148 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12150 break 2 12151 fi 12152done 12153 done 12154IFS=$as_save_IFS 12155 12156fi 12157fi 12158CC=$ac_cv_prog_CC 12159if test -n "$CC"; then 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12161$as_echo "$CC" >&6; } 12162else 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12164$as_echo "no" >&6; } 12165fi 12166 12167 12168fi 12169if test -z "$ac_cv_prog_CC"; then 12170 ac_ct_CC=$CC 12171 # Extract the first word of "gcc", so it can be a program name with args. 12172set dummy gcc; ac_word=$2 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12174$as_echo_n "checking for $ac_word... " >&6; } 12175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 12176 $as_echo_n "(cached) " >&6 12177else 12178 if test -n "$ac_ct_CC"; then 12179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12180else 12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12182for as_dir in $PATH 12183do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_exec_ext in '' $ac_executable_extensions; do 12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12188 ac_cv_prog_ac_ct_CC="gcc" 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12190 break 2 12191 fi 12192done 12193 done 12194IFS=$as_save_IFS 12195 12196fi 12197fi 12198ac_ct_CC=$ac_cv_prog_ac_ct_CC 12199if test -n "$ac_ct_CC"; then 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12201$as_echo "$ac_ct_CC" >&6; } 12202else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204$as_echo "no" >&6; } 12205fi 12206 12207 if test "x$ac_ct_CC" = x; then 12208 CC="" 12209 else 12210 case $cross_compiling:$ac_tool_warned in 12211yes:) 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12214ac_tool_warned=yes ;; 12215esac 12216 CC=$ac_ct_CC 12217 fi 12218else 12219 CC="$ac_cv_prog_CC" 12220fi 12221 12222if test -z "$CC"; then 12223 if test -n "$ac_tool_prefix"; then 12224 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12225set dummy ${ac_tool_prefix}cc; ac_word=$2 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12227$as_echo_n "checking for $ac_word... " >&6; } 12228if test "${ac_cv_prog_CC+set}" = set; then : 12229 $as_echo_n "(cached) " >&6 12230else 12231 if test -n "$CC"; then 12232 ac_cv_prog_CC="$CC" # Let the user override the test. 12233else 12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12235for as_dir in $PATH 12236do 12237 IFS=$as_save_IFS 12238 test -z "$as_dir" && as_dir=. 12239 for ac_exec_ext in '' $ac_executable_extensions; do 12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12241 ac_cv_prog_CC="${ac_tool_prefix}cc" 12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12243 break 2 12244 fi 12245done 12246 done 12247IFS=$as_save_IFS 12248 12249fi 12250fi 12251CC=$ac_cv_prog_CC 12252if test -n "$CC"; then 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12254$as_echo "$CC" >&6; } 12255else 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12257$as_echo "no" >&6; } 12258fi 12259 12260 12261 fi 12262fi 12263if test -z "$CC"; then 12264 # Extract the first word of "cc", so it can be a program name with args. 12265set dummy cc; ac_word=$2 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12267$as_echo_n "checking for $ac_word... " >&6; } 12268if test "${ac_cv_prog_CC+set}" = set; then : 12269 $as_echo_n "(cached) " >&6 12270else 12271 if test -n "$CC"; then 12272 ac_cv_prog_CC="$CC" # Let the user override the test. 12273else 12274 ac_prog_rejected=no 12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12276for as_dir in $PATH 12277do 12278 IFS=$as_save_IFS 12279 test -z "$as_dir" && as_dir=. 12280 for ac_exec_ext in '' $ac_executable_extensions; do 12281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12282 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12283 ac_prog_rejected=yes 12284 continue 12285 fi 12286 ac_cv_prog_CC="cc" 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12288 break 2 12289 fi 12290done 12291 done 12292IFS=$as_save_IFS 12293 12294if test $ac_prog_rejected = yes; then 12295 # We found a bogon in the path, so make sure we never use it. 12296 set dummy $ac_cv_prog_CC 12297 shift 12298 if test $# != 0; then 12299 # We chose a different compiler from the bogus one. 12300 # However, it has the same basename, so the bogon will be chosen 12301 # first if we set CC to just the basename; use the full file name. 12302 shift 12303 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12304 fi 12305fi 12306fi 12307fi 12308CC=$ac_cv_prog_CC 12309if test -n "$CC"; then 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12311$as_echo "$CC" >&6; } 12312else 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12314$as_echo "no" >&6; } 12315fi 12316 12317 12318fi 12319if test -z "$CC"; then 12320 if test -n "$ac_tool_prefix"; then 12321 for ac_prog in cl.exe 12322 do 12323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12324set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12326$as_echo_n "checking for $ac_word... " >&6; } 12327if test "${ac_cv_prog_CC+set}" = set; then : 12328 $as_echo_n "(cached) " >&6 12329else 12330 if test -n "$CC"; then 12331 ac_cv_prog_CC="$CC" # Let the user override the test. 12332else 12333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12334for as_dir in $PATH 12335do 12336 IFS=$as_save_IFS 12337 test -z "$as_dir" && as_dir=. 12338 for ac_exec_ext in '' $ac_executable_extensions; do 12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12342 break 2 12343 fi 12344done 12345 done 12346IFS=$as_save_IFS 12347 12348fi 12349fi 12350CC=$ac_cv_prog_CC 12351if test -n "$CC"; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12353$as_echo "$CC" >&6; } 12354else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12356$as_echo "no" >&6; } 12357fi 12358 12359 12360 test -n "$CC" && break 12361 done 12362fi 12363if test -z "$CC"; then 12364 ac_ct_CC=$CC 12365 for ac_prog in cl.exe 12366do 12367 # Extract the first word of "$ac_prog", so it can be a program name with args. 12368set dummy $ac_prog; ac_word=$2 12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12370$as_echo_n "checking for $ac_word... " >&6; } 12371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 12372 $as_echo_n "(cached) " >&6 12373else 12374 if test -n "$ac_ct_CC"; then 12375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12376else 12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12378for as_dir in $PATH 12379do 12380 IFS=$as_save_IFS 12381 test -z "$as_dir" && as_dir=. 12382 for ac_exec_ext in '' $ac_executable_extensions; do 12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12384 ac_cv_prog_ac_ct_CC="$ac_prog" 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12386 break 2 12387 fi 12388done 12389 done 12390IFS=$as_save_IFS 12391 12392fi 12393fi 12394ac_ct_CC=$ac_cv_prog_ac_ct_CC 12395if test -n "$ac_ct_CC"; then 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12397$as_echo "$ac_ct_CC" >&6; } 12398else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400$as_echo "no" >&6; } 12401fi 12402 12403 12404 test -n "$ac_ct_CC" && break 12405done 12406 12407 if test "x$ac_ct_CC" = x; then 12408 CC="" 12409 else 12410 case $cross_compiling:$ac_tool_warned in 12411yes:) 12412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12414ac_tool_warned=yes ;; 12415esac 12416 CC=$ac_ct_CC 12417 fi 12418fi 12419 12420fi 12421 12422 12423test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12425as_fn_error $? "no acceptable C compiler found in \$PATH 12426See \`config.log' for more details" "$LINENO" 5 ; } 12427 12428# Provide some information about the compiler. 12429$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12430set X $ac_compile 12431ac_compiler=$2 12432for ac_option in --version -v -V -qversion; do 12433 { { ac_try="$ac_compiler $ac_option >&5" 12434case "(($ac_try" in 12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12436 *) ac_try_echo=$ac_try;; 12437esac 12438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12439$as_echo "$ac_try_echo"; } >&5 12440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12441 ac_status=$? 12442 if test -s conftest.err; then 12443 sed '10a\ 12444... rest of stderr output deleted ... 12445 10q' conftest.err >conftest.er1 12446 cat conftest.er1 >&5 12447 fi 12448 rm -f conftest.er1 conftest.err 12449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12450 test $ac_status = 0; } 12451done 12452 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12454$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12455if test "${ac_cv_c_compiler_gnu+set}" = set; then : 12456 $as_echo_n "(cached) " >&6 12457else 12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12459/* end confdefs.h. */ 12460 12461int 12462main () 12463{ 12464#ifndef __GNUC__ 12465 choke me 12466#endif 12467 12468 ; 12469 return 0; 12470} 12471_ACEOF 12472if ac_fn_c_try_compile "$LINENO"; then : 12473 ac_compiler_gnu=yes 12474else 12475 ac_compiler_gnu=no 12476fi 12477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12478ac_cv_c_compiler_gnu=$ac_compiler_gnu 12479 12480fi 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12482$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12483if test $ac_compiler_gnu = yes; then 12484 GCC=yes 12485else 12486 GCC= 12487fi 12488ac_test_CFLAGS=${CFLAGS+set} 12489ac_save_CFLAGS=$CFLAGS 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12491$as_echo_n "checking whether $CC accepts -g... " >&6; } 12492if test "${ac_cv_prog_cc_g+set}" = set; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 ac_save_c_werror_flag=$ac_c_werror_flag 12496 ac_c_werror_flag=yes 12497 ac_cv_prog_cc_g=no 12498 CFLAGS="-g" 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502int 12503main () 12504{ 12505 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_compile "$LINENO"; then : 12511 ac_cv_prog_cc_g=yes 12512else 12513 CFLAGS="" 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516 12517int 12518main () 12519{ 12520 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525if ac_fn_c_try_compile "$LINENO"; then : 12526 12527else 12528 ac_c_werror_flag=$ac_save_c_werror_flag 12529 CFLAGS="-g" 12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532 12533int 12534main () 12535{ 12536 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541if ac_fn_c_try_compile "$LINENO"; then : 12542 ac_cv_prog_cc_g=yes 12543fi 12544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12545fi 12546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12547fi 12548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12549 ac_c_werror_flag=$ac_save_c_werror_flag 12550fi 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12552$as_echo "$ac_cv_prog_cc_g" >&6; } 12553if test "$ac_test_CFLAGS" = set; then 12554 CFLAGS=$ac_save_CFLAGS 12555elif test $ac_cv_prog_cc_g = yes; then 12556 if test "$GCC" = yes; then 12557 CFLAGS="-g -O2" 12558 else 12559 CFLAGS="-g" 12560 fi 12561else 12562 if test "$GCC" = yes; then 12563 CFLAGS="-O2" 12564 else 12565 CFLAGS= 12566 fi 12567fi 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12569$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12570if test "${ac_cv_prog_cc_c89+set}" = set; then : 12571 $as_echo_n "(cached) " >&6 12572else 12573 ac_cv_prog_cc_c89=no 12574ac_save_CC=$CC 12575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12576/* end confdefs.h. */ 12577#include <stdarg.h> 12578#include <stdio.h> 12579#include <sys/types.h> 12580#include <sys/stat.h> 12581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12582struct buf { int x; }; 12583FILE * (*rcsopen) (struct buf *, struct stat *, int); 12584static char *e (p, i) 12585 char **p; 12586 int i; 12587{ 12588 return p[i]; 12589} 12590static char *f (char * (*g) (char **, int), char **p, ...) 12591{ 12592 char *s; 12593 va_list v; 12594 va_start (v,p); 12595 s = g (p, va_arg (v,int)); 12596 va_end (v); 12597 return s; 12598} 12599 12600/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12601 function prototypes and stuff, but not '\xHH' hex character constants. 12602 These don't provoke an error unfortunately, instead are silently treated 12603 as 'x'. The following induces an error, until -std is added to get 12604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12605 array size at least. It's necessary to write '\x00'==0 to get something 12606 that's true only with -std. */ 12607int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12608 12609/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12610 inside strings and character constants. */ 12611#define FOO(x) 'x' 12612int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12613 12614int test (int i, double x); 12615struct s1 {int (*f) (int a);}; 12616struct s2 {int (*f) (double a);}; 12617int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12618int argc; 12619char **argv; 12620int 12621main () 12622{ 12623return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12624 ; 12625 return 0; 12626} 12627_ACEOF 12628for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12630do 12631 CC="$ac_save_CC $ac_arg" 12632 if ac_fn_c_try_compile "$LINENO"; then : 12633 ac_cv_prog_cc_c89=$ac_arg 12634fi 12635rm -f core conftest.err conftest.$ac_objext 12636 test "x$ac_cv_prog_cc_c89" != "xno" && break 12637done 12638rm -f conftest.$ac_ext 12639CC=$ac_save_CC 12640 12641fi 12642# AC_CACHE_VAL 12643case "x$ac_cv_prog_cc_c89" in 12644 x) 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12646$as_echo "none needed" >&6; } ;; 12647 xno) 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12649$as_echo "unsupported" >&6; } ;; 12650 *) 12651 CC="$CC $ac_cv_prog_cc_c89" 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12653$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12654esac 12655if test "x$ac_cv_prog_cc_c89" != xno; then : 12656 12657fi 12658 12659ac_ext=c 12660ac_cpp='$CPP $CPPFLAGS' 12661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12663ac_compiler_gnu=$ac_cv_c_compiler_gnu 12664 12665depcc="$CC" am_compiler_list= 12666 12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12668$as_echo_n "checking dependency style of $depcc... " >&6; } 12669if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 12670 $as_echo_n "(cached) " >&6 12671else 12672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12673 # We make a subdir and do the tests there. Otherwise we can end up 12674 # making bogus files that we don't know about and never remove. For 12675 # instance it was reported that on HP-UX the gcc test will end up 12676 # making a dummy file named `D' -- because `-MD' means `put the output 12677 # in D'. 12678 mkdir conftest.dir 12679 # Copy depcomp to subdir because otherwise we won't find it if we're 12680 # using a relative directory. 12681 cp "$am_depcomp" conftest.dir 12682 cd conftest.dir 12683 # We will build objects and dependencies in a subdirectory because 12684 # it helps to detect inapplicable dependency modes. For instance 12685 # both Tru64's cc and ICC support -MD to output dependencies as a 12686 # side effect of compilation, but ICC will put the dependencies in 12687 # the current directory while Tru64 will put them in the object 12688 # directory. 12689 mkdir sub 12690 12691 am_cv_CC_dependencies_compiler_type=none 12692 if test "$am_compiler_list" = ""; then 12693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12694 fi 12695 am__universal=false 12696 case " $depcc " in #( 12697 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12698 esac 12699 12700 for depmode in $am_compiler_list; do 12701 # Setup a source with many dependencies, because some compilers 12702 # like to wrap large dependency lists on column 80 (with \), and 12703 # we should not choose a depcomp mode which is confused by this. 12704 # 12705 # We need to recreate these files for each test, as the compiler may 12706 # overwrite some of them when testing with obscure command lines. 12707 # This happens at least with the AIX C compiler. 12708 : > sub/conftest.c 12709 for i in 1 2 3 4 5 6; do 12710 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12711 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12712 # Solaris 8's {/usr,}/bin/sh. 12713 touch sub/conftst$i.h 12714 done 12715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12716 12717 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12718 # mode. It turns out that the SunPro C++ compiler does not properly 12719 # handle `-M -o', and we need to detect this. Also, some Intel 12720 # versions had trouble with output in subdirs 12721 am__obj=sub/conftest.${OBJEXT-o} 12722 am__minus_obj="-o $am__obj" 12723 case $depmode in 12724 gcc) 12725 # This depmode causes a compiler race in universal mode. 12726 test "$am__universal" = false || continue 12727 ;; 12728 nosideeffect) 12729 # after this tag, mechanisms are not by side-effect, so they'll 12730 # only be used when explicitly requested 12731 if test "x$enable_dependency_tracking" = xyes; then 12732 continue 12733 else 12734 break 12735 fi 12736 ;; 12737 msvisualcpp | msvcmsys) 12738 # This compiler won't grok `-c -o', but also, the minuso test has 12739 # not run yet. These depmodes are late enough in the game, and 12740 # so weak that their functioning should not be impacted. 12741 am__obj=conftest.${OBJEXT-o} 12742 am__minus_obj= 12743 ;; 12744 none) break ;; 12745 esac 12746 if depmode=$depmode \ 12747 source=sub/conftest.c object=$am__obj \ 12748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12750 >/dev/null 2>conftest.err && 12751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12755 # icc doesn't choke on unknown options, it will just issue warnings 12756 # or remarks (even with -Werror). So we grep stderr for any message 12757 # that says an option was ignored or not supported. 12758 # When given -MP, icc 7.0 and 7.1 complain thusly: 12759 # icc: Command line warning: ignoring option '-M'; no argument required 12760 # The diagnosis changed in icc 8.0: 12761 # icc: Command line remark: option '-MP' not supported 12762 if (grep 'ignoring option' conftest.err || 12763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12764 am_cv_CC_dependencies_compiler_type=$depmode 12765 break 12766 fi 12767 fi 12768 done 12769 12770 cd .. 12771 rm -rf conftest.dir 12772else 12773 am_cv_CC_dependencies_compiler_type=none 12774fi 12775 12776fi 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12778$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12779CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12780 12781 if 12782 test "x$enable_dependency_tracking" != xno \ 12783 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12784 am__fastdepCC_TRUE= 12785 am__fastdepCC_FALSE='#' 12786else 12787 am__fastdepCC_TRUE='#' 12788 am__fastdepCC_FALSE= 12789fi 12790 12791 12792 12793 12794 12795 12796 12797 12798if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12799 if test -n "$ac_tool_prefix"; then 12800 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12801set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12803$as_echo_n "checking for $ac_word... " >&6; } 12804if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 case $PKG_CONFIG in 12808 [\\/]* | ?:[\\/]*) 12809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12810 ;; 12811 *) 12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12813for as_dir in $PATH 12814do 12815 IFS=$as_save_IFS 12816 test -z "$as_dir" && as_dir=. 12817 for ac_exec_ext in '' $ac_executable_extensions; do 12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12821 break 2 12822 fi 12823done 12824 done 12825IFS=$as_save_IFS 12826 12827 ;; 12828esac 12829fi 12830PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12831if test -n "$PKG_CONFIG"; then 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12833$as_echo "$PKG_CONFIG" >&6; } 12834else 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12836$as_echo "no" >&6; } 12837fi 12838 12839 12840fi 12841if test -z "$ac_cv_path_PKG_CONFIG"; then 12842 ac_pt_PKG_CONFIG=$PKG_CONFIG 12843 # Extract the first word of "pkg-config", so it can be a program name with args. 12844set dummy pkg-config; ac_word=$2 12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12846$as_echo_n "checking for $ac_word... " >&6; } 12847if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 case $ac_pt_PKG_CONFIG in 12851 [\\/]* | ?:[\\/]*) 12852 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12853 ;; 12854 *) 12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12856for as_dir in $PATH 12857do 12858 IFS=$as_save_IFS 12859 test -z "$as_dir" && as_dir=. 12860 for ac_exec_ext in '' $ac_executable_extensions; do 12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12862 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12864 break 2 12865 fi 12866done 12867 done 12868IFS=$as_save_IFS 12869 12870 ;; 12871esac 12872fi 12873ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12874if test -n "$ac_pt_PKG_CONFIG"; then 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12876$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12877else 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12879$as_echo "no" >&6; } 12880fi 12881 12882 if test "x$ac_pt_PKG_CONFIG" = x; then 12883 PKG_CONFIG="" 12884 else 12885 case $cross_compiling:$ac_tool_warned in 12886yes:) 12887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12889ac_tool_warned=yes ;; 12890esac 12891 PKG_CONFIG=$ac_pt_PKG_CONFIG 12892 fi 12893else 12894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12895fi 12896 12897fi 12898if test -n "$PKG_CONFIG"; then 12899 _pkg_min_version=0.9.0 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12901$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12904$as_echo "yes" >&6; } 12905 else 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12907$as_echo "no" >&6; } 12908 PKG_CONFIG="" 12909 fi 12910fi 12911 12912if test x"$CC_FOR_BUILD" = x; then 12913 if test x"$cross_compiling" = xyes; then 12914 for ac_prog in gcc cc 12915do 12916 # Extract the first word of "$ac_prog", so it can be a program name with args. 12917set dummy $ac_prog; ac_word=$2 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12919$as_echo_n "checking for $ac_word... " >&6; } 12920if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then : 12921 $as_echo_n "(cached) " >&6 12922else 12923 if test -n "$CC_FOR_BUILD"; then 12924 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 12925else 12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12927for as_dir in $PATH 12928do 12929 IFS=$as_save_IFS 12930 test -z "$as_dir" && as_dir=. 12931 for ac_exec_ext in '' $ac_executable_extensions; do 12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12933 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12935 break 2 12936 fi 12937done 12938 done 12939IFS=$as_save_IFS 12940 12941fi 12942fi 12943CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 12944if test -n "$CC_FOR_BUILD"; then 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 12946$as_echo "$CC_FOR_BUILD" >&6; } 12947else 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12949$as_echo "no" >&6; } 12950fi 12951 12952 12953 test -n "$CC_FOR_BUILD" && break 12954done 12955 12956 else 12957 CC_FOR_BUILD="$CC" 12958 fi 12959fi 12960 12961 12962if test x"$CPPFLAGS_FOR_BUILD" = x; then 12963 if test ! x"$cross_compiling" = xyes; then 12964 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 12965 fi 12966fi 12967 12968 12969if test x"$CFLAGS_FOR_BUILD" = x; then 12970 if test ! x"$cross_compiling" = xyes; then 12971 CFLAGS_FOR_BUILD=${CFLAGS} 12972 fi 12973fi 12974 12975 12976if test x"$LDFLAGS_FOR_BUILD" = x; then 12977 if test ! x"$cross_compiling" = xyes; then 12978 LDFLAGS_FOR_BUILD=${LDFLAGS} 12979 fi 12980fi 12981 12982 12983 12984 12985for ac_prog in cpp 12986do 12987 # Extract the first word of "$ac_prog", so it can be a program name with args. 12988set dummy $ac_prog; ac_word=$2 12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12990$as_echo_n "checking for $ac_word... " >&6; } 12991if test "${ac_cv_path_RAWCPP+set}" = set; then : 12992 $as_echo_n "(cached) " >&6 12993else 12994 case $RAWCPP in 12995 [\\/]* | ?:[\\/]*) 12996 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 12997 ;; 12998 *) 12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13000as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 13001for as_dir in $as_dummy 13002do 13003 IFS=$as_save_IFS 13004 test -z "$as_dir" && as_dir=. 13005 for ac_exec_ext in '' $ac_executable_extensions; do 13006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13007 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13009 break 2 13010 fi 13011done 13012 done 13013IFS=$as_save_IFS 13014 13015 ;; 13016esac 13017fi 13018RAWCPP=$ac_cv_path_RAWCPP 13019if test -n "$RAWCPP"; then 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 13021$as_echo "$RAWCPP" >&6; } 13022else 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13024$as_echo "no" >&6; } 13025fi 13026 13027 13028 test -n "$RAWCPP" && break 13029done 13030test -n "$RAWCPP" || RAWCPP="${CPP}" 13031 13032 13033# Check for flag to avoid builtin definitions - assumes unix is predefined, 13034# which is not the best choice for supporting other OS'es, but covers most 13035# of the ones we need for now. 13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 13037$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 13038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039/* end confdefs.h. */ 13040Does cpp redefine unix ? 13041_ACEOF 13042if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13044$as_echo "no" >&6; } 13045else 13046 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 13047 RAWCPPFLAGS=-undef 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13049$as_echo "yes" >&6; } 13050 # under Cygwin unix is still defined even with -undef 13051 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 13052 RAWCPPFLAGS="-undef -ansi" 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 13054$as_echo "yes, with -ansi" >&6; } 13055 else 13056 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 13057 fi 13058fi 13059rm -f conftest.$ac_ext 13060 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 13062$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 13063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065Does cpp preserve "whitespace"? 13066_ACEOF 13067if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069$as_echo "no" >&6; } 13070else 13071 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 13072 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13074$as_echo "yes" >&6; } 13075 else 13076 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 13077 fi 13078fi 13079rm -f conftest.$ac_ext 13080 13081 13082 13083# Find perl for "make check" tests in nls/localerules.in 13084 13085# Check whether --with-perl was given. 13086if test "${with_perl+set}" = set; then : 13087 withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl" >&5 13088$as_echo_n "checking perl... " >&6; } ; 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (from --with-perl) $PERL" >&5 13090$as_echo "(from --with-perl) $PERL" >&6; } 13091else 13092 for ac_prog in perl 13093do 13094 # Extract the first word of "$ac_prog", so it can be a program name with args. 13095set dummy $ac_prog; ac_word=$2 13096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13097$as_echo_n "checking for $ac_word... " >&6; } 13098if test "${ac_cv_prog_PERL+set}" = set; then : 13099 $as_echo_n "(cached) " >&6 13100else 13101 if test -n "$PERL"; then 13102 ac_cv_prog_PERL="$PERL" # Let the user override the test. 13103else 13104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13105for as_dir in $PATH 13106do 13107 IFS=$as_save_IFS 13108 test -z "$as_dir" && as_dir=. 13109 for ac_exec_ext in '' $ac_executable_extensions; do 13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13111 ac_cv_prog_PERL="$ac_prog" 13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13113 break 2 13114 fi 13115done 13116 done 13117IFS=$as_save_IFS 13118 13119fi 13120fi 13121PERL=$ac_cv_prog_PERL 13122if test -n "$PERL"; then 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 13124$as_echo "$PERL" >&6; } 13125else 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127$as_echo "no" >&6; } 13128fi 13129 13130 13131 test -n "$PERL" && break 13132done 13133test -n "$PERL" || PERL="no" 13134 13135fi 13136 13137 if test x$PERL != xno; then 13138 HAVE_PERL_TRUE= 13139 HAVE_PERL_FALSE='#' 13140else 13141 HAVE_PERL_TRUE='#' 13142 HAVE_PERL_FALSE= 13143fi 13144 13145 13146# Build with XCB support? 13147 13148# Check whether --with-xcb was given. 13149if test "${with_xcb+set}" = set; then : 13150 withval=$with_xcb; ac_cv_use_xcb=$withval 13151else 13152 ac_cv_use_xcb=yes 13153fi 13154 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use XCB" >&5 13156$as_echo_n "checking whether to use XCB... " >&6; } 13157if test "${ac_cv_use_xcb+set}" = set; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 ac_cv_use_xcb=yes 13161fi 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_xcb" >&5 13163$as_echo "$ac_cv_use_xcb" >&6; } 13164 if test x$ac_cv_use_xcb != xno; then 13165 XCB_TRUE= 13166 XCB_FALSE='#' 13167else 13168 XCB_TRUE='#' 13169 XCB_FALSE= 13170fi 13171 13172 13173# Checks for pkg-config packages 13174 13175# Always required 13176X11_REQUIRES='xproto >= 7.0.13 xextproto xtrans' 13177 13178 13179 13180 13181 13182 13183 13184if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13185 if test -n "$ac_tool_prefix"; then 13186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13187set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13189$as_echo_n "checking for $ac_word... " >&6; } 13190if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13191 $as_echo_n "(cached) " >&6 13192else 13193 case $PKG_CONFIG in 13194 [\\/]* | ?:[\\/]*) 13195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13196 ;; 13197 *) 13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13199for as_dir in $PATH 13200do 13201 IFS=$as_save_IFS 13202 test -z "$as_dir" && as_dir=. 13203 for ac_exec_ext in '' $ac_executable_extensions; do 13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13207 break 2 13208 fi 13209done 13210 done 13211IFS=$as_save_IFS 13212 13213 ;; 13214esac 13215fi 13216PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13217if test -n "$PKG_CONFIG"; then 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13219$as_echo "$PKG_CONFIG" >&6; } 13220else 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13222$as_echo "no" >&6; } 13223fi 13224 13225 13226fi 13227if test -z "$ac_cv_path_PKG_CONFIG"; then 13228 ac_pt_PKG_CONFIG=$PKG_CONFIG 13229 # Extract the first word of "pkg-config", so it can be a program name with args. 13230set dummy pkg-config; ac_word=$2 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13232$as_echo_n "checking for $ac_word... " >&6; } 13233if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 13234 $as_echo_n "(cached) " >&6 13235else 13236 case $ac_pt_PKG_CONFIG in 13237 [\\/]* | ?:[\\/]*) 13238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13239 ;; 13240 *) 13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13242for as_dir in $PATH 13243do 13244 IFS=$as_save_IFS 13245 test -z "$as_dir" && as_dir=. 13246 for ac_exec_ext in '' $ac_executable_extensions; do 13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13250 break 2 13251 fi 13252done 13253 done 13254IFS=$as_save_IFS 13255 13256 ;; 13257esac 13258fi 13259ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13260if test -n "$ac_pt_PKG_CONFIG"; then 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13262$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13263else 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13265$as_echo "no" >&6; } 13266fi 13267 13268 if test "x$ac_pt_PKG_CONFIG" = x; then 13269 PKG_CONFIG="" 13270 else 13271 case $cross_compiling:$ac_tool_warned in 13272yes:) 13273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13275ac_tool_warned=yes ;; 13276esac 13277 PKG_CONFIG=$ac_pt_PKG_CONFIG 13278 fi 13279else 13280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13281fi 13282 13283fi 13284if test -n "$PKG_CONFIG"; then 13285 _pkg_min_version=0.9.0 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13287$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13290$as_echo "yes" >&6; } 13291 else 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13293$as_echo "no" >&6; } 13294 PKG_CONFIG="" 13295 fi 13296fi 13297 13298case "$ac_cv_use_xcb" in 13299no) 13300 X11_REQUIRES="${X11_REQUIRES} xau xcmiscproto bigreqsproto" 13301 X11_EXTRA_DEPS="xau" 13302 13303pkg_failed=no 13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 13305$as_echo_n "checking for XDMCP... " >&6; } 13306 13307if test -n "$XDMCP_CFLAGS"; then 13308 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 13309 elif test -n "$PKG_CONFIG"; then 13310 if test -n "$PKG_CONFIG" && \ 13311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 13312 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 13313 ac_status=$? 13314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13315 test $ac_status = 0; }; then 13316 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 13317else 13318 pkg_failed=yes 13319fi 13320 else 13321 pkg_failed=untried 13322fi 13323if test -n "$XDMCP_LIBS"; then 13324 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 13325 elif test -n "$PKG_CONFIG"; then 13326 if test -n "$PKG_CONFIG" && \ 13327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 13328 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 13329 ac_status=$? 13330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13331 test $ac_status = 0; }; then 13332 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 13333else 13334 pkg_failed=yes 13335fi 13336 else 13337 pkg_failed=untried 13338fi 13339 13340 13341 13342if test $pkg_failed = yes; then 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13344$as_echo "no" >&6; } 13345 13346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13347 _pkg_short_errors_supported=yes 13348else 13349 _pkg_short_errors_supported=no 13350fi 13351 if test $_pkg_short_errors_supported = yes; then 13352 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1` 13353 else 13354 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1` 13355 fi 13356 # Put the nasty error message in config.log where it belongs 13357 echo "$XDMCP_PKG_ERRORS" >&5 13358 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13360$as_echo "no" >&6; } 13361elif test $pkg_failed = untried; then 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13363$as_echo "no" >&6; } 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13365$as_echo "no" >&6; } 13366else 13367 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 13368 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13370$as_echo "yes" >&6; } 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 13372$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 13373if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 ac_check_lib_save_LIBS=$LIBS 13377LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 13378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13379/* end confdefs.h. */ 13380 13381/* Override any GCC internal prototype to avoid an error. 13382 Use char because int might match the return type of a GCC 13383 builtin and then its argument prototype would still apply. */ 13384#ifdef __cplusplus 13385extern "C" 13386#endif 13387char XdmcpWrap (); 13388int 13389main () 13390{ 13391return XdmcpWrap (); 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396if ac_fn_c_try_link "$LINENO"; then : 13397 ac_cv_lib_Xdmcp_XdmcpWrap=yes 13398else 13399 ac_cv_lib_Xdmcp_XdmcpWrap=no 13400fi 13401rm -f core conftest.err conftest.$ac_objext \ 13402 conftest$ac_exeext conftest.$ac_ext 13403LIBS=$ac_check_lib_save_LIBS 13404fi 13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 13406$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 13407if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 13408 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 13410$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 13411if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 13412 $as_echo_n "(cached) " >&6 13413else 13414 ac_check_lib_save_LIBS=$LIBS 13415LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 13416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13417/* end confdefs.h. */ 13418 13419/* Override any GCC internal prototype to avoid an error. 13420 Use char because int might match the return type of a GCC 13421 builtin and then its argument prototype would still apply. */ 13422#ifdef __cplusplus 13423extern "C" 13424#endif 13425char XdmcpWrap (); 13426int 13427main () 13428{ 13429return XdmcpWrap (); 13430 ; 13431 return 0; 13432} 13433_ACEOF 13434if ac_fn_c_try_link "$LINENO"; then : 13435 ac_cv_lib_Xdmcp_XdmcpWrap=yes 13436else 13437 ac_cv_lib_Xdmcp_XdmcpWrap=no 13438fi 13439rm -f core conftest.err conftest.$ac_objext \ 13440 conftest$ac_exeext conftest.$ac_ext 13441LIBS=$ac_check_lib_save_LIBS 13442fi 13443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 13444$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 13445if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 13446 xdmauth="yes" 13447else 13448 xdmauth="no" 13449fi 13450 13451 X11_EXTRA_DEPS="$X11_EXTRA_DEPS xdmcp" 13452 13453else 13454 13455 XDMCP_CFLAGS= 13456 XDMCP_LIBS= 13457 13458fi 13459 13460fi 13461 13462$as_echo "#define USE_XCB 0" >>confdefs.h 13463 13464 ;; 13465*) 13466 X11_REQUIRES="${X11_REQUIRES} xcb >= 1.1.92" 13467 X11_EXTRA_DEPS="xcb >= 1.1.92" 13468 xdmauth="no" # XCB handles all auth 13469 13470$as_echo "#define USE_XCB 1" >>confdefs.h 13471 13472 ;; 13473esac 13474 13475 13476 13477 13478# Transport selection macro from xtrans.m4 13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 13480$as_echo_n "checking return type of signal handlers... " >&6; } 13481if test "${ac_cv_type_signal+set}" = set; then : 13482 $as_echo_n "(cached) " >&6 13483else 13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13485/* end confdefs.h. */ 13486#include <sys/types.h> 13487#include <signal.h> 13488 13489int 13490main () 13491{ 13492return *(signal (0, 0)) (0) == 1; 13493 ; 13494 return 0; 13495} 13496_ACEOF 13497if ac_fn_c_try_compile "$LINENO"; then : 13498 ac_cv_type_signal=int 13499else 13500 ac_cv_type_signal=void 13501fi 13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13503fi 13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 13505$as_echo "$ac_cv_type_signal" >&6; } 13506 13507cat >>confdefs.h <<_ACEOF 13508#define RETSIGTYPE $ac_cv_type_signal 13509_ACEOF 13510 13511 13512 13513 13514 13515 case $host_os in 13516 mingw*) unixdef="no" ;; 13517 *) unixdef="yes" ;; 13518 esac 13519 # Check whether --enable-unix-transport was given. 13520if test "${enable_unix_transport+set}" = set; then : 13521 enableval=$enable_unix_transport; UNIXCONN=$enableval 13522else 13523 UNIXCONN=$unixdef 13524fi 13525 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 13527$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 13528 if test "$UNIXCONN" = "yes"; then 13529 13530$as_echo "#define UNIXCONN 1" >>confdefs.h 13531 13532 fi 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 13534$as_echo "$UNIXCONN" >&6; } 13535 # Check whether --enable-tcp-transport was given. 13536if test "${enable_tcp_transport+set}" = set; then : 13537 enableval=$enable_tcp_transport; TCPCONN=$enableval 13538else 13539 TCPCONN=yes 13540fi 13541 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 13543$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 13545$as_echo "$TCPCONN" >&6; } 13546 if test "$TCPCONN" = "yes"; then 13547 13548$as_echo "#define TCPCONN 1" >>confdefs.h 13549 13550 13551 # SVR4 hides these in libraries other than libc 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13553$as_echo_n "checking for library containing socket... " >&6; } 13554if test "${ac_cv_search_socket+set}" = set; then : 13555 $as_echo_n "(cached) " >&6 13556else 13557 ac_func_search_save_LIBS=$LIBS 13558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559/* end confdefs.h. */ 13560 13561/* Override any GCC internal prototype to avoid an error. 13562 Use char because int might match the return type of a GCC 13563 builtin and then its argument prototype would still apply. */ 13564#ifdef __cplusplus 13565extern "C" 13566#endif 13567char socket (); 13568int 13569main () 13570{ 13571return socket (); 13572 ; 13573 return 0; 13574} 13575_ACEOF 13576for ac_lib in '' socket; do 13577 if test -z "$ac_lib"; then 13578 ac_res="none required" 13579 else 13580 ac_res=-l$ac_lib 13581 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13582 fi 13583 if ac_fn_c_try_link "$LINENO"; then : 13584 ac_cv_search_socket=$ac_res 13585fi 13586rm -f core conftest.err conftest.$ac_objext \ 13587 conftest$ac_exeext 13588 if test "${ac_cv_search_socket+set}" = set; then : 13589 break 13590fi 13591done 13592if test "${ac_cv_search_socket+set}" = set; then : 13593 13594else 13595 ac_cv_search_socket=no 13596fi 13597rm conftest.$ac_ext 13598LIBS=$ac_func_search_save_LIBS 13599fi 13600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13601$as_echo "$ac_cv_search_socket" >&6; } 13602ac_res=$ac_cv_search_socket 13603if test "$ac_res" != no; then : 13604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13605 13606fi 13607 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 13609$as_echo_n "checking for library containing gethostbyname... " >&6; } 13610if test "${ac_cv_search_gethostbyname+set}" = set; then : 13611 $as_echo_n "(cached) " >&6 13612else 13613 ac_func_search_save_LIBS=$LIBS 13614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13615/* end confdefs.h. */ 13616 13617/* Override any GCC internal prototype to avoid an error. 13618 Use char because int might match the return type of a GCC 13619 builtin and then its argument prototype would still apply. */ 13620#ifdef __cplusplus 13621extern "C" 13622#endif 13623char gethostbyname (); 13624int 13625main () 13626{ 13627return gethostbyname (); 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632for ac_lib in '' nsl; do 13633 if test -z "$ac_lib"; then 13634 ac_res="none required" 13635 else 13636 ac_res=-l$ac_lib 13637 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13638 fi 13639 if ac_fn_c_try_link "$LINENO"; then : 13640 ac_cv_search_gethostbyname=$ac_res 13641fi 13642rm -f core conftest.err conftest.$ac_objext \ 13643 conftest$ac_exeext 13644 if test "${ac_cv_search_gethostbyname+set}" = set; then : 13645 break 13646fi 13647done 13648if test "${ac_cv_search_gethostbyname+set}" = set; then : 13649 13650else 13651 ac_cv_search_gethostbyname=no 13652fi 13653rm conftest.$ac_ext 13654LIBS=$ac_func_search_save_LIBS 13655fi 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 13657$as_echo "$ac_cv_search_gethostbyname" >&6; } 13658ac_res=$ac_cv_search_gethostbyname 13659if test "$ac_res" != no; then : 13660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13661 13662fi 13663 13664 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 13666$as_echo_n "checking for main in -lws2_32... " >&6; } 13667if test "${ac_cv_lib_ws2_32_main+set}" = set; then : 13668 $as_echo_n "(cached) " >&6 13669else 13670 ac_check_lib_save_LIBS=$LIBS 13671LIBS="-lws2_32 $LIBS" 13672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13673/* end confdefs.h. */ 13674 13675 13676int 13677main () 13678{ 13679return main (); 13680 ; 13681 return 0; 13682} 13683_ACEOF 13684if ac_fn_c_try_link "$LINENO"; then : 13685 ac_cv_lib_ws2_32_main=yes 13686else 13687 ac_cv_lib_ws2_32_main=no 13688fi 13689rm -f core conftest.err conftest.$ac_objext \ 13690 conftest$ac_exeext conftest.$ac_ext 13691LIBS=$ac_check_lib_save_LIBS 13692fi 13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 13694$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 13695if test "x$ac_cv_lib_ws2_32_main" = x""yes; then : 13696 cat >>confdefs.h <<_ACEOF 13697#define HAVE_LIBWS2_32 1 13698_ACEOF 13699 13700 LIBS="-lws2_32 $LIBS" 13701 13702fi 13703ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 13704 13705 fi 13706 13707 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 13708 # Check whether --enable-ipv6 was given. 13709if test "${enable_ipv6+set}" = set; then : 13710 enableval=$enable_ipv6; IPV6CONN=$enableval 13711else 13712 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 13713if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 13714 IPV6CONN=yes 13715else 13716 IPV6CONN=no 13717fi 13718 13719fi 13720 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 13722$as_echo_n "checking if IPv6 support should be built... " >&6; } 13723 if test "$IPV6CONN" = "yes"; then 13724 13725$as_echo "#define IPv6 1" >>confdefs.h 13726 13727 fi 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 13729$as_echo "$IPV6CONN" >&6; } 13730 13731 # 4.3BSD-Reno added a new member to struct sockaddr_in 13732 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 13733#include <sys/types.h> 13734#include <sys/socket.h> 13735#include <netinet/in.h> 13736 13737" 13738if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then : 13739 13740$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 13741 13742fi 13743 13744 13745 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 13746 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 13747$ac_includes_default 13748#include <sys/socket.h> 13749" 13750if test "x$ac_cv_type_socklen_t" = x""yes; then : 13751 13752cat >>confdefs.h <<_ACEOF 13753#define HAVE_SOCKLEN_T 1 13754_ACEOF 13755 13756 13757fi 13758 13759 13760 13761 fi 13762 case $host_os in 13763 solaris*|sco*|sysv4*) localdef="yes" ;; 13764 *) localdef="no" ;; 13765 esac 13766 # Check whether --enable-local-transport was given. 13767if test "${enable_local_transport+set}" = set; then : 13768 enableval=$enable_local_transport; LOCALCONN=$enableval 13769else 13770 LOCALCONN=$localdef 13771fi 13772 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 13774$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 13776$as_echo "$LOCALCONN" >&6; } 13777 if test "$LOCALCONN" = "yes"; then 13778 13779$as_echo "#define LOCALCONN 1" >>confdefs.h 13780 13781 fi 13782 13783 13784 13785# Secure RPC detection macro from xtrans.m4 13786 13787 # Check whether --enable-secure-rpc was given. 13788if test "${enable_secure_rpc+set}" = set; then : 13789 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 13790else 13791 SECURE_RPC="try" 13792fi 13793 13794 13795 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 13796 FOUND_SECURE_RPC="no" 13797 for ac_func in authdes_seccreate authdes_create 13798do : 13799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13800ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13801if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13802 cat >>confdefs.h <<_ACEOF 13803#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13804_ACEOF 13805 FOUND_SECURE_RPC="yes" 13806fi 13807done 13808 13809 if test "x$FOUND_SECURE_RPC" = "xno" ; then 13810 if test "x$SECURE_RPC" = "xyes" ; then 13811 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 13812 fi 13813 SECURE_RPC="no" 13814 else 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 13816$as_echo_n "checking for library containing getsecretkey... " >&6; } 13817if test "${ac_cv_search_getsecretkey+set}" = set; then : 13818 $as_echo_n "(cached) " >&6 13819else 13820 ac_func_search_save_LIBS=$LIBS 13821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823 13824/* Override any GCC internal prototype to avoid an error. 13825 Use char because int might match the return type of a GCC 13826 builtin and then its argument prototype would still apply. */ 13827#ifdef __cplusplus 13828extern "C" 13829#endif 13830char getsecretkey (); 13831int 13832main () 13833{ 13834return getsecretkey (); 13835 ; 13836 return 0; 13837} 13838_ACEOF 13839for ac_lib in '' rpcsvc; do 13840 if test -z "$ac_lib"; then 13841 ac_res="none required" 13842 else 13843 ac_res=-l$ac_lib 13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13845 fi 13846 if ac_fn_c_try_link "$LINENO"; then : 13847 ac_cv_search_getsecretkey=$ac_res 13848fi 13849rm -f core conftest.err conftest.$ac_objext \ 13850 conftest$ac_exeext 13851 if test "${ac_cv_search_getsecretkey+set}" = set; then : 13852 break 13853fi 13854done 13855if test "${ac_cv_search_getsecretkey+set}" = set; then : 13856 13857else 13858 ac_cv_search_getsecretkey=no 13859fi 13860rm conftest.$ac_ext 13861LIBS=$ac_func_search_save_LIBS 13862fi 13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 13864$as_echo "$ac_cv_search_getsecretkey" >&6; } 13865ac_res=$ac_cv_search_getsecretkey 13866if test "$ac_res" != no; then : 13867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13868 13869fi 13870 13871 SECURE_RPC="yes" 13872 fi 13873 fi 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 13875$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 13876 if test "x$SECURE_RPC" = "xyes" ; then 13877 13878$as_echo "#define SECURE_RPC 1" >>confdefs.h 13879 13880 fi 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 13882$as_echo "$SECURE_RPC" >&6; } 13883 13884 13885# Preferred order to try transports for local connections 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5 13887$as_echo_n "checking what order to try transports in for local connections... " >&6; } 13888DEFAULT_LOCAL_TRANS="" 13889case $host_os in 13890 solaris*) 13891 # On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were 13892 # faster than Unix domain sockets, but on Solaris 10 & later, 13893 # Unix domain sockets are faster now. 13894 if test "$UNIXCONN" = "yes" ; then 13895 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13896 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13897 fi 13898 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 13899 fi 13900 if test "$LOCALCONN" = "yes" ; then 13901 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13902 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13903 fi 13904 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 13905 fi 13906 if test "$TCPCONN" = "yes" ; then 13907 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13908 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13909 fi 13910 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 13911 fi 13912 ;; 13913 linux*) 13914 # LOCAL_TRANS is used for abstract sockets. 13915 if test "$UNIXCONN" = "yes" ; then 13916 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13917 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13918 fi 13919 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS" 13920 fi 13921 if test "$TCPCONN" = "yes" ; then 13922 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13923 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13924 fi 13925 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 13926 fi 13927 ;; 13928 *) 13929 if test "$LOCALCONN" = "yes" ; then 13930 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13931 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13932 fi 13933 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 13934 fi 13935 if test "$UNIXCONN" = "yes" ; then 13936 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13937 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13938 fi 13939 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 13940 fi 13941 if test "$TCPCONN" = "yes" ; then 13942 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 13943 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 13944 fi 13945 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 13946 fi 13947 ;; 13948esac 13949 13950 13951# Check whether --with-local-transport-order was given. 13952if test "${with_local_transport_order+set}" = set; then : 13953 withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval 13954else 13955 LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS 13956fi 13957 13958 13959cat >>confdefs.h <<_ACEOF 13960#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST 13961_ACEOF 13962 13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5 13964$as_echo "$LOCAL_TRANSPORT_LIST" >&6; } 13965 13966# Check for dlopen 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 13968$as_echo_n "checking if run-time linking is supported... " >&6; } 13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13970$as_echo_n "checking for library containing dlopen... " >&6; } 13971if test "${ac_cv_search_dlopen+set}" = set; then : 13972 $as_echo_n "(cached) " >&6 13973else 13974 ac_func_search_save_LIBS=$LIBS 13975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13976/* end confdefs.h. */ 13977 13978/* Override any GCC internal prototype to avoid an error. 13979 Use char because int might match the return type of a GCC 13980 builtin and then its argument prototype would still apply. */ 13981#ifdef __cplusplus 13982extern "C" 13983#endif 13984char dlopen (); 13985int 13986main () 13987{ 13988return dlopen (); 13989 ; 13990 return 0; 13991} 13992_ACEOF 13993for ac_lib in '' dl svld; do 13994 if test -z "$ac_lib"; then 13995 ac_res="none required" 13996 else 13997 ac_res=-l$ac_lib 13998 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13999 fi 14000 if ac_fn_c_try_link "$LINENO"; then : 14001 ac_cv_search_dlopen=$ac_res 14002fi 14003rm -f core conftest.err conftest.$ac_objext \ 14004 conftest$ac_exeext 14005 if test "${ac_cv_search_dlopen+set}" = set; then : 14006 break 14007fi 14008done 14009if test "${ac_cv_search_dlopen+set}" = set; then : 14010 14011else 14012 ac_cv_search_dlopen=no 14013fi 14014rm conftest.$ac_ext 14015LIBS=$ac_func_search_save_LIBS 14016fi 14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14018$as_echo "$ac_cv_search_dlopen" >&6; } 14019ac_res=$ac_cv_search_dlopen 14020if test "$ac_res" != no; then : 14021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14022 14023fi 14024 14025if test "x$ac_cv_search_dlopen" = xno; then 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 14027$as_echo_n "checking for library containing shl_load... " >&6; } 14028if test "${ac_cv_search_shl_load+set}" = set; then : 14029 $as_echo_n "(cached) " >&6 14030else 14031 ac_func_search_save_LIBS=$LIBS 14032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034 14035/* Override any GCC internal prototype to avoid an error. 14036 Use char because int might match the return type of a GCC 14037 builtin and then its argument prototype would still apply. */ 14038#ifdef __cplusplus 14039extern "C" 14040#endif 14041char shl_load (); 14042int 14043main () 14044{ 14045return shl_load (); 14046 ; 14047 return 0; 14048} 14049_ACEOF 14050for ac_lib in '' dld; do 14051 if test -z "$ac_lib"; then 14052 ac_res="none required" 14053 else 14054 ac_res=-l$ac_lib 14055 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14056 fi 14057 if ac_fn_c_try_link "$LINENO"; then : 14058 ac_cv_search_shl_load=$ac_res 14059fi 14060rm -f core conftest.err conftest.$ac_objext \ 14061 conftest$ac_exeext 14062 if test "${ac_cv_search_shl_load+set}" = set; then : 14063 break 14064fi 14065done 14066if test "${ac_cv_search_shl_load+set}" = set; then : 14067 14068else 14069 ac_cv_search_shl_load=no 14070fi 14071rm conftest.$ac_ext 14072LIBS=$ac_func_search_save_LIBS 14073fi 14074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 14075$as_echo "$ac_cv_search_shl_load" >&6; } 14076ac_res=$ac_cv_search_shl_load 14077if test "$ac_res" != no; then : 14078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14079 14080fi 14081 14082 if test "x$ac_cv_search_shl_load" != xno; then 14083 14084$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14085 14086 for ac_header in dl.h 14087do : 14088 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 14089if test "x$ac_cv_header_dl_h" = x""yes; then : 14090 cat >>confdefs.h <<_ACEOF 14091#define HAVE_DL_H 1 14092_ACEOF 14093 14094fi 14095 14096done 14097 14098 fi 14099else 14100 14101$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 14102 14103 for ac_header in dlfcn.h 14104do : 14105 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 14106if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 14107 cat >>confdefs.h <<_ACEOF 14108#define HAVE_DLFCN_H 1 14109_ACEOF 14110 14111fi 14112 14113done 14114 14115fi 14116if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then 14117 HAVE_LOADABLE_MODULES=yes 14118else 14119 HAVE_LOADABLE_MODULES=no 14120fi 14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 14122$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 14123 14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 14125$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 14126# Check whether --enable-loadable-i18n was given. 14127if test "${enable_loadable_i18n+set}" = set; then : 14128 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 14129else 14130 XLIB_LOADABLE_I18N="no" 14131fi 14132 14133if test x$XLIB_LOADABLE_I18N = xyes; then 14134 if test x$HAVE_LOADABLE_MODULES = xno; then 14135 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 14136 fi 14137 14138$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 14139 14140 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 14141 14142fi 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 14144$as_echo "$XLIB_LOADABLE_I18N" >&6; } 14145 14146 if test x$XLIB_LOADABLE_I18N = xyes; then 14147 XLIB_LOADABLE_I18N_TRUE= 14148 XLIB_LOADABLE_I18N_FALSE='#' 14149else 14150 XLIB_LOADABLE_I18N_TRUE='#' 14151 XLIB_LOADABLE_I18N_FALSE= 14152fi 14153 14154 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 14156$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 14157# Check whether --enable-loadable-xcursor was given. 14158if test "${enable_loadable_xcursor+set}" = set; then : 14159 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 14160else 14161 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 14162fi 14163 14164if test x$XLIB_LOADABLE_XCURSOR = xyes; then 14165 14166$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 14167 14168fi 14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 14170$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 14171 14172# Checks for header files. 14173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14174$as_echo_n "checking for ANSI C header files... " >&6; } 14175if test "${ac_cv_header_stdc+set}" = set; then : 14176 $as_echo_n "(cached) " >&6 14177else 14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14179/* end confdefs.h. */ 14180#include <stdlib.h> 14181#include <stdarg.h> 14182#include <string.h> 14183#include <float.h> 14184 14185int 14186main () 14187{ 14188 14189 ; 14190 return 0; 14191} 14192_ACEOF 14193if ac_fn_c_try_compile "$LINENO"; then : 14194 ac_cv_header_stdc=yes 14195else 14196 ac_cv_header_stdc=no 14197fi 14198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14199 14200if test $ac_cv_header_stdc = yes; then 14201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204#include <string.h> 14205 14206_ACEOF 14207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14208 $EGREP "memchr" >/dev/null 2>&1; then : 14209 14210else 14211 ac_cv_header_stdc=no 14212fi 14213rm -f conftest* 14214 14215fi 14216 14217if test $ac_cv_header_stdc = yes; then 14218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14220/* end confdefs.h. */ 14221#include <stdlib.h> 14222 14223_ACEOF 14224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14225 $EGREP "free" >/dev/null 2>&1; then : 14226 14227else 14228 ac_cv_header_stdc=no 14229fi 14230rm -f conftest* 14231 14232fi 14233 14234if test $ac_cv_header_stdc = yes; then 14235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14236 if test "$cross_compiling" = yes; then : 14237 : 14238else 14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240/* end confdefs.h. */ 14241#include <ctype.h> 14242#include <stdlib.h> 14243#if ((' ' & 0x0FF) == 0x020) 14244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14246#else 14247# define ISLOWER(c) \ 14248 (('a' <= (c) && (c) <= 'i') \ 14249 || ('j' <= (c) && (c) <= 'r') \ 14250 || ('s' <= (c) && (c) <= 'z')) 14251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14252#endif 14253 14254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14255int 14256main () 14257{ 14258 int i; 14259 for (i = 0; i < 256; i++) 14260 if (XOR (islower (i), ISLOWER (i)) 14261 || toupper (i) != TOUPPER (i)) 14262 return 2; 14263 return 0; 14264} 14265_ACEOF 14266if ac_fn_c_try_run "$LINENO"; then : 14267 14268else 14269 ac_cv_header_stdc=no 14270fi 14271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14272 conftest.$ac_objext conftest.beam conftest.$ac_ext 14273fi 14274 14275fi 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14278$as_echo "$ac_cv_header_stdc" >&6; } 14279if test $ac_cv_header_stdc = yes; then 14280 14281$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14282 14283fi 14284 14285for ac_header in sys/select.h 14286do : 14287 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 14288if test "x$ac_cv_header_sys_select_h" = x""yes; then : 14289 cat >>confdefs.h <<_ACEOF 14290#define HAVE_SYS_SELECT_H 1 14291_ACEOF 14292 14293fi 14294 14295done 14296 14297 14298# Checks for typedefs, structures, and compiler characteristics. 14299 14300# Checks for library functions. 14301for ac_func in strtol 14302do : 14303 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 14304if test "x$ac_cv_func_strtol" = x""yes; then : 14305 cat >>confdefs.h <<_ACEOF 14306#define HAVE_STRTOL 1 14307_ACEOF 14308 14309fi 14310done 14311 14312# Used in lcFile.c (see also --enable-xlocaledir settings below) 14313XLOCALEDIR_IS_SAFE="no" 14314ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 14315if test "x$ac_cv_func_issetugid" = x""yes; then : 14316 XLOCALEDIR_IS_SAFE="yes" 14317 14318$as_echo "#define HASSETUGID 1" >>confdefs.h 14319 14320fi 14321 14322ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 14323if test "x$ac_cv_func_getresuid" = x""yes; then : 14324 XLOCALEDIR_IS_SAFE="yes" 14325 14326$as_echo "#define HASGETRESUID 1" >>confdefs.h 14327 14328fi 14329 14330# Used in Font.c 14331ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 14332if test "x$ac_cv_func_shmat" = x""yes; then : 14333 14334$as_echo "#define HAS_SHM 1" >>confdefs.h 14335 14336fi 14337 14338 14339# Checks for system services 14340 14341# arch specific things 14342WCHAR32="1" 14343case $target_alias in 14344 *os2*) os2="true" ; WCHAR32="0" ;; 14345 *) ;; 14346esac 14347 14348 14349 if test x$os2 = xtrue; then 14350 OS2_TRUE= 14351 OS2_FALSE='#' 14352else 14353 OS2_TRUE='#' 14354 OS2_FALSE= 14355fi 14356 14357 14358 14359# Check whether --with-launchd was given. 14360if test "${with_launchd+set}" = set; then : 14361 withval=$with_launchd; LAUNCHD=$withval 14362else 14363 LAUNCHD=auto 14364fi 14365 14366if test "x$LAUNCHD" = xauto; then 14367 unset LAUNCHD 14368 # Extract the first word of "launchd", so it can be a program name with args. 14369set dummy launchd; ac_word=$2 14370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14371$as_echo_n "checking for $ac_word... " >&6; } 14372if test "${ac_cv_prog_LAUNCHD+set}" = set; then : 14373 $as_echo_n "(cached) " >&6 14374else 14375 if test -n "$LAUNCHD"; then 14376 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 14377else 14378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14379for as_dir in $PATH$PATH_SEPARATOR/sbin 14380do 14381 IFS=$as_save_IFS 14382 test -z "$as_dir" && as_dir=. 14383 for ac_exec_ext in '' $ac_executable_extensions; do 14384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14385 ac_cv_prog_LAUNCHD="yes" 14386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14387 break 2 14388 fi 14389done 14390 done 14391IFS=$as_save_IFS 14392 14393 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 14394fi 14395fi 14396LAUNCHD=$ac_cv_prog_LAUNCHD 14397if test -n "$LAUNCHD"; then 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 14399$as_echo "$LAUNCHD" >&6; } 14400else 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14402$as_echo "no" >&6; } 14403fi 14404 14405 14406fi 14407 14408if test "x$LAUNCHD" = xyes ; then 14409 14410$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 14411 14412 14413$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 14414 14415fi 14416 14417# Check whether --enable-xthreads was given. 14418if test "${enable_xthreads+set}" = set; then : 14419 enableval=$enable_xthreads; xthreads=$enableval 14420else 14421 xthreads=yes 14422fi 14423 14424 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 14426$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 14427if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then : 14428 $as_echo_n "(cached) " >&6 14429else 14430 ac_check_lib_save_LIBS=$LIBS 14431LIBS="-lc $LIBS" 14432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14433/* end confdefs.h. */ 14434 14435/* Override any GCC internal prototype to avoid an error. 14436 Use char because int might match the return type of a GCC 14437 builtin and then its argument prototype would still apply. */ 14438#ifdef __cplusplus 14439extern "C" 14440#endif 14441char getpwuid_r (); 14442int 14443main () 14444{ 14445return getpwuid_r (); 14446 ; 14447 return 0; 14448} 14449_ACEOF 14450if ac_fn_c_try_link "$LINENO"; then : 14451 ac_cv_lib_c_getpwuid_r=yes 14452else 14453 ac_cv_lib_c_getpwuid_r=no 14454fi 14455rm -f core conftest.err conftest.$ac_objext \ 14456 conftest$ac_exeext conftest.$ac_ext 14457LIBS=$ac_check_lib_save_LIBS 14458fi 14459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 14460$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 14461if test "x$ac_cv_lib_c_getpwuid_r" = x""yes; then : 14462 mtsafeapi="yes" 14463else 14464 mtsafeapi="no" 14465fi 14466 14467 14468case x$xthreads in 14469xyes) 14470 14471$as_echo "#define XTHREADS 1" >>confdefs.h 14472 14473 if test x$mtsafeapi = xyes 14474 then 14475 14476$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 14477 14478 fi 14479 ;; 14480*) 14481 ;; 14482esac 14483 14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 14485$as_echo_n "checking for pthread_self in -lc... " >&6; } 14486if test "${ac_cv_lib_c_pthread_self+set}" = set; then : 14487 $as_echo_n "(cached) " >&6 14488else 14489 ac_check_lib_save_LIBS=$LIBS 14490LIBS="-lc $LIBS" 14491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14492/* end confdefs.h. */ 14493 14494/* Override any GCC internal prototype to avoid an error. 14495 Use char because int might match the return type of a GCC 14496 builtin and then its argument prototype would still apply. */ 14497#ifdef __cplusplus 14498extern "C" 14499#endif 14500char pthread_self (); 14501int 14502main () 14503{ 14504return pthread_self (); 14505 ; 14506 return 0; 14507} 14508_ACEOF 14509if ac_fn_c_try_link "$LINENO"; then : 14510 ac_cv_lib_c_pthread_self=yes 14511else 14512 ac_cv_lib_c_pthread_self=no 14513fi 14514rm -f core conftest.err conftest.$ac_objext \ 14515 conftest$ac_exeext conftest.$ac_ext 14516LIBS=$ac_check_lib_save_LIBS 14517fi 14518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 14519$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 14520if test "x$ac_cv_lib_c_pthread_self" = x""yes; then : 14521 thrstubs="no" 14522else 14523 thrstubs="yes" 14524fi 14525 14526 if test x$thrstubs = xyes; then 14527 THRSTUBS_TRUE= 14528 THRSTUBS_FALSE='#' 14529else 14530 THRSTUBS_TRUE='#' 14531 THRSTUBS_FALSE= 14532fi 14533 14534 14535if test x$xthreads = xyes ; then 14536 case $host_os in 14537 linux*|openbsd*|gnu*|k*bsd*-gnu) 14538 XTHREADLIB=-lpthread ;; 14539 netbsd*) 14540 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 14541 XTHREADLIB="-lpthread" ;; 14542 freebsd*) 14543 XTHREAD_CFLAGS="-D_THREAD_SAFE" 14544 XTHREADLIB="-pthread" ;; 14545 dragonfly*) 14546 XTHREADLIB="-pthread" ;; 14547 solaris*) 14548 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 14549 esac 14550fi 14551 14552 14553 14554case x$xdmauth in 14555xyes) 14556 XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH" 14557 ;; 14558xno) 14559 XDMCP_LIBS="" 14560 ;; 14561esac 14562 14563 14564 14565ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 14566if test "x$ac_cv_func_poll" = x""yes; then : 14567 14568$as_echo "#define USE_POLL 1" >>confdefs.h 14569 14570fi 14571 14572 14573# 14574# Find keysymdef.h 14575# 14576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 14577$as_echo_n "checking keysym definitions... " >&6; } 14578KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 14579FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 14580for i in $FILES; do 14581 if test -f "$KEYSYMDEFDIR/$i"; then 14582 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 14583 elif test "x$i" = "xkeysymdef.h"; then 14584 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 14585 fi 14586done 14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 14588$as_echo "$KEYSYMDEFS" >&6; } 14589 14590 14591 if test xfalse = xtrue; then 14592 UDC_TRUE= 14593 UDC_FALSE='#' 14594else 14595 UDC_TRUE='#' 14596 UDC_FALSE= 14597fi 14598 14599 14600# Check whether --enable-xcms was given. 14601if test "${enable_xcms+set}" = set; then : 14602 enableval=$enable_xcms; XCMS=$enableval 14603else 14604 XCMS=yes 14605fi 14606 14607 if test x$XCMS = xyes ; then 14608 XCMS_TRUE= 14609 XCMS_FALSE='#' 14610else 14611 XCMS_TRUE='#' 14612 XCMS_FALSE= 14613fi 14614 14615if test x"$XCMS" = "xyes"; then 14616 14617$as_echo "#define XCMS 1" >>confdefs.h 14618 14619fi 14620 14621# Check whether --enable-xlocale was given. 14622if test "${enable_xlocale+set}" = set; then : 14623 enableval=$enable_xlocale; XLOCALE=$enableval 14624else 14625 XLOCALE=yes 14626fi 14627 14628 14629 if test x$XLOCALE = xyes ; then 14630 XLOCALE_TRUE= 14631 XLOCALE_FALSE='#' 14632else 14633 XLOCALE_TRUE='#' 14634 XLOCALE_FALSE= 14635fi 14636 14637if test x"$XLOCALE" = "xyes"; then 14638 14639$as_echo "#define XLOCALE 1" >>confdefs.h 14640 14641fi 14642 14643# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 14644# don't have either issetugid() or getresuid(), and you need to protect 14645# clients that are setgid or setuid to an id other than 0. 14646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 14647$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 14648# Check whether --enable-xlocaledir was given. 14649if test "${enable_xlocaledir+set}" = set; then : 14650 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 14651else 14652 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 14653fi 14654 14655if test "x$ENABLE_XLOCALEDIR" = "xno"; then 14656 14657$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 14658 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 14661$as_echo "$ENABLE_XLOCALEDIR" >&6; } 14662 14663# Check whether --enable-xf86bigfont was given. 14664if test "${enable_xf86bigfont+set}" = set; then : 14665 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 14666else 14667 XF86BIGFONT="yes" 14668fi 14669 14670if test "x$XF86BIGFONT" = "xyes"; then 14671 14672pkg_failed=no 14673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 14674$as_echo_n "checking for BIGFONT... " >&6; } 14675 14676if test -n "$BIGFONT_CFLAGS"; then 14677 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 14678 elif test -n "$PKG_CONFIG"; then 14679 if test -n "$PKG_CONFIG" && \ 14680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5 14681 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5 14682 ac_status=$? 14683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14684 test $ac_status = 0; }; then 14685 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null` 14686else 14687 pkg_failed=yes 14688fi 14689 else 14690 pkg_failed=untried 14691fi 14692if test -n "$BIGFONT_LIBS"; then 14693 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 14694 elif test -n "$PKG_CONFIG"; then 14695 if test -n "$PKG_CONFIG" && \ 14696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5 14697 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5 14698 ac_status=$? 14699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14700 test $ac_status = 0; }; then 14701 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null` 14702else 14703 pkg_failed=yes 14704fi 14705 else 14706 pkg_failed=untried 14707fi 14708 14709 14710 14711if test $pkg_failed = yes; then 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14713$as_echo "no" >&6; } 14714 14715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14716 _pkg_short_errors_supported=yes 14717else 14718 _pkg_short_errors_supported=no 14719fi 14720 if test $_pkg_short_errors_supported = yes; then 14721 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1` 14722 else 14723 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1` 14724 fi 14725 # Put the nasty error message in config.log where it belongs 14726 echo "$BIGFONT_PKG_ERRORS" >&5 14727 14728 XF86BIGFONT="no" 14729elif test $pkg_failed = untried; then 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14731$as_echo "no" >&6; } 14732 XF86BIGFONT="no" 14733else 14734 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 14735 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14737$as_echo "yes" >&6; } 14738 14739$as_echo "#define XF86BIGFONT 1" >>confdefs.h 14740 14741fi 14742 14743 14744fi 14745 14746# Check whether --enable-xkb was given. 14747if test "${enable_xkb+set}" = set; then : 14748 enableval=$enable_xkb; XKB=$enableval 14749else 14750 XKB=yes 14751fi 14752 14753 14754# Check whether --enable-man-pages was given. 14755if test "${enable_man_pages+set}" = set; then : 14756 enableval=$enable_man_pages; LIBMAN=$enableval 14757else 14758 LIBMAN=yes 14759fi 14760 14761 14762if test "x$LIBMAN" != "xyes"; then 14763 LIB_MAN_SUFFIX=$LIBMAN 14764fi 14765 14766 if test x$LIBMAN '!=' xno ; then 14767 MANPAGES_TRUE= 14768 MANPAGES_FALSE='#' 14769else 14770 MANPAGES_TRUE='#' 14771 MANPAGES_FALSE= 14772fi 14773 14774 14775 if test x$XKB = xyes ; then 14776 XKB_TRUE= 14777 XKB_FALSE='#' 14778else 14779 XKB_TRUE='#' 14780 XKB_FALSE= 14781fi 14782 14783if test x"$XKB" = "xyes"; then 14784 XKBPROTO_REQUIRES="kbproto" 14785 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 14786 14787$as_echo "#define XKB 1" >>confdefs.h 14788 14789else 14790 XKBPROTO_REQUIRES="" 14791fi 14792 14793 14794 14795 14796 14797 for ac_header in $ac_header_list 14798do : 14799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14800ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14801" 14802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14803 cat >>confdefs.h <<_ACEOF 14804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14805_ACEOF 14806 14807fi 14808 14809done 14810 14811 14812 14813 14814 14815 14816 14817 14818for ac_func in getpagesize 14819do : 14820 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 14821if test "x$ac_cv_func_getpagesize" = x""yes; then : 14822 cat >>confdefs.h <<_ACEOF 14823#define HAVE_GETPAGESIZE 1 14824_ACEOF 14825 14826fi 14827done 14828 14829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 14830$as_echo_n "checking for working mmap... " >&6; } 14831if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 if test "$cross_compiling" = yes; then : 14835 ac_cv_func_mmap_fixed_mapped=no 14836else 14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14838/* end confdefs.h. */ 14839$ac_includes_default 14840/* malloc might have been renamed as rpl_malloc. */ 14841#undef malloc 14842 14843/* Thanks to Mike Haertel and Jim Avera for this test. 14844 Here is a matrix of mmap possibilities: 14845 mmap private not fixed 14846 mmap private fixed at somewhere currently unmapped 14847 mmap private fixed at somewhere already mapped 14848 mmap shared not fixed 14849 mmap shared fixed at somewhere currently unmapped 14850 mmap shared fixed at somewhere already mapped 14851 For private mappings, we should verify that changes cannot be read() 14852 back from the file, nor mmap's back from the file at a different 14853 address. (There have been systems where private was not correctly 14854 implemented like the infamous i386 svr4.0, and systems where the 14855 VM page cache was not coherent with the file system buffer cache 14856 like early versions of FreeBSD and possibly contemporary NetBSD.) 14857 For shared mappings, we should conversely verify that changes get 14858 propagated back to all the places they're supposed to be. 14859 14860 Grep wants private fixed already mapped. 14861 The main things grep needs to know about mmap are: 14862 * does it exist and is it safe to write into the mmap'd area 14863 * how to use it (BSD variants) */ 14864 14865#include <fcntl.h> 14866#include <sys/mman.h> 14867 14868#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 14869char *malloc (); 14870#endif 14871 14872/* This mess was copied from the GNU getpagesize.h. */ 14873#ifndef HAVE_GETPAGESIZE 14874# ifdef _SC_PAGESIZE 14875# define getpagesize() sysconf(_SC_PAGESIZE) 14876# else /* no _SC_PAGESIZE */ 14877# ifdef HAVE_SYS_PARAM_H 14878# include <sys/param.h> 14879# ifdef EXEC_PAGESIZE 14880# define getpagesize() EXEC_PAGESIZE 14881# else /* no EXEC_PAGESIZE */ 14882# ifdef NBPG 14883# define getpagesize() NBPG * CLSIZE 14884# ifndef CLSIZE 14885# define CLSIZE 1 14886# endif /* no CLSIZE */ 14887# else /* no NBPG */ 14888# ifdef NBPC 14889# define getpagesize() NBPC 14890# else /* no NBPC */ 14891# ifdef PAGESIZE 14892# define getpagesize() PAGESIZE 14893# endif /* PAGESIZE */ 14894# endif /* no NBPC */ 14895# endif /* no NBPG */ 14896# endif /* no EXEC_PAGESIZE */ 14897# else /* no HAVE_SYS_PARAM_H */ 14898# define getpagesize() 8192 /* punt totally */ 14899# endif /* no HAVE_SYS_PARAM_H */ 14900# endif /* no _SC_PAGESIZE */ 14901 14902#endif /* no HAVE_GETPAGESIZE */ 14903 14904int 14905main () 14906{ 14907 char *data, *data2, *data3; 14908 const char *cdata2; 14909 int i, pagesize; 14910 int fd, fd2; 14911 14912 pagesize = getpagesize (); 14913 14914 /* First, make a file with some known garbage in it. */ 14915 data = (char *) malloc (pagesize); 14916 if (!data) 14917 return 1; 14918 for (i = 0; i < pagesize; ++i) 14919 *(data + i) = rand (); 14920 umask (0); 14921 fd = creat ("conftest.mmap", 0600); 14922 if (fd < 0) 14923 return 2; 14924 if (write (fd, data, pagesize) != pagesize) 14925 return 3; 14926 close (fd); 14927 14928 /* Next, check that the tail of a page is zero-filled. File must have 14929 non-zero length, otherwise we risk SIGBUS for entire page. */ 14930 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 14931 if (fd2 < 0) 14932 return 4; 14933 cdata2 = ""; 14934 if (write (fd2, cdata2, 1) != 1) 14935 return 5; 14936 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 14937 if (data2 == MAP_FAILED) 14938 return 6; 14939 for (i = 0; i < pagesize; ++i) 14940 if (*(data2 + i)) 14941 return 7; 14942 close (fd2); 14943 if (munmap (data2, pagesize)) 14944 return 8; 14945 14946 /* Next, try to mmap the file at a fixed address which already has 14947 something else allocated at it. If we can, also make sure that 14948 we see the same garbage. */ 14949 fd = open ("conftest.mmap", O_RDWR); 14950 if (fd < 0) 14951 return 9; 14952 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 14953 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 14954 return 10; 14955 for (i = 0; i < pagesize; ++i) 14956 if (*(data + i) != *(data2 + i)) 14957 return 11; 14958 14959 /* Finally, make sure that changes to the mapped area do not 14960 percolate back to the file as seen by read(). (This is a bug on 14961 some variants of i386 svr4.0.) */ 14962 for (i = 0; i < pagesize; ++i) 14963 *(data2 + i) = *(data2 + i) + 1; 14964 data3 = (char *) malloc (pagesize); 14965 if (!data3) 14966 return 12; 14967 if (read (fd, data3, pagesize) != pagesize) 14968 return 13; 14969 for (i = 0; i < pagesize; ++i) 14970 if (*(data + i) != *(data3 + i)) 14971 return 14; 14972 close (fd); 14973 return 0; 14974} 14975_ACEOF 14976if ac_fn_c_try_run "$LINENO"; then : 14977 ac_cv_func_mmap_fixed_mapped=yes 14978else 14979 ac_cv_func_mmap_fixed_mapped=no 14980fi 14981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14982 conftest.$ac_objext conftest.beam conftest.$ac_ext 14983fi 14984 14985fi 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 14987$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 14988if test $ac_cv_func_mmap_fixed_mapped = yes; then 14989 14990$as_echo "#define HAVE_MMAP 1" >>confdefs.h 14991 14992fi 14993rm -f conftest.mmap conftest.txt 14994 14995composecache_default=$ac_cv_func_mmap_fixed_mapped 14996ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 14997if test "x$ac_cv_func_nl_langinfo" = x""yes; then : 14998 14999else 15000 composecache_default=no 15001fi 15002 15003# Check whether --enable-composecache was given. 15004if test "${enable_composecache+set}" = set; then : 15005 enableval=$enable_composecache; COMPOSECACHE=$enableval 15006else 15007 COMPOSECACHE=$composecache_default 15008fi 15009 15010if test x"$COMPOSECACHE" = "xyes"; then 15011 15012$as_echo "#define COMPOSECACHE 1" >>confdefs.h 15013 15014fi 15015 15016 15017 15018 15019 15020 15021# Check whether --with-lint was given. 15022if test "${with_lint+set}" = set; then : 15023 withval=$with_lint; use_lint=$withval 15024else 15025 use_lint=no 15026fi 15027 15028 15029# Obtain platform specific info like program name and options 15030# The lint program on FreeBSD and NetBSD is different from the one on Solaris 15031case $host_os in 15032 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 15033 lint_name=splint 15034 lint_options="-badflag" 15035 ;; 15036 *freebsd* | *netbsd*) 15037 lint_name=lint 15038 lint_options="-u -b" 15039 ;; 15040 *solaris*) 15041 lint_name=lint 15042 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 15043 ;; 15044esac 15045 15046# Test for the presence of the program (either guessed by the code or spelled out by the user) 15047if test "x$use_lint" = x"yes" ; then 15048 # Extract the first word of "$lint_name", so it can be a program name with args. 15049set dummy $lint_name; ac_word=$2 15050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15051$as_echo_n "checking for $ac_word... " >&6; } 15052if test "${ac_cv_path_LINT+set}" = set; then : 15053 $as_echo_n "(cached) " >&6 15054else 15055 case $LINT in 15056 [\\/]* | ?:[\\/]*) 15057 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 15058 ;; 15059 *) 15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15061for as_dir in $PATH 15062do 15063 IFS=$as_save_IFS 15064 test -z "$as_dir" && as_dir=. 15065 for ac_exec_ext in '' $ac_executable_extensions; do 15066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15067 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 15068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15069 break 2 15070 fi 15071done 15072 done 15073IFS=$as_save_IFS 15074 15075 ;; 15076esac 15077fi 15078LINT=$ac_cv_path_LINT 15079if test -n "$LINT"; then 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 15081$as_echo "$LINT" >&6; } 15082else 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15084$as_echo "no" >&6; } 15085fi 15086 15087 15088 if test "x$LINT" = "x"; then 15089 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 15090 fi 15091elif test "x$use_lint" = x"no" ; then 15092 if test "x$LINT" != "x"; then 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 15094$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 15095 fi 15096else 15097 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 15098fi 15099 15100# User supplied flags override default flags 15101if test "x$LINT_FLAGS" != "x"; then 15102 lint_options=$LINT_FLAGS 15103fi 15104 15105LINT_FLAGS=$lint_options 15106 15107 if test "x$LINT" != x; then 15108 LINT_TRUE= 15109 LINT_FALSE='#' 15110else 15111 LINT_TRUE='#' 15112 LINT_FALSE= 15113fi 15114 15115 15116 15117 15118 15119# Check whether --enable-lint-library was given. 15120if test "${enable_lint_library+set}" = set; then : 15121 enableval=$enable_lint_library; make_lint_lib=$enableval 15122else 15123 make_lint_lib=no 15124fi 15125 15126 15127if test "x$make_lint_lib" = x"yes" ; then 15128 LINTLIB=llib-lX11.ln 15129 if test "x$LINT" = "x"; then 15130 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 15131 fi 15132elif test "x$make_lint_lib" != x"no" ; then 15133 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 15134fi 15135 15136 15137 if test x$make_lint_lib != xno; then 15138 MAKE_LINT_LIB_TRUE= 15139 MAKE_LINT_LIB_FALSE='#' 15140else 15141 MAKE_LINT_LIB_TRUE='#' 15142 MAKE_LINT_LIB_FALSE= 15143fi 15144 15145 15146 15147 15148X11_DATADIR="${datadir}/X11" 15149 15150 prefix_NONE= 15151 exec_prefix_NONE= 15152 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15153 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15154 eval ax_define_dir="\"$X11_DATADIR\"" 15155 eval ax_define_dir="\"$ax_define_dir\"" 15156 X11_DATADIR="$ax_define_dir" 15157 15158 15159cat >>confdefs.h <<_ACEOF 15160#define X11_DATADIR "$ax_define_dir" 15161_ACEOF 15162 15163 test "$prefix_NONE" && prefix=NONE 15164 test "$exec_prefix_NONE" && exec_prefix=NONE 15165 15166 15167 15168X11_LIBDIR="${libdir}/X11" 15169 15170 prefix_NONE= 15171 exec_prefix_NONE= 15172 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15173 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15174 eval ax_define_dir="\"$X11_LIBDIR\"" 15175 eval ax_define_dir="\"$ax_define_dir\"" 15176 X11_LIBDIR="$ax_define_dir" 15177 15178 15179cat >>confdefs.h <<_ACEOF 15180#define X11_LIBDIR "$ax_define_dir" 15181_ACEOF 15182 15183 test "$prefix_NONE" && prefix=NONE 15184 test "$exec_prefix_NONE" && exec_prefix=NONE 15185 15186 15187 15188 15189pkg_failed=no 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 15191$as_echo_n "checking for X11... " >&6; } 15192 15193if test -n "$X11_CFLAGS"; then 15194 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 15195 elif test -n "$PKG_CONFIG"; then 15196 if test -n "$PKG_CONFIG" && \ 15197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 15198 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 15199 ac_status=$? 15200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15201 test $ac_status = 0; }; then 15202 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 15203else 15204 pkg_failed=yes 15205fi 15206 else 15207 pkg_failed=untried 15208fi 15209if test -n "$X11_LIBS"; then 15210 pkg_cv_X11_LIBS="$X11_LIBS" 15211 elif test -n "$PKG_CONFIG"; then 15212 if test -n "$PKG_CONFIG" && \ 15213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 15214 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 15215 ac_status=$? 15216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15217 test $ac_status = 0; }; then 15218 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 15219else 15220 pkg_failed=yes 15221fi 15222 else 15223 pkg_failed=untried 15224fi 15225 15226 15227 15228if test $pkg_failed = yes; then 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15230$as_echo "no" >&6; } 15231 15232if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15233 _pkg_short_errors_supported=yes 15234else 15235 _pkg_short_errors_supported=no 15236fi 15237 if test $_pkg_short_errors_supported = yes; then 15238 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1` 15239 else 15240 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1` 15241 fi 15242 # Put the nasty error message in config.log where it belongs 15243 echo "$X11_PKG_ERRORS" >&5 15244 15245 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 15246 15247$X11_PKG_ERRORS 15248 15249Consider adjusting the PKG_CONFIG_PATH environment variable if you 15250installed software in a non-standard prefix. 15251 15252Alternatively, you may set the environment variables X11_CFLAGS 15253and X11_LIBS to avoid the need to call pkg-config. 15254See the pkg-config man page for more details." "$LINENO" 5 15255elif test $pkg_failed = untried; then 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15257$as_echo "no" >&6; } 15258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15260as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15261is in your PATH or set the PKG_CONFIG environment variable to the full 15262path to pkg-config. 15263 15264Alternatively, you may set the environment variables X11_CFLAGS 15265and X11_LIBS to avoid the need to call pkg-config. 15266See the pkg-config man page for more details. 15267 15268To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15269See \`config.log' for more details" "$LINENO" 5 ; } 15270else 15271 X11_CFLAGS=$pkg_cv_X11_CFLAGS 15272 X11_LIBS=$pkg_cv_X11_LIBS 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15274$as_echo "yes" >&6; } 15275 15276fi 15277X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 15278 15279# 15280# Yes, it would be nice to put the locale data in 15281# /usr/share, but the locale stuff includes loadable 15282# libraries which must be located in the same directory 15283# as the other locale data, so for now, everything lives 15284# in ${libdir} 15285# 15286 15287X11_LOCALEDATADIR="${X11_DATADIR}/locale" 15288 15289 prefix_NONE= 15290 exec_prefix_NONE= 15291 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15292 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15293 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 15294 eval ax_define_dir="\"$ax_define_dir\"" 15295 XLOCALEDATADIR="$ax_define_dir" 15296 15297 15298cat >>confdefs.h <<_ACEOF 15299#define XLOCALEDATADIR "$ax_define_dir" 15300_ACEOF 15301 15302 test "$prefix_NONE" && prefix=NONE 15303 test "$exec_prefix_NONE" && exec_prefix=NONE 15304 15305 15306 15307 15308# Check whether --with-locale-lib-dir was given. 15309if test "${with_locale_lib_dir+set}" = set; then : 15310 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 15311else 15312 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 15313fi 15314 15315 15316 prefix_NONE= 15317 exec_prefix_NONE= 15318 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15319 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15320 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 15321 eval ax_define_dir="\"$ax_define_dir\"" 15322 XLOCALELIBDIR="$ax_define_dir" 15323 15324 15325cat >>confdefs.h <<_ACEOF 15326#define XLOCALELIBDIR "$ax_define_dir" 15327_ACEOF 15328 15329 test "$prefix_NONE" && prefix=NONE 15330 test "$exec_prefix_NONE" && exec_prefix=NONE 15331 15332 15333 15334X11_LOCALEDIR="${X11_LOCALEDATADIR}" 15335 15336 prefix_NONE= 15337 exec_prefix_NONE= 15338 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15339 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15340 eval ax_define_dir="\"$X11_LOCALEDIR\"" 15341 eval ax_define_dir="\"$ax_define_dir\"" 15342 XLOCALEDIR="$ax_define_dir" 15343 15344 15345cat >>confdefs.h <<_ACEOF 15346#define XLOCALEDIR "$ax_define_dir" 15347_ACEOF 15348 15349 test "$prefix_NONE" && prefix=NONE 15350 test "$exec_prefix_NONE" && exec_prefix=NONE 15351 15352 15353 15354XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 15355 15356 prefix_NONE= 15357 exec_prefix_NONE= 15358 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15359 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15360 eval ax_define_dir="\"$XKEYSYMDB\"" 15361 eval ax_define_dir="\"$ax_define_dir\"" 15362 XKEYSYMDB="$ax_define_dir" 15363 15364 15365cat >>confdefs.h <<_ACEOF 15366#define XKEYSYMDB "$ax_define_dir" 15367_ACEOF 15368 15369 test "$prefix_NONE" && prefix=NONE 15370 test "$exec_prefix_NONE" && exec_prefix=NONE 15371 15372 15373XERRORDB="${X11_DATADIR}/XErrorDB" 15374 15375 prefix_NONE= 15376 exec_prefix_NONE= 15377 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 15378 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 15379 eval ax_define_dir="\"$XERRORDB\"" 15380 eval ax_define_dir="\"$ax_define_dir\"" 15381 XERRORDB="$ax_define_dir" 15382 15383 15384cat >>confdefs.h <<_ACEOF 15385#define XERRORDB "$ax_define_dir" 15386_ACEOF 15387 15388 test "$prefix_NONE" && prefix=NONE 15389 test "$exec_prefix_NONE" && exec_prefix=NONE 15390 15391 15392 15393# Check whether --enable-malloc0returnsnull was given. 15394if test "${enable_malloc0returnsnull+set}" = set; then : 15395 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 15396else 15397 MALLOC_ZERO_RETURNS_NULL=auto 15398fi 15399 15400 15401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 15402$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 15403if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 15404 if test "$cross_compiling" = yes; then : 15405 MALLOC_ZERO_RETURNS_NULL=yes 15406else 15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15408/* end confdefs.h. */ 15409 15410char *malloc(); 15411char *realloc(); 15412char *calloc(); 15413main() { 15414 char *m0, *r0, *c0, *p; 15415 m0 = malloc(0); 15416 p = malloc(10); 15417 r0 = realloc(p,0); 15418 c0 = calloc(0); 15419 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 15420} 15421_ACEOF 15422if ac_fn_c_try_run "$LINENO"; then : 15423 MALLOC_ZERO_RETURNS_NULL=yes 15424else 15425 MALLOC_ZERO_RETURNS_NULL=no 15426fi 15427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15428 conftest.$ac_objext conftest.beam conftest.$ac_ext 15429fi 15430 15431fi 15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 15433$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 15434 15435if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 15436 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 15437 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 15438 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 15439else 15440 MALLOC_ZERO_CFLAGS="" 15441 XMALLOC_ZERO_CFLAGS="" 15442 XTMALLOC_ZERO_CFLAGS="" 15443fi 15444 15445 15446 15447 15448 15449 15450ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile specs/Makefile specs/i18n/Makefile specs/libX11/Makefile specs/XIM/Makefile x11.pc x11-xcb.pc" 15451 15452cat >confcache <<\_ACEOF 15453# This file is a shell script that caches the results of configure 15454# tests run on this system so they can be shared between configure 15455# scripts and configure runs, see configure's option --config-cache. 15456# It is not useful on other systems. If it contains results you don't 15457# want to keep, you may remove or edit it. 15458# 15459# config.status only pays attention to the cache file if you give it 15460# the --recheck option to rerun configure. 15461# 15462# `ac_cv_env_foo' variables (set or unset) will be overridden when 15463# loading this file, other *unset* `ac_cv_foo' will be assigned the 15464# following values. 15465 15466_ACEOF 15467 15468# The following way of writing the cache mishandles newlines in values, 15469# but we know of no workaround that is simple, portable, and efficient. 15470# So, we kill variables containing newlines. 15471# Ultrix sh set writes to stderr and can't be redirected directly, 15472# and sets the high bit in the cache file unless we assign to the vars. 15473( 15474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15475 eval ac_val=\$$ac_var 15476 case $ac_val in #( 15477 *${as_nl}*) 15478 case $ac_var in #( 15479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15481 esac 15482 case $ac_var in #( 15483 _ | IFS | as_nl) ;; #( 15484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15485 *) { eval $ac_var=; unset $ac_var;} ;; 15486 esac ;; 15487 esac 15488 done 15489 15490 (set) 2>&1 | 15491 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15492 *${as_nl}ac_space=\ *) 15493 # `set' does not quote correctly, so add quotes: double-quote 15494 # substitution turns \\\\ into \\, and sed turns \\ into \. 15495 sed -n \ 15496 "s/'/'\\\\''/g; 15497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15498 ;; #( 15499 *) 15500 # `set' quotes correctly as required by POSIX, so do not add quotes. 15501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15502 ;; 15503 esac | 15504 sort 15505) | 15506 sed ' 15507 /^ac_cv_env_/b end 15508 t clear 15509 :clear 15510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15511 t end 15512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15513 :end' >>confcache 15514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15515 if test -w "$cache_file"; then 15516 test "x$cache_file" != "x/dev/null" && 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15518$as_echo "$as_me: updating cache $cache_file" >&6;} 15519 cat confcache >$cache_file 15520 else 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15523 fi 15524fi 15525rm -f confcache 15526 15527test "x$prefix" = xNONE && prefix=$ac_default_prefix 15528# Let make expand exec_prefix. 15529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15530 15531DEFS=-DHAVE_CONFIG_H 15532 15533ac_libobjs= 15534ac_ltlibobjs= 15535U= 15536for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15537 # 1. Remove the extension, and $U if already installed. 15538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15541 # will be set to the directory where LIBOBJS objects are built. 15542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15544done 15545LIBOBJS=$ac_libobjs 15546 15547LTLIBOBJS=$ac_ltlibobjs 15548 15549 15550 if test -n "$EXEEXT"; then 15551 am__EXEEXT_TRUE= 15552 am__EXEEXT_FALSE='#' 15553else 15554 am__EXEEXT_TRUE='#' 15555 am__EXEEXT_FALSE= 15556fi 15557 15558if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15559 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15560Usually this means the macro was only invoked conditionally." "$LINENO" 5 15561fi 15562if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15563 as_fn_error $? "conditional \"AMDEP\" was never defined. 15564Usually this means the macro was only invoked conditionally." "$LINENO" 5 15565fi 15566if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15567 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15568Usually this means the macro was only invoked conditionally." "$LINENO" 5 15569fi 15570if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 15571 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 15572Usually this means the macro was only invoked conditionally." "$LINENO" 5 15573fi 15574if test -z "${HAVE_GROFF_TRUE}" && test -z "${HAVE_GROFF_FALSE}"; then 15575 as_fn_error $? "conditional \"HAVE_GROFF\" was never defined. 15576Usually this means the macro was only invoked conditionally." "$LINENO" 5 15577fi 15578if test -z "${HAVE_GROFF_MS_TRUE}" && test -z "${HAVE_GROFF_MS_FALSE}"; then 15579 as_fn_error $? "conditional \"HAVE_GROFF_MS\" was never defined. 15580Usually this means the macro was only invoked conditionally." "$LINENO" 5 15581fi 15582if test -z "${HAVE_GROFF_MM_TRUE}" && test -z "${HAVE_GROFF_MM_FALSE}"; then 15583 as_fn_error $? "conditional \"HAVE_GROFF_MM\" was never defined. 15584Usually this means the macro was only invoked conditionally." "$LINENO" 5 15585fi 15586if test -z "${HAVE_GROFF_HTML_TRUE}" && test -z "${HAVE_GROFF_HTML_FALSE}"; then 15587 as_fn_error $? "conditional \"HAVE_GROFF_HTML\" was never defined. 15588Usually this means the macro was only invoked conditionally." "$LINENO" 5 15589fi 15590if test -z "${HAVE_PS2PDF_TRUE}" && test -z "${HAVE_PS2PDF_FALSE}"; then 15591 as_fn_error $? "conditional \"HAVE_PS2PDF\" was never defined. 15592Usually this means the macro was only invoked conditionally." "$LINENO" 5 15593fi 15594if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15595 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15596Usually this means the macro was only invoked conditionally." "$LINENO" 5 15597fi 15598if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 15599 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 15600Usually this means the macro was only invoked conditionally." "$LINENO" 5 15601fi 15602if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then 15603 as_fn_error $? "conditional \"XCB\" was never defined. 15604Usually this means the macro was only invoked conditionally." "$LINENO" 5 15605fi 15606if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 15607 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 15608Usually this means the macro was only invoked conditionally." "$LINENO" 5 15609fi 15610if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 15611 as_fn_error $? "conditional \"OS2\" was never defined. 15612Usually this means the macro was only invoked conditionally." "$LINENO" 5 15613fi 15614if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 15615 as_fn_error $? "conditional \"THRSTUBS\" was never defined. 15616Usually this means the macro was only invoked conditionally." "$LINENO" 5 15617fi 15618if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then 15619 as_fn_error $? "conditional \"UDC\" was never defined. 15620Usually this means the macro was only invoked conditionally." "$LINENO" 5 15621fi 15622if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 15623 as_fn_error $? "conditional \"XCMS\" was never defined. 15624Usually this means the macro was only invoked conditionally." "$LINENO" 5 15625fi 15626if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 15627 as_fn_error $? "conditional \"XLOCALE\" was never defined. 15628Usually this means the macro was only invoked conditionally." "$LINENO" 5 15629fi 15630if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then 15631 as_fn_error $? "conditional \"MANPAGES\" was never defined. 15632Usually this means the macro was only invoked conditionally." "$LINENO" 5 15633fi 15634if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 15635 as_fn_error $? "conditional \"XKB\" was never defined. 15636Usually this means the macro was only invoked conditionally." "$LINENO" 5 15637fi 15638if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 15639 as_fn_error $? "conditional \"LINT\" was never defined. 15640Usually this means the macro was only invoked conditionally." "$LINENO" 5 15641fi 15642if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 15643 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 15644Usually this means the macro was only invoked conditionally." "$LINENO" 5 15645fi 15646 15647: ${CONFIG_STATUS=./config.status} 15648ac_write_fail=0 15649ac_clean_files_save=$ac_clean_files 15650ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15651{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15652$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15653as_write_fail=0 15654cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15655#! $SHELL 15656# Generated by $as_me. 15657# Run this file to recreate the current configuration. 15658# Compiler output produced by configure, useful for debugging 15659# configure, is in config.log if it exists. 15660 15661debug=false 15662ac_cs_recheck=false 15663ac_cs_silent=false 15664 15665SHELL=\${CONFIG_SHELL-$SHELL} 15666export SHELL 15667_ASEOF 15668cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15669## -------------------- ## 15670## M4sh Initialization. ## 15671## -------------------- ## 15672 15673# Be more Bourne compatible 15674DUALCASE=1; export DUALCASE # for MKS sh 15675if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15676 emulate sh 15677 NULLCMD=: 15678 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15679 # is contrary to our usage. Disable this feature. 15680 alias -g '${1+"$@"}'='"$@"' 15681 setopt NO_GLOB_SUBST 15682else 15683 case `(set -o) 2>/dev/null` in #( 15684 *posix*) : 15685 set -o posix ;; #( 15686 *) : 15687 ;; 15688esac 15689fi 15690 15691 15692as_nl=' 15693' 15694export as_nl 15695# Printing a long string crashes Solaris 7 /usr/bin/printf. 15696as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15698as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15699# Prefer a ksh shell builtin over an external printf program on Solaris, 15700# but without wasting forks for bash or zsh. 15701if test -z "$BASH_VERSION$ZSH_VERSION" \ 15702 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15703 as_echo='print -r --' 15704 as_echo_n='print -rn --' 15705elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15706 as_echo='printf %s\n' 15707 as_echo_n='printf %s' 15708else 15709 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15710 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15711 as_echo_n='/usr/ucb/echo -n' 15712 else 15713 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15714 as_echo_n_body='eval 15715 arg=$1; 15716 case $arg in #( 15717 *"$as_nl"*) 15718 expr "X$arg" : "X\\(.*\\)$as_nl"; 15719 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15720 esac; 15721 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15722 ' 15723 export as_echo_n_body 15724 as_echo_n='sh -c $as_echo_n_body as_echo' 15725 fi 15726 export as_echo_body 15727 as_echo='sh -c $as_echo_body as_echo' 15728fi 15729 15730# The user is always right. 15731if test "${PATH_SEPARATOR+set}" != set; then 15732 PATH_SEPARATOR=: 15733 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15734 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15735 PATH_SEPARATOR=';' 15736 } 15737fi 15738 15739 15740# IFS 15741# We need space, tab and new line, in precisely that order. Quoting is 15742# there to prevent editors from complaining about space-tab. 15743# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15744# splitting by setting IFS to empty value.) 15745IFS=" "" $as_nl" 15746 15747# Find who we are. Look in the path if we contain no directory separator. 15748case $0 in #(( 15749 *[\\/]* ) as_myself=$0 ;; 15750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15751for as_dir in $PATH 15752do 15753 IFS=$as_save_IFS 15754 test -z "$as_dir" && as_dir=. 15755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15756 done 15757IFS=$as_save_IFS 15758 15759 ;; 15760esac 15761# We did not find ourselves, most probably we were run as `sh COMMAND' 15762# in which case we are not to be found in the path. 15763if test "x$as_myself" = x; then 15764 as_myself=$0 15765fi 15766if test ! -f "$as_myself"; then 15767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15768 exit 1 15769fi 15770 15771# Unset variables that we do not need and which cause bugs (e.g. in 15772# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15773# suppresses any "Segmentation fault" message there. '((' could 15774# trigger a bug in pdksh 5.2.14. 15775for as_var in BASH_ENV ENV MAIL MAILPATH 15776do eval test x\${$as_var+set} = xset \ 15777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15778done 15779PS1='$ ' 15780PS2='> ' 15781PS4='+ ' 15782 15783# NLS nuisances. 15784LC_ALL=C 15785export LC_ALL 15786LANGUAGE=C 15787export LANGUAGE 15788 15789# CDPATH. 15790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15791 15792 15793# as_fn_error STATUS ERROR [LINENO LOG_FD] 15794# ---------------------------------------- 15795# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15796# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15797# script with STATUS, using 1 if that was 0. 15798as_fn_error () 15799{ 15800 as_status=$1; test $as_status -eq 0 && as_status=1 15801 if test "$4"; then 15802 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15804 fi 15805 $as_echo "$as_me: error: $2" >&2 15806 as_fn_exit $as_status 15807} # as_fn_error 15808 15809 15810# as_fn_set_status STATUS 15811# ----------------------- 15812# Set $? to STATUS, without forking. 15813as_fn_set_status () 15814{ 15815 return $1 15816} # as_fn_set_status 15817 15818# as_fn_exit STATUS 15819# ----------------- 15820# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15821as_fn_exit () 15822{ 15823 set +e 15824 as_fn_set_status $1 15825 exit $1 15826} # as_fn_exit 15827 15828# as_fn_unset VAR 15829# --------------- 15830# Portably unset VAR. 15831as_fn_unset () 15832{ 15833 { eval $1=; unset $1;} 15834} 15835as_unset=as_fn_unset 15836# as_fn_append VAR VALUE 15837# ---------------------- 15838# Append the text in VALUE to the end of the definition contained in VAR. Take 15839# advantage of any shell optimizations that allow amortized linear growth over 15840# repeated appends, instead of the typical quadratic growth present in naive 15841# implementations. 15842if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15843 eval 'as_fn_append () 15844 { 15845 eval $1+=\$2 15846 }' 15847else 15848 as_fn_append () 15849 { 15850 eval $1=\$$1\$2 15851 } 15852fi # as_fn_append 15853 15854# as_fn_arith ARG... 15855# ------------------ 15856# Perform arithmetic evaluation on the ARGs, and store the result in the 15857# global $as_val. Take advantage of shells that can avoid forks. The arguments 15858# must be portable across $(()) and expr. 15859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15860 eval 'as_fn_arith () 15861 { 15862 as_val=$(( $* )) 15863 }' 15864else 15865 as_fn_arith () 15866 { 15867 as_val=`expr "$@" || test $? -eq 1` 15868 } 15869fi # as_fn_arith 15870 15871 15872if expr a : '\(a\)' >/dev/null 2>&1 && 15873 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15874 as_expr=expr 15875else 15876 as_expr=false 15877fi 15878 15879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15880 as_basename=basename 15881else 15882 as_basename=false 15883fi 15884 15885if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15886 as_dirname=dirname 15887else 15888 as_dirname=false 15889fi 15890 15891as_me=`$as_basename -- "$0" || 15892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15893 X"$0" : 'X\(//\)$' \| \ 15894 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15895$as_echo X/"$0" | 15896 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15897 s//\1/ 15898 q 15899 } 15900 /^X\/\(\/\/\)$/{ 15901 s//\1/ 15902 q 15903 } 15904 /^X\/\(\/\).*/{ 15905 s//\1/ 15906 q 15907 } 15908 s/.*/./; q'` 15909 15910# Avoid depending upon Character Ranges. 15911as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15913as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15914as_cr_digits='0123456789' 15915as_cr_alnum=$as_cr_Letters$as_cr_digits 15916 15917ECHO_C= ECHO_N= ECHO_T= 15918case `echo -n x` in #((((( 15919-n*) 15920 case `echo 'xy\c'` in 15921 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15922 xy) ECHO_C='\c';; 15923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15924 ECHO_T=' ';; 15925 esac;; 15926*) 15927 ECHO_N='-n';; 15928esac 15929 15930rm -f conf$$ conf$$.exe conf$$.file 15931if test -d conf$$.dir; then 15932 rm -f conf$$.dir/conf$$.file 15933else 15934 rm -f conf$$.dir 15935 mkdir conf$$.dir 2>/dev/null 15936fi 15937if (echo >conf$$.file) 2>/dev/null; then 15938 if ln -s conf$$.file conf$$ 2>/dev/null; then 15939 as_ln_s='ln -s' 15940 # ... but there are two gotchas: 15941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15943 # In both cases, we have to default to `cp -p'. 15944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15945 as_ln_s='cp -p' 15946 elif ln conf$$.file conf$$ 2>/dev/null; then 15947 as_ln_s=ln 15948 else 15949 as_ln_s='cp -p' 15950 fi 15951else 15952 as_ln_s='cp -p' 15953fi 15954rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15955rmdir conf$$.dir 2>/dev/null 15956 15957 15958# as_fn_mkdir_p 15959# ------------- 15960# Create "$as_dir" as a directory, including parents if necessary. 15961as_fn_mkdir_p () 15962{ 15963 15964 case $as_dir in #( 15965 -*) as_dir=./$as_dir;; 15966 esac 15967 test -d "$as_dir" || eval $as_mkdir_p || { 15968 as_dirs= 15969 while :; do 15970 case $as_dir in #( 15971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15972 *) as_qdir=$as_dir;; 15973 esac 15974 as_dirs="'$as_qdir' $as_dirs" 15975 as_dir=`$as_dirname -- "$as_dir" || 15976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15977 X"$as_dir" : 'X\(//\)[^/]' \| \ 15978 X"$as_dir" : 'X\(//\)$' \| \ 15979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15980$as_echo X"$as_dir" | 15981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15982 s//\1/ 15983 q 15984 } 15985 /^X\(\/\/\)[^/].*/{ 15986 s//\1/ 15987 q 15988 } 15989 /^X\(\/\/\)$/{ 15990 s//\1/ 15991 q 15992 } 15993 /^X\(\/\).*/{ 15994 s//\1/ 15995 q 15996 } 15997 s/.*/./; q'` 15998 test -d "$as_dir" && break 15999 done 16000 test -z "$as_dirs" || eval "mkdir $as_dirs" 16001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16002 16003 16004} # as_fn_mkdir_p 16005if mkdir -p . 2>/dev/null; then 16006 as_mkdir_p='mkdir -p "$as_dir"' 16007else 16008 test -d ./-p && rmdir ./-p 16009 as_mkdir_p=false 16010fi 16011 16012if test -x / >/dev/null 2>&1; then 16013 as_test_x='test -x' 16014else 16015 if ls -dL / >/dev/null 2>&1; then 16016 as_ls_L_option=L 16017 else 16018 as_ls_L_option= 16019 fi 16020 as_test_x=' 16021 eval sh -c '\'' 16022 if test -d "$1"; then 16023 test -d "$1/."; 16024 else 16025 case $1 in #( 16026 -*)set "./$1";; 16027 esac; 16028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16029 ???[sx]*):;;*)false;;esac;fi 16030 '\'' sh 16031 ' 16032fi 16033as_executable_p=$as_test_x 16034 16035# Sed expression to map a string onto a valid CPP name. 16036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16037 16038# Sed expression to map a string onto a valid variable name. 16039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16040 16041 16042exec 6>&1 16043## ----------------------------------- ## 16044## Main body of $CONFIG_STATUS script. ## 16045## ----------------------------------- ## 16046_ASEOF 16047test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16048 16049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16050# Save the log message, to keep $0 and so on meaningful, and to 16051# report actual input values of CONFIG_FILES etc. instead of their 16052# values after options handling. 16053ac_log=" 16054This file was extended by libX11 $as_me 1.3.6, which was 16055generated by GNU Autoconf 2.67. Invocation command line was 16056 16057 CONFIG_FILES = $CONFIG_FILES 16058 CONFIG_HEADERS = $CONFIG_HEADERS 16059 CONFIG_LINKS = $CONFIG_LINKS 16060 CONFIG_COMMANDS = $CONFIG_COMMANDS 16061 $ $0 $@ 16062 16063on `(hostname || uname -n) 2>/dev/null | sed 1q` 16064" 16065 16066_ACEOF 16067 16068case $ac_config_files in *" 16069"*) set x $ac_config_files; shift; ac_config_files=$*;; 16070esac 16071 16072case $ac_config_headers in *" 16073"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16074esac 16075 16076 16077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16078# Files that config.status was made for. 16079config_files="$ac_config_files" 16080config_headers="$ac_config_headers" 16081config_commands="$ac_config_commands" 16082 16083_ACEOF 16084 16085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16086ac_cs_usage="\ 16087\`$as_me' instantiates files and other configuration actions 16088from templates according to the current configuration. Unless the files 16089and actions are specified as TAGs, all are instantiated by default. 16090 16091Usage: $0 [OPTION]... [TAG]... 16092 16093 -h, --help print this help, then exit 16094 -V, --version print version number and configuration settings, then exit 16095 --config print configuration, then exit 16096 -q, --quiet, --silent 16097 do not print progress messages 16098 -d, --debug don't remove temporary files 16099 --recheck update $as_me by reconfiguring in the same conditions 16100 --file=FILE[:TEMPLATE] 16101 instantiate the configuration file FILE 16102 --header=FILE[:TEMPLATE] 16103 instantiate the configuration header FILE 16104 16105Configuration files: 16106$config_files 16107 16108Configuration headers: 16109$config_headers 16110 16111Configuration commands: 16112$config_commands 16113 16114Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 16115 16116_ACEOF 16117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16118ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16119ac_cs_version="\\ 16120libX11 config.status 1.3.6 16121configured by $0, generated by GNU Autoconf 2.67, 16122 with options \\"\$ac_cs_config\\" 16123 16124Copyright (C) 2010 Free Software Foundation, Inc. 16125This config.status script is free software; the Free Software Foundation 16126gives unlimited permission to copy, distribute and modify it." 16127 16128ac_pwd='$ac_pwd' 16129srcdir='$srcdir' 16130INSTALL='$INSTALL' 16131MKDIR_P='$MKDIR_P' 16132AWK='$AWK' 16133test -n "\$AWK" || AWK=awk 16134_ACEOF 16135 16136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16137# The default lists apply if the user does not specify any file. 16138ac_need_defaults=: 16139while test $# != 0 16140do 16141 case $1 in 16142 --*=?*) 16143 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16145 ac_shift=: 16146 ;; 16147 --*=) 16148 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16149 ac_optarg= 16150 ac_shift=: 16151 ;; 16152 *) 16153 ac_option=$1 16154 ac_optarg=$2 16155 ac_shift=shift 16156 ;; 16157 esac 16158 16159 case $ac_option in 16160 # Handling of the options. 16161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16162 ac_cs_recheck=: ;; 16163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16164 $as_echo "$ac_cs_version"; exit ;; 16165 --config | --confi | --conf | --con | --co | --c ) 16166 $as_echo "$ac_cs_config"; exit ;; 16167 --debug | --debu | --deb | --de | --d | -d ) 16168 debug=: ;; 16169 --file | --fil | --fi | --f ) 16170 $ac_shift 16171 case $ac_optarg in 16172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16173 '') as_fn_error $? "missing file argument" ;; 16174 esac 16175 as_fn_append CONFIG_FILES " '$ac_optarg'" 16176 ac_need_defaults=false;; 16177 --header | --heade | --head | --hea ) 16178 $ac_shift 16179 case $ac_optarg in 16180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16181 esac 16182 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16183 ac_need_defaults=false;; 16184 --he | --h) 16185 # Conflict between --help and --header 16186 as_fn_error $? "ambiguous option: \`$1' 16187Try \`$0 --help' for more information.";; 16188 --help | --hel | -h ) 16189 $as_echo "$ac_cs_usage"; exit ;; 16190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16191 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16192 ac_cs_silent=: ;; 16193 16194 # This is an error. 16195 -*) as_fn_error $? "unrecognized option: \`$1' 16196Try \`$0 --help' for more information." ;; 16197 16198 *) as_fn_append ac_config_targets " $1" 16199 ac_need_defaults=false ;; 16200 16201 esac 16202 shift 16203done 16204 16205ac_configure_extra_args= 16206 16207if $ac_cs_silent; then 16208 exec 6>/dev/null 16209 ac_configure_extra_args="$ac_configure_extra_args --silent" 16210fi 16211 16212_ACEOF 16213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16214if \$ac_cs_recheck; then 16215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16216 shift 16217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16218 CONFIG_SHELL='$SHELL' 16219 export CONFIG_SHELL 16220 exec "\$@" 16221fi 16222 16223_ACEOF 16224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16225exec 5>>config.log 16226{ 16227 echo 16228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16229## Running $as_me. ## 16230_ASBOX 16231 $as_echo "$ac_log" 16232} >&5 16233 16234_ACEOF 16235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16236# 16237# INIT-COMMANDS 16238# 16239AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16240 16241 16242# The HP-UX ksh and POSIX shell print the target directory to stdout 16243# if CDPATH is set. 16244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16245 16246sed_quote_subst='$sed_quote_subst' 16247double_quote_subst='$double_quote_subst' 16248delay_variable_subst='$delay_variable_subst' 16249macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16250macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16251enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16252enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16253pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16254enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16255host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16256host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16257host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16258build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16259build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16260build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16261SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16262Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16263GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16264EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16265FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16266LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16267NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16268LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16269max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16270ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16271exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16272lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16273lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16274lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16275reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16276reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16277OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16278deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16279file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16280AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16281AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16282STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16283RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16284old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16285old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16286old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16287CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16288CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16289compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16290GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16291lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16292lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16293lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 16294lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16295objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16296SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16297ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16298MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16299lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16300lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16301lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16302lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16303lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16304need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16305DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16306NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16307LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16308OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16309OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16310libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16311shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16312extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16313archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16314enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16315export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16316whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16317compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16318old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16319old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16320archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16321archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16322module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16323module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16324with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16325allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16326no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16327hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16328hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 16329hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 16330hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 16331hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 16332hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 16333hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16334hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 16335inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 16336link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 16337fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 16338always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 16339export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16340exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16341include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 16342prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16343file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 16344variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 16345need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 16346need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 16347version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 16348runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16349shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 16350shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 16351libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16352library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 16353soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 16354postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16355postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16356finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16357finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 16358hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 16359sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16360sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 16361hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 16362enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 16363enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 16364enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 16365old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 16366striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 16367 16368LTCC='$LTCC' 16369LTCFLAGS='$LTCFLAGS' 16370compiler='$compiler_DEFAULT' 16371 16372# Quote evaled strings. 16373for var in SED \ 16374GREP \ 16375EGREP \ 16376FGREP \ 16377LD \ 16378NM \ 16379LN_S \ 16380lt_SP2NL \ 16381lt_NL2SP \ 16382reload_flag \ 16383OBJDUMP \ 16384deplibs_check_method \ 16385file_magic_cmd \ 16386AR \ 16387AR_FLAGS \ 16388STRIP \ 16389RANLIB \ 16390CC \ 16391CFLAGS \ 16392compiler \ 16393lt_cv_sys_global_symbol_pipe \ 16394lt_cv_sys_global_symbol_to_cdecl \ 16395lt_cv_sys_global_symbol_to_c_name_address \ 16396lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16397SHELL \ 16398ECHO \ 16399lt_prog_compiler_no_builtin_flag \ 16400lt_prog_compiler_wl \ 16401lt_prog_compiler_pic \ 16402lt_prog_compiler_static \ 16403lt_cv_prog_compiler_c_o \ 16404need_locks \ 16405DSYMUTIL \ 16406NMEDIT \ 16407LIPO \ 16408OTOOL \ 16409OTOOL64 \ 16410shrext_cmds \ 16411export_dynamic_flag_spec \ 16412whole_archive_flag_spec \ 16413compiler_needs_object \ 16414with_gnu_ld \ 16415allow_undefined_flag \ 16416no_undefined_flag \ 16417hardcode_libdir_flag_spec \ 16418hardcode_libdir_flag_spec_ld \ 16419hardcode_libdir_separator \ 16420fix_srcfile_path \ 16421exclude_expsyms \ 16422include_expsyms \ 16423file_list_spec \ 16424variables_saved_for_relink \ 16425libname_spec \ 16426library_names_spec \ 16427soname_spec \ 16428finish_eval \ 16429old_striplib \ 16430striplib; do 16431 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16432 *[\\\\\\\`\\"\\\$]*) 16433 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16434 ;; 16435 *) 16436 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16437 ;; 16438 esac 16439done 16440 16441# Double-quote double-evaled strings. 16442for var in reload_cmds \ 16443old_postinstall_cmds \ 16444old_postuninstall_cmds \ 16445old_archive_cmds \ 16446extract_expsyms_cmds \ 16447old_archive_from_new_cmds \ 16448old_archive_from_expsyms_cmds \ 16449archive_cmds \ 16450archive_expsym_cmds \ 16451module_cmds \ 16452module_expsym_cmds \ 16453export_symbols_cmds \ 16454prelink_cmds \ 16455postinstall_cmds \ 16456postuninstall_cmds \ 16457finish_cmds \ 16458sys_lib_search_path_spec \ 16459sys_lib_dlsearch_path_spec; do 16460 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 16461 *[\\\\\\\`\\"\\\$]*) 16462 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16463 ;; 16464 *) 16465 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16466 ;; 16467 esac 16468done 16469 16470# Fix-up fallback echo if it was mangled by the above quoting rules. 16471case \$lt_ECHO in 16472*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16473 ;; 16474esac 16475 16476ac_aux_dir='$ac_aux_dir' 16477xsi_shell='$xsi_shell' 16478lt_shell_append='$lt_shell_append' 16479 16480# See if we are running on zsh, and set the options which allow our 16481# commands through without removal of \ escapes INIT. 16482if test -n "\${ZSH_VERSION+set}" ; then 16483 setopt NO_GLOB_SUBST 16484fi 16485 16486 16487 PACKAGE='$PACKAGE' 16488 VERSION='$VERSION' 16489 TIMESTAMP='$TIMESTAMP' 16490 RM='$RM' 16491 ofile='$ofile' 16492 16493 16494 16495 16496_ACEOF 16497 16498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16499 16500# Handling of arguments. 16501for ac_config_target in $ac_config_targets 16502do 16503 case $ac_config_target in 16504 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 16505 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 16506 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16507 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16508 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16509 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 16510 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 16511 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 16512 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16513 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 16514 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 16515 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 16516 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 16517 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 16518 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 16519 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 16520 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 16521 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 16522 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 16523 "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;; 16524 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 16525 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 16526 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 16527 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 16528 "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;; 16529 "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;; 16530 "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;; 16531 "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;; 16532 "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;; 16533 "nls/fi_FI.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/fi_FI.UTF-8/Makefile" ;; 16534 "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;; 16535 "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;; 16536 "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;; 16537 "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;; 16538 "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;; 16539 "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;; 16540 "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;; 16541 "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;; 16542 "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;; 16543 "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;; 16544 "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;; 16545 "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;; 16546 "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;; 16547 "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;; 16548 "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;; 16549 "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;; 16550 "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;; 16551 "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;; 16552 "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;; 16553 "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;; 16554 "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;; 16555 "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;; 16556 "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;; 16557 "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;; 16558 "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;; 16559 "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;; 16560 "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;; 16561 "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;; 16562 "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;; 16563 "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;; 16564 "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;; 16565 "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;; 16566 "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;; 16567 "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;; 16568 "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;; 16569 "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;; 16570 "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;; 16571 "nls/ru_RU.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ru_RU.UTF-8/Makefile" ;; 16572 "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;; 16573 "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;; 16574 "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;; 16575 "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;; 16576 "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;; 16577 "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;; 16578 "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;; 16579 "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;; 16580 "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;; 16581 "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;; 16582 "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;; 16583 "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;; 16584 "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;; 16585 "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;; 16586 "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;; 16587 "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;; 16588 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 16589 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 16590 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 16591 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 16592 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 16593 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 16594 16595 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 16596 esac 16597done 16598 16599 16600# If the user did not use the arguments to specify the items to instantiate, 16601# then the envvar interface is used. Set only those that are not. 16602# We use the long form for the default assignment because of an extremely 16603# bizarre bug on SunOS 4.1.3. 16604if $ac_need_defaults; then 16605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16608fi 16609 16610# Have a temporary directory for convenience. Make it in the build tree 16611# simply because there is no reason against having it here, and in addition, 16612# creating and moving files from /tmp can sometimes cause problems. 16613# Hook for its removal unless debugging. 16614# Note that there is a small window in which the directory will not be cleaned: 16615# after its creation but before its name has been assigned to `$tmp'. 16616$debug || 16617{ 16618 tmp= 16619 trap 'exit_status=$? 16620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16621' 0 16622 trap 'as_fn_exit 1' 1 2 13 15 16623} 16624# Create a (secure) tmp directory for tmp files. 16625 16626{ 16627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16628 test -n "$tmp" && test -d "$tmp" 16629} || 16630{ 16631 tmp=./conf$$-$RANDOM 16632 (umask 077 && mkdir "$tmp") 16633} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16634 16635# Set up the scripts for CONFIG_FILES section. 16636# No need to generate them if there are no CONFIG_FILES. 16637# This happens for instance with `./config.status config.h'. 16638if test -n "$CONFIG_FILES"; then 16639 16640 16641ac_cr=`echo X | tr X '\015'` 16642# On cygwin, bash can eat \r inside `` if the user requested igncr. 16643# But we know of no other shell where ac_cr would be empty at this 16644# point, so we can use a bashism as a fallback. 16645if test "x$ac_cr" = x; then 16646 eval ac_cr=\$\'\\r\' 16647fi 16648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16650 ac_cs_awk_cr='\\r' 16651else 16652 ac_cs_awk_cr=$ac_cr 16653fi 16654 16655echo 'BEGIN {' >"$tmp/subs1.awk" && 16656_ACEOF 16657 16658 16659{ 16660 echo "cat >conf$$subs.awk <<_ACEOF" && 16661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16662 echo "_ACEOF" 16663} >conf$$subs.sh || 16664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16665ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16666ac_delim='%!_!# ' 16667for ac_last_try in false false false false false :; do 16668 . ./conf$$subs.sh || 16669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16670 16671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16672 if test $ac_delim_n = $ac_delim_num; then 16673 break 16674 elif $ac_last_try; then 16675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16676 else 16677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16678 fi 16679done 16680rm -f conf$$subs.sh 16681 16682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16683cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16684_ACEOF 16685sed -n ' 16686h 16687s/^/S["/; s/!.*/"]=/ 16688p 16689g 16690s/^[^!]*!// 16691:repl 16692t repl 16693s/'"$ac_delim"'$// 16694t delim 16695:nl 16696h 16697s/\(.\{148\}\)..*/\1/ 16698t more1 16699s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16700p 16701n 16702b repl 16703:more1 16704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16705p 16706g 16707s/.\{148\}// 16708t nl 16709:delim 16710h 16711s/\(.\{148\}\)..*/\1/ 16712t more2 16713s/["\\]/\\&/g; s/^/"/; s/$/"/ 16714p 16715b 16716:more2 16717s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16718p 16719g 16720s/.\{148\}// 16721t delim 16722' <conf$$subs.awk | sed ' 16723/^[^""]/{ 16724 N 16725 s/\n// 16726} 16727' >>$CONFIG_STATUS || ac_write_fail=1 16728rm -f conf$$subs.awk 16729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16730_ACAWK 16731cat >>"\$tmp/subs1.awk" <<_ACAWK && 16732 for (key in S) S_is_set[key] = 1 16733 FS = "" 16734 16735} 16736{ 16737 line = $ 0 16738 nfields = split(line, field, "@") 16739 substed = 0 16740 len = length(field[1]) 16741 for (i = 2; i < nfields; i++) { 16742 key = field[i] 16743 keylen = length(key) 16744 if (S_is_set[key]) { 16745 value = S[key] 16746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16747 len += length(value) + length(field[++i]) 16748 substed = 1 16749 } else 16750 len += 1 + keylen 16751 } 16752 16753 print line 16754} 16755 16756_ACAWK 16757_ACEOF 16758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16759if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16761else 16762 cat 16763fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16765_ACEOF 16766 16767# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16768# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16769# trailing colons and then remove the whole line if VPATH becomes empty 16770# (actually we leave an empty line to preserve line numbers). 16771if test "x$srcdir" = x.; then 16772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16773h 16774s/// 16775s/^/:/ 16776s/[ ]*$/:/ 16777s/:\$(srcdir):/:/g 16778s/:\${srcdir}:/:/g 16779s/:@srcdir@:/:/g 16780s/^:*// 16781s/:*$// 16782x 16783s/\(=[ ]*\).*/\1/ 16784G 16785s/\n// 16786s/^[^=]*=[ ]*$// 16787}' 16788fi 16789 16790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16791fi # test -n "$CONFIG_FILES" 16792 16793# Set up the scripts for CONFIG_HEADERS section. 16794# No need to generate them if there are no CONFIG_HEADERS. 16795# This happens for instance with `./config.status Makefile'. 16796if test -n "$CONFIG_HEADERS"; then 16797cat >"$tmp/defines.awk" <<\_ACAWK || 16798BEGIN { 16799_ACEOF 16800 16801# Transform confdefs.h into an awk script `defines.awk', embedded as 16802# here-document in config.status, that substitutes the proper values into 16803# config.h.in to produce config.h. 16804 16805# Create a delimiter string that does not exist in confdefs.h, to ease 16806# handling of long lines. 16807ac_delim='%!_!# ' 16808for ac_last_try in false false :; do 16809 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16810 if test -z "$ac_t"; then 16811 break 16812 elif $ac_last_try; then 16813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16814 else 16815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16816 fi 16817done 16818 16819# For the awk script, D is an array of macro values keyed by name, 16820# likewise P contains macro parameters if any. Preserve backslash 16821# newline sequences. 16822 16823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16824sed -n ' 16825s/.\{148\}/&'"$ac_delim"'/g 16826t rset 16827:rset 16828s/^[ ]*#[ ]*define[ ][ ]*/ / 16829t def 16830d 16831:def 16832s/\\$// 16833t bsnl 16834s/["\\]/\\&/g 16835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16836D["\1"]=" \3"/p 16837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16838d 16839:bsnl 16840s/["\\]/\\&/g 16841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16842D["\1"]=" \3\\\\\\n"\\/p 16843t cont 16844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16845t cont 16846d 16847:cont 16848n 16849s/.\{148\}/&'"$ac_delim"'/g 16850t clear 16851:clear 16852s/\\$// 16853t bsnlc 16854s/["\\]/\\&/g; s/^/"/; s/$/"/p 16855d 16856:bsnlc 16857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16858b cont 16859' <confdefs.h | sed ' 16860s/'"$ac_delim"'/"\\\ 16861"/g' >>$CONFIG_STATUS || ac_write_fail=1 16862 16863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16864 for (key in D) D_is_set[key] = 1 16865 FS = "" 16866} 16867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16868 line = \$ 0 16869 split(line, arg, " ") 16870 if (arg[1] == "#") { 16871 defundef = arg[2] 16872 mac1 = arg[3] 16873 } else { 16874 defundef = substr(arg[1], 2) 16875 mac1 = arg[2] 16876 } 16877 split(mac1, mac2, "(") #) 16878 macro = mac2[1] 16879 prefix = substr(line, 1, index(line, defundef) - 1) 16880 if (D_is_set[macro]) { 16881 # Preserve the white space surrounding the "#". 16882 print prefix "define", macro P[macro] D[macro] 16883 next 16884 } else { 16885 # Replace #undef with comments. This is necessary, for example, 16886 # in the case of _POSIX_SOURCE, which is predefined and required 16887 # on some systems where configure will not decide to define it. 16888 if (defundef == "undef") { 16889 print "/*", prefix defundef, macro, "*/" 16890 next 16891 } 16892 } 16893} 16894{ print } 16895_ACAWK 16896_ACEOF 16897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16899fi # test -n "$CONFIG_HEADERS" 16900 16901 16902eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16903shift 16904for ac_tag 16905do 16906 case $ac_tag in 16907 :[FHLC]) ac_mode=$ac_tag; continue;; 16908 esac 16909 case $ac_mode$ac_tag in 16910 :[FHL]*:*);; 16911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 16912 :[FH]-) ac_tag=-:-;; 16913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16914 esac 16915 ac_save_IFS=$IFS 16916 IFS=: 16917 set x $ac_tag 16918 IFS=$ac_save_IFS 16919 shift 16920 ac_file=$1 16921 shift 16922 16923 case $ac_mode in 16924 :L) ac_source=$1;; 16925 :[FH]) 16926 ac_file_inputs= 16927 for ac_f 16928 do 16929 case $ac_f in 16930 -) ac_f="$tmp/stdin";; 16931 *) # Look for the file first in the build tree, then in the source tree 16932 # (if the path is not absolute). The absolute path cannot be DOS-style, 16933 # because $ac_f cannot contain `:'. 16934 test -f "$ac_f" || 16935 case $ac_f in 16936 [\\/$]*) false;; 16937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16938 esac || 16939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 16940 esac 16941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16942 as_fn_append ac_file_inputs " '$ac_f'" 16943 done 16944 16945 # Let's still pretend it is `configure' which instantiates (i.e., don't 16946 # use $as_me), people would be surprised to read: 16947 # /* config.h. Generated by config.status. */ 16948 configure_input='Generated from '` 16949 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16950 `' by configure.' 16951 if test x"$ac_file" != x-; then 16952 configure_input="$ac_file. $configure_input" 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16954$as_echo "$as_me: creating $ac_file" >&6;} 16955 fi 16956 # Neutralize special characters interpreted by sed in replacement strings. 16957 case $configure_input in #( 16958 *\&* | *\|* | *\\* ) 16959 ac_sed_conf_input=`$as_echo "$configure_input" | 16960 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16961 *) ac_sed_conf_input=$configure_input;; 16962 esac 16963 16964 case $ac_tag in 16965 *:-:* | *:-) cat >"$tmp/stdin" \ 16966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16967 esac 16968 ;; 16969 esac 16970 16971 ac_dir=`$as_dirname -- "$ac_file" || 16972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16973 X"$ac_file" : 'X\(//\)[^/]' \| \ 16974 X"$ac_file" : 'X\(//\)$' \| \ 16975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16976$as_echo X"$ac_file" | 16977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16978 s//\1/ 16979 q 16980 } 16981 /^X\(\/\/\)[^/].*/{ 16982 s//\1/ 16983 q 16984 } 16985 /^X\(\/\/\)$/{ 16986 s//\1/ 16987 q 16988 } 16989 /^X\(\/\).*/{ 16990 s//\1/ 16991 q 16992 } 16993 s/.*/./; q'` 16994 as_dir="$ac_dir"; as_fn_mkdir_p 16995 ac_builddir=. 16996 16997case "$ac_dir" in 16998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16999*) 17000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17001 # A ".." for each directory in $ac_dir_suffix. 17002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17003 case $ac_top_builddir_sub in 17004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17006 esac ;; 17007esac 17008ac_abs_top_builddir=$ac_pwd 17009ac_abs_builddir=$ac_pwd$ac_dir_suffix 17010# for backward compatibility: 17011ac_top_builddir=$ac_top_build_prefix 17012 17013case $srcdir in 17014 .) # We are building in place. 17015 ac_srcdir=. 17016 ac_top_srcdir=$ac_top_builddir_sub 17017 ac_abs_top_srcdir=$ac_pwd ;; 17018 [\\/]* | ?:[\\/]* ) # Absolute name. 17019 ac_srcdir=$srcdir$ac_dir_suffix; 17020 ac_top_srcdir=$srcdir 17021 ac_abs_top_srcdir=$srcdir ;; 17022 *) # Relative name. 17023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17024 ac_top_srcdir=$ac_top_build_prefix$srcdir 17025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17026esac 17027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17028 17029 17030 case $ac_mode in 17031 :F) 17032 # 17033 # CONFIG_FILE 17034 # 17035 17036 case $INSTALL in 17037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17039 esac 17040 ac_MKDIR_P=$MKDIR_P 17041 case $MKDIR_P in 17042 [\\/$]* | ?:[\\/]* ) ;; 17043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17044 esac 17045_ACEOF 17046 17047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17048# If the template does not know about datarootdir, expand it. 17049# FIXME: This hack should be removed a few years after 2.60. 17050ac_datarootdir_hack=; ac_datarootdir_seen= 17051ac_sed_dataroot=' 17052/datarootdir/ { 17053 p 17054 q 17055} 17056/@datadir@/p 17057/@docdir@/p 17058/@infodir@/p 17059/@localedir@/p 17060/@mandir@/p' 17061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17062*datarootdir*) ac_datarootdir_seen=yes;; 17063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17066_ACEOF 17067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17068 ac_datarootdir_hack=' 17069 s&@datadir@&$datadir&g 17070 s&@docdir@&$docdir&g 17071 s&@infodir@&$infodir&g 17072 s&@localedir@&$localedir&g 17073 s&@mandir@&$mandir&g 17074 s&\\\${datarootdir}&$datarootdir&g' ;; 17075esac 17076_ACEOF 17077 17078# Neutralize VPATH when `$srcdir' = `.'. 17079# Shell code in configure.ac might set extrasub. 17080# FIXME: do we really want to maintain this feature? 17081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17082ac_sed_extra="$ac_vpsub 17083$extrasub 17084_ACEOF 17085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17086:t 17087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17088s|@configure_input@|$ac_sed_conf_input|;t t 17089s&@top_builddir@&$ac_top_builddir_sub&;t t 17090s&@top_build_prefix@&$ac_top_build_prefix&;t t 17091s&@srcdir@&$ac_srcdir&;t t 17092s&@abs_srcdir@&$ac_abs_srcdir&;t t 17093s&@top_srcdir@&$ac_top_srcdir&;t t 17094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17095s&@builddir@&$ac_builddir&;t t 17096s&@abs_builddir@&$ac_abs_builddir&;t t 17097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17098s&@INSTALL@&$ac_INSTALL&;t t 17099s&@MKDIR_P@&$ac_MKDIR_P&;t t 17100$ac_datarootdir_hack 17101" 17102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17103 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17104 17105test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17106 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17109which seems to be undefined. Please make sure it is defined" >&5 17110$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17111which seems to be undefined. Please make sure it is defined" >&2;} 17112 17113 rm -f "$tmp/stdin" 17114 case $ac_file in 17115 -) cat "$tmp/out" && rm -f "$tmp/out";; 17116 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17117 esac \ 17118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17119 ;; 17120 :H) 17121 # 17122 # CONFIG_HEADER 17123 # 17124 if test x"$ac_file" != x-; then 17125 { 17126 $as_echo "/* $configure_input */" \ 17127 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17128 } >"$tmp/config.h" \ 17129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17130 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17131 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17132$as_echo "$as_me: $ac_file is unchanged" >&6;} 17133 else 17134 rm -f "$ac_file" 17135 mv "$tmp/config.h" "$ac_file" \ 17136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17137 fi 17138 else 17139 $as_echo "/* $configure_input */" \ 17140 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17141 || as_fn_error $? "could not create -" "$LINENO" 5 17142 fi 17143# Compute "$ac_file"'s index in $config_headers. 17144_am_arg="$ac_file" 17145_am_stamp_count=1 17146for _am_header in $config_headers :; do 17147 case $_am_header in 17148 $_am_arg | $_am_arg:* ) 17149 break ;; 17150 * ) 17151 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17152 esac 17153done 17154echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17155$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17156 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17157 X"$_am_arg" : 'X\(//\)$' \| \ 17158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17159$as_echo X"$_am_arg" | 17160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17161 s//\1/ 17162 q 17163 } 17164 /^X\(\/\/\)[^/].*/{ 17165 s//\1/ 17166 q 17167 } 17168 /^X\(\/\/\)$/{ 17169 s//\1/ 17170 q 17171 } 17172 /^X\(\/\).*/{ 17173 s//\1/ 17174 q 17175 } 17176 s/.*/./; q'`/stamp-h$_am_stamp_count 17177 ;; 17178 17179 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17180$as_echo "$as_me: executing $ac_file commands" >&6;} 17181 ;; 17182 esac 17183 17184 17185 case $ac_file$ac_mode in 17186 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17187 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17188 # are listed without --file. Let's play safe and only enable the eval 17189 # if we detect the quoting. 17190 case $CONFIG_FILES in 17191 *\'*) eval set x "$CONFIG_FILES" ;; 17192 *) set x $CONFIG_FILES ;; 17193 esac 17194 shift 17195 for mf 17196 do 17197 # Strip MF so we end up with the name of the file. 17198 mf=`echo "$mf" | sed -e 's/:.*$//'` 17199 # Check whether this is an Automake generated Makefile or not. 17200 # We used to match only the files named `Makefile.in', but 17201 # some people rename them; so instead we look at the file content. 17202 # Grep'ing the first line is not enough: some people post-process 17203 # each Makefile.in and add a new line on top of each file to say so. 17204 # Grep'ing the whole file is not good either: AIX grep has a line 17205 # limit of 2048, but all sed's we know have understand at least 4000. 17206 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17207 dirpart=`$as_dirname -- "$mf" || 17208$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17209 X"$mf" : 'X\(//\)[^/]' \| \ 17210 X"$mf" : 'X\(//\)$' \| \ 17211 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17212$as_echo X"$mf" | 17213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17214 s//\1/ 17215 q 17216 } 17217 /^X\(\/\/\)[^/].*/{ 17218 s//\1/ 17219 q 17220 } 17221 /^X\(\/\/\)$/{ 17222 s//\1/ 17223 q 17224 } 17225 /^X\(\/\).*/{ 17226 s//\1/ 17227 q 17228 } 17229 s/.*/./; q'` 17230 else 17231 continue 17232 fi 17233 # Extract the definition of DEPDIR, am__include, and am__quote 17234 # from the Makefile without running `make'. 17235 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17236 test -z "$DEPDIR" && continue 17237 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17238 test -z "am__include" && continue 17239 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17240 # When using ansi2knr, U may be empty or an underscore; expand it 17241 U=`sed -n 's/^U = //p' < "$mf"` 17242 # Find all dependency output files, they are included files with 17243 # $(DEPDIR) in their names. We invoke sed twice because it is the 17244 # simplest approach to changing $(DEPDIR) to its actual value in the 17245 # expansion. 17246 for file in `sed -n " 17247 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17248 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17249 # Make sure the directory exists. 17250 test -f "$dirpart/$file" && continue 17251 fdir=`$as_dirname -- "$file" || 17252$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17253 X"$file" : 'X\(//\)[^/]' \| \ 17254 X"$file" : 'X\(//\)$' \| \ 17255 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17256$as_echo X"$file" | 17257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17258 s//\1/ 17259 q 17260 } 17261 /^X\(\/\/\)[^/].*/{ 17262 s//\1/ 17263 q 17264 } 17265 /^X\(\/\/\)$/{ 17266 s//\1/ 17267 q 17268 } 17269 /^X\(\/\).*/{ 17270 s//\1/ 17271 q 17272 } 17273 s/.*/./; q'` 17274 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17275 # echo "creating $dirpart/$file" 17276 echo '# dummy' > "$dirpart/$file" 17277 done 17278 done 17279} 17280 ;; 17281 "libtool":C) 17282 17283 # See if we are running on zsh, and set the options which allow our 17284 # commands through without removal of \ escapes. 17285 if test -n "${ZSH_VERSION+set}" ; then 17286 setopt NO_GLOB_SUBST 17287 fi 17288 17289 cfgfile="${ofile}T" 17290 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17291 $RM "$cfgfile" 17292 17293 cat <<_LT_EOF >> "$cfgfile" 17294#! $SHELL 17295 17296# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17297# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17298# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17299# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17300# 17301# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17302# 2006, 2007, 2008 Free Software Foundation, Inc. 17303# Written by Gordon Matzigkeit, 1996 17304# 17305# This file is part of GNU Libtool. 17306# 17307# GNU Libtool is free software; you can redistribute it and/or 17308# modify it under the terms of the GNU General Public License as 17309# published by the Free Software Foundation; either version 2 of 17310# the License, or (at your option) any later version. 17311# 17312# As a special exception to the GNU General Public License, 17313# if you distribute this file as part of a program or library that 17314# is built using GNU Libtool, you may include this file under the 17315# same distribution terms that you use for the rest of that program. 17316# 17317# GNU Libtool is distributed in the hope that it will be useful, 17318# but WITHOUT ANY WARRANTY; without even the implied warranty of 17319# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17320# GNU General Public License for more details. 17321# 17322# You should have received a copy of the GNU General Public License 17323# along with GNU Libtool; see the file COPYING. If not, a copy 17324# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17325# obtained by writing to the Free Software Foundation, Inc., 17326# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17327 17328 17329# The names of the tagged configurations supported by this script. 17330available_tags="" 17331 17332# ### BEGIN LIBTOOL CONFIG 17333 17334# Which release of libtool.m4 was used? 17335macro_version=$macro_version 17336macro_revision=$macro_revision 17337 17338# Whether or not to build shared libraries. 17339build_libtool_libs=$enable_shared 17340 17341# Whether or not to build static libraries. 17342build_old_libs=$enable_static 17343 17344# What type of objects to build. 17345pic_mode=$pic_mode 17346 17347# Whether or not to optimize for fast installation. 17348fast_install=$enable_fast_install 17349 17350# The host system. 17351host_alias=$host_alias 17352host=$host 17353host_os=$host_os 17354 17355# The build system. 17356build_alias=$build_alias 17357build=$build 17358build_os=$build_os 17359 17360# A sed program that does not truncate output. 17361SED=$lt_SED 17362 17363# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17364Xsed="\$SED -e 1s/^X//" 17365 17366# A grep program that handles long lines. 17367GREP=$lt_GREP 17368 17369# An ERE matcher. 17370EGREP=$lt_EGREP 17371 17372# A literal string matcher. 17373FGREP=$lt_FGREP 17374 17375# A BSD- or MS-compatible name lister. 17376NM=$lt_NM 17377 17378# Whether we need soft or hard links. 17379LN_S=$lt_LN_S 17380 17381# What is the maximum length of a command? 17382max_cmd_len=$max_cmd_len 17383 17384# Object file suffix (normally "o"). 17385objext=$ac_objext 17386 17387# Executable file suffix (normally ""). 17388exeext=$exeext 17389 17390# whether the shell understands "unset". 17391lt_unset=$lt_unset 17392 17393# turn spaces into newlines. 17394SP2NL=$lt_lt_SP2NL 17395 17396# turn newlines into spaces. 17397NL2SP=$lt_lt_NL2SP 17398 17399# How to create reloadable object files. 17400reload_flag=$lt_reload_flag 17401reload_cmds=$lt_reload_cmds 17402 17403# An object symbol dumper. 17404OBJDUMP=$lt_OBJDUMP 17405 17406# Method to check whether dependent libraries are shared objects. 17407deplibs_check_method=$lt_deplibs_check_method 17408 17409# Command to use when deplibs_check_method == "file_magic". 17410file_magic_cmd=$lt_file_magic_cmd 17411 17412# The archiver. 17413AR=$lt_AR 17414AR_FLAGS=$lt_AR_FLAGS 17415 17416# A symbol stripping program. 17417STRIP=$lt_STRIP 17418 17419# Commands used to install an old-style archive. 17420RANLIB=$lt_RANLIB 17421old_postinstall_cmds=$lt_old_postinstall_cmds 17422old_postuninstall_cmds=$lt_old_postuninstall_cmds 17423 17424# A C compiler. 17425LTCC=$lt_CC 17426 17427# LTCC compiler flags. 17428LTCFLAGS=$lt_CFLAGS 17429 17430# Take the output of nm and produce a listing of raw symbols and C names. 17431global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17432 17433# Transform the output of nm in a proper C declaration. 17434global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17435 17436# Transform the output of nm in a C name address pair. 17437global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17438 17439# Transform the output of nm in a C name address pair when lib prefix is needed. 17440global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17441 17442# The name of the directory that contains temporary libtool files. 17443objdir=$objdir 17444 17445# Shell to use when invoking shell scripts. 17446SHELL=$lt_SHELL 17447 17448# An echo program that does not interpret backslashes. 17449ECHO=$lt_ECHO 17450 17451# Used to examine libraries when file_magic_cmd begins with "file". 17452MAGIC_CMD=$MAGIC_CMD 17453 17454# Must we lock files when doing compilation? 17455need_locks=$lt_need_locks 17456 17457# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17458DSYMUTIL=$lt_DSYMUTIL 17459 17460# Tool to change global to local symbols on Mac OS X. 17461NMEDIT=$lt_NMEDIT 17462 17463# Tool to manipulate fat objects and archives on Mac OS X. 17464LIPO=$lt_LIPO 17465 17466# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17467OTOOL=$lt_OTOOL 17468 17469# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17470OTOOL64=$lt_OTOOL64 17471 17472# Old archive suffix (normally "a"). 17473libext=$libext 17474 17475# Shared library suffix (normally ".so"). 17476shrext_cmds=$lt_shrext_cmds 17477 17478# The commands to extract the exported symbol list from a shared archive. 17479extract_expsyms_cmds=$lt_extract_expsyms_cmds 17480 17481# Variables whose values should be saved in libtool wrapper scripts and 17482# restored at link time. 17483variables_saved_for_relink=$lt_variables_saved_for_relink 17484 17485# Do we need the "lib" prefix for modules? 17486need_lib_prefix=$need_lib_prefix 17487 17488# Do we need a version for libraries? 17489need_version=$need_version 17490 17491# Library versioning type. 17492version_type=$version_type 17493 17494# Shared library runtime path variable. 17495runpath_var=$runpath_var 17496 17497# Shared library path variable. 17498shlibpath_var=$shlibpath_var 17499 17500# Is shlibpath searched before the hard-coded library search path? 17501shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17502 17503# Format of library name prefix. 17504libname_spec=$lt_libname_spec 17505 17506# List of archive names. First name is the real one, the rest are links. 17507# The last name is the one that the linker finds with -lNAME 17508library_names_spec=$lt_library_names_spec 17509 17510# The coded name of the library, if different from the real name. 17511soname_spec=$lt_soname_spec 17512 17513# Command to use after installation of a shared archive. 17514postinstall_cmds=$lt_postinstall_cmds 17515 17516# Command to use after uninstallation of a shared archive. 17517postuninstall_cmds=$lt_postuninstall_cmds 17518 17519# Commands used to finish a libtool library installation in a directory. 17520finish_cmds=$lt_finish_cmds 17521 17522# As "finish_cmds", except a single script fragment to be evaled but 17523# not shown. 17524finish_eval=$lt_finish_eval 17525 17526# Whether we should hardcode library paths into libraries. 17527hardcode_into_libs=$hardcode_into_libs 17528 17529# Compile-time system search path for libraries. 17530sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17531 17532# Run-time system search path for libraries. 17533sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17534 17535# Whether dlopen is supported. 17536dlopen_support=$enable_dlopen 17537 17538# Whether dlopen of programs is supported. 17539dlopen_self=$enable_dlopen_self 17540 17541# Whether dlopen of statically linked programs is supported. 17542dlopen_self_static=$enable_dlopen_self_static 17543 17544# Commands to strip libraries. 17545old_striplib=$lt_old_striplib 17546striplib=$lt_striplib 17547 17548 17549# The linker used to build libraries. 17550LD=$lt_LD 17551 17552# Commands used to build an old-style archive. 17553old_archive_cmds=$lt_old_archive_cmds 17554 17555# A language specific compiler. 17556CC=$lt_compiler 17557 17558# Is the compiler the GNU compiler? 17559with_gcc=$GCC 17560 17561# Compiler flag to turn off builtin functions. 17562no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17563 17564# How to pass a linker flag through the compiler. 17565wl=$lt_lt_prog_compiler_wl 17566 17567# Additional compiler flags for building library objects. 17568pic_flag=$lt_lt_prog_compiler_pic 17569 17570# Compiler flag to prevent dynamic linking. 17571link_static_flag=$lt_lt_prog_compiler_static 17572 17573# Does compiler simultaneously support -c and -o options? 17574compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17575 17576# Whether or not to add -lc for building shared libraries. 17577build_libtool_need_lc=$archive_cmds_need_lc 17578 17579# Whether or not to disallow shared libs when runtime libs are static. 17580allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17581 17582# Compiler flag to allow reflexive dlopens. 17583export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17584 17585# Compiler flag to generate shared objects directly from archives. 17586whole_archive_flag_spec=$lt_whole_archive_flag_spec 17587 17588# Whether the compiler copes with passing no objects directly. 17589compiler_needs_object=$lt_compiler_needs_object 17590 17591# Create an old-style archive from a shared archive. 17592old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17593 17594# Create a temporary old-style archive to link instead of a shared archive. 17595old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17596 17597# Commands used to build a shared archive. 17598archive_cmds=$lt_archive_cmds 17599archive_expsym_cmds=$lt_archive_expsym_cmds 17600 17601# Commands used to build a loadable module if different from building 17602# a shared archive. 17603module_cmds=$lt_module_cmds 17604module_expsym_cmds=$lt_module_expsym_cmds 17605 17606# Whether we are building with GNU ld or not. 17607with_gnu_ld=$lt_with_gnu_ld 17608 17609# Flag that allows shared libraries with undefined symbols to be built. 17610allow_undefined_flag=$lt_allow_undefined_flag 17611 17612# Flag that enforces no undefined symbols. 17613no_undefined_flag=$lt_no_undefined_flag 17614 17615# Flag to hardcode \$libdir into a binary during linking. 17616# This must work even if \$libdir does not exist 17617hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17618 17619# If ld is used when linking, flag to hardcode \$libdir into a binary 17620# during linking. This must work even if \$libdir does not exist. 17621hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17622 17623# Whether we need a single "-rpath" flag with a separated argument. 17624hardcode_libdir_separator=$lt_hardcode_libdir_separator 17625 17626# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17627# DIR into the resulting binary. 17628hardcode_direct=$hardcode_direct 17629 17630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17631# DIR into the resulting binary and the resulting library dependency is 17632# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17633# library is relocated. 17634hardcode_direct_absolute=$hardcode_direct_absolute 17635 17636# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17637# into the resulting binary. 17638hardcode_minus_L=$hardcode_minus_L 17639 17640# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17641# into the resulting binary. 17642hardcode_shlibpath_var=$hardcode_shlibpath_var 17643 17644# Set to "yes" if building a shared library automatically hardcodes DIR 17645# into the library and all subsequent libraries and executables linked 17646# against it. 17647hardcode_automatic=$hardcode_automatic 17648 17649# Set to yes if linker adds runtime paths of dependent libraries 17650# to runtime path list. 17651inherit_rpath=$inherit_rpath 17652 17653# Whether libtool must link a program against all its dependency libraries. 17654link_all_deplibs=$link_all_deplibs 17655 17656# Fix the shell variable \$srcfile for the compiler. 17657fix_srcfile_path=$lt_fix_srcfile_path 17658 17659# Set to "yes" if exported symbols are required. 17660always_export_symbols=$always_export_symbols 17661 17662# The commands to list exported symbols. 17663export_symbols_cmds=$lt_export_symbols_cmds 17664 17665# Symbols that should not be listed in the preloaded symbols. 17666exclude_expsyms=$lt_exclude_expsyms 17667 17668# Symbols that must always be exported. 17669include_expsyms=$lt_include_expsyms 17670 17671# Commands necessary for linking programs (against libraries) with templates. 17672prelink_cmds=$lt_prelink_cmds 17673 17674# Specify filename containing input files. 17675file_list_spec=$lt_file_list_spec 17676 17677# How to hardcode a shared library path into an executable. 17678hardcode_action=$hardcode_action 17679 17680# ### END LIBTOOL CONFIG 17681 17682_LT_EOF 17683 17684 case $host_os in 17685 aix3*) 17686 cat <<\_LT_EOF >> "$cfgfile" 17687# AIX sometimes has problems with the GCC collect2 program. For some 17688# reason, if we set the COLLECT_NAMES environment variable, the problems 17689# vanish in a puff of smoke. 17690if test "X${COLLECT_NAMES+set}" != Xset; then 17691 COLLECT_NAMES= 17692 export COLLECT_NAMES 17693fi 17694_LT_EOF 17695 ;; 17696 esac 17697 17698 17699ltmain="$ac_aux_dir/ltmain.sh" 17700 17701 17702 # We use sed instead of cat because bash on DJGPP gets confused if 17703 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17704 # text mode, it properly converts lines to CR/LF. This bash problem 17705 # is reportedly fixed, but why not run on old versions too? 17706 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17707 || (rm -f "$cfgfile"; exit 1) 17708 17709 case $xsi_shell in 17710 yes) 17711 cat << \_LT_EOF >> "$cfgfile" 17712 17713# func_dirname file append nondir_replacement 17714# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17715# otherwise set result to NONDIR_REPLACEMENT. 17716func_dirname () 17717{ 17718 case ${1} in 17719 */*) func_dirname_result="${1%/*}${2}" ;; 17720 * ) func_dirname_result="${3}" ;; 17721 esac 17722} 17723 17724# func_basename file 17725func_basename () 17726{ 17727 func_basename_result="${1##*/}" 17728} 17729 17730# func_dirname_and_basename file append nondir_replacement 17731# perform func_basename and func_dirname in a single function 17732# call: 17733# dirname: Compute the dirname of FILE. If nonempty, 17734# add APPEND to the result, otherwise set result 17735# to NONDIR_REPLACEMENT. 17736# value returned in "$func_dirname_result" 17737# basename: Compute filename of FILE. 17738# value retuned in "$func_basename_result" 17739# Implementation must be kept synchronized with func_dirname 17740# and func_basename. For efficiency, we do not delegate to 17741# those functions but instead duplicate the functionality here. 17742func_dirname_and_basename () 17743{ 17744 case ${1} in 17745 */*) func_dirname_result="${1%/*}${2}" ;; 17746 * ) func_dirname_result="${3}" ;; 17747 esac 17748 func_basename_result="${1##*/}" 17749} 17750 17751# func_stripname prefix suffix name 17752# strip PREFIX and SUFFIX off of NAME. 17753# PREFIX and SUFFIX must not contain globbing or regex special 17754# characters, hashes, percent signs, but SUFFIX may contain a leading 17755# dot (in which case that matches only a dot). 17756func_stripname () 17757{ 17758 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17759 # positional parameters, so assign one to ordinary parameter first. 17760 func_stripname_result=${3} 17761 func_stripname_result=${func_stripname_result#"${1}"} 17762 func_stripname_result=${func_stripname_result%"${2}"} 17763} 17764 17765# func_opt_split 17766func_opt_split () 17767{ 17768 func_opt_split_opt=${1%%=*} 17769 func_opt_split_arg=${1#*=} 17770} 17771 17772# func_lo2o object 17773func_lo2o () 17774{ 17775 case ${1} in 17776 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17777 *) func_lo2o_result=${1} ;; 17778 esac 17779} 17780 17781# func_xform libobj-or-source 17782func_xform () 17783{ 17784 func_xform_result=${1%.*}.lo 17785} 17786 17787# func_arith arithmetic-term... 17788func_arith () 17789{ 17790 func_arith_result=$(( $* )) 17791} 17792 17793# func_len string 17794# STRING may not start with a hyphen. 17795func_len () 17796{ 17797 func_len_result=${#1} 17798} 17799 17800_LT_EOF 17801 ;; 17802 *) # Bourne compatible functions. 17803 cat << \_LT_EOF >> "$cfgfile" 17804 17805# func_dirname file append nondir_replacement 17806# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17807# otherwise set result to NONDIR_REPLACEMENT. 17808func_dirname () 17809{ 17810 # Extract subdirectory from the argument. 17811 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17812 if test "X$func_dirname_result" = "X${1}"; then 17813 func_dirname_result="${3}" 17814 else 17815 func_dirname_result="$func_dirname_result${2}" 17816 fi 17817} 17818 17819# func_basename file 17820func_basename () 17821{ 17822 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17823} 17824 17825 17826# func_stripname prefix suffix name 17827# strip PREFIX and SUFFIX off of NAME. 17828# PREFIX and SUFFIX must not contain globbing or regex special 17829# characters, hashes, percent signs, but SUFFIX may contain a leading 17830# dot (in which case that matches only a dot). 17831# func_strip_suffix prefix name 17832func_stripname () 17833{ 17834 case ${2} in 17835 .*) func_stripname_result=`$ECHO "X${3}" \ 17836 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17837 *) func_stripname_result=`$ECHO "X${3}" \ 17838 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17839 esac 17840} 17841 17842# sed scripts: 17843my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17844my_sed_long_arg='1s/^-[^=]*=//' 17845 17846# func_opt_split 17847func_opt_split () 17848{ 17849 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17850 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17851} 17852 17853# func_lo2o object 17854func_lo2o () 17855{ 17856 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17857} 17858 17859# func_xform libobj-or-source 17860func_xform () 17861{ 17862 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17863} 17864 17865# func_arith arithmetic-term... 17866func_arith () 17867{ 17868 func_arith_result=`expr "$@"` 17869} 17870 17871# func_len string 17872# STRING may not start with a hyphen. 17873func_len () 17874{ 17875 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17876} 17877 17878_LT_EOF 17879esac 17880 17881case $lt_shell_append in 17882 yes) 17883 cat << \_LT_EOF >> "$cfgfile" 17884 17885# func_append var value 17886# Append VALUE to the end of shell variable VAR. 17887func_append () 17888{ 17889 eval "$1+=\$2" 17890} 17891_LT_EOF 17892 ;; 17893 *) 17894 cat << \_LT_EOF >> "$cfgfile" 17895 17896# func_append var value 17897# Append VALUE to the end of shell variable VAR. 17898func_append () 17899{ 17900 eval "$1=\$$1\$2" 17901} 17902 17903_LT_EOF 17904 ;; 17905 esac 17906 17907 17908 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17909 || (rm -f "$cfgfile"; exit 1) 17910 17911 mv -f "$cfgfile" "$ofile" || 17912 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17913 chmod +x "$ofile" 17914 17915 ;; 17916 17917 esac 17918done # for ac_tag 17919 17920 17921as_fn_exit 0 17922_ACEOF 17923ac_clean_files=$ac_clean_files_save 17924 17925test $ac_write_fail = 0 || 17926 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17927 17928 17929# configure is writing to config.log, and then calls config.status. 17930# config.status does its own redirection, appending to config.log. 17931# Unfortunately, on DOS this fails, as config.log is still kept open 17932# by configure, so config.status won't be able to write to it; its 17933# output is simply discarded. So we exec the FD to /dev/null, 17934# effectively closing config.log, so it can be properly (re)opened and 17935# appended to by config.status. When coming back to configure, we 17936# need to make the FD available again. 17937if test "$no_create" != yes; then 17938 ac_cs_success=: 17939 ac_config_status_args= 17940 test "$silent" = yes && 17941 ac_config_status_args="$ac_config_status_args --quiet" 17942 exec 5>/dev/null 17943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17944 exec 5>>config.log 17945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17946 # would make configure fail if this is the last instruction. 17947 $ac_cs_success || as_fn_exit 1 17948fi 17949if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17951$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17952fi 17953 17954 17955man_pages_suffix=$LIB_MAN_SUFFIX 17956if test -z "$man_pages_suffix"; then 17957 man_pages_suffix=none 17958fi 17959 17960echo "" 17961echo "X11 will be built with the following settings:" 17962echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 17963echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 17964echo " Use XCB: "$ac_cv_use_xcb 17965echo " Threading support: "$xthreads 17966echo " Use Threads safe API: "$mtsafeapi 17967echo " Threads stubs in libX11: "$thrstubs 17968echo " XCMS: "$XCMS 17969echo " Internationalization support: "$XLOCALE 17970echo " XF86BigFont support: "$XF86BIGFONT 17971echo " XKB support: "$XKB 17972echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 17973echo " Manual pages suffix: "$man_pages_suffix 17974echo " Compose table cache enabled: "$COMPOSECACHE 17975echo " Functional specs building enabled: "$build_specs 17976echo "" 17977