1 #! /bin/sh 2 # From configure.in Id: configure.in,v 1.388 2009/02/02 13:02:47 vruppert Exp . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.61. 5 # 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8 # This configure script is free software; the Free Software Foundation 9 # gives unlimited permission to copy, distribute and modify it. 10 ## --------------------- ## 11 ## M4sh Initialization. ## 12 ## --------------------- ## 13 14 # Be more Bourne compatible 15 DUALCASE=1; export DUALCASE # for MKS sh 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23 else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26 esac 27 28 fi 29 30 31 32 33 # PATH needs CR 34 # Avoid depending upon Character Ranges. 35 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38 as_cr_digits='0123456789' 39 as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41 # The user is always right. 42 if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52 fi 53 54 # Support unset when possible. 55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57 else 58 as_unset=false 59 fi 60 61 62 # IFS 63 # We need space, tab and new line, in precisely that order. Quoting is 64 # there to prevent editors from complaining about space-tab. 65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66 # splitting by setting IFS to empty value.) 67 as_nl=' 68 ' 69 IFS=" "" $as_nl" 70 71 # Find who we are. Look in the path if we contain no directory separator. 72 case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75 for as_dir in $PATH 76 do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80 done 81 IFS=$as_save_IFS 82 83 ;; 84 esac 85 # We did not find ourselves, most probably we were run as `sh COMMAND' 86 # in which case we are not to be found in the path. 87 if test "x$as_myself" = x; then 88 as_myself=$0 89 fi 90 if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93 fi 94 95 # Work around bugs in pre-3.0 UWIN ksh. 96 for as_var in ENV MAIL MAILPATH 97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98 done 99 PS1='$ ' 100 PS2='> ' 101 PS4='+ ' 102 103 # NLS nuisances. 104 for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108 do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114 done 115 116 # Required to use basename. 117 if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120 else 121 as_expr=false 122 fi 123 124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126 else 127 as_basename=false 128 fi 129 130 131 # Name of the executable. 132 as_me=`$as_basename -- "$0" || 133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136 echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151 # CDPATH. 152 $as_unset CDPATH 153 154 155 if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158 else 159 as_have_required=no 160 fi 161 162 if test $as_have_required = yes && (eval ": 163 (as_func_return () { 164 (exit \$1) 165 } 166 as_func_success () { 167 as_func_return 0 168 } 169 as_func_failure () { 170 as_func_return 1 171 } 172 as_func_ret_success () { 173 return 0 174 } 175 as_func_ret_failure () { 176 return 1 177 } 178 179 exitcode=0 180 if as_func_success; then 181 : 182 else 183 exitcode=1 184 echo as_func_success failed. 185 fi 186 187 if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190 fi 191 192 if as_func_ret_success; then 193 : 194 else 195 exitcode=1 196 echo as_func_ret_success failed. 197 fi 198 199 if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202 fi 203 204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206 else 207 exitcode=1 208 echo positional parameters were not saved. 209 fi 210 211 test \$exitcode = 0) || { (exit 1); exit 1; } 212 213 ( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218 ") 2> /dev/null; then 219 : 220 else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224 do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233 done 234 IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248 else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251 esac 252 253 fi 254 255 256 : 257 _ASEOF 258 }; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269 else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272 esac 273 274 fi 275 276 277 : 278 (as_func_return () { 279 (exit $1) 280 } 281 as_func_success () { 282 as_func_return 0 283 } 284 as_func_failure () { 285 as_func_return 1 286 } 287 as_func_ret_success () { 288 return 0 289 } 290 as_func_ret_failure () { 291 return 1 292 } 293 294 exitcode=0 295 if as_func_success; then 296 : 297 else 298 exitcode=1 299 echo as_func_success failed. 300 fi 301 302 if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305 fi 306 307 if as_func_ret_success; then 308 : 309 else 310 exitcode=1 311 echo as_func_ret_success failed. 312 fi 313 314 if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317 fi 318 319 if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321 else 322 exitcode=1 323 echo positional parameters were not saved. 324 fi 325 326 test $exitcode = 0) || { (exit 1); exit 1; } 327 328 ( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334 _ASEOF 335 }; then 336 break 337 fi 338 339 fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349 fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358 fi 359 360 361 fi 362 363 fi 364 365 366 367 (eval "as_func_return () { 368 (exit \$1) 369 } 370 as_func_success () { 371 as_func_return 0 372 } 373 as_func_failure () { 374 as_func_return 1 375 } 376 as_func_ret_success () { 377 return 0 378 } 379 as_func_ret_failure () { 380 return 1 381 } 382 383 exitcode=0 384 if as_func_success; then 385 : 386 else 387 exitcode=1 388 echo as_func_success failed. 389 fi 390 391 if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394 fi 395 396 if as_func_ret_success; then 397 : 398 else 399 exitcode=1 400 echo as_func_ret_success failed. 401 fi 402 403 if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406 fi 407 408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410 else 411 exitcode=1 412 echo positional parameters were not saved. 413 fi 414 415 test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420 } 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464 } 465 466 467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469 else 470 as_dirname=false 471 fi 472 473 ECHO_C= ECHO_N= ECHO_T= 474 case `echo -n x` in 475 -n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480 *) 481 ECHO_N='-n';; 482 esac 483 484 if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487 else 488 as_expr=false 489 fi 490 491 rm -f conf$$ conf$$.exe conf$$.file 492 if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494 else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497 fi 498 echo >conf$$.file 499 if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507 elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509 else 510 as_ln_s='cp -p' 511 fi 512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513 rmdir conf$$.dir 2>/dev/null 514 515 if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517 else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520 fi 521 522 if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524 else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542 fi 543 as_executable_p=$as_test_x 544 545 # Sed expression to map a string onto a valid CPP name. 546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548 # Sed expression to map a string onto a valid variable name. 549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553 554 # Check that we are running under the correct shell. 555 SHELL=${CONFIG_SHELL-/bin/sh} 556 557 case X$ECHO in 558 X*--fallback-echo) 559 # Remove one level of quotation (which was required for Make). 560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 561 ;; 562 esac 563 564 echo=${ECHO-echo} 565 if test "X$1" = X--no-reexec; then 566 # Discard the --no-reexec flag, and continue. 567 shift 568 elif test "X$1" = X--fallback-echo; then 569 # Avoid inline document here, it may be left over 570 : 571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 572 # Yippee, $echo works! 573 : 574 else 575 # Restart under the correct shell. 576 exec $SHELL "$0" --no-reexec ${1+"$@"} 577 fi 578 579 if test "X$1" = X--fallback-echo; then 580 # used as fallback echo 581 shift 582 cat <<EOF 583 $* 584 EOF 585 exit 0 586 fi 587 588 # The HP-UX ksh and POSIX shell print the target directory to stdout 589 # if CDPATH is set. 590 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 591 592 if test -z "$ECHO"; then 593 if test "X${echo_test_string+set}" != Xset; then 594 # find a string as large as possible, as long as the shell can cope with it 595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 597 if (echo_test_string="`eval $cmd`") 2>/dev/null && 598 echo_test_string="`eval $cmd`" && 599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 echo="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$echo" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 echo='print -r' 637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 echo='printf %s\n' 648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 echo="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 echo="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 echo=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691 fi 692 693 # Copy echo and quote the copy suitably for passing to libtool from 694 # the Makefile, instead of quoting the original, which is used later. 695 ECHO=$echo 696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698 fi 699 700 701 702 703 tagnames=${tagnames+${tagnames},}CXX 704 705 tagnames=${tagnames+${tagnames},}F77 706 707 exec 7<&0 </dev/null 6>&1 708 709 # Name of the host. 710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 711 # so uname gets run too. 712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713 714 # 715 # Initializations. 716 # 717 ac_default_prefix=/usr/local 718 ac_clean_files= 719 ac_config_libobj_dir=. 720 LIBOBJS= 721 cross_compiling=no 722 subdirs= 723 MFLAGS= 724 MAKEFLAGS= 725 SHELL=${CONFIG_SHELL-/bin/sh} 726 727 # Identity of this package. 728 PACKAGE_NAME= 729 PACKAGE_TARNAME= 730 PACKAGE_VERSION= 731 PACKAGE_STRING= 732 PACKAGE_BUGREPORT= 733 734 ac_unique_file="bochs.h" 735 # Factoring default headers for most tests. 736 ac_includes_default="\ 737 #include <stdio.h> 738 #ifdef HAVE_SYS_TYPES_H 739 # include <sys/types.h> 740 #endif 741 #ifdef HAVE_SYS_STAT_H 742 # include <sys/stat.h> 743 #endif 744 #ifdef STDC_HEADERS 745 # include <stdlib.h> 746 # include <stddef.h> 747 #else 748 # ifdef HAVE_STDLIB_H 749 # include <stdlib.h> 750 # endif 751 #endif 752 #ifdef HAVE_STRING_H 753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754 # include <memory.h> 755 # endif 756 # include <string.h> 757 #endif 758 #ifdef HAVE_STRINGS_H 759 # include <strings.h> 760 #endif 761 #ifdef HAVE_INTTYPES_H 762 # include <inttypes.h> 763 #endif 764 #ifdef HAVE_STDINT_H 765 # include <stdint.h> 766 #endif 767 #ifdef HAVE_UNISTD_H 768 # include <unistd.h> 769 #endif" 770 771 ac_subst_vars='SHELL 772 PATH_SEPARATOR 773 PACKAGE_NAME 774 PACKAGE_TARNAME 775 PACKAGE_VERSION 776 PACKAGE_STRING 777 PACKAGE_BUGREPORT 778 exec_prefix 779 prefix 780 program_transform_name 781 bindir 782 sbindir 783 libexecdir 784 datarootdir 785 datadir 786 sysconfdir 787 sharedstatedir 788 localstatedir 789 includedir 790 oldincludedir 791 docdir 792 infodir 793 htmldir 794 dvidir 795 pdfdir 796 psdir 797 libdir 798 localedir 799 mandir 800 DEFS 801 ECHO_C 802 ECHO_N 803 ECHO_T 804 LIBS 805 build_alias 806 host_alias 807 target_alias 808 build 809 build_cpu 810 build_vendor 811 build_os 812 host 813 host_cpu 814 host_vendor 815 host_os 816 target 817 target_cpu 818 target_vendor 819 target_os 820 CC 821 CFLAGS 822 LDFLAGS 823 CPPFLAGS 824 ac_ct_CC 825 EXEEXT 826 OBJEXT 827 CXX 828 CXXFLAGS 829 ac_ct_CXX 830 SET_MAKE 831 GREP 832 EGREP 833 LN_S 834 ECHO 835 AR 836 RANLIB 837 STRIP 838 CPP 839 CXXCPP 840 F77 841 FFLAGS 842 ac_ct_F77 843 LIBTOOL 844 LIBADD_DL 845 XMKMF 846 X_CFLAGS 847 X_PRE_LIBS 848 X_LIBS 849 X_EXTRA_LIBS 850 BX_USE_IDLE_HACK 851 DEFINE_PLUGIN_PATH 852 NONPLUGIN_GUI_LINK_OPTS 853 OBJS64 854 IOAPIC_OBJS 855 BX_COMPRESSED_HD_SUPPORT 856 NE2K_OBJS 857 BX_SUPPORT_ACPI 858 PCI_OBJ 859 KERNELDIR 860 LSMOD 861 INSMOD 862 RMMOD 863 DEPMOD 864 PCIDEV_MODULE_MAKE_ALL 865 KERNEL_MODULE_SUFFIX 866 USBDEV_OBJS 867 SCSI_OBJS 868 NETLOW_OBJS 869 SUFFIX_LINE 870 CPP_SUFFIX 871 DEBUGGER_VAR 872 DISASM_VAR 873 READLINE_LIB 874 INSTRUMENT_DIR 875 INSTRUMENT_VAR 876 FPU_VAR 877 CDROM_OBJS 878 SB16_OBJS 879 SOUNDLOW_OBJS 880 SOUND_LINK_OPTS 881 GAME_OBJS 882 GDBSTUB_VAR 883 IODEBUG_OBJS 884 DOCBOOK2HTML 885 BUILD_DOCBOOK_VAR 886 INSTALL_DOCBOOK_VAR 887 IODEV_LIB_VAR 888 EXTRA_BX_OBJS 889 NONINLINE_VAR 890 INLINE_VAR 891 EXTERNAL_DEPENDENCY 892 RC_CMD 893 WX_CONFIG 894 XPM_LIB 895 GUI_CFLAGS 896 GUI_CXXFLAGS 897 WX_CFLAGS 898 WX_CXXFLAGS 899 TOOLKIT_CXXFLAGS 900 WGET 901 ENH_DBG_OBJS 902 DIALOG_OBJS 903 EXPORT_DYNAMIC 904 PTHREAD_CC 905 PTHREAD_LIBS 906 PTHREAD_CFLAGS 907 INSTALL_TARGET 908 INSTALL_LIST_FOR_PLATFORM 909 RFB_LIBS 910 GUI_OBJS 911 DEVICE_LINK_OPTS 912 GUI_LINK_OPTS 913 GUI_LINK_OPTS_TERM 914 GUI_LINK_OPTS_WX 915 BXIMAGE_LINK_OPTS 916 DASH 917 SLASH 918 CXXFP 919 CFP 920 OFP 921 MAKELIB 922 RMCOMMAND 923 LINK 924 LINK_CONSOLE 925 EXE 926 PRIMARY_TARGET 927 PLUGIN_LIBNAME_TRANSFORMATION 928 COMMAND_SEPARATOR 929 CD_UP_ONE 930 CD_UP_TWO 931 CD_UP_THREE 932 VERSION 933 VER_STRING 934 WIN_VER_STRING 935 REL_STRING 936 EXTRA_LINK_OPTS 937 GUI_NON_PLUGIN_OBJS 938 GUI_PLUGIN_OBJS 939 IODEV_NON_PLUGIN_OBJS 940 IODEV_PLUGIN_OBJS 941 PLUGIN_VAR 942 PLUGIN_TARGET 943 INSTALL_PLUGINS_VAR 944 GZIP 945 TAR 946 LIBOBJS 947 LTLIBOBJS' 948 ac_subst_files='' 949 ac_precious_vars='build_alias 950 host_alias 951 target_alias 952 CC 953 CFLAGS 954 LDFLAGS 955 LIBS 956 CPPFLAGS 957 CXX 958 CXXFLAGS 959 CCC 960 CPP 961 CXXCPP 962 F77 963 FFLAGS 964 XMKMF' 965 966 967 # Initialize some variables set by options. 968 ac_init_help= 969 ac_init_version=false 970 # The variables have the same names as the options, with 971 # dashes changed to underlines. 972 cache_file=/dev/null 973 exec_prefix=NONE 974 no_create= 975 no_recursion= 976 prefix=NONE 977 program_prefix=NONE 978 program_suffix=NONE 979 program_transform_name=s,x,x, 980 silent= 981 site= 982 srcdir= 983 verbose= 984 x_includes=NONE 985 x_libraries=NONE 986 987 # Installation directory options. 988 # These are left unexpanded so users can "make install exec_prefix=/foo" 989 # and all the variables that are supposed to be based on exec_prefix 990 # by default will actually change. 991 # Use braces instead of parens because sh, perl, etc. also accept them. 992 # (The list follows the same order as the GNU Coding Standards.) 993 bindir='${exec_prefix}/bin' 994 sbindir='${exec_prefix}/sbin' 995 libexecdir='${exec_prefix}/libexec' 996 datarootdir='${prefix}/share' 997 datadir='${datarootdir}' 998 sysconfdir='${prefix}/etc' 999 sharedstatedir='${prefix}/com' 1000 localstatedir='${prefix}/var' 1001 includedir='${prefix}/include' 1002 oldincludedir='/usr/include' 1003 docdir='${datarootdir}/doc/${PACKAGE}' 1004 infodir='${datarootdir}/info' 1005 htmldir='${docdir}' 1006 dvidir='${docdir}' 1007 pdfdir='${docdir}' 1008 psdir='${docdir}' 1009 libdir='${exec_prefix}/lib' 1010 localedir='${datarootdir}/locale' 1011 mandir='${datarootdir}/man' 1012 1013 ac_prev= 1014 ac_dashdash= 1015 for ac_option 1016 do 1017 # If the previous option needs an argument, assign it. 1018 if test -n "$ac_prev"; then 1019 eval $ac_prev=\$ac_option 1020 ac_prev= 1021 continue 1022 fi 1023 1024 case $ac_option in 1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1026 *) ac_optarg=yes ;; 1027 esac 1028 1029 # Accept the important Cygnus configure options, so we can diagnose typos. 1030 1031 case $ac_dashdash$ac_option in 1032 --) 1033 ac_dashdash=yes ;; 1034 1035 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1036 ac_prev=bindir ;; 1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1038 bindir=$ac_optarg ;; 1039 1040 -build | --build | --buil | --bui | --bu) 1041 ac_prev=build_alias ;; 1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1043 build_alias=$ac_optarg ;; 1044 1045 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1047 ac_prev=cache_file ;; 1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1050 cache_file=$ac_optarg ;; 1051 1052 --config-cache | -C) 1053 cache_file=config.cache ;; 1054 1055 -datadir | --datadir | --datadi | --datad) 1056 ac_prev=datadir ;; 1057 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1058 datadir=$ac_optarg ;; 1059 1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1061 | --dataroo | --dataro | --datar) 1062 ac_prev=datarootdir ;; 1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1065 datarootdir=$ac_optarg ;; 1066 1067 -disable-* | --disable-*) 1068 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1072 { (exit 1); exit 1; }; } 1073 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1074 eval enable_$ac_feature=no ;; 1075 1076 -docdir | --docdir | --docdi | --doc | --do) 1077 ac_prev=docdir ;; 1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1079 docdir=$ac_optarg ;; 1080 1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1082 ac_prev=dvidir ;; 1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1084 dvidir=$ac_optarg ;; 1085 1086 -enable-* | --enable-*) 1087 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1088 # Reject names that are not valid shell variable names. 1089 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1090 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1091 { (exit 1); exit 1; }; } 1092 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1093 eval enable_$ac_feature=\$ac_optarg ;; 1094 1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1097 | --exec | --exe | --ex) 1098 ac_prev=exec_prefix ;; 1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1101 | --exec=* | --exe=* | --ex=*) 1102 exec_prefix=$ac_optarg ;; 1103 1104 -gas | --gas | --ga | --g) 1105 # Obsolete; use --with-gas. 1106 with_gas=yes ;; 1107 1108 -help | --help | --hel | --he | -h) 1109 ac_init_help=long ;; 1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1111 ac_init_help=recursive ;; 1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1113 ac_init_help=short ;; 1114 1115 -host | --host | --hos | --ho) 1116 ac_prev=host_alias ;; 1117 -host=* | --host=* | --hos=* | --ho=*) 1118 host_alias=$ac_optarg ;; 1119 1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1121 ac_prev=htmldir ;; 1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1123 | --ht=*) 1124 htmldir=$ac_optarg ;; 1125 1126 -includedir | --includedir | --includedi | --included | --include \ 1127 | --includ | --inclu | --incl | --inc) 1128 ac_prev=includedir ;; 1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1130 | --includ=* | --inclu=* | --incl=* | --inc=*) 1131 includedir=$ac_optarg ;; 1132 1133 -infodir | --infodir | --infodi | --infod | --info | --inf) 1134 ac_prev=infodir ;; 1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1136 infodir=$ac_optarg ;; 1137 1138 -libdir | --libdir | --libdi | --libd) 1139 ac_prev=libdir ;; 1140 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1141 libdir=$ac_optarg ;; 1142 1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1144 | --libexe | --libex | --libe) 1145 ac_prev=libexecdir ;; 1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1147 | --libexe=* | --libex=* | --libe=*) 1148 libexecdir=$ac_optarg ;; 1149 1150 -localedir | --localedir | --localedi | --localed | --locale) 1151 ac_prev=localedir ;; 1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1153 localedir=$ac_optarg ;; 1154 1155 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1156 | --localstate | --localstat | --localsta | --localst | --locals) 1157 ac_prev=localstatedir ;; 1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1160 localstatedir=$ac_optarg ;; 1161 1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1163 ac_prev=mandir ;; 1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1165 mandir=$ac_optarg ;; 1166 1167 -nfp | --nfp | --nf) 1168 # Obsolete; use --without-fp. 1169 with_fp=no ;; 1170 1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1172 | --no-cr | --no-c | -n) 1173 no_create=yes ;; 1174 1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1177 no_recursion=yes ;; 1178 1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1181 | --oldin | --oldi | --old | --ol | --o) 1182 ac_prev=oldincludedir ;; 1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1186 oldincludedir=$ac_optarg ;; 1187 1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1189 ac_prev=prefix ;; 1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1191 prefix=$ac_optarg ;; 1192 1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1194 | --program-pre | --program-pr | --program-p) 1195 ac_prev=program_prefix ;; 1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1198 program_prefix=$ac_optarg ;; 1199 1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1201 | --program-suf | --program-su | --program-s) 1202 ac_prev=program_suffix ;; 1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1205 program_suffix=$ac_optarg ;; 1206 1207 -program-transform-name | --program-transform-name \ 1208 | --program-transform-nam | --program-transform-na \ 1209 | --program-transform-n | --program-transform- \ 1210 | --program-transform | --program-transfor \ 1211 | --program-transfo | --program-transf \ 1212 | --program-trans | --program-tran \ 1213 | --progr-tra | --program-tr | --program-t) 1214 ac_prev=program_transform_name ;; 1215 -program-transform-name=* | --program-transform-name=* \ 1216 | --program-transform-nam=* | --program-transform-na=* \ 1217 | --program-transform-n=* | --program-transform-=* \ 1218 | --program-transform=* | --program-transfor=* \ 1219 | --program-transfo=* | --program-transf=* \ 1220 | --program-trans=* | --program-tran=* \ 1221 | --progr-tra=* | --program-tr=* | --program-t=*) 1222 program_transform_name=$ac_optarg ;; 1223 1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1225 ac_prev=pdfdir ;; 1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1227 pdfdir=$ac_optarg ;; 1228 1229 -psdir | --psdir | --psdi | --psd | --ps) 1230 ac_prev=psdir ;; 1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1232 psdir=$ac_optarg ;; 1233 1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1235 | -silent | --silent | --silen | --sile | --sil) 1236 silent=yes ;; 1237 1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1239 ac_prev=sbindir ;; 1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1241 | --sbi=* | --sb=*) 1242 sbindir=$ac_optarg ;; 1243 1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1246 | --sharedst | --shareds | --shared | --share | --shar \ 1247 | --sha | --sh) 1248 ac_prev=sharedstatedir ;; 1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1252 | --sha=* | --sh=*) 1253 sharedstatedir=$ac_optarg ;; 1254 1255 -site | --site | --sit) 1256 ac_prev=site ;; 1257 -site=* | --site=* | --sit=*) 1258 site=$ac_optarg ;; 1259 1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1261 ac_prev=srcdir ;; 1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1263 srcdir=$ac_optarg ;; 1264 1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1266 | --syscon | --sysco | --sysc | --sys | --sy) 1267 ac_prev=sysconfdir ;; 1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1270 sysconfdir=$ac_optarg ;; 1271 1272 -target | --target | --targe | --targ | --tar | --ta | --t) 1273 ac_prev=target_alias ;; 1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1275 target_alias=$ac_optarg ;; 1276 1277 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1278 verbose=yes ;; 1279 1280 -version | --version | --versio | --versi | --vers | -V) 1281 ac_init_version=: ;; 1282 1283 -with-* | --with-*) 1284 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1285 # Reject names that are not valid shell variable names. 1286 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1287 { echo "$as_me: error: invalid package name: $ac_package" >&2 1288 { (exit 1); exit 1; }; } 1289 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1290 eval with_$ac_package=\$ac_optarg ;; 1291 1292 -without-* | --without-*) 1293 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1294 # Reject names that are not valid shell variable names. 1295 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1296 { echo "$as_me: error: invalid package name: $ac_package" >&2 1297 { (exit 1); exit 1; }; } 1298 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1299 eval with_$ac_package=no ;; 1300 1301 --x) 1302 # Obsolete; use --with-x. 1303 with_x=yes ;; 1304 1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1306 | --x-incl | --x-inc | --x-in | --x-i) 1307 ac_prev=x_includes ;; 1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1310 x_includes=$ac_optarg ;; 1311 1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1314 ac_prev=x_libraries ;; 1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1317 x_libraries=$ac_optarg ;; 1318 1319 -*) { echo "$as_me: error: unrecognized option: $ac_option 1320 Try \`$0 --help' for more information." >&2 1321 { (exit 1); exit 1; }; } 1322 ;; 1323 1324 *=*) 1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1326 # Reject names that are not valid shell variable names. 1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1328 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1329 { (exit 1); exit 1; }; } 1330 eval $ac_envvar=\$ac_optarg 1331 export $ac_envvar ;; 1332 1333 *) 1334 # FIXME: should be removed in autoconf 3.0. 1335 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1337 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1339 ;; 1340 1341 esac 1342 done 1343 1344 if test -n "$ac_prev"; then 1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1346 { echo "$as_me: error: missing argument to $ac_option" >&2 1347 { (exit 1); exit 1; }; } 1348 fi 1349 1350 # Be sure to have absolute directory names. 1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1352 datadir sysconfdir sharedstatedir localstatedir includedir \ 1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1354 libdir localedir mandir 1355 do 1356 eval ac_val=\$$ac_var 1357 case $ac_val in 1358 [\\/$]* | ?:[\\/]* ) continue;; 1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1360 esac 1361 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1362 { (exit 1); exit 1; }; } 1363 done 1364 1365 # There might be people who depend on the old broken behavior: `$host' 1366 # used to hold the argument of --host etc. 1367 # FIXME: To remove some day. 1368 build=$build_alias 1369 host=$host_alias 1370 target=$target_alias 1371 1372 # FIXME: To remove some day. 1373 if test "x$host_alias" != x; then 1374 if test "x$build_alias" = x; then 1375 cross_compiling=maybe 1376 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1377 If a cross compiler is detected then cross compile mode will be used." >&2 1378 elif test "x$build_alias" != "x$host_alias"; then 1379 cross_compiling=yes 1380 fi 1381 fi 1382 1383 ac_tool_prefix= 1384 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1385 1386 test "$silent" = yes && exec 6>/dev/null 1387 1388 1389 ac_pwd=`pwd` && test -n "$ac_pwd" && 1390 ac_ls_di=`ls -di .` && 1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1392 { echo "$as_me: error: Working directory cannot be determined" >&2 1393 { (exit 1); exit 1; }; } 1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1395 { echo "$as_me: error: pwd does not report name of working directory" >&2 1396 { (exit 1); exit 1; }; } 1397 1398 1399 # Find the source files, if location was not specified. 1400 if test -z "$srcdir"; then 1401 ac_srcdir_defaulted=yes 1402 # Try the directory containing this script, then the parent directory. 1403 ac_confdir=`$as_dirname -- "$0" || 1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1405 X"$0" : 'X\(//\)[^/]' \| \ 1406 X"$0" : 'X\(//\)$' \| \ 1407 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1408 echo X"$0" | 1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\/\)[^/].*/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\/\)$/{ 1418 s//\1/ 1419 q 1420 } 1421 /^X\(\/\).*/{ 1422 s//\1/ 1423 q 1424 } 1425 s/.*/./; q'` 1426 srcdir=$ac_confdir 1427 if test ! -r "$srcdir/$ac_unique_file"; then 1428 srcdir=.. 1429 fi 1430 else 1431 ac_srcdir_defaulted=no 1432 fi 1433 if test ! -r "$srcdir/$ac_unique_file"; then 1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1435 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1436 { (exit 1); exit 1; }; } 1437 fi 1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1439 ac_abs_confdir=`( 1440 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1441 { (exit 1); exit 1; }; } 1442 pwd)` 1443 # When building in place, set srcdir=. 1444 if test "$ac_abs_confdir" = "$ac_pwd"; then 1445 srcdir=. 1446 fi 1447 # Remove unnecessary trailing slashes from srcdir. 1448 # Double slashes in file names in object file debugging info 1449 # mess up M-x gdb in Emacs. 1450 case $srcdir in 1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1452 esac 1453 for ac_var in $ac_precious_vars; do 1454 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1455 eval ac_env_${ac_var}_value=\$${ac_var} 1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1457 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1458 done 1459 1460 # 1461 # Report the --help message. 1462 # 1463 if test "$ac_init_help" = "long"; then 1464 # Omit some internal or obsolete options to make the list less imposing. 1465 # This message is too long to be a string in the A/UX 3.1 sh. 1466 cat <<_ACEOF 1467 \`configure' configures this package to adapt to many kinds of systems. 1468 1469 Usage: $0 [OPTION]... [VAR=VALUE]... 1470 1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1472 VAR=VALUE. See below for descriptions of some of the useful variables. 1473 1474 Defaults for the options are specified in brackets. 1475 1476 Configuration: 1477 -h, --help display this help and exit 1478 --help=short display options specific to this package 1479 --help=recursive display the short help of all the included packages 1480 -V, --version display version information and exit 1481 -q, --quiet, --silent do not print \`checking...' messages 1482 --cache-file=FILE cache test results in FILE [disabled] 1483 -C, --config-cache alias for \`--cache-file=config.cache' 1484 -n, --no-create do not create output files 1485 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1486 1487 Installation directories: 1488 --prefix=PREFIX install architecture-independent files in PREFIX 1489 [$ac_default_prefix] 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1491 [PREFIX] 1492 1493 By default, \`make install' will install all the files in 1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1496 for instance \`--prefix=\$HOME'. 1497 1498 For better control, use the options below. 1499 1500 Fine tuning of the installation directories: 1501 --bindir=DIR user executables [EPREFIX/bin] 1502 --sbindir=DIR system admin executables [EPREFIX/sbin] 1503 --libexecdir=DIR program executables [EPREFIX/libexec] 1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1507 --libdir=DIR object code libraries [EPREFIX/lib] 1508 --includedir=DIR C header files [PREFIX/include] 1509 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1512 --infodir=DIR info documentation [DATAROOTDIR/info] 1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1514 --mandir=DIR man documentation [DATAROOTDIR/man] 1515 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1516 --htmldir=DIR html documentation [DOCDIR] 1517 --dvidir=DIR dvi documentation [DOCDIR] 1518 --pdfdir=DIR pdf documentation [DOCDIR] 1519 --psdir=DIR ps documentation [DOCDIR] 1520 _ACEOF 1521 1522 cat <<\_ACEOF 1523 1524 X features: 1525 --x-includes=DIR X include files are in DIR 1526 --x-libraries=DIR X library files are in DIR 1527 1528 System types: 1529 --build=BUILD configure for building on BUILD [guessed] 1530 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1531 --target=TARGET configure for building compilers for TARGET [HOST] 1532 _ACEOF 1533 fi 1534 1535 if test -n "$ac_init_help"; then 1536 1537 cat <<\_ACEOF 1538 1539 Optional Features: 1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1542 --enable-static[=PKGS] build static libraries [default=no] 1543 --enable-shared[=PKGS] build shared libraries [default=yes] 1544 --enable-fast-install[=PKGS] 1545 optimize for fast installation [default=yes] 1546 --disable-libtool-lock avoid locking (might break parallel builds) 1547 --enable-ltdl-install install libltdl 1548 --disable-largefile omit support for large files 1549 --enable-idle-hack use Roland Mainz's idle hack 1550 --enable-plugins enable plugins 1551 --enable-x86-64 compile in support for x86-64 instructions 1552 --enable-smp compile in support for SMP configurations 1553 --enable-cpu-level select cpu level (3,4,5,6) 1554 --enable-apic enable APIC support 1555 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet) 1556 --enable-ne2000 enable limited ne2000 support 1557 --enable-acpi enable ACPI support 1558 --enable-pci enable limited i440FX PCI support 1559 --enable-pcidev enable PCI host device mapping support (linux host only) 1560 --enable-usb enable limited USB UHCI support 1561 --enable-usb-ohci enable limited USB OHCI support 1562 --enable-pnic enable PCI pseudo NIC support 1563 --enable-large-pages support for large pages (2M/4M pages) 1564 --enable-pae support Physical Address Extensions 1565 --enable-global-pages support for global pages in PDE/PTE 1566 --enable-1g-pages support for 1G pages in long mode 1567 --enable-mtrr support for MTRRs 1568 --enable-repeat-speedups support repeated IO and mem copy speedups 1569 --enable-trace-cache support instruction trace cache 1570 --enable-icache support instruction cache 1571 --enable-fast-function-calls support for fast function calls (gcc on x86 only) 1572 --enable-host-specific-asms support for host specific inline assembly 1573 --enable-configurable-msrs support for configurable MSR registers 1574 --enable-ignore-bad-msr ignore bad MSR references 1575 --enable-port-e9-hack writes to port e9 go to console 1576 --enable-show-ips show IPS in Bochs log file 1577 --enable-cpp use .cpp as C++ suffix 1578 --enable-debugger compile in support for Bochs internal debugger 1579 --enable-disasm compile in support for disassembler 1580 --enable-debugger-gui compile in support for Bochs internal debugger GUI 1581 --enable-all-optimizations compile in all possible optimizations 1582 --enable-readline use readline library, if available 1583 --enable-instrumentation compile in support for instrumentation 1584 --enable-logging enable logging 1585 --enable-assert-checks enable BX_ASSERT checks 1586 --enable-raw-serial use raw serial port access 1587 --enable-vbe use VESA BIOS extensions 1588 --enable-clgd54xx enable CLGD54XX emulation 1589 --enable-fpu compile in FPU emulation 1590 --enable-vme virtual 8086 mode extensions 1591 --enable-vmx virtualization extensions 1592 --enable-mmx MMX support 1593 --enable-3dnow 3DNow! support (incomplete) 1594 --enable-sse SSE support (--enable-sse=no|1|2|3|4) 1595 --enable-sse-extension support for SSE extensions 1596 --enable-daz denormals-are-zeroes support 1597 --enable-xsave support for XSAVE/XRSTOR extensions 1598 --enable-aes support for AES instructions 1599 --enable-alignment-check alignment check (#AC) support 1600 --enable-misaligned-sse misaligned SSE support 1601 --enable-sep SYSENTER/SYSEXIT support 1602 --enable-popcnt support for POPCNT instruction 1603 --enable-movbe support for MOVBE Intel Atom(R) instruction 1604 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental) 1605 --enable-x86-debugger x86 debugger support 1606 --enable-cdrom CDROM support 1607 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx) 1608 --enable-gameport enable standard PC gameport support 1609 --enable-gdb-stub enable gdb stub support 1610 --enable-iodebug enable I/O interface to debugger 1611 --enable-docbook build the Docbook documentation 1612 --enable-xpm enable the check for XPM support 1613 --enable-guest2host-tlb enables guest to host addr TLB for speed (deprecated) 1614 --enable-external-debugger enables external debugger interface (deprecated) 1615 --enable-magic-breakpoints enables magic breakpoints (deprecated) 1616 --enable-save-restore enables save/restore (deprecated) 1617 1618 Optional Packages: 1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1622 --with-pic try to use only PIC/non-PIC objects [default=use 1623 both] 1624 --with-tags[=TAGS] include additional configurations [automatic] 1625 --with-x use the X Window System 1626 --with-x11 use X11 GUI 1627 --with-beos use BeOS GUI 1628 --with-win32 use Win32 GUI 1629 --with-macos use Macintosh/CodeWarrior environment 1630 --with-carbon compile for MacOS X with Carbon GUI 1631 --with-nogui no native GUI, just use blank stubs 1632 --with-term textmode terminal environment 1633 --with-rfb use RFB protocol, works with VNC viewer 1634 --with-amigaos use AmigaOS (or MorphOS) GUI 1635 --with-sdl use SDL libraries 1636 --with-svga use SVGALib libraries 1637 --with-wx use wxWidgets libraries 1638 --with-all-libs compile all guis that Bochs supports 1639 1640 Some influential environment variables: 1641 CC C compiler command 1642 CFLAGS C compiler flags 1643 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1644 nonstandard directory <lib dir> 1645 LIBS libraries to pass to the linker, e.g. -l<library> 1646 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1647 you have headers in a nonstandard directory <include dir> 1648 CXX C++ compiler command 1649 CXXFLAGS C++ compiler flags 1650 CPP C preprocessor 1651 CXXCPP C++ preprocessor 1652 F77 Fortran 77 compiler command 1653 FFLAGS Fortran 77 compiler flags 1654 XMKMF Path to xmkmf, Makefile generator for X Window System 1655 1656 Use these variables to override the choices made by `configure' or to help 1657 it to find libraries and programs with nonstandard names/locations. 1658 1659 _ACEOF 1660 ac_status=$? 1661 fi 1662 1663 if test "$ac_init_help" = "recursive"; then 1664 # If there are subdirs, report their specific --help. 1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1666 test -d "$ac_dir" || continue 1667 ac_builddir=. 1668 1669 case "$ac_dir" in 1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1671 *) 1672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1673 # A ".." for each directory in $ac_dir_suffix. 1674 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1675 case $ac_top_builddir_sub in 1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1678 esac ;; 1679 esac 1680 ac_abs_top_builddir=$ac_pwd 1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1682 # for backward compatibility: 1683 ac_top_builddir=$ac_top_build_prefix 1684 1685 case $srcdir in 1686 .) # We are building in place. 1687 ac_srcdir=. 1688 ac_top_srcdir=$ac_top_builddir_sub 1689 ac_abs_top_srcdir=$ac_pwd ;; 1690 [\\/]* | ?:[\\/]* ) # Absolute name. 1691 ac_srcdir=$srcdir$ac_dir_suffix; 1692 ac_top_srcdir=$srcdir 1693 ac_abs_top_srcdir=$srcdir ;; 1694 *) # Relative name. 1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1696 ac_top_srcdir=$ac_top_build_prefix$srcdir 1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1698 esac 1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1700 1701 cd "$ac_dir" || { ac_status=$?; continue; } 1702 # Check for guested configure. 1703 if test -f "$ac_srcdir/configure.gnu"; then 1704 echo && 1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1706 elif test -f "$ac_srcdir/configure"; then 1707 echo && 1708 $SHELL "$ac_srcdir/configure" --help=recursive 1709 else 1710 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1711 fi || ac_status=$? 1712 cd "$ac_pwd" || { ac_status=$?; break; } 1713 done 1714 fi 1715 1716 test -n "$ac_init_help" && exit $ac_status 1717 if $ac_init_version; then 1718 cat <<\_ACEOF 1719 configure 1720 generated by GNU Autoconf 2.61 1721 1722 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1723 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1724 This configure script is free software; the Free Software Foundation 1725 gives unlimited permission to copy, distribute and modify it. 1726 _ACEOF 1727 exit 1728 fi 1729 cat >config.log <<_ACEOF 1730 This file contains any messages produced by compilers while 1731 running configure, to aid debugging if configure makes a mistake. 1732 1733 It was created by $as_me, which was 1734 generated by GNU Autoconf 2.61. Invocation command line was 1735 1736 $ $0 $@ 1737 1738 _ACEOF 1739 exec 5>>config.log 1740 { 1741 cat <<_ASUNAME 1742 ## --------- ## 1743 ## Platform. ## 1744 ## --------- ## 1745 1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1747 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1748 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1749 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1750 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1751 1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1754 1755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1762 1763 _ASUNAME 1764 1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1766 for as_dir in $PATH 1767 do 1768 IFS=$as_save_IFS 1769 test -z "$as_dir" && as_dir=. 1770 echo "PATH: $as_dir" 1771 done 1772 IFS=$as_save_IFS 1773 1774 } >&5 1775 1776 cat >&5 <<_ACEOF 1777 1778 1779 ## ----------- ## 1780 ## Core tests. ## 1781 ## ----------- ## 1782 1783 _ACEOF 1784 1785 1786 # Keep a trace of the command line. 1787 # Strip out --no-create and --no-recursion so they do not pile up. 1788 # Strip out --silent because we don't want to record it for future runs. 1789 # Also quote any args containing shell meta-characters. 1790 # Make two passes to allow for proper duplicate-argument suppression. 1791 ac_configure_args= 1792 ac_configure_args0= 1793 ac_configure_args1= 1794 ac_must_keep_next=false 1795 for ac_pass in 1 2 1796 do 1797 for ac_arg 1798 do 1799 case $ac_arg in 1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1802 | -silent | --silent | --silen | --sile | --sil) 1803 continue ;; 1804 *\'*) 1805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1806 esac 1807 case $ac_pass in 1808 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1809 2) 1810 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1811 if test $ac_must_keep_next = true; then 1812 ac_must_keep_next=false # Got value, back to normal. 1813 else 1814 case $ac_arg in 1815 *=* | --config-cache | -C | -disable-* | --disable-* \ 1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1818 | -with-* | --with-* | -without-* | --without-* | --x) 1819 case "$ac_configure_args0 " in 1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1821 esac 1822 ;; 1823 -* ) ac_must_keep_next=true ;; 1824 esac 1825 fi 1826 ac_configure_args="$ac_configure_args '$ac_arg'" 1827 ;; 1828 esac 1829 done 1830 done 1831 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1832 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1833 1834 # When interrupted or exit'd, cleanup temporary files, and complete 1835 # config.log. We remove comments because anyway the quotes in there 1836 # would cause problems or look ugly. 1837 # WARNING: Use '\'' to represent an apostrophe within the trap. 1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1839 trap 'exit_status=$? 1840 # Save into config.log some information that might help in debugging. 1841 { 1842 echo 1843 1844 cat <<\_ASBOX 1845 ## ---------------- ## 1846 ## Cache variables. ## 1847 ## ---------------- ## 1848 _ASBOX 1849 echo 1850 # The following way of writing the cache mishandles newlines in values, 1851 ( 1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1853 eval ac_val=\$$ac_var 1854 case $ac_val in #( 1855 *${as_nl}*) 1856 case $ac_var in #( 1857 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1859 esac 1860 case $ac_var in #( 1861 _ | IFS | as_nl) ;; #( 1862 *) $as_unset $ac_var ;; 1863 esac ;; 1864 esac 1865 done 1866 (set) 2>&1 | 1867 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1868 *${as_nl}ac_space=\ *) 1869 sed -n \ 1870 "s/'\''/'\''\\\\'\'''\''/g; 1871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1872 ;; #( 1873 *) 1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1875 ;; 1876 esac | 1877 sort 1878 ) 1879 echo 1880 1881 cat <<\_ASBOX 1882 ## ----------------- ## 1883 ## Output variables. ## 1884 ## ----------------- ## 1885 _ASBOX 1886 echo 1887 for ac_var in $ac_subst_vars 1888 do 1889 eval ac_val=\$$ac_var 1890 case $ac_val in 1891 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1892 esac 1893 echo "$ac_var='\''$ac_val'\''" 1894 done | sort 1895 echo 1896 1897 if test -n "$ac_subst_files"; then 1898 cat <<\_ASBOX 1899 ## ------------------- ## 1900 ## File substitutions. ## 1901 ## ------------------- ## 1902 _ASBOX 1903 echo 1904 for ac_var in $ac_subst_files 1905 do 1906 eval ac_val=\$$ac_var 1907 case $ac_val in 1908 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1909 esac 1910 echo "$ac_var='\''$ac_val'\''" 1911 done | sort 1912 echo 1913 fi 1914 1915 if test -s confdefs.h; then 1916 cat <<\_ASBOX 1917 ## ----------- ## 1918 ## confdefs.h. ## 1919 ## ----------- ## 1920 _ASBOX 1921 echo 1922 cat confdefs.h 1923 echo 1924 fi 1925 test "$ac_signal" != 0 && 1926 echo "$as_me: caught signal $ac_signal" 1927 echo "$as_me: exit $exit_status" 1928 } >&5 1929 rm -f core *.core core.conftest.* && 1930 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1931 exit $exit_status 1932 ' 0 1933 for ac_signal in 1 2 13 15; do 1934 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1935 done 1936 ac_signal=0 1937 1938 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1939 rm -f -r conftest* confdefs.h 1940 1941 # Predefined preprocessor variables. 1942 1943 cat >>confdefs.h <<_ACEOF 1944 #define PACKAGE_NAME "$PACKAGE_NAME" 1945 _ACEOF 1946 1947 1948 cat >>confdefs.h <<_ACEOF 1949 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1950 _ACEOF 1951 1952 1953 cat >>confdefs.h <<_ACEOF 1954 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1955 _ACEOF 1956 1957 1958 cat >>confdefs.h <<_ACEOF 1959 #define PACKAGE_STRING "$PACKAGE_STRING" 1960 _ACEOF 1961 1962 1963 cat >>confdefs.h <<_ACEOF 1964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1965 _ACEOF 1966 1967 1968 # Let the site file select an alternate cache file if it wants to. 1969 # Prefer explicitly selected file to automatically selected ones. 1970 if test -n "$CONFIG_SITE"; then 1971 set x "$CONFIG_SITE" 1972 elif test "x$prefix" != xNONE; then 1973 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1974 else 1975 set x "$ac_default_prefix/share/config.site" \ 1976 "$ac_default_prefix/etc/config.site" 1977 fi 1978 shift 1979 for ac_site_file 1980 do 1981 if test -r "$ac_site_file"; then 1982 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1983 echo "$as_me: loading site script $ac_site_file" >&6;} 1984 sed 's/^/| /' "$ac_site_file" >&5 1985 . "$ac_site_file" 1986 fi 1987 done 1988 1989 if test -r "$cache_file"; then 1990 # Some versions of bash will fail to source /dev/null (special 1991 # files actually), so we avoid doing that. 1992 if test -f "$cache_file"; then 1993 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1994 echo "$as_me: loading cache $cache_file" >&6;} 1995 case $cache_file in 1996 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1997 *) . "./$cache_file";; 1998 esac 1999 fi 2000 else 2001 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2002 echo "$as_me: creating cache $cache_file" >&6;} 2003 >$cache_file 2004 fi 2005 2006 # Check that the precious variables saved in the cache have kept the same 2007 # value. 2008 ac_cache_corrupted=false 2009 for ac_var in $ac_precious_vars; do 2010 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2011 eval ac_new_set=\$ac_env_${ac_var}_set 2012 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2013 eval ac_new_val=\$ac_env_${ac_var}_value 2014 case $ac_old_set,$ac_new_set in 2015 set,) 2016 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2017 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2018 ac_cache_corrupted=: ;; 2019 ,set) 2020 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2021 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2022 ac_cache_corrupted=: ;; 2023 ,);; 2024 *) 2025 if test "x$ac_old_val" != "x$ac_new_val"; then 2026 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2027 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2028 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 2029 echo "$as_me: former value: $ac_old_val" >&2;} 2030 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 2031 echo "$as_me: current value: $ac_new_val" >&2;} 2032 ac_cache_corrupted=: 2033 fi;; 2034 esac 2035 # Pass precious variables to config.status. 2036 if test "$ac_new_set" = set; then 2037 case $ac_new_val in 2038 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 *) ac_arg=$ac_var=$ac_new_val ;; 2040 esac 2041 case " $ac_configure_args " in 2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2044 esac 2045 fi 2046 done 2047 if $ac_cache_corrupted; then 2048 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2049 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2050 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2051 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2052 { (exit 1); exit 1; }; } 2053 fi 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 ac_ext=c 2072 ac_cpp='$CPP $CPPFLAGS' 2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2076 2077 2078 2079 ac_config_headers="$ac_config_headers config.h" 2080 2081 ac_config_headers="$ac_config_headers ltdlconf.h" 2082 2083 2084 VERSION="2.3.7.cvs" 2085 VER_STRING="2.3.7.cvs" 2086 WIN_VER_STRING="2, 3, 7, 1" 2087 REL_STRING="Build from CVS snapshot, after release 2.3.7" 2088 2089 2090 2091 2092 ac_aux_dir= 2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2094 if test -f "$ac_dir/install-sh"; then 2095 ac_aux_dir=$ac_dir 2096 ac_install_sh="$ac_aux_dir/install-sh -c" 2097 break 2098 elif test -f "$ac_dir/install.sh"; then 2099 ac_aux_dir=$ac_dir 2100 ac_install_sh="$ac_aux_dir/install.sh -c" 2101 break 2102 elif test -f "$ac_dir/shtool"; then 2103 ac_aux_dir=$ac_dir 2104 ac_install_sh="$ac_aux_dir/shtool install -c" 2105 break 2106 fi 2107 done 2108 if test -z "$ac_aux_dir"; then 2109 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2110 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2111 { (exit 1); exit 1; }; } 2112 fi 2113 2114 # These three variables are undocumented and unsupported, 2115 # and are intended to be withdrawn in a future Autoconf release. 2116 # They can cause serious problems if a builder's source tree is in a directory 2117 # whose full name contains unusual characters. 2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2120 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2121 2122 2123 # Make sure we can run config.sub. 2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2127 { (exit 1); exit 1; }; } 2128 2129 { echo "$as_me:$LINENO: checking build system type" >&5 2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2131 if test "${ac_cv_build+set}" = set; then 2132 echo $ECHO_N "(cached) $ECHO_C" >&6 2133 else 2134 ac_build_alias=$build_alias 2135 test "x$ac_build_alias" = x && 2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2137 test "x$ac_build_alias" = x && 2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2140 { (exit 1); exit 1; }; } 2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2144 { (exit 1); exit 1; }; } 2145 2146 fi 2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2148 echo "${ECHO_T}$ac_cv_build" >&6; } 2149 case $ac_cv_build in 2150 *-*-*) ;; 2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2152 echo "$as_me: error: invalid value of canonical build" >&2;} 2153 { (exit 1); exit 1; }; };; 2154 esac 2155 build=$ac_cv_build 2156 ac_save_IFS=$IFS; IFS='-' 2157 set x $ac_cv_build 2158 shift 2159 build_cpu=$1 2160 build_vendor=$2 2161 shift; shift 2162 # Remember, the first character of IFS is used to create $*, 2163 # except with old shells: 2164 build_os=$* 2165 IFS=$ac_save_IFS 2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2167 2168 2169 { echo "$as_me:$LINENO: checking host system type" >&5 2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2171 if test "${ac_cv_host+set}" = set; then 2172 echo $ECHO_N "(cached) $ECHO_C" >&6 2173 else 2174 if test "x$host_alias" = x; then 2175 ac_cv_host=$ac_cv_build 2176 else 2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2180 { (exit 1); exit 1; }; } 2181 fi 2182 2183 fi 2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2185 echo "${ECHO_T}$ac_cv_host" >&6; } 2186 case $ac_cv_host in 2187 *-*-*) ;; 2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2189 echo "$as_me: error: invalid value of canonical host" >&2;} 2190 { (exit 1); exit 1; }; };; 2191 esac 2192 host=$ac_cv_host 2193 ac_save_IFS=$IFS; IFS='-' 2194 set x $ac_cv_host 2195 shift 2196 host_cpu=$1 2197 host_vendor=$2 2198 shift; shift 2199 # Remember, the first character of IFS is used to create $*, 2200 # except with old shells: 2201 host_os=$* 2202 IFS=$ac_save_IFS 2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2204 2205 2206 { echo "$as_me:$LINENO: checking target system type" >&5 2207 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2208 if test "${ac_cv_target+set}" = set; then 2209 echo $ECHO_N "(cached) $ECHO_C" >&6 2210 else 2211 if test "x$target_alias" = x; then 2212 ac_cv_target=$ac_cv_host 2213 else 2214 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2215 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2216 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2217 { (exit 1); exit 1; }; } 2218 fi 2219 2220 fi 2221 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2222 echo "${ECHO_T}$ac_cv_target" >&6; } 2223 case $ac_cv_target in 2224 *-*-*) ;; 2225 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2226 echo "$as_me: error: invalid value of canonical target" >&2;} 2227 { (exit 1); exit 1; }; };; 2228 esac 2229 target=$ac_cv_target 2230 ac_save_IFS=$IFS; IFS='-' 2231 set x $ac_cv_target 2232 shift 2233 target_cpu=$1 2234 target_vendor=$2 2235 shift; shift 2236 # Remember, the first character of IFS is used to create $*, 2237 # except with old shells: 2238 target_os=$* 2239 IFS=$ac_save_IFS 2240 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2241 2242 2243 # The aliases save the names the user supplied, while $host etc. 2244 # will get canonicalized. 2245 test -n "$target_alias" && 2246 test "$program_prefix$program_suffix$program_transform_name" = \ 2247 NONENONEs,x,x, && 2248 program_prefix=${target_alias}- 2249 2250 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5 2251 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; } 2252 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then 2253 { echo "$as_me:$LINENO: result: yes" >&5 2254 echo "${ECHO_T}yes" >&6; } 2255 cross_configure=1 2256 else 2257 { echo "$as_me:$LINENO: result: no" >&5 2258 echo "${ECHO_T}no" >&6; } 2259 cross_configure=0 2260 fi 2261 2262 # this case statement defines the compile flags which are needed to 2263 # compile bochs on a platform. Don't put things like optimization settings 2264 # into the configure.in file, since people will want to be able to change 2265 # those settings by defining CFLAGS and CXXFLAGS before running configure. 2266 NO_LT=0 2267 need_dlcompat_for_plugins=0 2268 case "$target" in 2269 *-pc-windows* | *-pc-winnt*) 2270 DEFAULT_GUI=win32 # default to win32 gui 2271 ;; 2272 *-pc-cygwin* | *-pc-mingw32*) 2273 NO_LT=1 # do not use libtool at all on cygwin 2274 if test "$with_term" = yes; then 2275 # ncurses won't compile with -mno-cygwin or -DWIN32 2276 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack. 2277 # see /usr/include/curses.h for details. 2278 ADD_FLAGS="-DBROKEN_LINKER=1" 2279 else 2280 # default case 2281 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui 2282 DEFAULT_GUI=win32 # default to win32 gui 2283 fi 2284 ;; 2285 *-macosx* | *-darwin*) 2286 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile 2287 DEFAULT_GUI=carbon # default to carbon 2288 need_dlcompat_for_plugins=1 2289 ;; 2290 *-macos*) 2291 DEFAULT_GUI=macos # macos defaults to macos 2292 ;; 2293 *-beos*) 2294 ADD_FLAGS="-Wno-multichar" 2295 DEFAULT_GUI=beos # beos defaults to beos 2296 ;; 2297 *-amigaos* | *-morphos*) 2298 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui 2299 ;; 2300 *-solaris*) 2301 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes 2302 LIBS="$LIBS -lsocket -lnsl" 2303 DEFAULT_GUI=x11 2304 ;; 2305 *) 2306 DEFAULT_GUI=x11 2307 ;; 2308 esac 2309 if test "${ADD_FLAGS:+set}" = set; then 2310 CFLAGS="$CFLAGS $ADD_FLAGS" 2311 CXXFLAGS="$CXXFLAGS $ADD_FLAGS" 2312 CPPFLAGS="$CPPFLAGS $ADD_FLAGS" 2313 fi 2314 2315 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5 2316 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; } 2317 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5 2318 echo "${ECHO_T}$ADD_FLAGS" >&6; } 2319 2320 if (test "$with_sdl" != yes) && \ 2321 (test "$with_svga" != yes) && \ 2322 (test "$with_x11" != yes) && \ 2323 (test "$with_beos" != yes) && \ 2324 (test "$with_win32" != yes) && \ 2325 (test "$with_nogui" != yes) && \ 2326 (test "$with_term" != yes) && \ 2327 (test "$with_rfb" != yes) && \ 2328 (test "$with_amigaos" != yes) && \ 2329 (test "$with_carbon" != yes) && \ 2330 (test "$with_wx" != yes) && \ 2331 (test "$with_macos" != yes); then 2332 # use DEFAULT_GUI. Set the appropriate variable. 2333 # DEFAULT_GUI must be set to one of the names above. Otherwise, no 2334 # valid $with_* variable will be set and who knows what will happen? 2335 eval "with_${DEFAULT_GUI}=yes" 2336 fi 2337 2338 ac_ext=c 2339 ac_cpp='$CPP $CPPFLAGS' 2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2343 if test -n "$ac_tool_prefix"; then 2344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2345 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2348 if test "${ac_cv_prog_CC+set}" = set; then 2349 echo $ECHO_N "(cached) $ECHO_C" >&6 2350 else 2351 if test -n "$CC"; then 2352 ac_cv_prog_CC="$CC" # Let the user override the test. 2353 else 2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2355 for as_dir in $PATH 2356 do 2357 IFS=$as_save_IFS 2358 test -z "$as_dir" && as_dir=. 2359 for ac_exec_ext in '' $ac_executable_extensions; do 2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2361 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2363 break 2 2364 fi 2365 done 2366 done 2367 IFS=$as_save_IFS 2368 2369 fi 2370 fi 2371 CC=$ac_cv_prog_CC 2372 if test -n "$CC"; then 2373 { echo "$as_me:$LINENO: result: $CC" >&5 2374 echo "${ECHO_T}$CC" >&6; } 2375 else 2376 { echo "$as_me:$LINENO: result: no" >&5 2377 echo "${ECHO_T}no" >&6; } 2378 fi 2379 2380 2381 fi 2382 if test -z "$ac_cv_prog_CC"; then 2383 ac_ct_CC=$CC 2384 # Extract the first word of "gcc", so it can be a program name with args. 2385 set dummy gcc; ac_word=$2 2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2389 echo $ECHO_N "(cached) $ECHO_C" >&6 2390 else 2391 if test -n "$ac_ct_CC"; then 2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2393 else 2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2395 for as_dir in $PATH 2396 do 2397 IFS=$as_save_IFS 2398 test -z "$as_dir" && as_dir=. 2399 for ac_exec_ext in '' $ac_executable_extensions; do 2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2401 ac_cv_prog_ac_ct_CC="gcc" 2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2403 break 2 2404 fi 2405 done 2406 done 2407 IFS=$as_save_IFS 2408 2409 fi 2410 fi 2411 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2412 if test -n "$ac_ct_CC"; then 2413 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2414 echo "${ECHO_T}$ac_ct_CC" >&6; } 2415 else 2416 { echo "$as_me:$LINENO: result: no" >&5 2417 echo "${ECHO_T}no" >&6; } 2418 fi 2419 2420 if test "x$ac_ct_CC" = x; then 2421 CC="" 2422 else 2423 case $cross_compiling:$ac_tool_warned in 2424 yes:) 2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2426 whose name does not start with the host triplet. If you think this 2427 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2429 whose name does not start with the host triplet. If you think this 2430 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2431 ac_tool_warned=yes ;; 2432 esac 2433 CC=$ac_ct_CC 2434 fi 2435 else 2436 CC="$ac_cv_prog_CC" 2437 fi 2438 2439 if test -z "$CC"; then 2440 if test -n "$ac_tool_prefix"; then 2441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2442 set dummy ${ac_tool_prefix}cc; ac_word=$2 2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2445 if test "${ac_cv_prog_CC+set}" = set; then 2446 echo $ECHO_N "(cached) $ECHO_C" >&6 2447 else 2448 if test -n "$CC"; then 2449 ac_cv_prog_CC="$CC" # Let the user override the test. 2450 else 2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2452 for as_dir in $PATH 2453 do 2454 IFS=$as_save_IFS 2455 test -z "$as_dir" && as_dir=. 2456 for ac_exec_ext in '' $ac_executable_extensions; do 2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2458 ac_cv_prog_CC="${ac_tool_prefix}cc" 2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2460 break 2 2461 fi 2462 done 2463 done 2464 IFS=$as_save_IFS 2465 2466 fi 2467 fi 2468 CC=$ac_cv_prog_CC 2469 if test -n "$CC"; then 2470 { echo "$as_me:$LINENO: result: $CC" >&5 2471 echo "${ECHO_T}$CC" >&6; } 2472 else 2473 { echo "$as_me:$LINENO: result: no" >&5 2474 echo "${ECHO_T}no" >&6; } 2475 fi 2476 2477 2478 fi 2479 fi 2480 if test -z "$CC"; then 2481 # Extract the first word of "cc", so it can be a program name with args. 2482 set dummy cc; ac_word=$2 2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2485 if test "${ac_cv_prog_CC+set}" = set; then 2486 echo $ECHO_N "(cached) $ECHO_C" >&6 2487 else 2488 if test -n "$CC"; then 2489 ac_cv_prog_CC="$CC" # Let the user override the test. 2490 else 2491 ac_prog_rejected=no 2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493 for as_dir in $PATH 2494 do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2500 ac_prog_rejected=yes 2501 continue 2502 fi 2503 ac_cv_prog_CC="cc" 2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507 done 2508 done 2509 IFS=$as_save_IFS 2510 2511 if test $ac_prog_rejected = yes; then 2512 # We found a bogon in the path, so make sure we never use it. 2513 set dummy $ac_cv_prog_CC 2514 shift 2515 if test $# != 0; then 2516 # We chose a different compiler from the bogus one. 2517 # However, it has the same basename, so the bogon will be chosen 2518 # first if we set CC to just the basename; use the full file name. 2519 shift 2520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2521 fi 2522 fi 2523 fi 2524 fi 2525 CC=$ac_cv_prog_CC 2526 if test -n "$CC"; then 2527 { echo "$as_me:$LINENO: result: $CC" >&5 2528 echo "${ECHO_T}$CC" >&6; } 2529 else 2530 { echo "$as_me:$LINENO: result: no" >&5 2531 echo "${ECHO_T}no" >&6; } 2532 fi 2533 2534 2535 fi 2536 if test -z "$CC"; then 2537 if test -n "$ac_tool_prefix"; then 2538 for ac_prog in cl.exe 2539 do 2540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2544 if test "${ac_cv_prog_CC+set}" = set; then 2545 echo $ECHO_N "(cached) $ECHO_C" >&6 2546 else 2547 if test -n "$CC"; then 2548 ac_cv_prog_CC="$CC" # Let the user override the test. 2549 else 2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2551 for as_dir in $PATH 2552 do 2553 IFS=$as_save_IFS 2554 test -z "$as_dir" && as_dir=. 2555 for ac_exec_ext in '' $ac_executable_extensions; do 2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2559 break 2 2560 fi 2561 done 2562 done 2563 IFS=$as_save_IFS 2564 2565 fi 2566 fi 2567 CC=$ac_cv_prog_CC 2568 if test -n "$CC"; then 2569 { echo "$as_me:$LINENO: result: $CC" >&5 2570 echo "${ECHO_T}$CC" >&6; } 2571 else 2572 { echo "$as_me:$LINENO: result: no" >&5 2573 echo "${ECHO_T}no" >&6; } 2574 fi 2575 2576 2577 test -n "$CC" && break 2578 done 2579 fi 2580 if test -z "$CC"; then 2581 ac_ct_CC=$CC 2582 for ac_prog in cl.exe 2583 do 2584 # Extract the first word of "$ac_prog", so it can be a program name with args. 2585 set dummy $ac_prog; ac_word=$2 2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2589 echo $ECHO_N "(cached) $ECHO_C" >&6 2590 else 2591 if test -n "$ac_ct_CC"; then 2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2593 else 2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2595 for as_dir in $PATH 2596 do 2597 IFS=$as_save_IFS 2598 test -z "$as_dir" && as_dir=. 2599 for ac_exec_ext in '' $ac_executable_extensions; do 2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2601 ac_cv_prog_ac_ct_CC="$ac_prog" 2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2603 break 2 2604 fi 2605 done 2606 done 2607 IFS=$as_save_IFS 2608 2609 fi 2610 fi 2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2612 if test -n "$ac_ct_CC"; then 2613 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2614 echo "${ECHO_T}$ac_ct_CC" >&6; } 2615 else 2616 { echo "$as_me:$LINENO: result: no" >&5 2617 echo "${ECHO_T}no" >&6; } 2618 fi 2619 2620 2621 test -n "$ac_ct_CC" && break 2622 done 2623 2624 if test "x$ac_ct_CC" = x; then 2625 CC="" 2626 else 2627 case $cross_compiling:$ac_tool_warned in 2628 yes:) 2629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2630 whose name does not start with the host triplet. If you think this 2631 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2633 whose name does not start with the host triplet. If you think this 2634 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2635 ac_tool_warned=yes ;; 2636 esac 2637 CC=$ac_ct_CC 2638 fi 2639 fi 2640 2641 fi 2642 2643 2644 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2645 See \`config.log' for more details." >&5 2646 echo "$as_me: error: no acceptable C compiler found in \$PATH 2647 See \`config.log' for more details." >&2;} 2648 { (exit 1); exit 1; }; } 2649 2650 # Provide some information about the compiler. 2651 echo "$as_me:$LINENO: checking for C compiler version" >&5 2652 ac_compiler=`set X $ac_compile; echo $2` 2653 { (ac_try="$ac_compiler --version >&5" 2654 case "(($ac_try" in 2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2656 *) ac_try_echo=$ac_try;; 2657 esac 2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2659 (eval "$ac_compiler --version >&5") 2>&5 2660 ac_status=$? 2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2662 (exit $ac_status); } 2663 { (ac_try="$ac_compiler -v >&5" 2664 case "(($ac_try" in 2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2666 *) ac_try_echo=$ac_try;; 2667 esac 2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2669 (eval "$ac_compiler -v >&5") 2>&5 2670 ac_status=$? 2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 (exit $ac_status); } 2673 { (ac_try="$ac_compiler -V >&5" 2674 case "(($ac_try" in 2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2676 *) ac_try_echo=$ac_try;; 2677 esac 2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2679 (eval "$ac_compiler -V >&5") 2>&5 2680 ac_status=$? 2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2682 (exit $ac_status); } 2683 2684 cat >conftest.$ac_ext <<_ACEOF 2685 /* confdefs.h. */ 2686 _ACEOF 2687 cat confdefs.h >>conftest.$ac_ext 2688 cat >>conftest.$ac_ext <<_ACEOF 2689 /* end confdefs.h. */ 2690 2691 int 2692 main () 2693 { 2694 2695 ; 2696 return 0; 2697 } 2698 _ACEOF 2699 ac_clean_files_save=$ac_clean_files 2700 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2701 # Try to create an executable without -o first, disregard a.out. 2702 # It will help us diagnose broken compilers, and finding out an intuition 2703 # of exeext. 2704 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2705 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2706 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2707 # 2708 # List of possible output files, starting from the most likely. 2709 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2710 # only as a last resort. b.out is created by i960 compilers. 2711 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2712 # 2713 # The IRIX 6 linker writes into existing files which may not be 2714 # executable, retaining their permissions. Remove them first so a 2715 # subsequent execution test works. 2716 ac_rmfiles= 2717 for ac_file in $ac_files 2718 do 2719 case $ac_file in 2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2721 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2722 esac 2723 done 2724 rm -f $ac_rmfiles 2725 2726 if { (ac_try="$ac_link_default" 2727 case "(($ac_try" in 2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2729 *) ac_try_echo=$ac_try;; 2730 esac 2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2732 (eval "$ac_link_default") 2>&5 2733 ac_status=$? 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); }; then 2736 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2737 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2738 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2739 # so that the user can short-circuit this test for compilers unknown to 2740 # Autoconf. 2741 for ac_file in $ac_files '' 2742 do 2743 test -f "$ac_file" || continue 2744 case $ac_file in 2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2746 ;; 2747 [ab].out ) 2748 # We found the default executable, but exeext='' is most 2749 # certainly right. 2750 break;; 2751 *.* ) 2752 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2753 then :; else 2754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2755 fi 2756 # We set ac_cv_exeext here because the later test for it is not 2757 # safe: cross compilers may not add the suffix if given an `-o' 2758 # argument, so we may need to know it at that point already. 2759 # Even if this section looks crufty: it has the advantage of 2760 # actually working. 2761 break;; 2762 * ) 2763 break;; 2764 esac 2765 done 2766 test "$ac_cv_exeext" = no && ac_cv_exeext= 2767 2768 else 2769 ac_file='' 2770 fi 2771 2772 { echo "$as_me:$LINENO: result: $ac_file" >&5 2773 echo "${ECHO_T}$ac_file" >&6; } 2774 if test -z "$ac_file"; then 2775 echo "$as_me: failed program was:" >&5 2776 sed 's/^/| /' conftest.$ac_ext >&5 2777 2778 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2779 See \`config.log' for more details." >&5 2780 echo "$as_me: error: C compiler cannot create executables 2781 See \`config.log' for more details." >&2;} 2782 { (exit 77); exit 77; }; } 2783 fi 2784 2785 ac_exeext=$ac_cv_exeext 2786 2787 # Check that the compiler produces executables we can run. If not, either 2788 # the compiler is broken, or we cross compile. 2789 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2790 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2791 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2792 # If not cross compiling, check that we can run a simple program. 2793 if test "$cross_compiling" != yes; then 2794 if { ac_try='./$ac_file' 2795 { (case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798 esac 2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2800 (eval "$ac_try") 2>&5 2801 ac_status=$? 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803 (exit $ac_status); }; }; then 2804 cross_compiling=no 2805 else 2806 if test "$cross_compiling" = maybe; then 2807 cross_compiling=yes 2808 else 2809 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2810 If you meant to cross compile, use \`--host'. 2811 See \`config.log' for more details." >&5 2812 echo "$as_me: error: cannot run C compiled programs. 2813 If you meant to cross compile, use \`--host'. 2814 See \`config.log' for more details." >&2;} 2815 { (exit 1); exit 1; }; } 2816 fi 2817 fi 2818 fi 2819 { echo "$as_me:$LINENO: result: yes" >&5 2820 echo "${ECHO_T}yes" >&6; } 2821 2822 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2823 ac_clean_files=$ac_clean_files_save 2824 # Check that the compiler produces executables we can run. If not, either 2825 # the compiler is broken, or we cross compile. 2826 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2828 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2829 echo "${ECHO_T}$cross_compiling" >&6; } 2830 2831 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2833 if { (ac_try="$ac_link" 2834 case "(($ac_try" in 2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2836 *) ac_try_echo=$ac_try;; 2837 esac 2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2839 (eval "$ac_link") 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); }; then 2843 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2844 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2845 # work properly (i.e., refer to `conftest.exe'), while it won't with 2846 # `rm'. 2847 for ac_file in conftest.exe conftest conftest.*; do 2848 test -f "$ac_file" || continue 2849 case $ac_file in 2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2852 break;; 2853 * ) break;; 2854 esac 2855 done 2856 else 2857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2858 See \`config.log' for more details." >&5 2859 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2860 See \`config.log' for more details." >&2;} 2861 { (exit 1); exit 1; }; } 2862 fi 2863 2864 rm -f conftest$ac_cv_exeext 2865 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2866 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2867 2868 rm -f conftest.$ac_ext 2869 EXEEXT=$ac_cv_exeext 2870 ac_exeext=$EXEEXT 2871 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2872 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2873 if test "${ac_cv_objext+set}" = set; then 2874 echo $ECHO_N "(cached) $ECHO_C" >&6 2875 else 2876 cat >conftest.$ac_ext <<_ACEOF 2877 /* confdefs.h. */ 2878 _ACEOF 2879 cat confdefs.h >>conftest.$ac_ext 2880 cat >>conftest.$ac_ext <<_ACEOF 2881 /* end confdefs.h. */ 2882 2883 int 2884 main () 2885 { 2886 2887 ; 2888 return 0; 2889 } 2890 _ACEOF 2891 rm -f conftest.o conftest.obj 2892 if { (ac_try="$ac_compile" 2893 case "(($ac_try" in 2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2895 *) ac_try_echo=$ac_try;; 2896 esac 2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2898 (eval "$ac_compile") 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); }; then 2902 for ac_file in conftest.o conftest.obj conftest.*; do 2903 test -f "$ac_file" || continue; 2904 case $ac_file in 2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2907 break;; 2908 esac 2909 done 2910 else 2911 echo "$as_me: failed program was:" >&5 2912 sed 's/^/| /' conftest.$ac_ext >&5 2913 2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2915 See \`config.log' for more details." >&5 2916 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2917 See \`config.log' for more details." >&2;} 2918 { (exit 1); exit 1; }; } 2919 fi 2920 2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2922 fi 2923 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2924 echo "${ECHO_T}$ac_cv_objext" >&6; } 2925 OBJEXT=$ac_cv_objext 2926 ac_objext=$OBJEXT 2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2930 echo $ECHO_N "(cached) $ECHO_C" >&6 2931 else 2932 cat >conftest.$ac_ext <<_ACEOF 2933 /* confdefs.h. */ 2934 _ACEOF 2935 cat confdefs.h >>conftest.$ac_ext 2936 cat >>conftest.$ac_ext <<_ACEOF 2937 /* end confdefs.h. */ 2938 2939 int 2940 main () 2941 { 2942 #ifndef __GNUC__ 2943 choke me 2944 #endif 2945 2946 ; 2947 return 0; 2948 } 2949 _ACEOF 2950 rm -f conftest.$ac_objext 2951 if { (ac_try="$ac_compile" 2952 case "(($ac_try" in 2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2954 *) ac_try_echo=$ac_try;; 2955 esac 2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2957 (eval "$ac_compile") 2>conftest.er1 2958 ac_status=$? 2959 grep -v '^ *+' conftest.er1 >conftest.err 2960 rm -f conftest.er1 2961 cat conftest.err >&5 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); } && { 2964 test -z "$ac_c_werror_flag" || 2965 test ! -s conftest.err 2966 } && test -s conftest.$ac_objext; then 2967 ac_compiler_gnu=yes 2968 else 2969 echo "$as_me: failed program was:" >&5 2970 sed 's/^/| /' conftest.$ac_ext >&5 2971 2972 ac_compiler_gnu=no 2973 fi 2974 2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2977 2978 fi 2979 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2981 GCC=`test $ac_compiler_gnu = yes && echo yes` 2982 ac_test_CFLAGS=${CFLAGS+set} 2983 ac_save_CFLAGS=$CFLAGS 2984 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2985 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2986 if test "${ac_cv_prog_cc_g+set}" = set; then 2987 echo $ECHO_N "(cached) $ECHO_C" >&6 2988 else 2989 ac_save_c_werror_flag=$ac_c_werror_flag 2990 ac_c_werror_flag=yes 2991 ac_cv_prog_cc_g=no 2992 CFLAGS="-g" 2993 cat >conftest.$ac_ext <<_ACEOF 2994 /* confdefs.h. */ 2995 _ACEOF 2996 cat confdefs.h >>conftest.$ac_ext 2997 cat >>conftest.$ac_ext <<_ACEOF 2998 /* end confdefs.h. */ 2999 3000 int 3001 main () 3002 { 3003 3004 ; 3005 return 0; 3006 } 3007 _ACEOF 3008 rm -f conftest.$ac_objext 3009 if { (ac_try="$ac_compile" 3010 case "(($ac_try" in 3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3012 *) ac_try_echo=$ac_try;; 3013 esac 3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3015 (eval "$ac_compile") 2>conftest.er1 3016 ac_status=$? 3017 grep -v '^ *+' conftest.er1 >conftest.err 3018 rm -f conftest.er1 3019 cat conftest.err >&5 3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3021 (exit $ac_status); } && { 3022 test -z "$ac_c_werror_flag" || 3023 test ! -s conftest.err 3024 } && test -s conftest.$ac_objext; then 3025 ac_cv_prog_cc_g=yes 3026 else 3027 echo "$as_me: failed program was:" >&5 3028 sed 's/^/| /' conftest.$ac_ext >&5 3029 3030 CFLAGS="" 3031 cat >conftest.$ac_ext <<_ACEOF 3032 /* confdefs.h. */ 3033 _ACEOF 3034 cat confdefs.h >>conftest.$ac_ext 3035 cat >>conftest.$ac_ext <<_ACEOF 3036 /* end confdefs.h. */ 3037 3038 int 3039 main () 3040 { 3041 3042 ; 3043 return 0; 3044 } 3045 _ACEOF 3046 rm -f conftest.$ac_objext 3047 if { (ac_try="$ac_compile" 3048 case "(($ac_try" in 3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3050 *) ac_try_echo=$ac_try;; 3051 esac 3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3053 (eval "$ac_compile") 2>conftest.er1 3054 ac_status=$? 3055 grep -v '^ *+' conftest.er1 >conftest.err 3056 rm -f conftest.er1 3057 cat conftest.err >&5 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } && { 3060 test -z "$ac_c_werror_flag" || 3061 test ! -s conftest.err 3062 } && test -s conftest.$ac_objext; then 3063 : 3064 else 3065 echo "$as_me: failed program was:" >&5 3066 sed 's/^/| /' conftest.$ac_ext >&5 3067 3068 ac_c_werror_flag=$ac_save_c_werror_flag 3069 CFLAGS="-g" 3070 cat >conftest.$ac_ext <<_ACEOF 3071 /* confdefs.h. */ 3072 _ACEOF 3073 cat confdefs.h >>conftest.$ac_ext 3074 cat >>conftest.$ac_ext <<_ACEOF 3075 /* end confdefs.h. */ 3076 3077 int 3078 main () 3079 { 3080 3081 ; 3082 return 0; 3083 } 3084 _ACEOF 3085 rm -f conftest.$ac_objext 3086 if { (ac_try="$ac_compile" 3087 case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090 esac 3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3092 (eval "$ac_compile") 2>conftest.er1 3093 ac_status=$? 3094 grep -v '^ *+' conftest.er1 >conftest.err 3095 rm -f conftest.er1 3096 cat conftest.err >&5 3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } && { 3099 test -z "$ac_c_werror_flag" || 3100 test ! -s conftest.err 3101 } && test -s conftest.$ac_objext; then 3102 ac_cv_prog_cc_g=yes 3103 else 3104 echo "$as_me: failed program was:" >&5 3105 sed 's/^/| /' conftest.$ac_ext >&5 3106 3107 3108 fi 3109 3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3111 fi 3112 3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3114 fi 3115 3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3117 ac_c_werror_flag=$ac_save_c_werror_flag 3118 fi 3119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3121 if test "$ac_test_CFLAGS" = set; then 3122 CFLAGS=$ac_save_CFLAGS 3123 elif test $ac_cv_prog_cc_g = yes; then 3124 if test "$GCC" = yes; then 3125 CFLAGS="-g -O2" 3126 else 3127 CFLAGS="-g" 3128 fi 3129 else 3130 if test "$GCC" = yes; then 3131 CFLAGS="-O2" 3132 else 3133 CFLAGS= 3134 fi 3135 fi 3136 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3137 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3138 if test "${ac_cv_prog_cc_c89+set}" = set; then 3139 echo $ECHO_N "(cached) $ECHO_C" >&6 3140 else 3141 ac_cv_prog_cc_c89=no 3142 ac_save_CC=$CC 3143 cat >conftest.$ac_ext <<_ACEOF 3144 /* confdefs.h. */ 3145 _ACEOF 3146 cat confdefs.h >>conftest.$ac_ext 3147 cat >>conftest.$ac_ext <<_ACEOF 3148 /* end confdefs.h. */ 3149 #include <stdarg.h> 3150 #include <stdio.h> 3151 #include <sys/types.h> 3152 #include <sys/stat.h> 3153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3154 struct buf { int x; }; 3155 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3156 static char *e (p, i) 3157 char **p; 3158 int i; 3159 { 3160 return p[i]; 3161 } 3162 static char *f (char * (*g) (char **, int), char **p, ...) 3163 { 3164 char *s; 3165 va_list v; 3166 va_start (v,p); 3167 s = g (p, va_arg (v,int)); 3168 va_end (v); 3169 return s; 3170 } 3171 3172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3173 function prototypes and stuff, but not '\xHH' hex character constants. 3174 These don't provoke an error unfortunately, instead are silently treated 3175 as 'x'. The following induces an error, until -std is added to get 3176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3177 array size at least. It's necessary to write '\x00'==0 to get something 3178 that's true only with -std. */ 3179 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3180 3181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3182 inside strings and character constants. */ 3183 #define FOO(x) 'x' 3184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3185 3186 int test (int i, double x); 3187 struct s1 {int (*f) (int a);}; 3188 struct s2 {int (*f) (double a);}; 3189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3190 int argc; 3191 char **argv; 3192 int 3193 main () 3194 { 3195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3196 ; 3197 return 0; 3198 } 3199 _ACEOF 3200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3202 do 3203 CC="$ac_save_CC $ac_arg" 3204 rm -f conftest.$ac_objext 3205 if { (ac_try="$ac_compile" 3206 case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209 esac 3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3211 (eval "$ac_compile") 2>conftest.er1 3212 ac_status=$? 3213 grep -v '^ *+' conftest.er1 >conftest.err 3214 rm -f conftest.er1 3215 cat conftest.err >&5 3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3217 (exit $ac_status); } && { 3218 test -z "$ac_c_werror_flag" || 3219 test ! -s conftest.err 3220 } && test -s conftest.$ac_objext; then 3221 ac_cv_prog_cc_c89=$ac_arg 3222 else 3223 echo "$as_me: failed program was:" >&5 3224 sed 's/^/| /' conftest.$ac_ext >&5 3225 3226 3227 fi 3228 3229 rm -f core conftest.err conftest.$ac_objext 3230 test "x$ac_cv_prog_cc_c89" != "xno" && break 3231 done 3232 rm -f conftest.$ac_ext 3233 CC=$ac_save_CC 3234 3235 fi 3236 # AC_CACHE_VAL 3237 case "x$ac_cv_prog_cc_c89" in 3238 x) 3239 { echo "$as_me:$LINENO: result: none needed" >&5 3240 echo "${ECHO_T}none needed" >&6; } ;; 3241 xno) 3242 { echo "$as_me:$LINENO: result: unsupported" >&5 3243 echo "${ECHO_T}unsupported" >&6; } ;; 3244 *) 3245 CC="$CC $ac_cv_prog_cc_c89" 3246 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3247 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3248 esac 3249 3250 3251 ac_ext=c 3252 ac_cpp='$CPP $CPPFLAGS' 3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256 3257 ac_ext=cpp 3258 ac_cpp='$CXXCPP $CPPFLAGS' 3259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3262 if test -z "$CXX"; then 3263 if test -n "$CCC"; then 3264 CXX=$CCC 3265 else 3266 if test -n "$ac_tool_prefix"; then 3267 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3268 do 3269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3273 if test "${ac_cv_prog_CXX+set}" = set; then 3274 echo $ECHO_N "(cached) $ECHO_C" >&6 3275 else 3276 if test -n "$CXX"; then 3277 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3278 else 3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280 for as_dir in $PATH 3281 do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3286 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290 done 3291 done 3292 IFS=$as_save_IFS 3293 3294 fi 3295 fi 3296 CXX=$ac_cv_prog_CXX 3297 if test -n "$CXX"; then 3298 { echo "$as_me:$LINENO: result: $CXX" >&5 3299 echo "${ECHO_T}$CXX" >&6; } 3300 else 3301 { echo "$as_me:$LINENO: result: no" >&5 3302 echo "${ECHO_T}no" >&6; } 3303 fi 3304 3305 3306 test -n "$CXX" && break 3307 done 3308 fi 3309 if test -z "$CXX"; then 3310 ac_ct_CXX=$CXX 3311 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3312 do 3313 # Extract the first word of "$ac_prog", so it can be a program name with args. 3314 set dummy $ac_prog; ac_word=$2 3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5 3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3317 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3318 echo $ECHO_N "(cached) $ECHO_C" >&6 3319 else 3320 if test -n "$ac_ct_CXX"; then 3321 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3322 else 3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324 for as_dir in $PATH 3325 do 3326 IFS=$as_save_IFS 3327 test -z "$as_dir" && as_dir=. 3328 for ac_exec_ext in '' $ac_executable_extensions; do 3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3330 ac_cv_prog_ac_ct_CXX="$ac_prog" 3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3332 break 2 3333 fi 3334 done 3335 done 3336 IFS=$as_save_IFS 3337 3338 fi 3339 fi 3340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3341 if test -n "$ac_ct_CXX"; then 3342 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3343 echo "${ECHO_T}$ac_ct_CXX" >&6; } 3344 else 3345 { echo "$as_me:$LINENO: result: no" >&5 3346 echo "${ECHO_T}no" >&6; } 3347 fi 3348 3349 3350 test -n "$ac_ct_CXX" && break 3351 done 3352 3353 if test "x$ac_ct_CXX" = x; then 3354 CXX="g++" 3355 else 3356 case $cross_compiling:$ac_tool_warned in 3357 yes:) 3358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3359 whose name does not start with the host triplet. If you think this 3360 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 3361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3362 whose name does not start with the host triplet. If you think this 3363 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 3364 ac_tool_warned=yes ;; 3365 esac 3366 CXX=$ac_ct_CXX 3367 fi 3368 fi 3369 3370 fi 3371 fi 3372 # Provide some information about the compiler. 3373 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3374 ac_compiler=`set X $ac_compile; echo $2` 3375 { (ac_try="$ac_compiler --version >&5" 3376 case "(($ac_try" in 3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3378 *) ac_try_echo=$ac_try;; 3379 esac 3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3381 (eval "$ac_compiler --version >&5") 2>&5 3382 ac_status=$? 3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3384 (exit $ac_status); } 3385 { (ac_try="$ac_compiler -v >&5" 3386 case "(($ac_try" in 3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3388 *) ac_try_echo=$ac_try;; 3389 esac 3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3391 (eval "$ac_compiler -v >&5") 2>&5 3392 ac_status=$? 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } 3395 { (ac_try="$ac_compiler -V >&5" 3396 case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399 esac 3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3401 (eval "$ac_compiler -V >&5") 2>&5 3402 ac_status=$? 3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3404 (exit $ac_status); } 3405 3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3407 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3409 echo $ECHO_N "(cached) $ECHO_C" >&6 3410 else 3411 cat >conftest.$ac_ext <<_ACEOF 3412 /* confdefs.h. */ 3413 _ACEOF 3414 cat confdefs.h >>conftest.$ac_ext 3415 cat >>conftest.$ac_ext <<_ACEOF 3416 /* end confdefs.h. */ 3417 3418 int 3419 main () 3420 { 3421 #ifndef __GNUC__ 3422 choke me 3423 #endif 3424 3425 ; 3426 return 0; 3427 } 3428 _ACEOF 3429 rm -f conftest.$ac_objext 3430 if { (ac_try="$ac_compile" 3431 case "(($ac_try" in 3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3433 *) ac_try_echo=$ac_try;; 3434 esac 3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3436 (eval "$ac_compile") 2>conftest.er1 3437 ac_status=$? 3438 grep -v '^ *+' conftest.er1 >conftest.err 3439 rm -f conftest.er1 3440 cat conftest.err >&5 3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3442 (exit $ac_status); } && { 3443 test -z "$ac_cxx_werror_flag" || 3444 test ! -s conftest.err 3445 } && test -s conftest.$ac_objext; then 3446 ac_compiler_gnu=yes 3447 else 3448 echo "$as_me: failed program was:" >&5 3449 sed 's/^/| /' conftest.$ac_ext >&5 3450 3451 ac_compiler_gnu=no 3452 fi 3453 3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3456 3457 fi 3458 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3459 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3460 GXX=`test $ac_compiler_gnu = yes && echo yes` 3461 ac_test_CXXFLAGS=${CXXFLAGS+set} 3462 ac_save_CXXFLAGS=$CXXFLAGS 3463 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3464 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3465 if test "${ac_cv_prog_cxx_g+set}" = set; then 3466 echo $ECHO_N "(cached) $ECHO_C" >&6 3467 else 3468 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3469 ac_cxx_werror_flag=yes 3470 ac_cv_prog_cxx_g=no 3471 CXXFLAGS="-g" 3472 cat >conftest.$ac_ext <<_ACEOF 3473 /* confdefs.h. */ 3474 _ACEOF 3475 cat confdefs.h >>conftest.$ac_ext 3476 cat >>conftest.$ac_ext <<_ACEOF 3477 /* end confdefs.h. */ 3478 3479 int 3480 main () 3481 { 3482 3483 ; 3484 return 0; 3485 } 3486 _ACEOF 3487 rm -f conftest.$ac_objext 3488 if { (ac_try="$ac_compile" 3489 case "(($ac_try" in 3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3491 *) ac_try_echo=$ac_try;; 3492 esac 3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3494 (eval "$ac_compile") 2>conftest.er1 3495 ac_status=$? 3496 grep -v '^ *+' conftest.er1 >conftest.err 3497 rm -f conftest.er1 3498 cat conftest.err >&5 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); } && { 3501 test -z "$ac_cxx_werror_flag" || 3502 test ! -s conftest.err 3503 } && test -s conftest.$ac_objext; then 3504 ac_cv_prog_cxx_g=yes 3505 else 3506 echo "$as_me: failed program was:" >&5 3507 sed 's/^/| /' conftest.$ac_ext >&5 3508 3509 CXXFLAGS="" 3510 cat >conftest.$ac_ext <<_ACEOF 3511 /* confdefs.h. */ 3512 _ACEOF 3513 cat confdefs.h >>conftest.$ac_ext 3514 cat >>conftest.$ac_ext <<_ACEOF 3515 /* end confdefs.h. */ 3516 3517 int 3518 main () 3519 { 3520 3521 ; 3522 return 0; 3523 } 3524 _ACEOF 3525 rm -f conftest.$ac_objext 3526 if { (ac_try="$ac_compile" 3527 case "(($ac_try" in 3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3529 *) ac_try_echo=$ac_try;; 3530 esac 3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3532 (eval "$ac_compile") 2>conftest.er1 3533 ac_status=$? 3534 grep -v '^ *+' conftest.er1 >conftest.err 3535 rm -f conftest.er1 3536 cat conftest.err >&5 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538 (exit $ac_status); } && { 3539 test -z "$ac_cxx_werror_flag" || 3540 test ! -s conftest.err 3541 } && test -s conftest.$ac_objext; then 3542 : 3543 else 3544 echo "$as_me: failed program was:" >&5 3545 sed 's/^/| /' conftest.$ac_ext >&5 3546 3547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3548 CXXFLAGS="-g" 3549 cat >conftest.$ac_ext <<_ACEOF 3550 /* confdefs.h. */ 3551 _ACEOF 3552 cat confdefs.h >>conftest.$ac_ext 3553 cat >>conftest.$ac_ext <<_ACEOF 3554 /* end confdefs.h. */ 3555 3556 int 3557 main () 3558 { 3559 3560 ; 3561 return 0; 3562 } 3563 _ACEOF 3564 rm -f conftest.$ac_objext 3565 if { (ac_try="$ac_compile" 3566 case "(($ac_try" in 3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3568 *) ac_try_echo=$ac_try;; 3569 esac 3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3571 (eval "$ac_compile") 2>conftest.er1 3572 ac_status=$? 3573 grep -v '^ *+' conftest.er1 >conftest.err 3574 rm -f conftest.er1 3575 cat conftest.err >&5 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3577 (exit $ac_status); } && { 3578 test -z "$ac_cxx_werror_flag" || 3579 test ! -s conftest.err 3580 } && test -s conftest.$ac_objext; then 3581 ac_cv_prog_cxx_g=yes 3582 else 3583 echo "$as_me: failed program was:" >&5 3584 sed 's/^/| /' conftest.$ac_ext >&5 3585 3586 3587 fi 3588 3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590 fi 3591 3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3593 fi 3594 3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3597 fi 3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3600 if test "$ac_test_CXXFLAGS" = set; then 3601 CXXFLAGS=$ac_save_CXXFLAGS 3602 elif test $ac_cv_prog_cxx_g = yes; then 3603 if test "$GXX" = yes; then 3604 CXXFLAGS="-g -O2" 3605 else 3606 CXXFLAGS="-g" 3607 fi 3608 else 3609 if test "$GXX" = yes; then 3610 CXXFLAGS="-O2" 3611 else 3612 CXXFLAGS= 3613 fi 3614 fi 3615 ac_ext=c 3616 ac_cpp='$CPP $CPPFLAGS' 3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3620 3621 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3623 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3624 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626 else 3627 cat >conftest.make <<\_ACEOF 3628 SHELL = /bin/sh 3629 all: 3630 @echo '@@@%%%=$(MAKE)=@@@%%%' 3631 _ACEOF 3632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3633 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3634 *@@@%%%=?*=@@@%%%*) 3635 eval ac_cv_prog_make_${ac_make}_set=yes;; 3636 *) 3637 eval ac_cv_prog_make_${ac_make}_set=no;; 3638 esac 3639 rm -f conftest.make 3640 fi 3641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3642 { echo "$as_me:$LINENO: result: yes" >&5 3643 echo "${ECHO_T}yes" >&6; } 3644 SET_MAKE= 3645 else 3646 { echo "$as_me:$LINENO: result: no" >&5 3647 echo "${ECHO_T}no" >&6; } 3648 SET_MAKE="MAKE=${MAKE-make}" 3649 fi 3650 3651 3652 # Check whether --enable-static was given. 3653 if test "${enable_static+set}" = set; then 3654 enableval=$enable_static; p=${PACKAGE-default} 3655 case $enableval in 3656 yes) enable_static=yes ;; 3657 no) enable_static=no ;; 3658 *) 3659 enable_static=no 3660 # Look at the argument we got. We use all the common list separators. 3661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3662 for pkg in $enableval; do 3663 IFS="$lt_save_ifs" 3664 if test "X$pkg" = "X$p"; then 3665 enable_static=yes 3666 fi 3667 done 3668 IFS="$lt_save_ifs" 3669 ;; 3670 esac 3671 else 3672 enable_static=no 3673 fi 3674 3675 3676 3677 3678 3679 # Check whether --enable-shared was given. 3680 if test "${enable_shared+set}" = set; then 3681 enableval=$enable_shared; p=${PACKAGE-default} 3682 case $enableval in 3683 yes) enable_shared=yes ;; 3684 no) enable_shared=no ;; 3685 *) 3686 enable_shared=no 3687 # Look at the argument we got. We use all the common list separators. 3688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3689 for pkg in $enableval; do 3690 IFS="$lt_save_ifs" 3691 if test "X$pkg" = "X$p"; then 3692 enable_shared=yes 3693 fi 3694 done 3695 IFS="$lt_save_ifs" 3696 ;; 3697 esac 3698 else 3699 enable_shared=yes 3700 fi 3701 3702 3703 # Check whether --enable-fast-install was given. 3704 if test "${enable_fast_install+set}" = set; then 3705 enableval=$enable_fast_install; p=${PACKAGE-default} 3706 case $enableval in 3707 yes) enable_fast_install=yes ;; 3708 no) enable_fast_install=no ;; 3709 *) 3710 enable_fast_install=no 3711 # Look at the argument we got. We use all the common list separators. 3712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3713 for pkg in $enableval; do 3714 IFS="$lt_save_ifs" 3715 if test "X$pkg" = "X$p"; then 3716 enable_fast_install=yes 3717 fi 3718 done 3719 IFS="$lt_save_ifs" 3720 ;; 3721 esac 3722 else 3723 enable_fast_install=yes 3724 fi 3725 3726 3727 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3729 if test "${lt_cv_path_SED+set}" = set; then 3730 echo $ECHO_N "(cached) $ECHO_C" >&6 3731 else 3732 # Loop through the user's path and test for sed and gsed. 3733 # Then use that list of sed's as ones to test for truncation. 3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3735 for as_dir in $PATH 3736 do 3737 IFS=$as_save_IFS 3738 test -z "$as_dir" && as_dir=. 3739 for lt_ac_prog in sed gsed; do 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3742 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3743 fi 3744 done 3745 done 3746 done 3747 lt_ac_max=0 3748 lt_ac_count=0 3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 3750 # along with /bin/sed that truncates output. 3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3752 test ! -f $lt_ac_sed && break 3753 cat /dev/null > conftest.in 3754 lt_ac_count=0 3755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3756 # Check for GNU sed and select it if it is found. 3757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3758 lt_cv_path_SED=$lt_ac_sed 3759 break 3760 fi 3761 while true; do 3762 cat conftest.in conftest.in >conftest.tmp 3763 mv conftest.tmp conftest.in 3764 cp conftest.in conftest.nl 3765 echo >>conftest.nl 3766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3767 cmp -s conftest.out conftest.nl || break 3768 # 10000 chars as input seems more than enough 3769 test $lt_ac_count -gt 10 && break 3770 lt_ac_count=`expr $lt_ac_count + 1` 3771 if test $lt_ac_count -gt $lt_ac_max; then 3772 lt_ac_max=$lt_ac_count 3773 lt_cv_path_SED=$lt_ac_sed 3774 fi 3775 done 3776 done 3777 SED=$lt_cv_path_SED 3778 3779 fi 3780 3781 { echo "$as_me:$LINENO: result: $SED" >&5 3782 echo "${ECHO_T}$SED" >&6; } 3783 3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3786 if test "${ac_cv_path_GREP+set}" = set; then 3787 echo $ECHO_N "(cached) $ECHO_C" >&6 3788 else 3789 # Extract the first word of "grep ggrep" to use in msg output 3790 if test -z "$GREP"; then 3791 set dummy grep ggrep; ac_prog_name=$2 3792 if test "${ac_cv_path_GREP+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794 else 3795 ac_path_GREP_found=false 3796 # Loop through the user's path and test for each of PROGNAME-LIST 3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3799 do 3800 IFS=$as_save_IFS 3801 test -z "$as_dir" && as_dir=. 3802 for ac_prog in grep ggrep; do 3803 for ac_exec_ext in '' $ac_executable_extensions; do 3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3805 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3806 # Check for GNU ac_path_GREP and select it if it is found. 3807 # Check for GNU $ac_path_GREP 3808 case `"$ac_path_GREP" --version 2>&1` in 3809 *GNU*) 3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3811 *) 3812 ac_count=0 3813 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3814 while : 3815 do 3816 cat "conftest.in" "conftest.in" >"conftest.tmp" 3817 mv "conftest.tmp" "conftest.in" 3818 cp "conftest.in" "conftest.nl" 3819 echo 'GREP' >> "conftest.nl" 3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3822 ac_count=`expr $ac_count + 1` 3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3824 # Best one so far, save it but keep looking for a better one 3825 ac_cv_path_GREP="$ac_path_GREP" 3826 ac_path_GREP_max=$ac_count 3827 fi 3828 # 10*(2^10) chars as input seems more than enough 3829 test $ac_count -gt 10 && break 3830 done 3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3832 esac 3833 3834 3835 $ac_path_GREP_found && break 3 3836 done 3837 done 3838 3839 done 3840 IFS=$as_save_IFS 3841 3842 3843 fi 3844 3845 GREP="$ac_cv_path_GREP" 3846 if test -z "$GREP"; then 3847 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3849 { (exit 1); exit 1; }; } 3850 fi 3851 3852 else 3853 ac_cv_path_GREP=$GREP 3854 fi 3855 3856 3857 fi 3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3860 GREP="$ac_cv_path_GREP" 3861 3862 3863 { echo "$as_me:$LINENO: checking for egrep" >&5 3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3865 if test "${ac_cv_path_EGREP+set}" = set; then 3866 echo $ECHO_N "(cached) $ECHO_C" >&6 3867 else 3868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3869 then ac_cv_path_EGREP="$GREP -E" 3870 else 3871 # Extract the first word of "egrep" to use in msg output 3872 if test -z "$EGREP"; then 3873 set dummy egrep; ac_prog_name=$2 3874 if test "${ac_cv_path_EGREP+set}" = set; then 3875 echo $ECHO_N "(cached) $ECHO_C" >&6 3876 else 3877 ac_path_EGREP_found=false 3878 # Loop through the user's path and test for each of PROGNAME-LIST 3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3881 do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for ac_prog in egrep; do 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3887 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3888 # Check for GNU ac_path_EGREP and select it if it is found. 3889 # Check for GNU $ac_path_EGREP 3890 case `"$ac_path_EGREP" --version 2>&1` in 3891 *GNU*) 3892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3893 *) 3894 ac_count=0 3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3896 while : 3897 do 3898 cat "conftest.in" "conftest.in" >"conftest.tmp" 3899 mv "conftest.tmp" "conftest.in" 3900 cp "conftest.in" "conftest.nl" 3901 echo 'EGREP' >> "conftest.nl" 3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3904 ac_count=`expr $ac_count + 1` 3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3906 # Best one so far, save it but keep looking for a better one 3907 ac_cv_path_EGREP="$ac_path_EGREP" 3908 ac_path_EGREP_max=$ac_count 3909 fi 3910 # 10*(2^10) chars as input seems more than enough 3911 test $ac_count -gt 10 && break 3912 done 3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3914 esac 3915 3916 3917 $ac_path_EGREP_found && break 3 3918 done 3919 done 3920 3921 done 3922 IFS=$as_save_IFS 3923 3924 3925 fi 3926 3927 EGREP="$ac_cv_path_EGREP" 3928 if test -z "$EGREP"; then 3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3931 { (exit 1); exit 1; }; } 3932 fi 3933 3934 else 3935 ac_cv_path_EGREP=$EGREP 3936 fi 3937 3938 3939 fi 3940 fi 3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3943 EGREP="$ac_cv_path_EGREP" 3944 3945 3946 3947 # Check whether --with-gnu-ld was given. 3948 if test "${with_gnu_ld+set}" = set; then 3949 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3950 else 3951 with_gnu_ld=no 3952 fi 3953 3954 ac_prog=ld 3955 if test "$GCC" = yes; then 3956 # Check if gcc -print-prog-name=ld gives a path. 3957 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3959 case $host in 3960 *-*-mingw*) 3961 # gcc leaves a trailing carriage return which upsets mingw 3962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3963 *) 3964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3965 esac 3966 case $ac_prog in 3967 # Accept absolute paths. 3968 [\\/]* | ?:[\\/]*) 3969 re_direlt='/[^/][^/]*/\.\./' 3970 # Canonicalize the pathname of ld 3971 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3972 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3973 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3974 done 3975 test -z "$LD" && LD="$ac_prog" 3976 ;; 3977 "") 3978 # If it fails, then pretend we aren't using GCC. 3979 ac_prog=ld 3980 ;; 3981 *) 3982 # If it is relative, then search for the first ld in PATH. 3983 with_gnu_ld=unknown 3984 ;; 3985 esac 3986 elif test "$with_gnu_ld" = yes; then 3987 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3989 else 3990 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3992 fi 3993 if test "${lt_cv_path_LD+set}" = set; then 3994 echo $ECHO_N "(cached) $ECHO_C" >&6 3995 else 3996 if test -z "$LD"; then 3997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3998 for ac_dir in $PATH; do 3999 IFS="$lt_save_ifs" 4000 test -z "$ac_dir" && ac_dir=. 4001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4002 lt_cv_path_LD="$ac_dir/$ac_prog" 4003 # Check to see if the program is GNU ld. I'd rather use --version, 4004 # but apparently some GNU ld's only accept -v. 4005 # Break only if it was the GNU/non-GNU ld that we prefer. 4006 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4007 *GNU* | *'with BFD'*) 4008 test "$with_gnu_ld" != no && break 4009 ;; 4010 *) 4011 test "$with_gnu_ld" != yes && break 4012 ;; 4013 esac 4014 fi 4015 done 4016 IFS="$lt_save_ifs" 4017 else 4018 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4019 fi 4020 fi 4021 4022 LD="$lt_cv_path_LD" 4023 if test -n "$LD"; then 4024 { echo "$as_me:$LINENO: result: $LD" >&5 4025 echo "${ECHO_T}$LD" >&6; } 4026 else 4027 { echo "$as_me:$LINENO: result: no" >&5 4028 echo "${ECHO_T}no" >&6; } 4029 fi 4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4032 { (exit 1); exit 1; }; } 4033 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4036 echo $ECHO_N "(cached) $ECHO_C" >&6 4037 else 4038 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4039 case `$LD -v 2>&1 </dev/null` in 4040 *GNU* | *'with BFD'*) 4041 lt_cv_prog_gnu_ld=yes 4042 ;; 4043 *) 4044 lt_cv_prog_gnu_ld=no 4045 ;; 4046 esac 4047 fi 4048 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4050 with_gnu_ld=$lt_cv_prog_gnu_ld 4051 4052 4053 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4055 if test "${lt_cv_ld_reload_flag+set}" = set; then 4056 echo $ECHO_N "(cached) $ECHO_C" >&6 4057 else 4058 lt_cv_ld_reload_flag='-r' 4059 fi 4060 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4062 reload_flag=$lt_cv_ld_reload_flag 4063 case $reload_flag in 4064 "" | " "*) ;; 4065 *) reload_flag=" $reload_flag" ;; 4066 esac 4067 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4068 4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4071 if test "${lt_cv_path_NM+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073 else 4074 if test -n "$NM"; then 4075 # Let the user override the test. 4076 lt_cv_path_NM="$NM" 4077 else 4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4079 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4080 IFS="$lt_save_ifs" 4081 test -z "$ac_dir" && ac_dir=. 4082 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4083 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4084 # Check to see if the nm accepts a BSD-compat flag. 4085 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4086 # nm: unknown option "B" ignored 4087 # Tru64's nm complains that /dev/null is an invalid object file 4088 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4089 */dev/null* | *'Invalid file or object type'*) 4090 lt_cv_path_NM="$tmp_nm -B" 4091 break 4092 ;; 4093 *) 4094 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4095 */dev/null*) 4096 lt_cv_path_NM="$tmp_nm -p" 4097 break 4098 ;; 4099 *) 4100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4101 continue # so that we can try to find one that supports BSD flags 4102 ;; 4103 esac 4104 esac 4105 fi 4106 done 4107 IFS="$lt_save_ifs" 4108 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4109 fi 4110 fi 4111 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4112 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4113 NM="$lt_cv_path_NM" 4114 4115 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 4116 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4117 LN_S=$as_ln_s 4118 if test "$LN_S" = "ln -s"; then 4119 { echo "$as_me:$LINENO: result: yes" >&5 4120 echo "${ECHO_T}yes" >&6; } 4121 else 4122 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4123 echo "${ECHO_T}no, using $LN_S" >&6; } 4124 fi 4125 4126 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4127 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4128 if test "${lt_cv_deplibs_check_method+set}" = set; then 4129 echo $ECHO_N "(cached) $ECHO_C" >&6 4130 else 4131 lt_cv_file_magic_cmd='$MAGIC_CMD' 4132 lt_cv_file_magic_test_file= 4133 lt_cv_deplibs_check_method='unknown' 4134 # Need to set the preceding variable on all platforms that support 4135 # interlibrary dependencies. 4136 # 'none' -- dependencies not supported. 4137 # `unknown' -- same as none, but documents that we really don't know. 4138 # 'pass_all' -- all dependencies passed with no checks. 4139 # 'test_compile' -- check by making test program. 4140 # 'file_magic [[regex]]' -- check by looking for files in library path 4141 # which responds to the $file_magic_cmd with a given extended regex. 4142 # If you have `file' or equivalent on your system and you're not sure 4143 # whether `pass_all' will *always* work, you probably want this one. 4144 4145 case $host_os in 4146 aix4* | aix5*) 4147 lt_cv_deplibs_check_method=pass_all 4148 ;; 4149 4150 beos*) 4151 lt_cv_deplibs_check_method=pass_all 4152 ;; 4153 4154 bsdi4*) 4155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4156 lt_cv_file_magic_cmd='/usr/bin/file -L' 4157 lt_cv_file_magic_test_file=/shlib/libc.so 4158 ;; 4159 4160 cygwin* | mingw* | pw32*) 4161 # win32_libid is a shell function defined in ltmain.sh 4162 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4163 lt_cv_file_magic_cmd='win32_libid' 4164 ;; 4165 4166 darwin* | rhapsody*) 4167 # this will be overwritten by pass_all, but leave it in just in case 4168 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4169 lt_cv_file_magic_cmd='/usr/bin/file -L' 4170 case "$host_os" in 4171 rhapsody* | darwin1.[012]) 4172 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 4173 ;; 4174 *) # Darwin 1.3 on 4175 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4176 ;; 4177 esac 4178 lt_cv_deplibs_check_method=pass_all 4179 ;; 4180 4181 freebsd* | kfreebsd*-gnu) 4182 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4183 case $host_cpu in 4184 i*86 ) 4185 # Not sure whether the presence of OpenBSD here was a mistake. 4186 # Let's accept both of them until this is cleared up. 4187 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4188 lt_cv_file_magic_cmd=/usr/bin/file 4189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4190 ;; 4191 esac 4192 else 4193 lt_cv_deplibs_check_method=pass_all 4194 fi 4195 ;; 4196 4197 gnu*) 4198 lt_cv_deplibs_check_method=pass_all 4199 ;; 4200 4201 hpux10.20* | hpux11*) 4202 lt_cv_file_magic_cmd=/usr/bin/file 4203 case "$host_cpu" in 4204 ia64*) 4205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4206 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4207 ;; 4208 hppa*64*) 4209 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]' 4210 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4211 ;; 4212 *) 4213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4214 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4215 ;; 4216 esac 4217 ;; 4218 4219 irix5* | irix6* | nonstopux*) 4220 case $host_os in 4221 irix5* | nonstopux*) 4222 # this will be overridden with pass_all, but let us keep it just in case 4223 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4224 ;; 4225 *) 4226 case $LD in 4227 *-32|*"-32 ") libmagic=32-bit;; 4228 *-n32|*"-n32 ") libmagic=N32;; 4229 *-64|*"-64 ") libmagic=64-bit;; 4230 *) libmagic=never-match;; 4231 esac 4232 # this will be overridden with pass_all, but let us keep it just in case 4233 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 4234 ;; 4235 esac 4236 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4237 lt_cv_deplibs_check_method=pass_all 4238 ;; 4239 4240 # This must be Linux ELF. 4241 linux*) 4242 case $host_cpu in 4243 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*) 4244 lt_cv_deplibs_check_method=pass_all ;; 4245 *) 4246 # glibc up to 2.1.1 does not perform some relocations on ARM 4247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 4248 esac 4249 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4250 ;; 4251 4252 netbsd*) 4253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4255 else 4256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4257 fi 4258 ;; 4259 4260 newos6*) 4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4262 lt_cv_file_magic_cmd=/usr/bin/file 4263 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4264 ;; 4265 4266 nto-qnx*) 4267 lt_cv_deplibs_check_method=unknown 4268 ;; 4269 4270 openbsd*) 4271 lt_cv_file_magic_cmd=/usr/bin/file 4272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4275 else 4276 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4277 fi 4278 ;; 4279 4280 osf3* | osf4* | osf5*) 4281 # this will be overridden with pass_all, but let us keep it just in case 4282 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4283 lt_cv_file_magic_test_file=/shlib/libc.so 4284 lt_cv_deplibs_check_method=pass_all 4285 ;; 4286 4287 sco3.2v5*) 4288 lt_cv_deplibs_check_method=pass_all 4289 ;; 4290 4291 solaris*) 4292 lt_cv_deplibs_check_method=pass_all 4293 lt_cv_file_magic_test_file=/lib/libc.so 4294 ;; 4295 4296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4297 case $host_vendor in 4298 motorola) 4299 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]' 4300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4301 ;; 4302 ncr) 4303 lt_cv_deplibs_check_method=pass_all 4304 ;; 4305 sequent) 4306 lt_cv_file_magic_cmd='/bin/file' 4307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4308 ;; 4309 sni) 4310 lt_cv_file_magic_cmd='/bin/file' 4311 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4312 lt_cv_file_magic_test_file=/lib/libc.so 4313 ;; 4314 siemens) 4315 lt_cv_deplibs_check_method=pass_all 4316 ;; 4317 esac 4318 ;; 4319 4320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4321 lt_cv_deplibs_check_method=pass_all 4322 ;; 4323 esac 4324 4325 fi 4326 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4328 file_magic_cmd=$lt_cv_file_magic_cmd 4329 deplibs_check_method=$lt_cv_deplibs_check_method 4330 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4331 4332 4333 4334 4335 # If no C compiler was specified, use CC. 4336 LTCC=${LTCC-"$CC"} 4337 4338 # Allow CC to be a program name with arguments. 4339 compiler=$CC 4340 4341 4342 # Check whether --enable-libtool-lock was given. 4343 if test "${enable_libtool_lock+set}" = set; then 4344 enableval=$enable_libtool_lock; 4345 fi 4346 4347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4348 4349 # Some flags need to be propagated to the compiler or linker for good 4350 # libtool support. 4351 case $host in 4352 ia64-*-hpux*) 4353 # Find out which ABI we are using. 4354 echo 'int i;' > conftest.$ac_ext 4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4356 (eval $ac_compile) 2>&5 4357 ac_status=$? 4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4359 (exit $ac_status); }; then 4360 case `/usr/bin/file conftest.$ac_objext` in 4361 *ELF-32*) 4362 HPUX_IA64_MODE="32" 4363 ;; 4364 *ELF-64*) 4365 HPUX_IA64_MODE="64" 4366 ;; 4367 esac 4368 fi 4369 rm -rf conftest* 4370 ;; 4371 *-*-irix6*) 4372 # Find out which ABI we are using. 4373 echo '#line 4373 "configure"' > conftest.$ac_ext 4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4375 (eval $ac_compile) 2>&5 4376 ac_status=$? 4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4378 (exit $ac_status); }; then 4379 if test "$lt_cv_prog_gnu_ld" = yes; then 4380 case `/usr/bin/file conftest.$ac_objext` in 4381 *32-bit*) 4382 LD="${LD-ld} -melf32bsmip" 4383 ;; 4384 *N32*) 4385 LD="${LD-ld} -melf32bmipn32" 4386 ;; 4387 *64-bit*) 4388 LD="${LD-ld} -melf64bmip" 4389 ;; 4390 esac 4391 else 4392 case `/usr/bin/file conftest.$ac_objext` in 4393 *32-bit*) 4394 LD="${LD-ld} -32" 4395 ;; 4396 *N32*) 4397 LD="${LD-ld} -n32" 4398 ;; 4399 *64-bit*) 4400 LD="${LD-ld} -64" 4401 ;; 4402 esac 4403 fi 4404 fi 4405 rm -rf conftest* 4406 ;; 4407 4408 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4409 # Find out which ABI we are using. 4410 echo 'int i;' > conftest.$ac_ext 4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4412 (eval $ac_compile) 2>&5 4413 ac_status=$? 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); }; then 4416 case "`/usr/bin/file conftest.o`" in 4417 *32-bit*) 4418 case $host in 4419 x86_64-*linux*) 4420 LD="${LD-ld} -m elf_i386" 4421 ;; 4422 ppc64-*linux*|powerpc64-*linux*) 4423 LD="${LD-ld} -m elf32ppclinux" 4424 ;; 4425 s390x-*linux*) 4426 LD="${LD-ld} -m elf_s390" 4427 ;; 4428 sparc64-*linux*) 4429 LD="${LD-ld} -m elf32_sparc" 4430 ;; 4431 esac 4432 ;; 4433 *64-bit*) 4434 case $host in 4435 x86_64-*linux*) 4436 LD="${LD-ld} -m elf_x86_64" 4437 ;; 4438 ppc*-*linux*|powerpc*-*linux*) 4439 LD="${LD-ld} -m elf64ppc" 4440 ;; 4441 s390*-*linux*) 4442 LD="${LD-ld} -m elf64_s390" 4443 ;; 4444 sparc*-*linux*) 4445 LD="${LD-ld} -m elf64_sparc" 4446 ;; 4447 esac 4448 ;; 4449 esac 4450 fi 4451 rm -rf conftest* 4452 ;; 4453 4454 *-*-sco3.2v5*) 4455 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4456 SAVE_CFLAGS="$CFLAGS" 4457 CFLAGS="$CFLAGS -belf" 4458 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4459 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4460 if test "${lt_cv_cc_needs_belf+set}" = set; then 4461 echo $ECHO_N "(cached) $ECHO_C" >&6 4462 else 4463 ac_ext=c 4464 ac_cpp='$CPP $CPPFLAGS' 4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4468 4469 cat >conftest.$ac_ext <<_ACEOF 4470 /* confdefs.h. */ 4471 _ACEOF 4472 cat confdefs.h >>conftest.$ac_ext 4473 cat >>conftest.$ac_ext <<_ACEOF 4474 /* end confdefs.h. */ 4475 4476 int 4477 main () 4478 { 4479 4480 ; 4481 return 0; 4482 } 4483 _ACEOF 4484 rm -f conftest.$ac_objext conftest$ac_exeext 4485 if { (ac_try="$ac_link" 4486 case "(($ac_try" in 4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4488 *) ac_try_echo=$ac_try;; 4489 esac 4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4491 (eval "$ac_link") 2>conftest.er1 4492 ac_status=$? 4493 grep -v '^ *+' conftest.er1 >conftest.err 4494 rm -f conftest.er1 4495 cat conftest.err >&5 4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4497 (exit $ac_status); } && { 4498 test -z "$ac_c_werror_flag" || 4499 test ! -s conftest.err 4500 } && test -s conftest$ac_exeext && 4501 $as_test_x conftest$ac_exeext; then 4502 lt_cv_cc_needs_belf=yes 4503 else 4504 echo "$as_me: failed program was:" >&5 4505 sed 's/^/| /' conftest.$ac_ext >&5 4506 4507 lt_cv_cc_needs_belf=no 4508 fi 4509 4510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4511 conftest$ac_exeext conftest.$ac_ext 4512 ac_ext=c 4513 ac_cpp='$CPP $CPPFLAGS' 4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4517 4518 fi 4519 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4523 CFLAGS="$SAVE_CFLAGS" 4524 fi 4525 ;; 4526 4527 esac 4528 4529 need_locks="$enable_libtool_lock" 4530 4531 4532 ac_ext=c 4533 ac_cpp='$CPP $CPPFLAGS' 4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4539 # On Suns, sometimes $CPP names a directory. 4540 if test -n "$CPP" && test -d "$CPP"; then 4541 CPP= 4542 fi 4543 if test -z "$CPP"; then 4544 if test "${ac_cv_prog_CPP+set}" = set; then 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4546 else 4547 # Double quotes because CPP needs to be expanded 4548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4549 do 4550 ac_preproc_ok=false 4551 for ac_c_preproc_warn_flag in '' yes 4552 do 4553 # Use a header file that comes with gcc, so configuring glibc 4554 # with a fresh cross-compiler works. 4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4556 # <limits.h> exists even on freestanding compilers. 4557 # On the NeXT, cc -E runs the code through the compiler's parser, 4558 # not just through cpp. "Syntax error" is here to catch this case. 4559 cat >conftest.$ac_ext <<_ACEOF 4560 /* confdefs.h. */ 4561 _ACEOF 4562 cat confdefs.h >>conftest.$ac_ext 4563 cat >>conftest.$ac_ext <<_ACEOF 4564 /* end confdefs.h. */ 4565 #ifdef __STDC__ 4566 # include <limits.h> 4567 #else 4568 # include <assert.h> 4569 #endif 4570 Syntax error 4571 _ACEOF 4572 if { (ac_try="$ac_cpp conftest.$ac_ext" 4573 case "(($ac_try" in 4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4575 *) ac_try_echo=$ac_try;; 4576 esac 4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4579 ac_status=$? 4580 grep -v '^ *+' conftest.er1 >conftest.err 4581 rm -f conftest.er1 4582 cat conftest.err >&5 4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4584 (exit $ac_status); } >/dev/null && { 4585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4586 test ! -s conftest.err 4587 }; then 4588 : 4589 else 4590 echo "$as_me: failed program was:" >&5 4591 sed 's/^/| /' conftest.$ac_ext >&5 4592 4593 # Broken: fails on valid input. 4594 continue 4595 fi 4596 4597 rm -f conftest.err conftest.$ac_ext 4598 4599 # OK, works on sane cases. Now check whether nonexistent headers 4600 # can be detected and how. 4601 cat >conftest.$ac_ext <<_ACEOF 4602 /* confdefs.h. */ 4603 _ACEOF 4604 cat confdefs.h >>conftest.$ac_ext 4605 cat >>conftest.$ac_ext <<_ACEOF 4606 /* end confdefs.h. */ 4607 #include <ac_nonexistent.h> 4608 _ACEOF 4609 if { (ac_try="$ac_cpp conftest.$ac_ext" 4610 case "(($ac_try" in 4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4612 *) ac_try_echo=$ac_try;; 4613 esac 4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4616 ac_status=$? 4617 grep -v '^ *+' conftest.er1 >conftest.err 4618 rm -f conftest.er1 4619 cat conftest.err >&5 4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); } >/dev/null && { 4622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4623 test ! -s conftest.err 4624 }; then 4625 # Broken: success on invalid input. 4626 continue 4627 else 4628 echo "$as_me: failed program was:" >&5 4629 sed 's/^/| /' conftest.$ac_ext >&5 4630 4631 # Passes both tests. 4632 ac_preproc_ok=: 4633 break 4634 fi 4635 4636 rm -f conftest.err conftest.$ac_ext 4637 4638 done 4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4640 rm -f conftest.err conftest.$ac_ext 4641 if $ac_preproc_ok; then 4642 break 4643 fi 4644 4645 done 4646 ac_cv_prog_CPP=$CPP 4647 4648 fi 4649 CPP=$ac_cv_prog_CPP 4650 else 4651 ac_cv_prog_CPP=$CPP 4652 fi 4653 { echo "$as_me:$LINENO: result: $CPP" >&5 4654 echo "${ECHO_T}$CPP" >&6; } 4655 ac_preproc_ok=false 4656 for ac_c_preproc_warn_flag in '' yes 4657 do 4658 # Use a header file that comes with gcc, so configuring glibc 4659 # with a fresh cross-compiler works. 4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4661 # <limits.h> exists even on freestanding compilers. 4662 # On the NeXT, cc -E runs the code through the compiler's parser, 4663 # not just through cpp. "Syntax error" is here to catch this case. 4664 cat >conftest.$ac_ext <<_ACEOF 4665 /* confdefs.h. */ 4666 _ACEOF 4667 cat confdefs.h >>conftest.$ac_ext 4668 cat >>conftest.$ac_ext <<_ACEOF 4669 /* end confdefs.h. */ 4670 #ifdef __STDC__ 4671 # include <limits.h> 4672 #else 4673 # include <assert.h> 4674 #endif 4675 Syntax error 4676 _ACEOF 4677 if { (ac_try="$ac_cpp conftest.$ac_ext" 4678 case "(($ac_try" in 4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4680 *) ac_try_echo=$ac_try;; 4681 esac 4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4684 ac_status=$? 4685 grep -v '^ *+' conftest.er1 >conftest.err 4686 rm -f conftest.er1 4687 cat conftest.err >&5 4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4689 (exit $ac_status); } >/dev/null && { 4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4691 test ! -s conftest.err 4692 }; then 4693 : 4694 else 4695 echo "$as_me: failed program was:" >&5 4696 sed 's/^/| /' conftest.$ac_ext >&5 4697 4698 # Broken: fails on valid input. 4699 continue 4700 fi 4701 4702 rm -f conftest.err conftest.$ac_ext 4703 4704 # OK, works on sane cases. Now check whether nonexistent headers 4705 # can be detected and how. 4706 cat >conftest.$ac_ext <<_ACEOF 4707 /* confdefs.h. */ 4708 _ACEOF 4709 cat confdefs.h >>conftest.$ac_ext 4710 cat >>conftest.$ac_ext <<_ACEOF 4711 /* end confdefs.h. */ 4712 #include <ac_nonexistent.h> 4713 _ACEOF 4714 if { (ac_try="$ac_cpp conftest.$ac_ext" 4715 case "(($ac_try" in 4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4717 *) ac_try_echo=$ac_try;; 4718 esac 4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4721 ac_status=$? 4722 grep -v '^ *+' conftest.er1 >conftest.err 4723 rm -f conftest.er1 4724 cat conftest.err >&5 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); } >/dev/null && { 4727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4728 test ! -s conftest.err 4729 }; then 4730 # Broken: success on invalid input. 4731 continue 4732 else 4733 echo "$as_me: failed program was:" >&5 4734 sed 's/^/| /' conftest.$ac_ext >&5 4735 4736 # Passes both tests. 4737 ac_preproc_ok=: 4738 break 4739 fi 4740 4741 rm -f conftest.err conftest.$ac_ext 4742 4743 done 4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4745 rm -f conftest.err conftest.$ac_ext 4746 if $ac_preproc_ok; then 4747 : 4748 else 4749 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4750 See \`config.log' for more details." >&5 4751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4752 See \`config.log' for more details." >&2;} 4753 { (exit 1); exit 1; }; } 4754 fi 4755 4756 ac_ext=c 4757 ac_cpp='$CPP $CPPFLAGS' 4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4761 4762 4763 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4765 if test "${ac_cv_header_stdc+set}" = set; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767 else 4768 cat >conftest.$ac_ext <<_ACEOF 4769 /* confdefs.h. */ 4770 _ACEOF 4771 cat confdefs.h >>conftest.$ac_ext 4772 cat >>conftest.$ac_ext <<_ACEOF 4773 /* end confdefs.h. */ 4774 #include <stdlib.h> 4775 #include <stdarg.h> 4776 #include <string.h> 4777 #include <float.h> 4778 4779 int 4780 main () 4781 { 4782 4783 ; 4784 return 0; 4785 } 4786 _ACEOF 4787 rm -f conftest.$ac_objext 4788 if { (ac_try="$ac_compile" 4789 case "(($ac_try" in 4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4791 *) ac_try_echo=$ac_try;; 4792 esac 4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4794 (eval "$ac_compile") 2>conftest.er1 4795 ac_status=$? 4796 grep -v '^ *+' conftest.er1 >conftest.err 4797 rm -f conftest.er1 4798 cat conftest.err >&5 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); } && { 4801 test -z "$ac_c_werror_flag" || 4802 test ! -s conftest.err 4803 } && test -s conftest.$ac_objext; then 4804 ac_cv_header_stdc=yes 4805 else 4806 echo "$as_me: failed program was:" >&5 4807 sed 's/^/| /' conftest.$ac_ext >&5 4808 4809 ac_cv_header_stdc=no 4810 fi 4811 4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4813 4814 if test $ac_cv_header_stdc = yes; then 4815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4816 cat >conftest.$ac_ext <<_ACEOF 4817 /* confdefs.h. */ 4818 _ACEOF 4819 cat confdefs.h >>conftest.$ac_ext 4820 cat >>conftest.$ac_ext <<_ACEOF 4821 /* end confdefs.h. */ 4822 #include <string.h> 4823 4824 _ACEOF 4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4826 $EGREP "memchr" >/dev/null 2>&1; then 4827 : 4828 else 4829 ac_cv_header_stdc=no 4830 fi 4831 rm -f conftest* 4832 4833 fi 4834 4835 if test $ac_cv_header_stdc = yes; then 4836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4837 cat >conftest.$ac_ext <<_ACEOF 4838 /* confdefs.h. */ 4839 _ACEOF 4840 cat confdefs.h >>conftest.$ac_ext 4841 cat >>conftest.$ac_ext <<_ACEOF 4842 /* end confdefs.h. */ 4843 #include <stdlib.h> 4844 4845 _ACEOF 4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4847 $EGREP "free" >/dev/null 2>&1; then 4848 : 4849 else 4850 ac_cv_header_stdc=no 4851 fi 4852 rm -f conftest* 4853 4854 fi 4855 4856 if test $ac_cv_header_stdc = yes; then 4857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4858 if test "$cross_compiling" = yes; then 4859 : 4860 else 4861 cat >conftest.$ac_ext <<_ACEOF 4862 /* confdefs.h. */ 4863 _ACEOF 4864 cat confdefs.h >>conftest.$ac_ext 4865 cat >>conftest.$ac_ext <<_ACEOF 4866 /* end confdefs.h. */ 4867 #include <ctype.h> 4868 #include <stdlib.h> 4869 #if ((' ' & 0x0FF) == 0x020) 4870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4872 #else 4873 # define ISLOWER(c) \ 4874 (('a' <= (c) && (c) <= 'i') \ 4875 || ('j' <= (c) && (c) <= 'r') \ 4876 || ('s' <= (c) && (c) <= 'z')) 4877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4878 #endif 4879 4880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4881 int 4882 main () 4883 { 4884 int i; 4885 for (i = 0; i < 256; i++) 4886 if (XOR (islower (i), ISLOWER (i)) 4887 || toupper (i) != TOUPPER (i)) 4888 return 2; 4889 return 0; 4890 } 4891 _ACEOF 4892 rm -f conftest$ac_exeext 4893 if { (ac_try="$ac_link" 4894 case "(($ac_try" in 4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4896 *) ac_try_echo=$ac_try;; 4897 esac 4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4899 (eval "$ac_link") 2>&5 4900 ac_status=$? 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4903 { (case "(($ac_try" in 4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4905 *) ac_try_echo=$ac_try;; 4906 esac 4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4908 (eval "$ac_try") 2>&5 4909 ac_status=$? 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); }; }; then 4912 : 4913 else 4914 echo "$as_me: program exited with status $ac_status" >&5 4915 echo "$as_me: failed program was:" >&5 4916 sed 's/^/| /' conftest.$ac_ext >&5 4917 4918 ( exit $ac_status ) 4919 ac_cv_header_stdc=no 4920 fi 4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4922 fi 4923 4924 4925 fi 4926 fi 4927 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4928 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4929 if test $ac_cv_header_stdc = yes; then 4930 4931 cat >>confdefs.h <<\_ACEOF 4932 #define STDC_HEADERS 1 4933 _ACEOF 4934 4935 fi 4936 4937 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4948 inttypes.h stdint.h unistd.h 4949 do 4950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4951 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4954 echo $ECHO_N "(cached) $ECHO_C" >&6 4955 else 4956 cat >conftest.$ac_ext <<_ACEOF 4957 /* confdefs.h. */ 4958 _ACEOF 4959 cat confdefs.h >>conftest.$ac_ext 4960 cat >>conftest.$ac_ext <<_ACEOF 4961 /* end confdefs.h. */ 4962 $ac_includes_default 4963 4964 #include <$ac_header> 4965 _ACEOF 4966 rm -f conftest.$ac_objext 4967 if { (ac_try="$ac_compile" 4968 case "(($ac_try" in 4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4970 *) ac_try_echo=$ac_try;; 4971 esac 4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4973 (eval "$ac_compile") 2>conftest.er1 4974 ac_status=$? 4975 grep -v '^ *+' conftest.er1 >conftest.err 4976 rm -f conftest.er1 4977 cat conftest.err >&5 4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4979 (exit $ac_status); } && { 4980 test -z "$ac_c_werror_flag" || 4981 test ! -s conftest.err 4982 } && test -s conftest.$ac_objext; then 4983 eval "$as_ac_Header=yes" 4984 else 4985 echo "$as_me: failed program was:" >&5 4986 sed 's/^/| /' conftest.$ac_ext >&5 4987 4988 eval "$as_ac_Header=no" 4989 fi 4990 4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4992 fi 4993 ac_res=`eval echo '${'$as_ac_Header'}'` 4994 { echo "$as_me:$LINENO: result: $ac_res" >&5 4995 echo "${ECHO_T}$ac_res" >&6; } 4996 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4997 cat >>confdefs.h <<_ACEOF 4998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4999 _ACEOF 5000 5001 fi 5002 5003 done 5004 5005 5006 5007 for ac_header in dlfcn.h 5008 do 5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5011 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5014 echo $ECHO_N "(cached) $ECHO_C" >&6 5015 fi 5016 ac_res=`eval echo '${'$as_ac_Header'}'` 5017 { echo "$as_me:$LINENO: result: $ac_res" >&5 5018 echo "${ECHO_T}$ac_res" >&6; } 5019 else 5020 # Is the header compilable? 5021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 5022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5023 cat >conftest.$ac_ext <<_ACEOF 5024 /* confdefs.h. */ 5025 _ACEOF 5026 cat confdefs.h >>conftest.$ac_ext 5027 cat >>conftest.$ac_ext <<_ACEOF 5028 /* end confdefs.h. */ 5029 $ac_includes_default 5030 #include <$ac_header> 5031 _ACEOF 5032 rm -f conftest.$ac_objext 5033 if { (ac_try="$ac_compile" 5034 case "(($ac_try" in 5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5036 *) ac_try_echo=$ac_try;; 5037 esac 5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5039 (eval "$ac_compile") 2>conftest.er1 5040 ac_status=$? 5041 grep -v '^ *+' conftest.er1 >conftest.err 5042 rm -f conftest.er1 5043 cat conftest.err >&5 5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5045 (exit $ac_status); } && { 5046 test -z "$ac_c_werror_flag" || 5047 test ! -s conftest.err 5048 } && test -s conftest.$ac_objext; then 5049 ac_header_compiler=yes 5050 else 5051 echo "$as_me: failed program was:" >&5 5052 sed 's/^/| /' conftest.$ac_ext >&5 5053 5054 ac_header_compiler=no 5055 fi 5056 5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5059 echo "${ECHO_T}$ac_header_compiler" >&6; } 5060 5061 # Is the header present? 5062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5064 cat >conftest.$ac_ext <<_ACEOF 5065 /* confdefs.h. */ 5066 _ACEOF 5067 cat confdefs.h >>conftest.$ac_ext 5068 cat >>conftest.$ac_ext <<_ACEOF 5069 /* end confdefs.h. */ 5070 #include <$ac_header> 5071 _ACEOF 5072 if { (ac_try="$ac_cpp conftest.$ac_ext" 5073 case "(($ac_try" in 5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5075 *) ac_try_echo=$ac_try;; 5076 esac 5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5079 ac_status=$? 5080 grep -v '^ *+' conftest.er1 >conftest.err 5081 rm -f conftest.er1 5082 cat conftest.err >&5 5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); } >/dev/null && { 5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5086 test ! -s conftest.err 5087 }; then 5088 ac_header_preproc=yes 5089 else 5090 echo "$as_me: failed program was:" >&5 5091 sed 's/^/| /' conftest.$ac_ext >&5 5092 5093 ac_header_preproc=no 5094 fi 5095 5096 rm -f conftest.err conftest.$ac_ext 5097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5098 echo "${ECHO_T}$ac_header_preproc" >&6; } 5099 5100 # So? What about this header? 5101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5102 yes:no: ) 5103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5107 ac_header_preproc=yes 5108 ;; 5109 no:yes:* ) 5110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5122 5123 ;; 5124 esac 5125 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5128 echo $ECHO_N "(cached) $ECHO_C" >&6 5129 else 5130 eval "$as_ac_Header=\$ac_header_preproc" 5131 fi 5132 ac_res=`eval echo '${'$as_ac_Header'}'` 5133 { echo "$as_me:$LINENO: result: $ac_res" >&5 5134 echo "${ECHO_T}$ac_res" >&6; } 5135 5136 fi 5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5138 cat >>confdefs.h <<_ACEOF 5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5140 _ACEOF 5141 5142 fi 5143 5144 done 5145 5146 ac_ext=cpp 5147 ac_cpp='$CXXCPP $CPPFLAGS' 5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5151 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5152 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5153 if test -z "$CXXCPP"; then 5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5156 else 5157 # Double quotes because CXXCPP needs to be expanded 5158 for CXXCPP in "$CXX -E" "/lib/cpp" 5159 do 5160 ac_preproc_ok=false 5161 for ac_cxx_preproc_warn_flag in '' yes 5162 do 5163 # Use a header file that comes with gcc, so configuring glibc 5164 # with a fresh cross-compiler works. 5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5166 # <limits.h> exists even on freestanding compilers. 5167 # On the NeXT, cc -E runs the code through the compiler's parser, 5168 # not just through cpp. "Syntax error" is here to catch this case. 5169 cat >conftest.$ac_ext <<_ACEOF 5170 /* confdefs.h. */ 5171 _ACEOF 5172 cat confdefs.h >>conftest.$ac_ext 5173 cat >>conftest.$ac_ext <<_ACEOF 5174 /* end confdefs.h. */ 5175 #ifdef __STDC__ 5176 # include <limits.h> 5177 #else 5178 # include <assert.h> 5179 #endif 5180 Syntax error 5181 _ACEOF 5182 if { (ac_try="$ac_cpp conftest.$ac_ext" 5183 case "(($ac_try" in 5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5185 *) ac_try_echo=$ac_try;; 5186 esac 5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5189 ac_status=$? 5190 grep -v '^ *+' conftest.er1 >conftest.err 5191 rm -f conftest.er1 5192 cat conftest.err >&5 5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5194 (exit $ac_status); } >/dev/null && { 5195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5196 test ! -s conftest.err 5197 }; then 5198 : 5199 else 5200 echo "$as_me: failed program was:" >&5 5201 sed 's/^/| /' conftest.$ac_ext >&5 5202 5203 # Broken: fails on valid input. 5204 continue 5205 fi 5206 5207 rm -f conftest.err conftest.$ac_ext 5208 5209 # OK, works on sane cases. Now check whether nonexistent headers 5210 # can be detected and how. 5211 cat >conftest.$ac_ext <<_ACEOF 5212 /* confdefs.h. */ 5213 _ACEOF 5214 cat confdefs.h >>conftest.$ac_ext 5215 cat >>conftest.$ac_ext <<_ACEOF 5216 /* end confdefs.h. */ 5217 #include <ac_nonexistent.h> 5218 _ACEOF 5219 if { (ac_try="$ac_cpp conftest.$ac_ext" 5220 case "(($ac_try" in 5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5222 *) ac_try_echo=$ac_try;; 5223 esac 5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5226 ac_status=$? 5227 grep -v '^ *+' conftest.er1 >conftest.err 5228 rm -f conftest.er1 5229 cat conftest.err >&5 5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5231 (exit $ac_status); } >/dev/null && { 5232 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5233 test ! -s conftest.err 5234 }; then 5235 # Broken: success on invalid input. 5236 continue 5237 else 5238 echo "$as_me: failed program was:" >&5 5239 sed 's/^/| /' conftest.$ac_ext >&5 5240 5241 # Passes both tests. 5242 ac_preproc_ok=: 5243 break 5244 fi 5245 5246 rm -f conftest.err conftest.$ac_ext 5247 5248 done 5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5250 rm -f conftest.err conftest.$ac_ext 5251 if $ac_preproc_ok; then 5252 break 5253 fi 5254 5255 done 5256 ac_cv_prog_CXXCPP=$CXXCPP 5257 5258 fi 5259 CXXCPP=$ac_cv_prog_CXXCPP 5260 else 5261 ac_cv_prog_CXXCPP=$CXXCPP 5262 fi 5263 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 5264 echo "${ECHO_T}$CXXCPP" >&6; } 5265 ac_preproc_ok=false 5266 for ac_cxx_preproc_warn_flag in '' yes 5267 do 5268 # Use a header file that comes with gcc, so configuring glibc 5269 # with a fresh cross-compiler works. 5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5271 # <limits.h> exists even on freestanding compilers. 5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5273 # not just through cpp. "Syntax error" is here to catch this case. 5274 cat >conftest.$ac_ext <<_ACEOF 5275 /* confdefs.h. */ 5276 _ACEOF 5277 cat confdefs.h >>conftest.$ac_ext 5278 cat >>conftest.$ac_ext <<_ACEOF 5279 /* end confdefs.h. */ 5280 #ifdef __STDC__ 5281 # include <limits.h> 5282 #else 5283 # include <assert.h> 5284 #endif 5285 Syntax error 5286 _ACEOF 5287 if { (ac_try="$ac_cpp conftest.$ac_ext" 5288 case "(($ac_try" in 5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5290 *) ac_try_echo=$ac_try;; 5291 esac 5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5294 ac_status=$? 5295 grep -v '^ *+' conftest.er1 >conftest.err 5296 rm -f conftest.er1 5297 cat conftest.err >&5 5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5299 (exit $ac_status); } >/dev/null && { 5300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5301 test ! -s conftest.err 5302 }; then 5303 : 5304 else 5305 echo "$as_me: failed program was:" >&5 5306 sed 's/^/| /' conftest.$ac_ext >&5 5307 5308 # Broken: fails on valid input. 5309 continue 5310 fi 5311 5312 rm -f conftest.err conftest.$ac_ext 5313 5314 # OK, works on sane cases. Now check whether nonexistent headers 5315 # can be detected and how. 5316 cat >conftest.$ac_ext <<_ACEOF 5317 /* confdefs.h. */ 5318 _ACEOF 5319 cat confdefs.h >>conftest.$ac_ext 5320 cat >>conftest.$ac_ext <<_ACEOF 5321 /* end confdefs.h. */ 5322 #include <ac_nonexistent.h> 5323 _ACEOF 5324 if { (ac_try="$ac_cpp conftest.$ac_ext" 5325 case "(($ac_try" in 5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5327 *) ac_try_echo=$ac_try;; 5328 esac 5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5331 ac_status=$? 5332 grep -v '^ *+' conftest.er1 >conftest.err 5333 rm -f conftest.er1 5334 cat conftest.err >&5 5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5336 (exit $ac_status); } >/dev/null && { 5337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5338 test ! -s conftest.err 5339 }; then 5340 # Broken: success on invalid input. 5341 continue 5342 else 5343 echo "$as_me: failed program was:" >&5 5344 sed 's/^/| /' conftest.$ac_ext >&5 5345 5346 # Passes both tests. 5347 ac_preproc_ok=: 5348 break 5349 fi 5350 5351 rm -f conftest.err conftest.$ac_ext 5352 5353 done 5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5355 rm -f conftest.err conftest.$ac_ext 5356 if $ac_preproc_ok; then 5357 : 5358 else 5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5360 See \`config.log' for more details." >&5 5361 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5362 See \`config.log' for more details." >&2;} 5363 { (exit 1); exit 1; }; } 5364 fi 5365 5366 ac_ext=cpp 5367 ac_cpp='$CXXCPP $CPPFLAGS' 5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5371 5372 5373 ac_ext=f 5374 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5375 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5376 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5377 if test -n "$ac_tool_prefix"; then 5378 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5379 do 5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5384 if test "${ac_cv_prog_F77+set}" = set; then 5385 echo $ECHO_N "(cached) $ECHO_C" >&6 5386 else 5387 if test -n "$F77"; then 5388 ac_cv_prog_F77="$F77" # Let the user override the test. 5389 else 5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5391 for as_dir in $PATH 5392 do 5393 IFS=$as_save_IFS 5394 test -z "$as_dir" && as_dir=. 5395 for ac_exec_ext in '' $ac_executable_extensions; do 5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5397 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5399 break 2 5400 fi 5401 done 5402 done 5403 IFS=$as_save_IFS 5404 5405 fi 5406 fi 5407 F77=$ac_cv_prog_F77 5408 if test -n "$F77"; then 5409 { echo "$as_me:$LINENO: result: $F77" >&5 5410 echo "${ECHO_T}$F77" >&6; } 5411 else 5412 { echo "$as_me:$LINENO: result: no" >&5 5413 echo "${ECHO_T}no" >&6; } 5414 fi 5415 5416 5417 test -n "$F77" && break 5418 done 5419 fi 5420 if test -z "$F77"; then 5421 ac_ct_F77=$F77 5422 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5423 do 5424 # Extract the first word of "$ac_prog", so it can be a program name with args. 5425 set dummy $ac_prog; ac_word=$2 5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5428 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5429 echo $ECHO_N "(cached) $ECHO_C" >&6 5430 else 5431 if test -n "$ac_ct_F77"; then 5432 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5433 else 5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5435 for as_dir in $PATH 5436 do 5437 IFS=$as_save_IFS 5438 test -z "$as_dir" && as_dir=. 5439 for ac_exec_ext in '' $ac_executable_extensions; do 5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5441 ac_cv_prog_ac_ct_F77="$ac_prog" 5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5443 break 2 5444 fi 5445 done 5446 done 5447 IFS=$as_save_IFS 5448 5449 fi 5450 fi 5451 ac_ct_F77=$ac_cv_prog_ac_ct_F77 5452 if test -n "$ac_ct_F77"; then 5453 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5454 echo "${ECHO_T}$ac_ct_F77" >&6; } 5455 else 5456 { echo "$as_me:$LINENO: result: no" >&5 5457 echo "${ECHO_T}no" >&6; } 5458 fi 5459 5460 5461 test -n "$ac_ct_F77" && break 5462 done 5463 5464 if test "x$ac_ct_F77" = x; then 5465 F77="" 5466 else 5467 case $cross_compiling:$ac_tool_warned in 5468 yes:) 5469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5470 whose name does not start with the host triplet. If you think this 5471 configuration is useful to you, please write to autoconf@gnu.org." >&5 5472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5473 whose name does not start with the host triplet. If you think this 5474 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5475 ac_tool_warned=yes ;; 5476 esac 5477 F77=$ac_ct_F77 5478 fi 5479 fi 5480 5481 5482 # Provide some information about the compiler. 5483 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5484 ac_compiler=`set X $ac_compile; echo $2` 5485 { (ac_try="$ac_compiler --version >&5" 5486 case "(($ac_try" in 5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5488 *) ac_try_echo=$ac_try;; 5489 esac 5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5491 (eval "$ac_compiler --version >&5") 2>&5 5492 ac_status=$? 5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5494 (exit $ac_status); } 5495 { (ac_try="$ac_compiler -v >&5" 5496 case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499 esac 5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5501 (eval "$ac_compiler -v >&5") 2>&5 5502 ac_status=$? 5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5504 (exit $ac_status); } 5505 { (ac_try="$ac_compiler -V >&5" 5506 case "(($ac_try" in 5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5508 *) ac_try_echo=$ac_try;; 5509 esac 5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5511 (eval "$ac_compiler -V >&5") 2>&5 5512 ac_status=$? 5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } 5515 rm -f a.out 5516 5517 # If we don't use `.F' as extension, the preprocessor is not run on the 5518 # input file. (Note that this only needs to work for GNU compilers.) 5519 ac_save_ext=$ac_ext 5520 ac_ext=F 5521 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5522 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5523 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5524 echo $ECHO_N "(cached) $ECHO_C" >&6 5525 else 5526 cat >conftest.$ac_ext <<_ACEOF 5527 program main 5528 #ifndef __GNUC__ 5529 choke me 5530 #endif 5531 5532 end 5533 _ACEOF 5534 rm -f conftest.$ac_objext 5535 if { (ac_try="$ac_compile" 5536 case "(($ac_try" in 5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5538 *) ac_try_echo=$ac_try;; 5539 esac 5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5541 (eval "$ac_compile") 2>conftest.er1 5542 ac_status=$? 5543 grep -v '^ *+' conftest.er1 >conftest.err 5544 rm -f conftest.er1 5545 cat conftest.err >&5 5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5547 (exit $ac_status); } && { 5548 test -z "$ac_f77_werror_flag" || 5549 test ! -s conftest.err 5550 } && test -s conftest.$ac_objext; then 5551 ac_compiler_gnu=yes 5552 else 5553 echo "$as_me: failed program was:" >&5 5554 sed 's/^/| /' conftest.$ac_ext >&5 5555 5556 ac_compiler_gnu=no 5557 fi 5558 5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5560 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5561 5562 fi 5563 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5564 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5565 ac_ext=$ac_save_ext 5566 ac_test_FFLAGS=${FFLAGS+set} 5567 ac_save_FFLAGS=$FFLAGS 5568 FFLAGS= 5569 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5570 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5571 if test "${ac_cv_prog_f77_g+set}" = set; then 5572 echo $ECHO_N "(cached) $ECHO_C" >&6 5573 else 5574 FFLAGS=-g 5575 cat >conftest.$ac_ext <<_ACEOF 5576 program main 5577 5578 end 5579 _ACEOF 5580 rm -f conftest.$ac_objext 5581 if { (ac_try="$ac_compile" 5582 case "(($ac_try" in 5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5584 *) ac_try_echo=$ac_try;; 5585 esac 5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5587 (eval "$ac_compile") 2>conftest.er1 5588 ac_status=$? 5589 grep -v '^ *+' conftest.er1 >conftest.err 5590 rm -f conftest.er1 5591 cat conftest.err >&5 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); } && { 5594 test -z "$ac_f77_werror_flag" || 5595 test ! -s conftest.err 5596 } && test -s conftest.$ac_objext; then 5597 ac_cv_prog_f77_g=yes 5598 else 5599 echo "$as_me: failed program was:" >&5 5600 sed 's/^/| /' conftest.$ac_ext >&5 5601 5602 ac_cv_prog_f77_g=no 5603 fi 5604 5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606 5607 fi 5608 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5609 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 5610 if test "$ac_test_FFLAGS" = set; then 5611 FFLAGS=$ac_save_FFLAGS 5612 elif test $ac_cv_prog_f77_g = yes; then 5613 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5614 FFLAGS="-g -O2" 5615 else 5616 FFLAGS="-g" 5617 fi 5618 else 5619 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5620 FFLAGS="-O2" 5621 else 5622 FFLAGS= 5623 fi 5624 fi 5625 5626 G77=`test $ac_compiler_gnu = yes && echo yes` 5627 ac_ext=c 5628 ac_cpp='$CPP $CPPFLAGS' 5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5632 5633 5634 5635 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5636 5637 # find the maximum length of command line arguments 5638 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5639 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5640 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5641 echo $ECHO_N "(cached) $ECHO_C" >&6 5642 else 5643 i=0 5644 testring="ABCD" 5645 5646 case $build_os in 5647 msdosdjgpp*) 5648 # On DJGPP, this test can blow up pretty badly due to problems in libc 5649 # (any single argument exceeding 2000 bytes causes a buffer overrun 5650 # during glob expansion). Even if it were fixed, the result of this 5651 # check would be larger than it should be. 5652 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5653 ;; 5654 5655 gnu*) 5656 # Under GNU Hurd, this test is not required because there is 5657 # no limit to the length of command line arguments. 5658 # Libtool will interpret -1 as no limit whatsoever 5659 lt_cv_sys_max_cmd_len=-1; 5660 ;; 5661 5662 cygwin* | mingw*) 5663 # On Win9x/ME, this test blows up -- it succeeds, but takes 5664 # about 5 minutes as the teststring grows exponentially. 5665 # Worse, since 9x/ME are not pre-emptively multitasking, 5666 # you end up with a "frozen" computer, even though with patience 5667 # the test eventually succeeds (with a max line length of 256k). 5668 # Instead, let's just punt: use the minimum linelength reported by 5669 # all of the supported platforms: 8192 (on NT/2K/XP). 5670 lt_cv_sys_max_cmd_len=8192; 5671 ;; 5672 5673 amigaos* | morphos*) 5674 # On AmigaOS with pdksh, this test takes hours, literally. 5675 # So we just punt and use a minimum line length of 8192. 5676 lt_cv_sys_max_cmd_len=8192; 5677 ;; 5678 5679 *) 5680 # If test is not a shell built-in, we'll probably end up computing a 5681 # maximum length that is only half of the actual maximum length, but 5682 # we can't tell. 5683 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 5684 = "XX$testring") >/dev/null 2>&1 && 5685 new_result=`expr "X$testring" : ".*" 2>&1` && 5686 lt_cv_sys_max_cmd_len=$new_result && 5687 test $i != 17 # 1/2 MB should be enough 5688 do 5689 i=`expr $i + 1` 5690 testring=$testring$testring 5691 done 5692 testring= 5693 # Add a significant safety factor because C++ compilers can tack on massive 5694 # amounts of additional arguments before passing them to the linker. 5695 # It appears as though 1/2 is a usable value. 5696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5697 ;; 5698 esac 5699 5700 fi 5701 5702 if test -n $lt_cv_sys_max_cmd_len ; then 5703 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5704 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5705 else 5706 { echo "$as_me:$LINENO: result: none" >&5 5707 echo "${ECHO_T}none" >&6; } 5708 fi 5709 5710 5711 5712 5713 # Check for command to grab the raw symbol name followed by C symbol from nm. 5714 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5715 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5716 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5717 echo $ECHO_N "(cached) $ECHO_C" >&6 5718 else 5719 5720 # These are sane defaults that work on at least a few old systems. 5721 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5722 5723 # Character class describing NM global symbol codes. 5724 symcode='[BCDEGRST]' 5725 5726 # Regexp to match symbols that can be accessed directly from C. 5727 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5728 5729 # Transform the above into a raw symbol and a C symbol. 5730 symxfrm='\1 \2\3 \3' 5731 5732 # Transform an extracted symbol line into a proper C declaration 5733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5734 5735 # Transform an extracted symbol line into symbol name and symbol address 5736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5737 5738 # Define system-specific variables. 5739 case $host_os in 5740 aix*) 5741 symcode='[BCDT]' 5742 ;; 5743 cygwin* | mingw* | pw32*) 5744 symcode='[ABCDGISTW]' 5745 ;; 5746 hpux*) # Its linker distinguishes data from code symbols 5747 if test "$host_cpu" = ia64; then 5748 symcode='[ABCDEGRST]' 5749 fi 5750 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5751 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5752 ;; 5753 irix* | nonstopux*) 5754 symcode='[BCDEGRST]' 5755 ;; 5756 osf*) 5757 symcode='[BCDEGQRST]' 5758 ;; 5759 solaris* | sysv5*) 5760 symcode='[BDRT]' 5761 ;; 5762 sysv4) 5763 symcode='[DFNSTU]' 5764 ;; 5765 esac 5766 5767 # Handle CRLF in mingw tool chain 5768 opt_cr= 5769 case $build_os in 5770 mingw*) 5771 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5772 ;; 5773 esac 5774 5775 # If we're using GNU nm, then use its standard symbol codes. 5776 case `$NM -V 2>&1` in 5777 *GNU* | *'with BFD'*) 5778 symcode='[ABCDGIRSTW]' ;; 5779 esac 5780 5781 # Try without a prefix undercore, then with it. 5782 for ac_symprfx in "" "_"; do 5783 5784 # Write the raw and C identifiers. 5785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5786 5787 # Check to see that the pipe works correctly. 5788 pipe_works=no 5789 5790 rm -f conftest* 5791 cat > conftest.$ac_ext <<EOF 5792 #ifdef __cplusplus 5793 extern "C" { 5794 #endif 5795 char nm_test_var; 5796 void nm_test_func(){} 5797 #ifdef __cplusplus 5798 } 5799 #endif 5800 int main(){nm_test_var='a';nm_test_func();return(0);} 5801 EOF 5802 5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5804 (eval $ac_compile) 2>&5 5805 ac_status=$? 5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5807 (exit $ac_status); }; then 5808 # Now try to grab the symbols. 5809 nlist=conftest.nm 5810 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5811 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5812 ac_status=$? 5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5814 (exit $ac_status); } && test -s "$nlist"; then 5815 # Try sorting and uniquifying the output. 5816 if sort "$nlist" | uniq > "$nlist"T; then 5817 mv -f "$nlist"T "$nlist" 5818 else 5819 rm -f "$nlist"T 5820 fi 5821 5822 # Make sure that we snagged all the symbols we need. 5823 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5824 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5825 cat <<EOF > conftest.$ac_ext 5826 #ifdef __cplusplus 5827 extern "C" { 5828 #endif 5829 5830 EOF 5831 # Now generate the symbol file. 5832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5833 5834 cat <<EOF >> conftest.$ac_ext 5835 #if defined (__STDC__) && __STDC__ 5836 # define lt_ptr_t void * 5837 #else 5838 # define lt_ptr_t char * 5839 # define const 5840 #endif 5841 5842 /* The mapping between symbol names and symbols. */ 5843 const struct { 5844 const char *name; 5845 lt_ptr_t address; 5846 } 5847 lt_preloaded_symbols[] = 5848 { 5849 EOF 5850 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5851 cat <<\EOF >> conftest.$ac_ext 5852 {0, (lt_ptr_t) 0} 5853 }; 5854 5855 #ifdef __cplusplus 5856 } 5857 #endif 5858 EOF 5859 # Now try linking the two files. 5860 mv conftest.$ac_objext conftstm.$ac_objext 5861 lt_save_LIBS="$LIBS" 5862 lt_save_CFLAGS="$CFLAGS" 5863 LIBS="conftstm.$ac_objext" 5864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5866 (eval $ac_link) 2>&5 5867 ac_status=$? 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5870 pipe_works=yes 5871 fi 5872 LIBS="$lt_save_LIBS" 5873 CFLAGS="$lt_save_CFLAGS" 5874 else 5875 echo "cannot find nm_test_func in $nlist" >&5 5876 fi 5877 else 5878 echo "cannot find nm_test_var in $nlist" >&5 5879 fi 5880 else 5881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5882 fi 5883 else 5884 echo "$progname: failed program was:" >&5 5885 cat conftest.$ac_ext >&5 5886 fi 5887 rm -f conftest* conftst* 5888 5889 # Do not use the global_symbol_pipe unless it works. 5890 if test "$pipe_works" = yes; then 5891 break 5892 else 5893 lt_cv_sys_global_symbol_pipe= 5894 fi 5895 done 5896 5897 fi 5898 5899 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5900 lt_cv_sys_global_symbol_to_cdecl= 5901 fi 5902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5903 { echo "$as_me:$LINENO: result: failed" >&5 5904 echo "${ECHO_T}failed" >&6; } 5905 else 5906 { echo "$as_me:$LINENO: result: ok" >&5 5907 echo "${ECHO_T}ok" >&6; } 5908 fi 5909 5910 { echo "$as_me:$LINENO: checking for objdir" >&5 5911 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 5912 if test "${lt_cv_objdir+set}" = set; then 5913 echo $ECHO_N "(cached) $ECHO_C" >&6 5914 else 5915 rm -f .libs 2>/dev/null 5916 mkdir .libs 2>/dev/null 5917 if test -d .libs; then 5918 lt_cv_objdir=.libs 5919 else 5920 # MS-DOS does not allow filenames that begin with a dot. 5921 lt_cv_objdir=_libs 5922 fi 5923 rmdir .libs 2>/dev/null 5924 fi 5925 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5926 echo "${ECHO_T}$lt_cv_objdir" >&6; } 5927 objdir=$lt_cv_objdir 5928 5929 5930 5931 5932 5933 case $host_os in 5934 aix3*) 5935 # AIX sometimes has problems with the GCC collect2 program. For some 5936 # reason, if we set the COLLECT_NAMES environment variable, the problems 5937 # vanish in a puff of smoke. 5938 if test "X${COLLECT_NAMES+set}" != Xset; then 5939 COLLECT_NAMES= 5940 export COLLECT_NAMES 5941 fi 5942 ;; 5943 esac 5944 5945 # Sed substitution that helps us do robust quoting. It backslashifies 5946 # metacharacters that are still active within double-quoted strings. 5947 Xsed='sed -e s/^X//' 5948 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5949 5950 # Same as above, but do not quote variable references. 5951 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5952 5953 # Sed substitution to delay expansion of an escaped shell variable in a 5954 # double_quote_subst'ed string. 5955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5956 5957 # Sed substitution to avoid accidental globbing in evaled expressions 5958 no_glob_subst='s/\*/\\\*/g' 5959 5960 # Constants: 5961 rm="rm -f" 5962 5963 # Global variables: 5964 default_ofile=libtool 5965 can_build_shared=yes 5966 5967 # All known linkers require a `.a' archive for static linking (except M$VC, 5968 # which needs '.lib'). 5969 libext=a 5970 ltmain="$ac_aux_dir/ltmain.sh" 5971 ofile="$default_ofile" 5972 with_gnu_ld="$lt_cv_prog_gnu_ld" 5973 5974 if test -n "$ac_tool_prefix"; then 5975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5976 set dummy ${ac_tool_prefix}ar; ac_word=$2 5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5979 if test "${ac_cv_prog_AR+set}" = set; then 5980 echo $ECHO_N "(cached) $ECHO_C" >&6 5981 else 5982 if test -n "$AR"; then 5983 ac_cv_prog_AR="$AR" # Let the user override the test. 5984 else 5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5986 for as_dir in $PATH 5987 do 5988 IFS=$as_save_IFS 5989 test -z "$as_dir" && as_dir=. 5990 for ac_exec_ext in '' $ac_executable_extensions; do 5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5992 ac_cv_prog_AR="${ac_tool_prefix}ar" 5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5994 break 2 5995 fi 5996 done 5997 done 5998 IFS=$as_save_IFS 5999 6000 fi 6001 fi 6002 AR=$ac_cv_prog_AR 6003 if test -n "$AR"; then 6004 { echo "$as_me:$LINENO: result: $AR" >&5 6005 echo "${ECHO_T}$AR" >&6; } 6006 else 6007 { echo "$as_me:$LINENO: result: no" >&5 6008 echo "${ECHO_T}no" >&6; } 6009 fi 6010 6011 6012 fi 6013 if test -z "$ac_cv_prog_AR"; then 6014 ac_ct_AR=$AR 6015 # Extract the first word of "ar", so it can be a program name with args. 6016 set dummy ar; ac_word=$2 6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6019 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6020 echo $ECHO_N "(cached) $ECHO_C" >&6 6021 else 6022 if test -n "$ac_ct_AR"; then 6023 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6024 else 6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026 for as_dir in $PATH 6027 do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6032 ac_cv_prog_ac_ct_AR="ar" 6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036 done 6037 done 6038 IFS=$as_save_IFS 6039 6040 fi 6041 fi 6042 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6043 if test -n "$ac_ct_AR"; then 6044 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6045 echo "${ECHO_T}$ac_ct_AR" >&6; } 6046 else 6047 { echo "$as_me:$LINENO: result: no" >&5 6048 echo "${ECHO_T}no" >&6; } 6049 fi 6050 6051 if test "x$ac_ct_AR" = x; then 6052 AR="false" 6053 else 6054 case $cross_compiling:$ac_tool_warned in 6055 yes:) 6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6057 whose name does not start with the host triplet. If you think this 6058 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6060 whose name does not start with the host triplet. If you think this 6061 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6062 ac_tool_warned=yes ;; 6063 esac 6064 AR=$ac_ct_AR 6065 fi 6066 else 6067 AR="$ac_cv_prog_AR" 6068 fi 6069 6070 if test -n "$ac_tool_prefix"; then 6071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6073 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6075 if test "${ac_cv_prog_RANLIB+set}" = set; then 6076 echo $ECHO_N "(cached) $ECHO_C" >&6 6077 else 6078 if test -n "$RANLIB"; then 6079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6080 else 6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6082 for as_dir in $PATH 6083 do 6084 IFS=$as_save_IFS 6085 test -z "$as_dir" && as_dir=. 6086 for ac_exec_ext in '' $ac_executable_extensions; do 6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6090 break 2 6091 fi 6092 done 6093 done 6094 IFS=$as_save_IFS 6095 6096 fi 6097 fi 6098 RANLIB=$ac_cv_prog_RANLIB 6099 if test -n "$RANLIB"; then 6100 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6101 echo "${ECHO_T}$RANLIB" >&6; } 6102 else 6103 { echo "$as_me:$LINENO: result: no" >&5 6104 echo "${ECHO_T}no" >&6; } 6105 fi 6106 6107 6108 fi 6109 if test -z "$ac_cv_prog_RANLIB"; then 6110 ac_ct_RANLIB=$RANLIB 6111 # Extract the first word of "ranlib", so it can be a program name with args. 6112 set dummy ranlib; ac_word=$2 6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6116 echo $ECHO_N "(cached) $ECHO_C" >&6 6117 else 6118 if test -n "$ac_ct_RANLIB"; then 6119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6120 else 6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122 for as_dir in $PATH 6123 do 6124 IFS=$as_save_IFS 6125 test -z "$as_dir" && as_dir=. 6126 for ac_exec_ext in '' $ac_executable_extensions; do 6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6128 ac_cv_prog_ac_ct_RANLIB="ranlib" 6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6130 break 2 6131 fi 6132 done 6133 done 6134 IFS=$as_save_IFS 6135 6136 fi 6137 fi 6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6139 if test -n "$ac_ct_RANLIB"; then 6140 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6141 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6142 else 6143 { echo "$as_me:$LINENO: result: no" >&5 6144 echo "${ECHO_T}no" >&6; } 6145 fi 6146 6147 if test "x$ac_ct_RANLIB" = x; then 6148 RANLIB=":" 6149 else 6150 case $cross_compiling:$ac_tool_warned in 6151 yes:) 6152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6153 whose name does not start with the host triplet. If you think this 6154 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6156 whose name does not start with the host triplet. If you think this 6157 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6158 ac_tool_warned=yes ;; 6159 esac 6160 RANLIB=$ac_ct_RANLIB 6161 fi 6162 else 6163 RANLIB="$ac_cv_prog_RANLIB" 6164 fi 6165 6166 if test -n "$ac_tool_prefix"; then 6167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6168 set dummy ${ac_tool_prefix}strip; ac_word=$2 6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6171 if test "${ac_cv_prog_STRIP+set}" = set; then 6172 echo $ECHO_N "(cached) $ECHO_C" >&6 6173 else 6174 if test -n "$STRIP"; then 6175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6176 else 6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6178 for as_dir in $PATH 6179 do 6180 IFS=$as_save_IFS 6181 test -z "$as_dir" && as_dir=. 6182 for ac_exec_ext in '' $ac_executable_extensions; do 6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6184 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6186 break 2 6187 fi 6188 done 6189 done 6190 IFS=$as_save_IFS 6191 6192 fi 6193 fi 6194 STRIP=$ac_cv_prog_STRIP 6195 if test -n "$STRIP"; then 6196 { echo "$as_me:$LINENO: result: $STRIP" >&5 6197 echo "${ECHO_T}$STRIP" >&6; } 6198 else 6199 { echo "$as_me:$LINENO: result: no" >&5 6200 echo "${ECHO_T}no" >&6; } 6201 fi 6202 6203 6204 fi 6205 if test -z "$ac_cv_prog_STRIP"; then 6206 ac_ct_STRIP=$STRIP 6207 # Extract the first word of "strip", so it can be a program name with args. 6208 set dummy strip; ac_word=$2 6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6211 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6212 echo $ECHO_N "(cached) $ECHO_C" >&6 6213 else 6214 if test -n "$ac_ct_STRIP"; then 6215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6216 else 6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6218 for as_dir in $PATH 6219 do 6220 IFS=$as_save_IFS 6221 test -z "$as_dir" && as_dir=. 6222 for ac_exec_ext in '' $ac_executable_extensions; do 6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6224 ac_cv_prog_ac_ct_STRIP="strip" 6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6226 break 2 6227 fi 6228 done 6229 done 6230 IFS=$as_save_IFS 6231 6232 fi 6233 fi 6234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6235 if test -n "$ac_ct_STRIP"; then 6236 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6237 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6238 else 6239 { echo "$as_me:$LINENO: result: no" >&5 6240 echo "${ECHO_T}no" >&6; } 6241 fi 6242 6243 if test "x$ac_ct_STRIP" = x; then 6244 STRIP=":" 6245 else 6246 case $cross_compiling:$ac_tool_warned in 6247 yes:) 6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6249 whose name does not start with the host triplet. If you think this 6250 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6252 whose name does not start with the host triplet. If you think this 6253 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6254 ac_tool_warned=yes ;; 6255 esac 6256 STRIP=$ac_ct_STRIP 6257 fi 6258 else 6259 STRIP="$ac_cv_prog_STRIP" 6260 fi 6261 6262 6263 old_CC="$CC" 6264 old_CFLAGS="$CFLAGS" 6265 6266 # Set sane defaults for various variables 6267 test -z "$AR" && AR=ar 6268 test -z "$AR_FLAGS" && AR_FLAGS=cru 6269 test -z "$AS" && AS=as 6270 test -z "$CC" && CC=cc 6271 test -z "$LTCC" && LTCC=$CC 6272 test -z "$DLLTOOL" && DLLTOOL=dlltool 6273 test -z "$LD" && LD=ld 6274 test -z "$LN_S" && LN_S="ln -s" 6275 test -z "$MAGIC_CMD" && MAGIC_CMD=file 6276 test -z "$NM" && NM=nm 6277 test -z "$SED" && SED=sed 6278 test -z "$OBJDUMP" && OBJDUMP=objdump 6279 test -z "$RANLIB" && RANLIB=: 6280 test -z "$STRIP" && STRIP=: 6281 test -z "$ac_objext" && ac_objext=o 6282 6283 # Determine commands to create old-style static archives. 6284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6285 old_postinstall_cmds='chmod 644 $oldlib' 6286 old_postuninstall_cmds= 6287 6288 if test -n "$RANLIB"; then 6289 case $host_os in 6290 openbsd*) 6291 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6292 ;; 6293 *) 6294 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6295 ;; 6296 esac 6297 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6298 fi 6299 6300 # Only perform the check for file, if the check method requires it 6301 case $deplibs_check_method in 6302 file_magic*) 6303 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6304 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6305 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6307 echo $ECHO_N "(cached) $ECHO_C" >&6 6308 else 6309 case $MAGIC_CMD in 6310 [\\/*] | ?:[\\/]*) 6311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6312 ;; 6313 *) 6314 lt_save_MAGIC_CMD="$MAGIC_CMD" 6315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6317 for ac_dir in $ac_dummy; do 6318 IFS="$lt_save_ifs" 6319 test -z "$ac_dir" && ac_dir=. 6320 if test -f $ac_dir/${ac_tool_prefix}file; then 6321 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6322 if test -n "$file_magic_test_file"; then 6323 case $deplibs_check_method in 6324 "file_magic "*) 6325 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6328 $EGREP "$file_magic_regex" > /dev/null; then 6329 : 6330 else 6331 cat <<EOF 1>&2 6332 6333 *** Warning: the command libtool uses to detect shared libraries, 6334 *** $file_magic_cmd, produces output that libtool cannot recognize. 6335 *** The result is that libtool may fail to recognize shared libraries 6336 *** as such. This will affect the creation of libtool libraries that 6337 *** depend on shared libraries, but programs linked with such libtool 6338 *** libraries will work regardless of this problem. Nevertheless, you 6339 *** may want to report the problem to your system manager and/or to 6340 *** bug-libtool (at] gnu.org 6341 6342 EOF 6343 fi ;; 6344 esac 6345 fi 6346 break 6347 fi 6348 done 6349 IFS="$lt_save_ifs" 6350 MAGIC_CMD="$lt_save_MAGIC_CMD" 6351 ;; 6352 esac 6353 fi 6354 6355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6356 if test -n "$MAGIC_CMD"; then 6357 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6358 echo "${ECHO_T}$MAGIC_CMD" >&6; } 6359 else 6360 { echo "$as_me:$LINENO: result: no" >&5 6361 echo "${ECHO_T}no" >&6; } 6362 fi 6363 6364 if test -z "$lt_cv_path_MAGIC_CMD"; then 6365 if test -n "$ac_tool_prefix"; then 6366 { echo "$as_me:$LINENO: checking for file" >&5 6367 echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6369 echo $ECHO_N "(cached) $ECHO_C" >&6 6370 else 6371 case $MAGIC_CMD in 6372 [\\/*] | ?:[\\/]*) 6373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6374 ;; 6375 *) 6376 lt_save_MAGIC_CMD="$MAGIC_CMD" 6377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6379 for ac_dir in $ac_dummy; do 6380 IFS="$lt_save_ifs" 6381 test -z "$ac_dir" && ac_dir=. 6382 if test -f $ac_dir/file; then 6383 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6384 if test -n "$file_magic_test_file"; then 6385 case $deplibs_check_method in 6386 "file_magic "*) 6387 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6390 $EGREP "$file_magic_regex" > /dev/null; then 6391 : 6392 else 6393 cat <<EOF 1>&2 6394 6395 *** Warning: the command libtool uses to detect shared libraries, 6396 *** $file_magic_cmd, produces output that libtool cannot recognize. 6397 *** The result is that libtool may fail to recognize shared libraries 6398 *** as such. This will affect the creation of libtool libraries that 6399 *** depend on shared libraries, but programs linked with such libtool 6400 *** libraries will work regardless of this problem. Nevertheless, you 6401 *** may want to report the problem to your system manager and/or to 6402 *** bug-libtool (at] gnu.org 6403 6404 EOF 6405 fi ;; 6406 esac 6407 fi 6408 break 6409 fi 6410 done 6411 IFS="$lt_save_ifs" 6412 MAGIC_CMD="$lt_save_MAGIC_CMD" 6413 ;; 6414 esac 6415 fi 6416 6417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6418 if test -n "$MAGIC_CMD"; then 6419 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6420 echo "${ECHO_T}$MAGIC_CMD" >&6; } 6421 else 6422 { echo "$as_me:$LINENO: result: no" >&5 6423 echo "${ECHO_T}no" >&6; } 6424 fi 6425 6426 else 6427 MAGIC_CMD=: 6428 fi 6429 fi 6430 6431 fi 6432 ;; 6433 esac 6434 6435 enable_dlopen=yes 6436 enable_win32_dll=no 6437 6438 # Check whether --enable-libtool-lock was given. 6439 if test "${enable_libtool_lock+set}" = set; then 6440 enableval=$enable_libtool_lock; 6441 fi 6442 6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6444 6445 6446 # Check whether --with-pic was given. 6447 if test "${with_pic+set}" = set; then 6448 withval=$with_pic; pic_mode="$withval" 6449 else 6450 pic_mode=default 6451 fi 6452 6453 test -z "$pic_mode" && pic_mode=default 6454 6455 # Use C for the default configuration in the libtool script 6456 tagname= 6457 lt_save_CC="$CC" 6458 ac_ext=c 6459 ac_cpp='$CPP $CPPFLAGS' 6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6463 6464 6465 # Source file extension for C test sources. 6466 ac_ext=c 6467 6468 # Object file extension for compiled C test sources. 6469 objext=o 6470 objext=$objext 6471 6472 # Code to be used in simple compile tests 6473 lt_simple_compile_test_code="int some_variable = 0;\n" 6474 6475 # Code to be used in simple link tests 6476 lt_simple_link_test_code='int main(){return(0);}\n' 6477 6478 6479 # If no C compiler was specified, use CC. 6480 LTCC=${LTCC-"$CC"} 6481 6482 # Allow CC to be a program name with arguments. 6483 compiler=$CC 6484 6485 6486 # 6487 # Check for any special shared library compilation flags. 6488 # 6489 lt_prog_cc_shlib= 6490 if test "$GCC" = no; then 6491 case $host_os in 6492 sco3.2v5*) 6493 lt_prog_cc_shlib='-belf' 6494 ;; 6495 esac 6496 fi 6497 if test -n "$lt_prog_cc_shlib"; then 6498 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6499 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6500 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6501 else 6502 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6503 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6504 lt_cv_prog_cc_can_build_shared=no 6505 fi 6506 fi 6507 6508 6509 # 6510 # Check to make sure the static flag actually works. 6511 # 6512 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6513 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } 6514 if test "${lt_prog_compiler_static_works+set}" = set; then 6515 echo $ECHO_N "(cached) $ECHO_C" >&6 6516 else 6517 lt_prog_compiler_static_works=no 6518 save_LDFLAGS="$LDFLAGS" 6519 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6520 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6522 # The compiler can only warn and ignore the option if not recognized 6523 # So say no if there are warnings 6524 if test -s conftest.err; then 6525 # Append any errors to the config.log. 6526 cat conftest.err 1>&5 6527 else 6528 lt_prog_compiler_static_works=yes 6529 fi 6530 fi 6531 $rm conftest* 6532 LDFLAGS="$save_LDFLAGS" 6533 6534 fi 6535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6536 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 6537 6538 if test x"$lt_prog_compiler_static_works" = xyes; then 6539 : 6540 else 6541 lt_prog_compiler_static= 6542 fi 6543 6544 6545 6546 ## CAVEAT EMPTOR: 6547 ## There is no encapsulation within the following macros, do not change 6548 ## the running order or otherwise move them around unless you know exactly 6549 ## what you are doing... 6550 6551 lt_prog_compiler_no_builtin_flag= 6552 6553 if test "$GCC" = yes; then 6554 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6555 6556 6557 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6558 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 6559 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6560 echo $ECHO_N "(cached) $ECHO_C" >&6 6561 else 6562 lt_cv_prog_compiler_rtti_exceptions=no 6563 ac_outfile=conftest.$ac_objext 6564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6565 lt_compiler_flag="-fno-rtti -fno-exceptions" 6566 # Insert the option either (1) after the last *FLAGS variable, or 6567 # (2) before a word containing "conftest.", or (3) at the end. 6568 # Note that $ac_compile itself does not contain backslashes and begins 6569 # with a dollar sign (not a hyphen), so the echo should work correctly. 6570 # The option is referenced via a variable to avoid confusing sed. 6571 lt_compile=`echo "$ac_compile" | $SED \ 6572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6574 -e 's:$: $lt_compiler_flag:'` 6575 (eval echo "\"\$as_me:6575: $lt_compile\"" >&5) 6576 (eval "$lt_compile" 2>conftest.err) 6577 ac_status=$? 6578 cat conftest.err >&5 6579 echo "$as_me:6579: \$? = $ac_status" >&5 6580 if (exit $ac_status) && test -s "$ac_outfile"; then 6581 # The compiler can only warn and ignore the option if not recognized 6582 # So say no if there are warnings 6583 if test ! -s conftest.err; then 6584 lt_cv_prog_compiler_rtti_exceptions=yes 6585 fi 6586 fi 6587 $rm conftest* 6588 6589 fi 6590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6591 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6592 6593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6595 else 6596 : 6597 fi 6598 6599 fi 6600 6601 lt_prog_compiler_wl= 6602 lt_prog_compiler_pic= 6603 lt_prog_compiler_static= 6604 6605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 6607 6608 if test "$GCC" = yes; then 6609 lt_prog_compiler_wl='-Wl,' 6610 lt_prog_compiler_static='-static' 6611 6612 case $host_os in 6613 aix*) 6614 # All AIX code is PIC. 6615 if test "$host_cpu" = ia64; then 6616 # AIX 5 now supports IA64 processor 6617 lt_prog_compiler_static='-Bstatic' 6618 fi 6619 ;; 6620 6621 amigaos*) 6622 # FIXME: we need at least 68020 code to build shared libraries, but 6623 # adding the `-m68020' flag to GCC prevents building anything better, 6624 # like `-m68040'. 6625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6626 ;; 6627 6628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6629 # PIC is the default for these OSes. 6630 ;; 6631 6632 mingw* | pw32* | os2*) 6633 # This hack is so that the source file can tell whether it is being 6634 # built for inclusion in a dll (and should export symbols for example). 6635 lt_prog_compiler_pic='-DDLL_EXPORT' 6636 ;; 6637 6638 darwin* | rhapsody*) 6639 # PIC is the default on this platform 6640 # Common symbols not allowed in MH_DYLIB files 6641 lt_prog_compiler_pic='-fno-common' 6642 ;; 6643 6644 msdosdjgpp*) 6645 # Just because we use GCC doesn't mean we suddenly get shared libraries 6646 # on systems that don't support them. 6647 lt_prog_compiler_can_build_shared=no 6648 enable_shared=no 6649 ;; 6650 6651 sysv4*MP*) 6652 if test -d /usr/nec; then 6653 lt_prog_compiler_pic=-Kconform_pic 6654 fi 6655 ;; 6656 6657 hpux*) 6658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6659 # not for PA HP-UX. 6660 case "$host_cpu" in 6661 hppa*64*|ia64*) 6662 # +Z the default 6663 ;; 6664 *) 6665 lt_prog_compiler_pic='-fPIC' 6666 ;; 6667 esac 6668 ;; 6669 6670 *) 6671 lt_prog_compiler_pic='-fPIC' 6672 ;; 6673 esac 6674 else 6675 # PORTME Check for flag to pass linker flags through the system compiler. 6676 case $host_os in 6677 aix*) 6678 lt_prog_compiler_wl='-Wl,' 6679 if test "$host_cpu" = ia64; then 6680 # AIX 5 now supports IA64 processor 6681 lt_prog_compiler_static='-Bstatic' 6682 else 6683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6684 fi 6685 ;; 6686 6687 mingw* | pw32* | os2*) 6688 # This hack is so that the source file can tell whether it is being 6689 # built for inclusion in a dll (and should export symbols for example). 6690 lt_prog_compiler_pic='-DDLL_EXPORT' 6691 ;; 6692 6693 hpux9* | hpux10* | hpux11*) 6694 lt_prog_compiler_wl='-Wl,' 6695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6696 # not for PA HP-UX. 6697 case "$host_cpu" in 6698 hppa*64*|ia64*) 6699 # +Z the default 6700 ;; 6701 *) 6702 lt_prog_compiler_pic='+Z' 6703 ;; 6704 esac 6705 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6706 lt_prog_compiler_static='${wl}-a ${wl}archive' 6707 ;; 6708 6709 irix5* | irix6* | nonstopux*) 6710 lt_prog_compiler_wl='-Wl,' 6711 # PIC (with -KPIC) is the default. 6712 lt_prog_compiler_static='-non_shared' 6713 ;; 6714 6715 newsos6) 6716 lt_prog_compiler_pic='-KPIC' 6717 lt_prog_compiler_static='-Bstatic' 6718 ;; 6719 6720 linux*) 6721 case $CC in 6722 icc* | ecc*) 6723 lt_prog_compiler_wl='-Wl,' 6724 lt_prog_compiler_pic='-KPIC' 6725 lt_prog_compiler_static='-static' 6726 ;; 6727 ccc*) 6728 lt_prog_compiler_wl='-Wl,' 6729 # All Alpha code is PIC. 6730 lt_prog_compiler_static='-non_shared' 6731 ;; 6732 esac 6733 ;; 6734 6735 osf3* | osf4* | osf5*) 6736 lt_prog_compiler_wl='-Wl,' 6737 # All OSF/1 code is PIC. 6738 lt_prog_compiler_static='-non_shared' 6739 ;; 6740 6741 sco3.2v5*) 6742 lt_prog_compiler_pic='-Kpic' 6743 lt_prog_compiler_static='-dn' 6744 ;; 6745 6746 solaris*) 6747 lt_prog_compiler_wl='-Wl,' 6748 lt_prog_compiler_pic='-KPIC' 6749 lt_prog_compiler_static='-Bstatic' 6750 ;; 6751 6752 sunos4*) 6753 lt_prog_compiler_wl='-Qoption ld ' 6754 lt_prog_compiler_pic='-PIC' 6755 lt_prog_compiler_static='-Bstatic' 6756 ;; 6757 6758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6759 lt_prog_compiler_wl='-Wl,' 6760 lt_prog_compiler_pic='-KPIC' 6761 lt_prog_compiler_static='-Bstatic' 6762 ;; 6763 6764 sysv4*MP*) 6765 if test -d /usr/nec ;then 6766 lt_prog_compiler_pic='-Kconform_pic' 6767 lt_prog_compiler_static='-Bstatic' 6768 fi 6769 ;; 6770 6771 uts4*) 6772 lt_prog_compiler_pic='-pic' 6773 lt_prog_compiler_static='-Bstatic' 6774 ;; 6775 6776 *) 6777 lt_prog_compiler_can_build_shared=no 6778 ;; 6779 esac 6780 fi 6781 6782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6783 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 6784 6785 # 6786 # Check to make sure the PIC flag actually works. 6787 # 6788 if test -n "$lt_prog_compiler_pic"; then 6789 6790 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 6792 if test "${lt_prog_compiler_pic_works+set}" = set; then 6793 echo $ECHO_N "(cached) $ECHO_C" >&6 6794 else 6795 lt_prog_compiler_pic_works=no 6796 ac_outfile=conftest.$ac_objext 6797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6799 # Insert the option either (1) after the last *FLAGS variable, or 6800 # (2) before a word containing "conftest.", or (3) at the end. 6801 # Note that $ac_compile itself does not contain backslashes and begins 6802 # with a dollar sign (not a hyphen), so the echo should work correctly. 6803 # The option is referenced via a variable to avoid confusing sed. 6804 lt_compile=`echo "$ac_compile" | $SED \ 6805 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6807 -e 's:$: $lt_compiler_flag:'` 6808 (eval echo "\"\$as_me:6808: $lt_compile\"" >&5) 6809 (eval "$lt_compile" 2>conftest.err) 6810 ac_status=$? 6811 cat conftest.err >&5 6812 echo "$as_me:6812: \$? = $ac_status" >&5 6813 if (exit $ac_status) && test -s "$ac_outfile"; then 6814 # The compiler can only warn and ignore the option if not recognized 6815 # So say no if there are warnings 6816 if test ! -s conftest.err; then 6817 lt_prog_compiler_pic_works=yes 6818 fi 6819 fi 6820 $rm conftest* 6821 6822 fi 6823 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6824 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 6825 6826 if test x"$lt_prog_compiler_pic_works" = xyes; then 6827 case $lt_prog_compiler_pic in 6828 "" | " "*) ;; 6829 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6830 esac 6831 else 6832 lt_prog_compiler_pic= 6833 lt_prog_compiler_can_build_shared=no 6834 fi 6835 6836 fi 6837 case "$host_os" in 6838 # For platforms which do not support PIC, -DPIC is meaningless: 6839 *djgpp*) 6840 lt_prog_compiler_pic= 6841 ;; 6842 *) 6843 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6844 ;; 6845 esac 6846 6847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 6849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6850 echo $ECHO_N "(cached) $ECHO_C" >&6 6851 else 6852 lt_cv_prog_compiler_c_o=no 6853 $rm -r conftest 2>/dev/null 6854 mkdir conftest 6855 cd conftest 6856 mkdir out 6857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6858 6859 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 6860 # that will create temporary files in the current directory regardless of 6861 # the output directory. Thus, making CWD read-only will cause this test 6862 # to fail, enabling locking or at least warning the user not to do parallel 6863 # builds. 6864 chmod -w . 6865 6866 lt_compiler_flag="-o out/conftest2.$ac_objext" 6867 # Insert the option either (1) after the last *FLAGS variable, or 6868 # (2) before a word containing "conftest.", or (3) at the end. 6869 # Note that $ac_compile itself does not contain backslashes and begins 6870 # with a dollar sign (not a hyphen), so the echo should work correctly. 6871 lt_compile=`echo "$ac_compile" | $SED \ 6872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6874 -e 's:$: $lt_compiler_flag:'` 6875 (eval echo "\"\$as_me:6875: $lt_compile\"" >&5) 6876 (eval "$lt_compile" 2>out/conftest.err) 6877 ac_status=$? 6878 cat out/conftest.err >&5 6879 echo "$as_me:6879: \$? = $ac_status" >&5 6880 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6881 then 6882 # The compiler can only warn and ignore the option if not recognized 6883 # So say no if there are warnings 6884 if test ! -s out/conftest.err; then 6885 lt_cv_prog_compiler_c_o=yes 6886 fi 6887 fi 6888 chmod u+w . 6889 $rm conftest* 6890 # SGI C++ compiler will create directory out/ii_files/ for 6891 # template instantiation 6892 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6893 $rm out/* && rmdir out 6894 cd .. 6895 rmdir conftest 6896 $rm conftest* 6897 6898 fi 6899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 6901 6902 6903 hard_links="nottested" 6904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6905 # do not overwrite the value of need_locks provided by the user 6906 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6907 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 6908 hard_links=yes 6909 $rm conftest* 6910 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6911 touch conftest.a 6912 ln conftest.a conftest.b 2>&5 || hard_links=no 6913 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6914 { echo "$as_me:$LINENO: result: $hard_links" >&5 6915 echo "${ECHO_T}$hard_links" >&6; } 6916 if test "$hard_links" = no; then 6917 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6918 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6919 need_locks=warn 6920 fi 6921 else 6922 need_locks=no 6923 fi 6924 6925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 6927 6928 runpath_var= 6929 allow_undefined_flag= 6930 enable_shared_with_static_runtimes=no 6931 archive_cmds= 6932 archive_expsym_cmds= 6933 old_archive_From_new_cmds= 6934 old_archive_from_expsyms_cmds= 6935 export_dynamic_flag_spec= 6936 whole_archive_flag_spec= 6937 thread_safe_flag_spec= 6938 hardcode_libdir_flag_spec= 6939 hardcode_libdir_flag_spec_ld= 6940 hardcode_libdir_separator= 6941 hardcode_direct=no 6942 hardcode_minus_L=no 6943 hardcode_shlibpath_var=unsupported 6944 link_all_deplibs=unknown 6945 hardcode_automatic=no 6946 module_cmds= 6947 module_expsym_cmds= 6948 always_export_symbols=no 6949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6950 # include_expsyms should be a list of space-separated symbols to be *always* 6951 # included in the symbol list 6952 include_expsyms= 6953 # exclude_expsyms can be an extended regexp of symbols to exclude 6954 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6955 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6956 # as well as any symbol that contains `d'. 6957 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6958 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6959 # platforms (ab)use it in PIC code, but their linkers get confused if 6960 # the symbol is explicitly referenced. Since portable code cannot 6961 # rely on this symbol name, it's probably fine to never include it in 6962 # preloaded symbol tables. 6963 extract_expsyms_cmds= 6964 6965 case $host_os in 6966 cygwin* | mingw* | pw32*) 6967 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6968 # When not using gcc, we currently assume that we are using 6969 # Microsoft Visual C++. 6970 if test "$GCC" != yes; then 6971 with_gnu_ld=no 6972 fi 6973 ;; 6974 openbsd*) 6975 with_gnu_ld=no 6976 ;; 6977 esac 6978 6979 ld_shlibs=yes 6980 if test "$with_gnu_ld" = yes; then 6981 # If archive_cmds runs LD, not CC, wlarc should be empty 6982 wlarc='${wl}' 6983 6984 # See if GNU ld supports shared libraries. 6985 case $host_os in 6986 aix3* | aix4* | aix5*) 6987 # On AIX/PPC, the GNU linker is very broken 6988 if test "$host_cpu" != ia64; then 6989 ld_shlibs=no 6990 cat <<EOF 1>&2 6991 6992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 6993 *** to be unable to reliably create shared libraries on AIX. 6994 *** Therefore, libtool is disabling shared libraries support. If you 6995 *** really care for shared libraries, you may want to modify your PATH 6996 *** so that a non-GNU linker is found, and then restart. 6997 6998 EOF 6999 fi 7000 ;; 7001 7002 amigaos*) 7003 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)' 7004 hardcode_libdir_flag_spec='-L$libdir' 7005 hardcode_minus_L=yes 7006 7007 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 7008 # that the semantics of dynamic libraries on AmigaOS, at least up 7009 # to version 4, is to share data among multiple programs linked 7010 # with the same dynamic library. Since this doesn't match the 7011 # behavior of shared libraries on other platforms, we can't use 7012 # them. 7013 ld_shlibs=no 7014 ;; 7015 7016 beos*) 7017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7018 allow_undefined_flag=unsupported 7019 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 7020 # support --undefined. This deserves some investigation. FIXME 7021 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7022 else 7023 ld_shlibs=no 7024 fi 7025 ;; 7026 7027 cygwin* | mingw* | pw32*) 7028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7029 # as there is no search path for DLLs. 7030 hardcode_libdir_flag_spec='-L$libdir' 7031 allow_undefined_flag=unsupported 7032 always_export_symbols=no 7033 enable_shared_with_static_runtimes=yes 7034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7035 7036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7038 # If the export-symbols file already is a .def file (1st line 7039 # is EXPORTS), use it as is; otherwise, prepend... 7040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7041 cp $export_symbols $output_objdir/$soname.def; 7042 else 7043 echo EXPORTS > $output_objdir/$soname.def; 7044 cat $export_symbols >> $output_objdir/$soname.def; 7045 fi~ 7046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7047 else 7048 ld_shlibs=no 7049 fi 7050 ;; 7051 7052 netbsd*) 7053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7054 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7055 wlarc= 7056 else 7057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7059 fi 7060 ;; 7061 7062 solaris* | sysv5*) 7063 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7064 ld_shlibs=no 7065 cat <<EOF 1>&2 7066 7067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 7068 *** create shared libraries on Solaris systems. Therefore, libtool 7069 *** is disabling shared libraries support. We urge you to upgrade GNU 7070 *** binutils to release 2.9.1 or newer. Another option is to modify 7071 *** your PATH or compiler configuration so that the native linker is 7072 *** used, and then restart. 7073 7074 EOF 7075 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7078 else 7079 ld_shlibs=no 7080 fi 7081 ;; 7082 7083 sunos4*) 7084 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7085 wlarc= 7086 hardcode_direct=yes 7087 hardcode_shlibpath_var=no 7088 ;; 7089 7090 linux*) 7091 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 7092 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7093 archive_cmds="$tmp_archive_cmds" 7094 supports_anon_versioning=no 7095 case `$LD -v 2>/dev/null` in 7096 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7099 *\ 2.11.*) ;; # other 2.11 versions 7100 *) supports_anon_versioning=yes ;; 7101 esac 7102 if test $supports_anon_versioning = yes; then 7103 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7105 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7106 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7107 else 7108 archive_expsym_cmds="$tmp_archive_cmds" 7109 fi 7110 else 7111 ld_shlibs=no 7112 fi 7113 ;; 7114 7115 *) 7116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7119 else 7120 ld_shlibs=no 7121 fi 7122 ;; 7123 esac 7124 7125 if test "$ld_shlibs" = yes; then 7126 runpath_var=LD_RUN_PATH 7127 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7128 export_dynamic_flag_spec='${wl}--export-dynamic' 7129 # ancient GNU ld didn't support --whole-archive et. al. 7130 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7131 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7132 else 7133 whole_archive_flag_spec= 7134 fi 7135 fi 7136 else 7137 # PORTME fill in a description of your system's linker (not GNU ld) 7138 case $host_os in 7139 aix3*) 7140 allow_undefined_flag=unsupported 7141 always_export_symbols=yes 7142 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' 7143 # Note: this linker hardcodes the directories in LIBPATH if there 7144 # are no directories specified by -L. 7145 hardcode_minus_L=yes 7146 if test "$GCC" = yes && test -z "$link_static_flag"; then 7147 # Neither direct hardcoding nor static linking is supported with a 7148 # broken collect2. 7149 hardcode_direct=unsupported 7150 fi 7151 ;; 7152 7153 aix4* | aix5*) 7154 if test "$host_cpu" = ia64; then 7155 # On IA64, the linker does run time linking by default, so we don't 7156 # have to do anything special. 7157 aix_use_runtimelinking=no 7158 exp_sym_flag='-Bexport' 7159 no_entry_flag="" 7160 else 7161 # If we're using GNU nm, then we don't want the "-C" option. 7162 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7164 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' 7165 else 7166 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' 7167 fi 7168 aix_use_runtimelinking=no 7169 7170 # Test if we are trying to use run time linking or normal 7171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7172 # need to do runtime linking. 7173 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7174 for ld_flag in $LDFLAGS; do 7175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7176 aix_use_runtimelinking=yes 7177 break 7178 fi 7179 done 7180 esac 7181 7182 exp_sym_flag='-bexport' 7183 no_entry_flag='-bnoentry' 7184 fi 7185 7186 # When large executables or shared objects are built, AIX ld can 7187 # have problems creating the table of contents. If linking a library 7188 # or program results in "error TOC overflow" add -mminimal-toc to 7189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7191 7192 archive_cmds='' 7193 hardcode_direct=yes 7194 hardcode_libdir_separator=':' 7195 link_all_deplibs=yes 7196 7197 if test "$GCC" = yes; then 7198 case $host_os in aix4.012|aix4.012.*) 7199 # We only want to do this on AIX 4.2 and lower, the check 7200 # below for broken collect2 doesn't work under 4.3+ 7201 collect2name=`${CC} -print-prog-name=collect2` 7202 if test -f "$collect2name" && \ 7203 strings "$collect2name" | grep resolve_lib_name >/dev/null 7204 then 7205 # We have reworked collect2 7206 hardcode_direct=yes 7207 else 7208 # We have old collect2 7209 hardcode_direct=unsupported 7210 # It fails to find uninstalled libraries when the uninstalled 7211 # path is not listed in the libpath. Setting hardcode_minus_L 7212 # to unsupported forces relinking 7213 hardcode_minus_L=yes 7214 hardcode_libdir_flag_spec='-L$libdir' 7215 hardcode_libdir_separator= 7216 fi 7217 esac 7218 shared_flag='-shared' 7219 else 7220 # not using gcc 7221 if test "$host_cpu" = ia64; then 7222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7223 # chokes on -Wl,-G. The following line is correct: 7224 shared_flag='-G' 7225 else 7226 if test "$aix_use_runtimelinking" = yes; then 7227 shared_flag='${wl}-G' 7228 else 7229 shared_flag='${wl}-bM:SRE' 7230 fi 7231 fi 7232 fi 7233 7234 # It seems that -bexpall does not export symbols beginning with 7235 # underscore (_), so it is better to generate a list of symbols to export. 7236 always_export_symbols=yes 7237 if test "$aix_use_runtimelinking" = yes; then 7238 # Warning - without using the other runtime loading flags (-brtl), 7239 # -berok will link without error, but may produce a broken library. 7240 allow_undefined_flag='-berok' 7241 # Determine the default libpath from the value encoded in an empty executable. 7242 cat >conftest.$ac_ext <<_ACEOF 7243 /* confdefs.h. */ 7244 _ACEOF 7245 cat confdefs.h >>conftest.$ac_ext 7246 cat >>conftest.$ac_ext <<_ACEOF 7247 /* end confdefs.h. */ 7248 7249 int 7250 main () 7251 { 7252 7253 ; 7254 return 0; 7255 } 7256 _ACEOF 7257 rm -f conftest.$ac_objext conftest$ac_exeext 7258 if { (ac_try="$ac_link" 7259 case "(($ac_try" in 7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7261 *) ac_try_echo=$ac_try;; 7262 esac 7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7264 (eval "$ac_link") 2>conftest.er1 7265 ac_status=$? 7266 grep -v '^ *+' conftest.er1 >conftest.err 7267 rm -f conftest.er1 7268 cat conftest.err >&5 7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7270 (exit $ac_status); } && { 7271 test -z "$ac_c_werror_flag" || 7272 test ! -s conftest.err 7273 } && test -s conftest$ac_exeext && 7274 $as_test_x conftest$ac_exeext; then 7275 7276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7277 }'` 7278 # Check for a 64-bit object if we didn't find anything. 7279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7280 }'`; fi 7281 else 7282 echo "$as_me: failed program was:" >&5 7283 sed 's/^/| /' conftest.$ac_ext >&5 7284 7285 7286 fi 7287 7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7289 conftest$ac_exeext conftest.$ac_ext 7290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7291 7292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7293 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7294 else 7295 if test "$host_cpu" = ia64; then 7296 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7297 allow_undefined_flag="-z nodefs" 7298 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7299 else 7300 # Determine the default libpath from the value encoded in an empty executable. 7301 cat >conftest.$ac_ext <<_ACEOF 7302 /* confdefs.h. */ 7303 _ACEOF 7304 cat confdefs.h >>conftest.$ac_ext 7305 cat >>conftest.$ac_ext <<_ACEOF 7306 /* end confdefs.h. */ 7307 7308 int 7309 main () 7310 { 7311 7312 ; 7313 return 0; 7314 } 7315 _ACEOF 7316 rm -f conftest.$ac_objext conftest$ac_exeext 7317 if { (ac_try="$ac_link" 7318 case "(($ac_try" in 7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7320 *) ac_try_echo=$ac_try;; 7321 esac 7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7323 (eval "$ac_link") 2>conftest.er1 7324 ac_status=$? 7325 grep -v '^ *+' conftest.er1 >conftest.err 7326 rm -f conftest.er1 7327 cat conftest.err >&5 7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7329 (exit $ac_status); } && { 7330 test -z "$ac_c_werror_flag" || 7331 test ! -s conftest.err 7332 } && test -s conftest$ac_exeext && 7333 $as_test_x conftest$ac_exeext; then 7334 7335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7336 }'` 7337 # Check for a 64-bit object if we didn't find anything. 7338 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7339 }'`; fi 7340 else 7341 echo "$as_me: failed program was:" >&5 7342 sed 's/^/| /' conftest.$ac_ext >&5 7343 7344 7345 fi 7346 7347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7348 conftest$ac_exeext conftest.$ac_ext 7349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7350 7351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7352 # Warning - without using the other run time loading flags, 7353 # -berok will link without error, but may produce a broken library. 7354 no_undefined_flag=' ${wl}-bernotok' 7355 allow_undefined_flag=' ${wl}-berok' 7356 # -bexpall does not export symbols beginning with underscore (_) 7357 always_export_symbols=yes 7358 # Exported symbols can be pulled into shared objects from archives 7359 whole_archive_flag_spec=' ' 7360 archive_cmds_need_lc=yes 7361 # This is similar to how AIX traditionally builds it's shared libraries. 7362 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7363 fi 7364 fi 7365 ;; 7366 7367 amigaos*) 7368 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)' 7369 hardcode_libdir_flag_spec='-L$libdir' 7370 hardcode_minus_L=yes 7371 # see comment about different semantics on the GNU ld section 7372 ld_shlibs=no 7373 ;; 7374 7375 bsdi4*) 7376 export_dynamic_flag_spec=-rdynamic 7377 ;; 7378 7379 cygwin* | mingw* | pw32*) 7380 # When not using gcc, we currently assume that we are using 7381 # Microsoft Visual C++. 7382 # hardcode_libdir_flag_spec is actually meaningless, as there is 7383 # no search path for DLLs. 7384 hardcode_libdir_flag_spec=' ' 7385 allow_undefined_flag=unsupported 7386 # Tell ltmain to make .lib files, not .a files. 7387 libext=lib 7388 # Tell ltmain to make .dll files, not .so files. 7389 shrext=".dll" 7390 # FIXME: Setting linknames here is a bad hack. 7391 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7392 # The linker will automatically build a .lib file if we build a DLL. 7393 old_archive_From_new_cmds='true' 7394 # FIXME: Should let the user specify the lib program. 7395 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7396 fix_srcfile_path='`cygpath -w "$srcfile"`' 7397 enable_shared_with_static_runtimes=yes 7398 ;; 7399 7400 darwin* | rhapsody*) 7401 if test "$GXX" = yes ; then 7402 archive_cmds_need_lc=no 7403 case "$host_os" in 7404 rhapsody* | darwin1.[012]) 7405 allow_undefined_flag='-undefined suppress' 7406 ;; 7407 *) # Darwin 1.3 on 7408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7409 allow_undefined_flag='-flat_namespace -undefined suppress' 7410 else 7411 case ${MACOSX_DEPLOYMENT_TARGET} in 7412 10.[012]) 7413 allow_undefined_flag='-flat_namespace -undefined suppress' 7414 ;; 7415 10.*) 7416 allow_undefined_flag='-undefined dynamic_lookup' 7417 ;; 7418 esac 7419 fi 7420 ;; 7421 esac 7422 lt_int_apple_cc_single_mod=no 7423 output_verbose_link_cmd='echo' 7424 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7425 lt_int_apple_cc_single_mod=yes 7426 fi 7427 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7428 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7429 else 7430 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7431 fi 7432 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7434 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7435 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7436 else 7437 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7438 fi 7439 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7440 hardcode_direct=no 7441 hardcode_automatic=yes 7442 hardcode_shlibpath_var=unsupported 7443 whole_archive_flag_spec='-all_load $convenience' 7444 link_all_deplibs=yes 7445 else 7446 ld_shlibs=no 7447 fi 7448 ;; 7449 7450 dgux*) 7451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7452 hardcode_libdir_flag_spec='-L$libdir' 7453 hardcode_shlibpath_var=no 7454 ;; 7455 7456 freebsd1*) 7457 ld_shlibs=no 7458 ;; 7459 7460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7461 # support. Future versions do this automatically, but an explicit c++rt0.o 7462 # does not break anything, and helps significantly (at the cost of a little 7463 # extra space). 7464 freebsd2.2*) 7465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7466 hardcode_libdir_flag_spec='-R$libdir' 7467 hardcode_direct=yes 7468 hardcode_shlibpath_var=no 7469 ;; 7470 7471 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7472 freebsd2*) 7473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7474 hardcode_direct=yes 7475 hardcode_minus_L=yes 7476 hardcode_shlibpath_var=no 7477 ;; 7478 7479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7480 freebsd* | kfreebsd*-gnu) 7481 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7482 hardcode_libdir_flag_spec='-R$libdir' 7483 hardcode_direct=yes 7484 hardcode_shlibpath_var=no 7485 ;; 7486 7487 hpux9*) 7488 if test "$GCC" = yes; then 7489 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' 7490 else 7491 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' 7492 fi 7493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7494 hardcode_libdir_separator=: 7495 hardcode_direct=yes 7496 7497 # hardcode_minus_L: Not really in the search PATH, 7498 # but as the default location of the library. 7499 hardcode_minus_L=yes 7500 export_dynamic_flag_spec='${wl}-E' 7501 ;; 7502 7503 hpux10* | hpux11*) 7504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7505 case "$host_cpu" in 7506 hppa*64*|ia64*) 7507 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7508 ;; 7509 *) 7510 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7511 ;; 7512 esac 7513 else 7514 case "$host_cpu" in 7515 hppa*64*|ia64*) 7516 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7517 ;; 7518 *) 7519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7520 ;; 7521 esac 7522 fi 7523 if test "$with_gnu_ld" = no; then 7524 case "$host_cpu" in 7525 hppa*64*) 7526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7527 hardcode_libdir_flag_spec_ld='+b $libdir' 7528 hardcode_libdir_separator=: 7529 hardcode_direct=no 7530 hardcode_shlibpath_var=no 7531 ;; 7532 ia64*) 7533 hardcode_libdir_flag_spec='-L$libdir' 7534 hardcode_direct=no 7535 hardcode_shlibpath_var=no 7536 7537 # hardcode_minus_L: Not really in the search PATH, 7538 # but as the default location of the library. 7539 hardcode_minus_L=yes 7540 ;; 7541 *) 7542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7543 hardcode_libdir_separator=: 7544 hardcode_direct=yes 7545 export_dynamic_flag_spec='${wl}-E' 7546 7547 # hardcode_minus_L: Not really in the search PATH, 7548 # but as the default location of the library. 7549 hardcode_minus_L=yes 7550 ;; 7551 esac 7552 fi 7553 ;; 7554 7555 irix5* | irix6* | nonstopux*) 7556 if test "$GCC" = yes; then 7557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7558 else 7559 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7560 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7561 fi 7562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7563 hardcode_libdir_separator=: 7564 link_all_deplibs=yes 7565 ;; 7566 7567 netbsd*) 7568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7570 else 7571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7572 fi 7573 hardcode_libdir_flag_spec='-R$libdir' 7574 hardcode_direct=yes 7575 hardcode_shlibpath_var=no 7576 ;; 7577 7578 newsos6) 7579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7580 hardcode_direct=yes 7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7582 hardcode_libdir_separator=: 7583 hardcode_shlibpath_var=no 7584 ;; 7585 7586 openbsd*) 7587 hardcode_direct=yes 7588 hardcode_shlibpath_var=no 7589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7592 export_dynamic_flag_spec='${wl}-E' 7593 else 7594 case $host_os in 7595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7597 hardcode_libdir_flag_spec='-R$libdir' 7598 ;; 7599 *) 7600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7602 ;; 7603 esac 7604 fi 7605 ;; 7606 7607 os2*) 7608 hardcode_libdir_flag_spec='-L$libdir' 7609 hardcode_minus_L=yes 7610 allow_undefined_flag=unsupported 7611 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' 7612 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7613 ;; 7614 7615 osf3*) 7616 if test "$GCC" = yes; then 7617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7618 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7619 else 7620 allow_undefined_flag=' -expect_unresolved \*' 7621 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7622 fi 7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7624 hardcode_libdir_separator=: 7625 ;; 7626 7627 osf4* | osf5*) # as osf3* with the addition of -msym flag 7628 if test "$GCC" = yes; then 7629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7630 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7632 else 7633 allow_undefined_flag=' -expect_unresolved \*' 7634 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7635 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7636 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7637 7638 # Both c and cxx compiler support -rpath directly 7639 hardcode_libdir_flag_spec='-rpath $libdir' 7640 fi 7641 hardcode_libdir_separator=: 7642 ;; 7643 7644 sco3.2v5*) 7645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7646 hardcode_shlibpath_var=no 7647 export_dynamic_flag_spec='${wl}-Bexport' 7648 runpath_var=LD_RUN_PATH 7649 hardcode_runpath_var=yes 7650 ;; 7651 7652 solaris*) 7653 no_undefined_flag=' -z text' 7654 if test "$GCC" = yes; then 7655 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7656 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7657 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7658 else 7659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $