1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.61 for libffi 3.0.6. 4 # 5 # Report bugs to <http://gcc.gnu.org/bugs.html>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## --------------------- ## 12 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42 # The user is always right. 43 if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53 fi 54 55 # Support unset when possible. 56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58 else 59 as_unset=false 60 fi 61 62 63 # IFS 64 # We need space, tab and new line, in precisely that order. Quoting is 65 # there to prevent editors from complaining about space-tab. 66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 67 # splitting by setting IFS to empty value.) 68 as_nl=' 69 ' 70 IFS=" "" $as_nl" 71 72 # Find who we are. Look in the path if we contain no directory separator. 73 case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76 for as_dir in $PATH 77 do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81 done 82 IFS=$as_save_IFS 83 84 ;; 85 esac 86 # We did not find ourselves, most probably we were run as `sh COMMAND' 87 # in which case we are not to be found in the path. 88 if test "x$as_myself" = x; then 89 as_myself=$0 90 fi 91 if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94 fi 95 96 # Work around bugs in pre-3.0 UWIN ksh. 97 for as_var in ENV MAIL MAILPATH 98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99 done 100 PS1='$ ' 101 PS2='> ' 102 PS4='+ ' 103 104 # NLS nuisances. 105 for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109 do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115 done 116 117 # Required to use basename. 118 if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121 else 122 as_expr=false 123 fi 124 125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127 else 128 as_basename=false 129 fi 130 131 132 # Name of the executable. 133 as_me=`$as_basename -- "$0" || 134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137 echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152 # CDPATH. 153 $as_unset CDPATH 154 155 156 if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159 else 160 as_have_required=no 161 fi 162 163 if test $as_have_required = yes && (eval ": 164 (as_func_return () { 165 (exit \$1) 166 } 167 as_func_success () { 168 as_func_return 0 169 } 170 as_func_failure () { 171 as_func_return 1 172 } 173 as_func_ret_success () { 174 return 0 175 } 176 as_func_ret_failure () { 177 return 1 178 } 179 180 exitcode=0 181 if as_func_success; then 182 : 183 else 184 exitcode=1 185 echo as_func_success failed. 186 fi 187 188 if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191 fi 192 193 if as_func_ret_success; then 194 : 195 else 196 exitcode=1 197 echo as_func_ret_success failed. 198 fi 199 200 if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203 fi 204 205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207 else 208 exitcode=1 209 echo positional parameters were not saved. 210 fi 211 212 test \$exitcode = 0) || { (exit 1); exit 1; } 213 214 ( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219 ") 2> /dev/null; then 220 : 221 else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225 do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234 done 235 IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249 else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252 esac 253 254 fi 255 256 257 : 258 _ASEOF 259 }; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270 else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273 esac 274 275 fi 276 277 278 : 279 (as_func_return () { 280 (exit $1) 281 } 282 as_func_success () { 283 as_func_return 0 284 } 285 as_func_failure () { 286 as_func_return 1 287 } 288 as_func_ret_success () { 289 return 0 290 } 291 as_func_ret_failure () { 292 return 1 293 } 294 295 exitcode=0 296 if as_func_success; then 297 : 298 else 299 exitcode=1 300 echo as_func_success failed. 301 fi 302 303 if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306 fi 307 308 if as_func_ret_success; then 309 : 310 else 311 exitcode=1 312 echo as_func_ret_success failed. 313 fi 314 315 if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318 fi 319 320 if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322 else 323 exitcode=1 324 echo positional parameters were not saved. 325 fi 326 327 test $exitcode = 0) || { (exit 1); exit 1; } 328 329 ( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335 _ASEOF 336 }; then 337 break 338 fi 339 340 fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350 fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359 fi 360 361 362 fi 363 364 fi 365 366 367 368 (eval "as_func_return () { 369 (exit \$1) 370 } 371 as_func_success () { 372 as_func_return 0 373 } 374 as_func_failure () { 375 as_func_return 1 376 } 377 as_func_ret_success () { 378 return 0 379 } 380 as_func_ret_failure () { 381 return 1 382 } 383 384 exitcode=0 385 if as_func_success; then 386 : 387 else 388 exitcode=1 389 echo as_func_success failed. 390 fi 391 392 if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395 fi 396 397 if as_func_ret_success; then 398 : 399 else 400 exitcode=1 401 echo as_func_ret_success failed. 402 fi 403 404 if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407 fi 408 409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411 else 412 exitcode=1 413 echo positional parameters were not saved. 414 fi 415 416 test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421 } 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465 } 466 467 468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470 else 471 as_dirname=false 472 fi 473 474 ECHO_C= ECHO_N= ECHO_T= 475 case `echo -n x` in 476 -n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481 *) 482 ECHO_N='-n';; 483 esac 484 485 if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488 else 489 as_expr=false 490 fi 491 492 rm -f conf$$ conf$$.exe conf$$.file 493 if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495 else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498 fi 499 echo >conf$$.file 500 if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508 elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510 else 511 as_ln_s='cp -p' 512 fi 513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514 rmdir conf$$.dir 2>/dev/null 515 516 if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518 else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521 fi 522 523 if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525 else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543 fi 544 as_executable_p=$as_test_x 545 546 # Sed expression to map a string onto a valid CPP name. 547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549 # Sed expression to map a string onto a valid variable name. 550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555 # Check that we are running under the correct shell. 556 SHELL=${CONFIG_SHELL-/bin/sh} 557 558 case X$ECHO in 559 X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563 esac 564 565 echo=${ECHO-echo} 566 if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569 elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575 else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578 fi 579 580 if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584 $* 585 EOF 586 exit 0 587 fi 588 589 # The HP-UX ksh and POSIX shell print the target directory to stdout 590 # if CDPATH is set. 591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593 if test -z "$ECHO"; then 594 if test "X${echo_test_string+set}" != Xset; then 595 # find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605 fi 606 607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611 else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691 fi 692 fi 693 694 # Copy echo and quote the copy suitably for passing to libtool from 695 # the Makefile, instead of quoting the original, which is used later. 696 ECHO=$echo 697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699 fi 700 701 702 703 704 tagnames=${tagnames+${tagnames},}CXX 705 706 tagnames=${tagnames+${tagnames},}F77 707 708 exec 7<&0 </dev/null 6>&1 709 710 # Name of the host. 711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712 # so uname gets run too. 713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715 # 716 # Initializations. 717 # 718 ac_default_prefix=/usr/local 719 ac_clean_files= 720 ac_config_libobj_dir=. 721 LIBOBJS= 722 cross_compiling=no 723 subdirs= 724 MFLAGS= 725 MAKEFLAGS= 726 SHELL=${CONFIG_SHELL-/bin/sh} 727 728 # Identity of this package. 729 PACKAGE_NAME='libffi' 730 PACKAGE_TARNAME='libffi' 731 PACKAGE_VERSION='3.0.6' 732 PACKAGE_STRING='libffi 3.0.6' 733 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html' 734 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 INSTALL_PROGRAM 821 INSTALL_SCRIPT 822 INSTALL_DATA 823 am__isrc 824 CYGPATH_W 825 PACKAGE 826 VERSION 827 ACLOCAL 828 AUTOCONF 829 AUTOMAKE 830 AUTOHEADER 831 MAKEINFO 832 install_sh 833 STRIP 834 INSTALL_STRIP_PROGRAM 835 mkdir_p 836 AWK 837 SET_MAKE 838 am__leading_dot 839 AMTAR 840 am__tar 841 am__untar 842 CC 843 CFLAGS 844 LDFLAGS 845 CPPFLAGS 846 ac_ct_CC 847 EXEEXT 848 OBJEXT 849 DEPDIR 850 am__include 851 am__quote 852 AMDEP_TRUE 853 AMDEP_FALSE 854 AMDEPBACKSLASH 855 CCDEPMODE 856 am__fastdepCC_TRUE 857 am__fastdepCC_FALSE 858 CCAS 859 CCASFLAGS 860 CCASDEPMODE 861 am__fastdepCCAS_TRUE 862 am__fastdepCCAS_FALSE 863 SED 864 GREP 865 EGREP 866 LN_S 867 ECHO 868 AR 869 RANLIB 870 CPP 871 CXX 872 CXXFLAGS 873 ac_ct_CXX 874 CXXDEPMODE 875 am__fastdepCXX_TRUE 876 am__fastdepCXX_FALSE 877 CXXCPP 878 F77 879 FFLAGS 880 ac_ct_F77 881 LIBTOOL 882 MAINTAINER_MODE_TRUE 883 MAINTAINER_MODE_FALSE 884 MAINT 885 TESTSUBDIR_TRUE 886 TESTSUBDIR_FALSE 887 AM_RUNTESTFLAGS 888 MIPS_TRUE 889 MIPS_FALSE 890 SPARC_TRUE 891 SPARC_FALSE 892 X86_TRUE 893 X86_FALSE 894 X86_FREEBSD_TRUE 895 X86_FREEBSD_FALSE 896 X86_WIN32_TRUE 897 X86_WIN32_FALSE 898 X86_DARWIN_TRUE 899 X86_DARWIN_FALSE 900 ALPHA_TRUE 901 ALPHA_FALSE 902 IA64_TRUE 903 IA64_FALSE 904 M32R_TRUE 905 M32R_FALSE 906 M68K_TRUE 907 M68K_FALSE 908 POWERPC_TRUE 909 POWERPC_FALSE 910 POWERPC_AIX_TRUE 911 POWERPC_AIX_FALSE 912 POWERPC_DARWIN_TRUE 913 POWERPC_DARWIN_FALSE 914 POWERPC_FREEBSD_TRUE 915 POWERPC_FREEBSD_FALSE 916 ARM_TRUE 917 ARM_FALSE 918 LIBFFI_CRIS_TRUE 919 LIBFFI_CRIS_FALSE 920 FRV_TRUE 921 FRV_FALSE 922 S390_TRUE 923 S390_FALSE 924 X86_64_TRUE 925 X86_64_FALSE 926 SH_TRUE 927 SH_FALSE 928 SH64_TRUE 929 SH64_FALSE 930 PA_LINUX_TRUE 931 PA_LINUX_FALSE 932 PA_HPUX_TRUE 933 PA_HPUX_FALSE 934 PA64_HPUX_TRUE 935 PA64_HPUX_FALSE 936 ALLOCA 937 HAVE_LONG_DOUBLE 938 TARGET 939 TARGETDIR 940 toolexecdir 941 toolexeclibdir 942 LIBOBJS 943 LTLIBOBJS' 944 ac_subst_files='' 945 ac_precious_vars='build_alias 946 host_alias 947 target_alias 948 CCAS 949 CCASFLAGS 950 CPP 951 CPPFLAGS 952 CXX 953 CXXFLAGS 954 LDFLAGS 955 LIBS 956 CCC 957 CXXCPP 958 F77 959 FFLAGS' 960 961 962 # Initialize some variables set by options. 963 ac_init_help= 964 ac_init_version=false 965 # The variables have the same names as the options, with 966 # dashes changed to underlines. 967 cache_file=/dev/null 968 exec_prefix=NONE 969 no_create= 970 no_recursion= 971 prefix=NONE 972 program_prefix=NONE 973 program_suffix=NONE 974 program_transform_name=s,x,x, 975 silent= 976 site= 977 srcdir= 978 verbose= 979 x_includes=NONE 980 x_libraries=NONE 981 982 # Installation directory options. 983 # These are left unexpanded so users can "make install exec_prefix=/foo" 984 # and all the variables that are supposed to be based on exec_prefix 985 # by default will actually change. 986 # Use braces instead of parens because sh, perl, etc. also accept them. 987 # (The list follows the same order as the GNU Coding Standards.) 988 bindir='${exec_prefix}/bin' 989 sbindir='${exec_prefix}/sbin' 990 libexecdir='${exec_prefix}/libexec' 991 datarootdir='${prefix}/share' 992 datadir='${datarootdir}' 993 sysconfdir='${prefix}/etc' 994 sharedstatedir='${prefix}/com' 995 localstatedir='${prefix}/var' 996 includedir='${prefix}/include' 997 oldincludedir='/usr/include' 998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 999 infodir='${datarootdir}/info' 1000 htmldir='${docdir}' 1001 dvidir='${docdir}' 1002 pdfdir='${docdir}' 1003 psdir='${docdir}' 1004 libdir='${exec_prefix}/lib' 1005 localedir='${datarootdir}/locale' 1006 mandir='${datarootdir}/man' 1007 1008 ac_prev= 1009 ac_dashdash= 1010 for ac_option 1011 do 1012 # If the previous option needs an argument, assign it. 1013 if test -n "$ac_prev"; then 1014 eval $ac_prev=\$ac_option 1015 ac_prev= 1016 continue 1017 fi 1018 1019 case $ac_option in 1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1021 *) ac_optarg=yes ;; 1022 esac 1023 1024 # Accept the important Cygnus configure options, so we can diagnose typos. 1025 1026 case $ac_dashdash$ac_option in 1027 --) 1028 ac_dashdash=yes ;; 1029 1030 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1031 ac_prev=bindir ;; 1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1033 bindir=$ac_optarg ;; 1034 1035 -build | --build | --buil | --bui | --bu) 1036 ac_prev=build_alias ;; 1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1038 build_alias=$ac_optarg ;; 1039 1040 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1042 ac_prev=cache_file ;; 1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1045 cache_file=$ac_optarg ;; 1046 1047 --config-cache | -C) 1048 cache_file=config.cache ;; 1049 1050 -datadir | --datadir | --datadi | --datad) 1051 ac_prev=datadir ;; 1052 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1053 datadir=$ac_optarg ;; 1054 1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1056 | --dataroo | --dataro | --datar) 1057 ac_prev=datarootdir ;; 1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1060 datarootdir=$ac_optarg ;; 1061 1062 -disable-* | --disable-*) 1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1069 eval enable_$ac_feature=no ;; 1070 1071 -docdir | --docdir | --docdi | --doc | --do) 1072 ac_prev=docdir ;; 1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1074 docdir=$ac_optarg ;; 1075 1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1077 ac_prev=dvidir ;; 1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1079 dvidir=$ac_optarg ;; 1080 1081 -enable-* | --enable-*) 1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1086 { (exit 1); exit 1; }; } 1087 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1088 eval enable_$ac_feature=\$ac_optarg ;; 1089 1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1092 | --exec | --exe | --ex) 1093 ac_prev=exec_prefix ;; 1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1096 | --exec=* | --exe=* | --ex=*) 1097 exec_prefix=$ac_optarg ;; 1098 1099 -gas | --gas | --ga | --g) 1100 # Obsolete; use --with-gas. 1101 with_gas=yes ;; 1102 1103 -help | --help | --hel | --he | -h) 1104 ac_init_help=long ;; 1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1106 ac_init_help=recursive ;; 1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1108 ac_init_help=short ;; 1109 1110 -host | --host | --hos | --ho) 1111 ac_prev=host_alias ;; 1112 -host=* | --host=* | --hos=* | --ho=*) 1113 host_alias=$ac_optarg ;; 1114 1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1116 ac_prev=htmldir ;; 1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1118 | --ht=*) 1119 htmldir=$ac_optarg ;; 1120 1121 -includedir | --includedir | --includedi | --included | --include \ 1122 | --includ | --inclu | --incl | --inc) 1123 ac_prev=includedir ;; 1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1125 | --includ=* | --inclu=* | --incl=* | --inc=*) 1126 includedir=$ac_optarg ;; 1127 1128 -infodir | --infodir | --infodi | --infod | --info | --inf) 1129 ac_prev=infodir ;; 1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1131 infodir=$ac_optarg ;; 1132 1133 -libdir | --libdir | --libdi | --libd) 1134 ac_prev=libdir ;; 1135 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1136 libdir=$ac_optarg ;; 1137 1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1139 | --libexe | --libex | --libe) 1140 ac_prev=libexecdir ;; 1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1142 | --libexe=* | --libex=* | --libe=*) 1143 libexecdir=$ac_optarg ;; 1144 1145 -localedir | --localedir | --localedi | --localed | --locale) 1146 ac_prev=localedir ;; 1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1148 localedir=$ac_optarg ;; 1149 1150 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1151 | --localstate | --localstat | --localsta | --localst | --locals) 1152 ac_prev=localstatedir ;; 1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1155 localstatedir=$ac_optarg ;; 1156 1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1158 ac_prev=mandir ;; 1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1160 mandir=$ac_optarg ;; 1161 1162 -nfp | --nfp | --nf) 1163 # Obsolete; use --without-fp. 1164 with_fp=no ;; 1165 1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1167 | --no-cr | --no-c | -n) 1168 no_create=yes ;; 1169 1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1172 no_recursion=yes ;; 1173 1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1176 | --oldin | --oldi | --old | --ol | --o) 1177 ac_prev=oldincludedir ;; 1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1181 oldincludedir=$ac_optarg ;; 1182 1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1184 ac_prev=prefix ;; 1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1186 prefix=$ac_optarg ;; 1187 1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1189 | --program-pre | --program-pr | --program-p) 1190 ac_prev=program_prefix ;; 1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1193 program_prefix=$ac_optarg ;; 1194 1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1196 | --program-suf | --program-su | --program-s) 1197 ac_prev=program_suffix ;; 1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1200 program_suffix=$ac_optarg ;; 1201 1202 -program-transform-name | --program-transform-name \ 1203 | --program-transform-nam | --program-transform-na \ 1204 | --program-transform-n | --program-transform- \ 1205 | --program-transform | --program-transfor \ 1206 | --program-transfo | --program-transf \ 1207 | --program-trans | --program-tran \ 1208 | --progr-tra | --program-tr | --program-t) 1209 ac_prev=program_transform_name ;; 1210 -program-transform-name=* | --program-transform-name=* \ 1211 | --program-transform-nam=* | --program-transform-na=* \ 1212 | --program-transform-n=* | --program-transform-=* \ 1213 | --program-transform=* | --program-transfor=* \ 1214 | --program-transfo=* | --program-transf=* \ 1215 | --program-trans=* | --program-tran=* \ 1216 | --progr-tra=* | --program-tr=* | --program-t=*) 1217 program_transform_name=$ac_optarg ;; 1218 1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1220 ac_prev=pdfdir ;; 1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1222 pdfdir=$ac_optarg ;; 1223 1224 -psdir | --psdir | --psdi | --psd | --ps) 1225 ac_prev=psdir ;; 1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1227 psdir=$ac_optarg ;; 1228 1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1230 | -silent | --silent | --silen | --sile | --sil) 1231 silent=yes ;; 1232 1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1234 ac_prev=sbindir ;; 1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1236 | --sbi=* | --sb=*) 1237 sbindir=$ac_optarg ;; 1238 1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1241 | --sharedst | --shareds | --shared | --share | --shar \ 1242 | --sha | --sh) 1243 ac_prev=sharedstatedir ;; 1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1247 | --sha=* | --sh=*) 1248 sharedstatedir=$ac_optarg ;; 1249 1250 -site | --site | --sit) 1251 ac_prev=site ;; 1252 -site=* | --site=* | --sit=*) 1253 site=$ac_optarg ;; 1254 1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1256 ac_prev=srcdir ;; 1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1258 srcdir=$ac_optarg ;; 1259 1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1261 | --syscon | --sysco | --sysc | --sys | --sy) 1262 ac_prev=sysconfdir ;; 1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1265 sysconfdir=$ac_optarg ;; 1266 1267 -target | --target | --targe | --targ | --tar | --ta | --t) 1268 ac_prev=target_alias ;; 1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1270 target_alias=$ac_optarg ;; 1271 1272 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1273 verbose=yes ;; 1274 1275 -version | --version | --versio | --versi | --vers | -V) 1276 ac_init_version=: ;; 1277 1278 -with-* | --with-*) 1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1282 { echo "$as_me: error: invalid package name: $ac_package" >&2 1283 { (exit 1); exit 1; }; } 1284 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1285 eval with_$ac_package=\$ac_optarg ;; 1286 1287 -without-* | --without-*) 1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 { echo "$as_me: error: invalid package name: $ac_package" >&2 1292 { (exit 1); exit 1; }; } 1293 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1294 eval with_$ac_package=no ;; 1295 1296 --x) 1297 # Obsolete; use --with-x. 1298 with_x=yes ;; 1299 1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1301 | --x-incl | --x-inc | --x-in | --x-i) 1302 ac_prev=x_includes ;; 1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1305 x_includes=$ac_optarg ;; 1306 1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1309 ac_prev=x_libraries ;; 1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1312 x_libraries=$ac_optarg ;; 1313 1314 -*) { echo "$as_me: error: unrecognized option: $ac_option 1315 Try \`$0 --help' for more information." >&2 1316 { (exit 1); exit 1; }; } 1317 ;; 1318 1319 *=*) 1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1321 # Reject names that are not valid shell variable names. 1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1324 { (exit 1); exit 1; }; } 1325 eval $ac_envvar=\$ac_optarg 1326 export $ac_envvar ;; 1327 1328 *) 1329 # FIXME: should be removed in autoconf 3.0. 1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1334 ;; 1335 1336 esac 1337 done 1338 1339 if test -n "$ac_prev"; then 1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1341 { echo "$as_me: error: missing argument to $ac_option" >&2 1342 { (exit 1); exit 1; }; } 1343 fi 1344 1345 # Be sure to have absolute directory names. 1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1347 datadir sysconfdir sharedstatedir localstatedir includedir \ 1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1349 libdir localedir mandir 1350 do 1351 eval ac_val=\$$ac_var 1352 case $ac_val in 1353 [\\/$]* | ?:[\\/]* ) continue;; 1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1355 esac 1356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1357 { (exit 1); exit 1; }; } 1358 done 1359 1360 # There might be people who depend on the old broken behavior: `$host' 1361 # used to hold the argument of --host etc. 1362 # FIXME: To remove some day. 1363 build=$build_alias 1364 host=$host_alias 1365 target=$target_alias 1366 1367 # FIXME: To remove some day. 1368 if test "x$host_alias" != x; then 1369 if test "x$build_alias" = x; then 1370 cross_compiling=maybe 1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1372 If a cross compiler is detected then cross compile mode will be used." >&2 1373 elif test "x$build_alias" != "x$host_alias"; then 1374 cross_compiling=yes 1375 fi 1376 fi 1377 1378 ac_tool_prefix= 1379 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1380 1381 test "$silent" = yes && exec 6>/dev/null 1382 1383 1384 ac_pwd=`pwd` && test -n "$ac_pwd" && 1385 ac_ls_di=`ls -di .` && 1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1387 { echo "$as_me: error: Working directory cannot be determined" >&2 1388 { (exit 1); exit 1; }; } 1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1390 { echo "$as_me: error: pwd does not report name of working directory" >&2 1391 { (exit 1); exit 1; }; } 1392 1393 1394 # Find the source files, if location was not specified. 1395 if test -z "$srcdir"; then 1396 ac_srcdir_defaulted=yes 1397 # Try the directory containing this script, then the parent directory. 1398 ac_confdir=`$as_dirname -- "$0" || 1399 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1400 X"$0" : 'X\(//\)[^/]' \| \ 1401 X"$0" : 'X\(//\)$' \| \ 1402 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1403 echo X"$0" | 1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1405 s//\1/ 1406 q 1407 } 1408 /^X\(\/\/\)[^/].*/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\/\)$/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\).*/{ 1417 s//\1/ 1418 q 1419 } 1420 s/.*/./; q'` 1421 srcdir=$ac_confdir 1422 if test ! -r "$srcdir/$ac_unique_file"; then 1423 srcdir=.. 1424 fi 1425 else 1426 ac_srcdir_defaulted=no 1427 fi 1428 if test ! -r "$srcdir/$ac_unique_file"; then 1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1431 { (exit 1); exit 1; }; } 1432 fi 1433 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1434 ac_abs_confdir=`( 1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1436 { (exit 1); exit 1; }; } 1437 pwd)` 1438 # When building in place, set srcdir=. 1439 if test "$ac_abs_confdir" = "$ac_pwd"; then 1440 srcdir=. 1441 fi 1442 # Remove unnecessary trailing slashes from srcdir. 1443 # Double slashes in file names in object file debugging info 1444 # mess up M-x gdb in Emacs. 1445 case $srcdir in 1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1447 esac 1448 for ac_var in $ac_precious_vars; do 1449 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1450 eval ac_env_${ac_var}_value=\$${ac_var} 1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1452 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1453 done 1454 1455 # 1456 # Report the --help message. 1457 # 1458 if test "$ac_init_help" = "long"; then 1459 # Omit some internal or obsolete options to make the list less imposing. 1460 # This message is too long to be a string in the A/UX 3.1 sh. 1461 cat <<_ACEOF 1462 \`configure' configures libffi 3.0.6 to adapt to many kinds of systems. 1463 1464 Usage: $0 [OPTION]... [VAR=VALUE]... 1465 1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1467 VAR=VALUE. See below for descriptions of some of the useful variables. 1468 1469 Defaults for the options are specified in brackets. 1470 1471 Configuration: 1472 -h, --help display this help and exit 1473 --help=short display options specific to this package 1474 --help=recursive display the short help of all the included packages 1475 -V, --version display version information and exit 1476 -q, --quiet, --silent do not print \`checking...' messages 1477 --cache-file=FILE cache test results in FILE [disabled] 1478 -C, --config-cache alias for \`--cache-file=config.cache' 1479 -n, --no-create do not create output files 1480 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1481 1482 Installation directories: 1483 --prefix=PREFIX install architecture-independent files in PREFIX 1484 [$ac_default_prefix] 1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1486 [PREFIX] 1487 1488 By default, \`make install' will install all the files in 1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1491 for instance \`--prefix=\$HOME'. 1492 1493 For better control, use the options below. 1494 1495 Fine tuning of the installation directories: 1496 --bindir=DIR user executables [EPREFIX/bin] 1497 --sbindir=DIR system admin executables [EPREFIX/sbin] 1498 --libexecdir=DIR program executables [EPREFIX/libexec] 1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1502 --libdir=DIR object code libraries [EPREFIX/lib] 1503 --includedir=DIR C header files [PREFIX/include] 1504 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1507 --infodir=DIR info documentation [DATAROOTDIR/info] 1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1509 --mandir=DIR man documentation [DATAROOTDIR/man] 1510 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi] 1511 --htmldir=DIR html documentation [DOCDIR] 1512 --dvidir=DIR dvi documentation [DOCDIR] 1513 --pdfdir=DIR pdf documentation [DOCDIR] 1514 --psdir=DIR ps documentation [DOCDIR] 1515 _ACEOF 1516 1517 cat <<\_ACEOF 1518 1519 Program names: 1520 --program-prefix=PREFIX prepend PREFIX to installed program names 1521 --program-suffix=SUFFIX append SUFFIX to installed program names 1522 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1523 1524 System types: 1525 --build=BUILD configure for building on BUILD [guessed] 1526 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1527 --target=TARGET configure for building compilers for TARGET [HOST] 1528 _ACEOF 1529 fi 1530 1531 if test -n "$ac_init_help"; then 1532 case $ac_init_help in 1533 short | recursive ) echo "Configuration of libffi 3.0.6:";; 1534 esac 1535 cat <<\_ACEOF 1536 1537 Optional Features: 1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1540 --disable-dependency-tracking speeds up one-time build 1541 --enable-dependency-tracking do not reject slow dependency extractors 1542 --enable-shared[=PKGS] build shared libraries [default=yes] 1543 --enable-static[=PKGS] build static 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-maintainer-mode enable make rules and dependencies not useful 1548 (and sometimes confusing) to the casual installer 1549 --enable-debug debugging mode 1550 --disable-structs omit code for struct support 1551 --disable-raw-api make the raw api unavailable 1552 --enable-purify-safety purify-safe mode 1553 1554 Optional Packages: 1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1557 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1558 --with-pic try to use only PIC/non-PIC objects [default=use 1559 both] 1560 --with-tags[=TAGS] include additional configurations [automatic] 1561 1562 Some influential environment variables: 1563 CC C compiler command 1564 CFLAGS C compiler flags 1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1566 nonstandard directory <lib dir> 1567 LIBS libraries to pass to the linker, e.g. -l<library> 1568 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1569 you have headers in a nonstandard directory <include dir> 1570 CCAS assembler compiler command (defaults to CC) 1571 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1572 CPP C preprocessor 1573 CXX C++ compiler command 1574 CXXFLAGS C++ compiler flags 1575 CXXCPP C++ preprocessor 1576 F77 Fortran 77 compiler command 1577 FFLAGS Fortran 77 compiler flags 1578 1579 Use these variables to override the choices made by `configure' or to help 1580 it to find libraries and programs with nonstandard names/locations. 1581 1582 Report bugs to <http://gcc.gnu.org/bugs.html>. 1583 _ACEOF 1584 ac_status=$? 1585 fi 1586 1587 if test "$ac_init_help" = "recursive"; then 1588 # If there are subdirs, report their specific --help. 1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1590 test -d "$ac_dir" || continue 1591 ac_builddir=. 1592 1593 case "$ac_dir" in 1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1595 *) 1596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1597 # A ".." for each directory in $ac_dir_suffix. 1598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1599 case $ac_top_builddir_sub in 1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1602 esac ;; 1603 esac 1604 ac_abs_top_builddir=$ac_pwd 1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1606 # for backward compatibility: 1607 ac_top_builddir=$ac_top_build_prefix 1608 1609 case $srcdir in 1610 .) # We are building in place. 1611 ac_srcdir=. 1612 ac_top_srcdir=$ac_top_builddir_sub 1613 ac_abs_top_srcdir=$ac_pwd ;; 1614 [\\/]* | ?:[\\/]* ) # Absolute name. 1615 ac_srcdir=$srcdir$ac_dir_suffix; 1616 ac_top_srcdir=$srcdir 1617 ac_abs_top_srcdir=$srcdir ;; 1618 *) # Relative name. 1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1620 ac_top_srcdir=$ac_top_build_prefix$srcdir 1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1622 esac 1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1624 1625 cd "$ac_dir" || { ac_status=$?; continue; } 1626 # Check for guested configure. 1627 if test -f "$ac_srcdir/configure.gnu"; then 1628 echo && 1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1630 elif test -f "$ac_srcdir/configure"; then 1631 echo && 1632 $SHELL "$ac_srcdir/configure" --help=recursive 1633 else 1634 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1635 fi || ac_status=$? 1636 cd "$ac_pwd" || { ac_status=$?; break; } 1637 done 1638 fi 1639 1640 test -n "$ac_init_help" && exit $ac_status 1641 if $ac_init_version; then 1642 cat <<\_ACEOF 1643 libffi configure 3.0.6 1644 generated by GNU Autoconf 2.61 1645 1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1647 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1648 This configure script is free software; the Free Software Foundation 1649 gives unlimited permission to copy, distribute and modify it. 1650 _ACEOF 1651 exit 1652 fi 1653 cat >config.log <<_ACEOF 1654 This file contains any messages produced by compilers while 1655 running configure, to aid debugging if configure makes a mistake. 1656 1657 It was created by libffi $as_me 3.0.6, which was 1658 generated by GNU Autoconf 2.61. Invocation command line was 1659 1660 $ $0 $@ 1661 1662 _ACEOF 1663 exec 5>>config.log 1664 { 1665 cat <<_ASUNAME 1666 ## --------- ## 1667 ## Platform. ## 1668 ## --------- ## 1669 1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1671 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1672 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1673 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1674 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1675 1676 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1677 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1678 1679 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1680 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1681 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1683 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1684 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1685 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1686 1687 _ASUNAME 1688 1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1690 for as_dir in $PATH 1691 do 1692 IFS=$as_save_IFS 1693 test -z "$as_dir" && as_dir=. 1694 echo "PATH: $as_dir" 1695 done 1696 IFS=$as_save_IFS 1697 1698 } >&5 1699 1700 cat >&5 <<_ACEOF 1701 1702 1703 ## ----------- ## 1704 ## Core tests. ## 1705 ## ----------- ## 1706 1707 _ACEOF 1708 1709 1710 # Keep a trace of the command line. 1711 # Strip out --no-create and --no-recursion so they do not pile up. 1712 # Strip out --silent because we don't want to record it for future runs. 1713 # Also quote any args containing shell meta-characters. 1714 # Make two passes to allow for proper duplicate-argument suppression. 1715 ac_configure_args= 1716 ac_configure_args0= 1717 ac_configure_args1= 1718 ac_must_keep_next=false 1719 for ac_pass in 1 2 1720 do 1721 for ac_arg 1722 do 1723 case $ac_arg in 1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1726 | -silent | --silent | --silen | --sile | --sil) 1727 continue ;; 1728 *\'*) 1729 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1730 esac 1731 case $ac_pass in 1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1733 2) 1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1735 if test $ac_must_keep_next = true; then 1736 ac_must_keep_next=false # Got value, back to normal. 1737 else 1738 case $ac_arg in 1739 *=* | --config-cache | -C | -disable-* | --disable-* \ 1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1742 | -with-* | --with-* | -without-* | --without-* | --x) 1743 case "$ac_configure_args0 " in 1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1745 esac 1746 ;; 1747 -* ) ac_must_keep_next=true ;; 1748 esac 1749 fi 1750 ac_configure_args="$ac_configure_args '$ac_arg'" 1751 ;; 1752 esac 1753 done 1754 done 1755 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1756 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1757 1758 # When interrupted or exit'd, cleanup temporary files, and complete 1759 # config.log. We remove comments because anyway the quotes in there 1760 # would cause problems or look ugly. 1761 # WARNING: Use '\'' to represent an apostrophe within the trap. 1762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1763 trap 'exit_status=$? 1764 # Save into config.log some information that might help in debugging. 1765 { 1766 echo 1767 1768 cat <<\_ASBOX 1769 ## ---------------- ## 1770 ## Cache variables. ## 1771 ## ---------------- ## 1772 _ASBOX 1773 echo 1774 # The following way of writing the cache mishandles newlines in values, 1775 ( 1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1777 eval ac_val=\$$ac_var 1778 case $ac_val in #( 1779 *${as_nl}*) 1780 case $ac_var in #( 1781 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1783 esac 1784 case $ac_var in #( 1785 _ | IFS | as_nl) ;; #( 1786 *) $as_unset $ac_var ;; 1787 esac ;; 1788 esac 1789 done 1790 (set) 2>&1 | 1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1792 *${as_nl}ac_space=\ *) 1793 sed -n \ 1794 "s/'\''/'\''\\\\'\'''\''/g; 1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1796 ;; #( 1797 *) 1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1799 ;; 1800 esac | 1801 sort 1802 ) 1803 echo 1804 1805 cat <<\_ASBOX 1806 ## ----------------- ## 1807 ## Output variables. ## 1808 ## ----------------- ## 1809 _ASBOX 1810 echo 1811 for ac_var in $ac_subst_vars 1812 do 1813 eval ac_val=\$$ac_var 1814 case $ac_val in 1815 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1816 esac 1817 echo "$ac_var='\''$ac_val'\''" 1818 done | sort 1819 echo 1820 1821 if test -n "$ac_subst_files"; then 1822 cat <<\_ASBOX 1823 ## ------------------- ## 1824 ## File substitutions. ## 1825 ## ------------------- ## 1826 _ASBOX 1827 echo 1828 for ac_var in $ac_subst_files 1829 do 1830 eval ac_val=\$$ac_var 1831 case $ac_val in 1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1833 esac 1834 echo "$ac_var='\''$ac_val'\''" 1835 done | sort 1836 echo 1837 fi 1838 1839 if test -s confdefs.h; then 1840 cat <<\_ASBOX 1841 ## ----------- ## 1842 ## confdefs.h. ## 1843 ## ----------- ## 1844 _ASBOX 1845 echo 1846 cat confdefs.h 1847 echo 1848 fi 1849 test "$ac_signal" != 0 && 1850 echo "$as_me: caught signal $ac_signal" 1851 echo "$as_me: exit $exit_status" 1852 } >&5 1853 rm -f core *.core core.conftest.* && 1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1855 exit $exit_status 1856 ' 0 1857 for ac_signal in 1 2 13 15; do 1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1859 done 1860 ac_signal=0 1861 1862 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1863 rm -f -r conftest* confdefs.h 1864 1865 # Predefined preprocessor variables. 1866 1867 cat >>confdefs.h <<_ACEOF 1868 #define PACKAGE_NAME "$PACKAGE_NAME" 1869 _ACEOF 1870 1871 1872 cat >>confdefs.h <<_ACEOF 1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1874 _ACEOF 1875 1876 1877 cat >>confdefs.h <<_ACEOF 1878 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1879 _ACEOF 1880 1881 1882 cat >>confdefs.h <<_ACEOF 1883 #define PACKAGE_STRING "$PACKAGE_STRING" 1884 _ACEOF 1885 1886 1887 cat >>confdefs.h <<_ACEOF 1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1889 _ACEOF 1890 1891 1892 # Let the site file select an alternate cache file if it wants to. 1893 # Prefer explicitly selected file to automatically selected ones. 1894 if test -n "$CONFIG_SITE"; then 1895 set x "$CONFIG_SITE" 1896 elif test "x$prefix" != xNONE; then 1897 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1898 else 1899 set x "$ac_default_prefix/share/config.site" \ 1900 "$ac_default_prefix/etc/config.site" 1901 fi 1902 shift 1903 for ac_site_file 1904 do 1905 if test -r "$ac_site_file"; then 1906 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1907 echo "$as_me: loading site script $ac_site_file" >&6;} 1908 sed 's/^/| /' "$ac_site_file" >&5 1909 . "$ac_site_file" 1910 fi 1911 done 1912 1913 if test -r "$cache_file"; then 1914 # Some versions of bash will fail to source /dev/null (special 1915 # files actually), so we avoid doing that. 1916 if test -f "$cache_file"; then 1917 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1918 echo "$as_me: loading cache $cache_file" >&6;} 1919 case $cache_file in 1920 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1921 *) . "./$cache_file";; 1922 esac 1923 fi 1924 else 1925 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1926 echo "$as_me: creating cache $cache_file" >&6;} 1927 >$cache_file 1928 fi 1929 1930 # Check that the precious variables saved in the cache have kept the same 1931 # value. 1932 ac_cache_corrupted=false 1933 for ac_var in $ac_precious_vars; do 1934 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1935 eval ac_new_set=\$ac_env_${ac_var}_set 1936 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1937 eval ac_new_val=\$ac_env_${ac_var}_value 1938 case $ac_old_set,$ac_new_set in 1939 set,) 1940 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1941 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1942 ac_cache_corrupted=: ;; 1943 ,set) 1944 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1945 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1946 ac_cache_corrupted=: ;; 1947 ,);; 1948 *) 1949 if test "x$ac_old_val" != "x$ac_new_val"; then 1950 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1951 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1952 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1953 echo "$as_me: former value: $ac_old_val" >&2;} 1954 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1955 echo "$as_me: current value: $ac_new_val" >&2;} 1956 ac_cache_corrupted=: 1957 fi;; 1958 esac 1959 # Pass precious variables to config.status. 1960 if test "$ac_new_set" = set; then 1961 case $ac_new_val in 1962 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1963 *) ac_arg=$ac_var=$ac_new_val ;; 1964 esac 1965 case " $ac_configure_args " in 1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1968 esac 1969 fi 1970 done 1971 if $ac_cache_corrupted; then 1972 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1973 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1974 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1975 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1976 { (exit 1); exit 1; }; } 1977 fi 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 ac_ext=c 2004 ac_cpp='$CPP $CPPFLAGS' 2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2008 2009 2010 ac_config_headers="$ac_config_headers fficonfig.h" 2011 2012 2013 ac_aux_dir= 2014 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2015 if test -f "$ac_dir/install-sh"; then 2016 ac_aux_dir=$ac_dir 2017 ac_install_sh="$ac_aux_dir/install-sh -c" 2018 break 2019 elif test -f "$ac_dir/install.sh"; then 2020 ac_aux_dir=$ac_dir 2021 ac_install_sh="$ac_aux_dir/install.sh -c" 2022 break 2023 elif test -f "$ac_dir/shtool"; then 2024 ac_aux_dir=$ac_dir 2025 ac_install_sh="$ac_aux_dir/shtool install -c" 2026 break 2027 fi 2028 done 2029 if test -z "$ac_aux_dir"; then 2030 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2031 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2032 { (exit 1); exit 1; }; } 2033 fi 2034 2035 # These three variables are undocumented and unsupported, 2036 # and are intended to be withdrawn in a future Autoconf release. 2037 # They can cause serious problems if a builder's source tree is in a directory 2038 # whose full name contains unusual characters. 2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2042 2043 2044 # Make sure we can run config.sub. 2045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2046 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2047 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2048 { (exit 1); exit 1; }; } 2049 2050 { echo "$as_me:$LINENO: checking build system type" >&5 2051 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2052 if test "${ac_cv_build+set}" = set; then 2053 echo $ECHO_N "(cached) $ECHO_C" >&6 2054 else 2055 ac_build_alias=$build_alias 2056 test "x$ac_build_alias" = x && 2057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2058 test "x$ac_build_alias" = x && 2059 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2060 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2061 { (exit 1); exit 1; }; } 2062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2063 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2064 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2065 { (exit 1); exit 1; }; } 2066 2067 fi 2068 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2069 echo "${ECHO_T}$ac_cv_build" >&6; } 2070 case $ac_cv_build in 2071 *-*-*) ;; 2072 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2073 echo "$as_me: error: invalid value of canonical build" >&2;} 2074 { (exit 1); exit 1; }; };; 2075 esac 2076 build=$ac_cv_build 2077 ac_save_IFS=$IFS; IFS='-' 2078 set x $ac_cv_build 2079 shift 2080 build_cpu=$1 2081 build_vendor=$2 2082 shift; shift 2083 # Remember, the first character of IFS is used to create $*, 2084 # except with old shells: 2085 build_os=$* 2086 IFS=$ac_save_IFS 2087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2088 2089 2090 { echo "$as_me:$LINENO: checking host system type" >&5 2091 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2092 if test "${ac_cv_host+set}" = set; then 2093 echo $ECHO_N "(cached) $ECHO_C" >&6 2094 else 2095 if test "x$host_alias" = x; then 2096 ac_cv_host=$ac_cv_build 2097 else 2098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2099 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2100 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2101 { (exit 1); exit 1; }; } 2102 fi 2103 2104 fi 2105 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2106 echo "${ECHO_T}$ac_cv_host" >&6; } 2107 case $ac_cv_host in 2108 *-*-*) ;; 2109 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2110 echo "$as_me: error: invalid value of canonical host" >&2;} 2111 { (exit 1); exit 1; }; };; 2112 esac 2113 host=$ac_cv_host 2114 ac_save_IFS=$IFS; IFS='-' 2115 set x $ac_cv_host 2116 shift 2117 host_cpu=$1 2118 host_vendor=$2 2119 shift; shift 2120 # Remember, the first character of IFS is used to create $*, 2121 # except with old shells: 2122 host_os=$* 2123 IFS=$ac_save_IFS 2124 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2125 2126 2127 { echo "$as_me:$LINENO: checking target system type" >&5 2128 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2129 if test "${ac_cv_target+set}" = set; then 2130 echo $ECHO_N "(cached) $ECHO_C" >&6 2131 else 2132 if test "x$target_alias" = x; then 2133 ac_cv_target=$ac_cv_host 2134 else 2135 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2137 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2138 { (exit 1); exit 1; }; } 2139 fi 2140 2141 fi 2142 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2143 echo "${ECHO_T}$ac_cv_target" >&6; } 2144 case $ac_cv_target in 2145 *-*-*) ;; 2146 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2147 echo "$as_me: error: invalid value of canonical target" >&2;} 2148 { (exit 1); exit 1; }; };; 2149 esac 2150 target=$ac_cv_target 2151 ac_save_IFS=$IFS; IFS='-' 2152 set x $ac_cv_target 2153 shift 2154 target_cpu=$1 2155 target_vendor=$2 2156 shift; shift 2157 # Remember, the first character of IFS is used to create $*, 2158 # except with old shells: 2159 target_os=$* 2160 IFS=$ac_save_IFS 2161 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2162 2163 2164 # The aliases save the names the user supplied, while $host etc. 2165 # will get canonicalized. 2166 test -n "$target_alias" && 2167 test "$program_prefix$program_suffix$program_transform_name" = \ 2168 NONENONEs,x,x, && 2169 program_prefix=${target_alias}- 2170 target_alias=${target_alias-$host_alias} 2171 2172 . ${srcdir}/configure.host 2173 2174 am__api_version='1.10' 2175 2176 # Find a good install program. We prefer a C program (faster), 2177 # so one script is as good as another. But avoid the broken or 2178 # incompatible versions: 2179 # SysV /etc/install, /usr/sbin/install 2180 # SunOS /usr/etc/install 2181 # IRIX /sbin/install 2182 # AIX /bin/install 2183 # AmigaOS /C/install, which installs bootblocks on floppy discs 2184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2187 # OS/2's system install, which has a completely different semantic 2188 # ./install, which can be erroneously created by make from ./install.sh. 2189 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2190 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2191 if test -z "$INSTALL"; then 2192 if test "${ac_cv_path_install+set}" = set; then 2193 echo $ECHO_N "(cached) $ECHO_C" >&6 2194 else 2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2196 for as_dir in $PATH 2197 do 2198 IFS=$as_save_IFS 2199 test -z "$as_dir" && as_dir=. 2200 # Account for people who put trailing slashes in PATH elements. 2201 case $as_dir/ in 2202 ./ | .// | /cC/* | \ 2203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2204 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2205 /usr/ucb/* ) ;; 2206 *) 2207 # OSF1 and SCO ODT 3.0 have their own names for install. 2208 # Don't use installbsd from OSF since it installs stuff as root 2209 # by default. 2210 for ac_prog in ginstall scoinst install; do 2211 for ac_exec_ext in '' $ac_executable_extensions; do 2212 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2213 if test $ac_prog = install && 2214 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2215 # AIX install. It has an incompatible calling convention. 2216 : 2217 elif test $ac_prog = install && 2218 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2219 # program-specific install script used by HP pwplus--don't use. 2220 : 2221 else 2222 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2223 break 3 2224 fi 2225 fi 2226 done 2227 done 2228 ;; 2229 esac 2230 done 2231 IFS=$as_save_IFS 2232 2233 2234 fi 2235 if test "${ac_cv_path_install+set}" = set; then 2236 INSTALL=$ac_cv_path_install 2237 else 2238 # As a last resort, use the slow shell script. Don't cache a 2239 # value for INSTALL within a source directory, because that will 2240 # break other packages using the cache if that directory is 2241 # removed, or if the value is a relative name. 2242 INSTALL=$ac_install_sh 2243 fi 2244 fi 2245 { echo "$as_me:$LINENO: result: $INSTALL" >&5 2246 echo "${ECHO_T}$INSTALL" >&6; } 2247 2248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2249 # It thinks the first close brace ends the variable substitution. 2250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2251 2252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2253 2254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2255 2256 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2257 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2258 # Just in case 2259 sleep 1 2260 echo timestamp > conftest.file 2261 # Do `set' in a subshell so we don't clobber the current shell's 2262 # arguments. Must try -L first in case configure is actually a 2263 # symlink; some systems play weird games with the mod time of symlinks 2264 # (eg FreeBSD returns the mod time of the symlink's containing 2265 # directory). 2266 if ( 2267 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2268 if test "$*" = "X"; then 2269 # -L didn't work. 2270 set X `ls -t $srcdir/configure conftest.file` 2271 fi 2272 rm -f conftest.file 2273 if test "$*" != "X $srcdir/configure conftest.file" \ 2274 && test "$*" != "X conftest.file $srcdir/configure"; then 2275 2276 # If neither matched, then we have a broken ls. This can happen 2277 # if, for instance, CONFIG_SHELL is bash and it inherits a 2278 # broken ls alias from the environment. This has actually 2279 # happened. Such a system could not be considered "sane". 2280 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2281 alias in your environment" >&5 2282 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2283 alias in your environment" >&2;} 2284 { (exit 1); exit 1; }; } 2285 fi 2286 2287 test "$2" = conftest.file 2288 ) 2289 then 2290 # Ok. 2291 : 2292 else 2293 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2294 Check your system clock" >&5 2295 echo "$as_me: error: newly created file is older than distributed files! 2296 Check your system clock" >&2;} 2297 { (exit 1); exit 1; }; } 2298 fi 2299 { echo "$as_me:$LINENO: result: yes" >&5 2300 echo "${ECHO_T}yes" >&6; } 2301 test "$program_prefix" != NONE && 2302 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2303 # Use a double $ so make ignores it. 2304 test "$program_suffix" != NONE && 2305 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2306 # Double any \ or $. echo might interpret backslashes. 2307 # By default was `s,x,x', remove it if useless. 2308 cat <<\_ACEOF >conftest.sed 2309 s/[\\$]/&&/g;s/;s,x,x,$// 2310 _ACEOF 2311 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2312 rm -f conftest.sed 2313 2314 # expand $ac_aux_dir to an absolute path 2315 am_aux_dir=`cd $ac_aux_dir && pwd` 2316 2317 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2318 # Use eval to expand $SHELL 2319 if eval "$MISSING --run true"; then 2320 am_missing_run="$MISSING --run " 2321 else 2322 am_missing_run= 2323 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2324 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2325 fi 2326 2327 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2328 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2329 if test -z "$MKDIR_P"; then 2330 if test "${ac_cv_path_mkdir+set}" = set; then 2331 echo $ECHO_N "(cached) $ECHO_C" >&6 2332 else 2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2335 do 2336 IFS=$as_save_IFS 2337 test -z "$as_dir" && as_dir=. 2338 for ac_prog in mkdir gmkdir; do 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2341 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2342 'mkdir (GNU coreutils) '* | \ 2343 'mkdir (coreutils) '* | \ 2344 'mkdir (fileutils) '4.1*) 2345 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2346 break 3;; 2347 esac 2348 done 2349 done 2350 done 2351 IFS=$as_save_IFS 2352 2353 fi 2354 2355 if test "${ac_cv_path_mkdir+set}" = set; then 2356 MKDIR_P="$ac_cv_path_mkdir -p" 2357 else 2358 # As a last resort, use the slow shell script. Don't cache a 2359 # value for MKDIR_P within a source directory, because that will 2360 # break other packages using the cache if that directory is 2361 # removed, or if the value is a relative name. 2362 test -d ./--version && rmdir ./--version 2363 MKDIR_P="$ac_install_sh -d" 2364 fi 2365 fi 2366 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2367 echo "${ECHO_T}$MKDIR_P" >&6; } 2368 2369 mkdir_p="$MKDIR_P" 2370 case $mkdir_p in 2371 [\\/$]* | ?:[\\/]*) ;; 2372 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2373 esac 2374 2375 for ac_prog in gawk mawk nawk awk 2376 do 2377 # Extract the first word of "$ac_prog", so it can be a program name with args. 2378 set dummy $ac_prog; ac_word=$2 2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2381 if test "${ac_cv_prog_AWK+set}" = set; then 2382 echo $ECHO_N "(cached) $ECHO_C" >&6 2383 else 2384 if test -n "$AWK"; then 2385 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2386 else 2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2388 for as_dir in $PATH 2389 do 2390 IFS=$as_save_IFS 2391 test -z "$as_dir" && as_dir=. 2392 for ac_exec_ext in '' $ac_executable_extensions; do 2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2394 ac_cv_prog_AWK="$ac_prog" 2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2396 break 2 2397 fi 2398 done 2399 done 2400 IFS=$as_save_IFS 2401 2402 fi 2403 fi 2404 AWK=$ac_cv_prog_AWK 2405 if test -n "$AWK"; then 2406 { echo "$as_me:$LINENO: result: $AWK" >&5 2407 echo "${ECHO_T}$AWK" >&6; } 2408 else 2409 { echo "$as_me:$LINENO: result: no" >&5 2410 echo "${ECHO_T}no" >&6; } 2411 fi 2412 2413 2414 test -n "$AWK" && break 2415 done 2416 2417 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2418 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2419 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2420 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2421 echo $ECHO_N "(cached) $ECHO_C" >&6 2422 else 2423 cat >conftest.make <<\_ACEOF 2424 SHELL = /bin/sh 2425 all: 2426 @echo '@@@%%%=$(MAKE)=@@@%%%' 2427 _ACEOF 2428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2429 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2430 *@@@%%%=?*=@@@%%%*) 2431 eval ac_cv_prog_make_${ac_make}_set=yes;; 2432 *) 2433 eval ac_cv_prog_make_${ac_make}_set=no;; 2434 esac 2435 rm -f conftest.make 2436 fi 2437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2438 { echo "$as_me:$LINENO: result: yes" >&5 2439 echo "${ECHO_T}yes" >&6; } 2440 SET_MAKE= 2441 else 2442 { echo "$as_me:$LINENO: result: no" >&5 2443 echo "${ECHO_T}no" >&6; } 2444 SET_MAKE="MAKE=${MAKE-make}" 2445 fi 2446 2447 rm -rf .tst 2>/dev/null 2448 mkdir .tst 2>/dev/null 2449 if test -d .tst; then 2450 am__leading_dot=. 2451 else 2452 am__leading_dot=_ 2453 fi 2454 rmdir .tst 2>/dev/null 2455 2456 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2457 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2458 # is not polluted with repeated "-I." 2459 am__isrc=' -I$(srcdir)' 2460 # test to see if srcdir already configured 2461 if test -f $srcdir/config.status; then 2462 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2463 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2464 { (exit 1); exit 1; }; } 2465 fi 2466 fi 2467 2468 # test whether we have cygpath 2469 if test -z "$CYGPATH_W"; then 2470 if (cygpath --version) >/dev/null 2>/dev/null; then 2471 CYGPATH_W='cygpath -w' 2472 else 2473 CYGPATH_W=echo 2474 fi 2475 fi 2476 2477 2478 # Define the identity of the package. 2479 PACKAGE='libffi' 2480 VERSION='3.0.6' 2481 2482 2483 cat >>confdefs.h <<_ACEOF 2484 #define PACKAGE "$PACKAGE" 2485 _ACEOF 2486 2487 2488 cat >>confdefs.h <<_ACEOF 2489 #define VERSION "$VERSION" 2490 _ACEOF 2491 2492 # Some tools Automake needs. 2493 2494 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2495 2496 2497 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2498 2499 2500 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2501 2502 2503 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2504 2505 2506 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2507 2508 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2509 2510 # Installed binaries are usually stripped using `strip' when the user 2511 # run `make install-strip'. However `strip' might not be the right 2512 # tool to use in cross-compilation environments, therefore Automake 2513 # will honor the `STRIP' environment variable to overrule this program. 2514 if test "$cross_compiling" != no; then 2515 if test -n "$ac_tool_prefix"; then 2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2517 set dummy ${ac_tool_prefix}strip; ac_word=$2 2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2520 if test "${ac_cv_prog_STRIP+set}" = set; then 2521 echo $ECHO_N "(cached) $ECHO_C" >&6 2522 else 2523 if test -n "$STRIP"; then 2524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2525 else 2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2527 for as_dir in $PATH 2528 do 2529 IFS=$as_save_IFS 2530 test -z "$as_dir" && as_dir=. 2531 for ac_exec_ext in '' $ac_executable_extensions; do 2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2533 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2535 break 2 2536 fi 2537 done 2538 done 2539 IFS=$as_save_IFS 2540 2541 fi 2542 fi 2543 STRIP=$ac_cv_prog_STRIP 2544 if test -n "$STRIP"; then 2545 { echo "$as_me:$LINENO: result: $STRIP" >&5 2546 echo "${ECHO_T}$STRIP" >&6; } 2547 else 2548 { echo "$as_me:$LINENO: result: no" >&5 2549 echo "${ECHO_T}no" >&6; } 2550 fi 2551 2552 2553 fi 2554 if test -z "$ac_cv_prog_STRIP"; then 2555 ac_ct_STRIP=$STRIP 2556 # Extract the first word of "strip", so it can be a program name with args. 2557 set dummy strip; ac_word=$2 2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562 else 2563 if test -n "$ac_ct_STRIP"; then 2564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2565 else 2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567 for as_dir in $PATH 2568 do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_ac_ct_STRIP="strip" 2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577 done 2578 done 2579 IFS=$as_save_IFS 2580 2581 fi 2582 fi 2583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2584 if test -n "$ac_ct_STRIP"; then 2585 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2586 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2587 else 2588 { echo "$as_me:$LINENO: result: no" >&5 2589 echo "${ECHO_T}no" >&6; } 2590 fi 2591 2592 if test "x$ac_ct_STRIP" = x; then 2593 STRIP=":" 2594 else 2595 case $cross_compiling:$ac_tool_warned in 2596 yes:) 2597 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2598 whose name does not start with the host triplet. If you think this 2599 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2600 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2601 whose name does not start with the host triplet. If you think this 2602 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2603 ac_tool_warned=yes ;; 2604 esac 2605 STRIP=$ac_ct_STRIP 2606 fi 2607 else 2608 STRIP="$ac_cv_prog_STRIP" 2609 fi 2610 2611 fi 2612 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2613 2614 # We need awk for the "check" target. The system "awk" is bad on 2615 # some platforms. 2616 # Always define AMTAR for backward compatibility. 2617 2618 AMTAR=${AMTAR-"${am_missing_run}tar"} 2619 2620 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2621 2622 2623 2624 2625 2626 2627 # The same as in boehm-gc and libstdc++. Have to borrow it from there. 2628 # We must force CC to /not/ be precious variables; otherwise 2629 # the wrong, non-multilib-adjusted value will be used in multilibs. 2630 # As a side effect, we have to subst CFLAGS ourselves. 2631 2632 2633 2634 ac_ext=c 2635 ac_cpp='$CPP $CPPFLAGS' 2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2639 if test -n "$ac_tool_prefix"; then 2640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2641 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2644 if test "${ac_cv_prog_CC+set}" = set; then 2645 echo $ECHO_N "(cached) $ECHO_C" >&6 2646 else 2647 if test -n "$CC"; then 2648 ac_cv_prog_CC="$CC" # Let the user override the test. 2649 else 2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651 for as_dir in $PATH 2652 do 2653 IFS=$as_save_IFS 2654 test -z "$as_dir" && as_dir=. 2655 for ac_exec_ext in '' $ac_executable_extensions; do 2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2657 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2659 break 2 2660 fi 2661 done 2662 done 2663 IFS=$as_save_IFS 2664 2665 fi 2666 fi 2667 CC=$ac_cv_prog_CC 2668 if test -n "$CC"; then 2669 { echo "$as_me:$LINENO: result: $CC" >&5 2670 echo "${ECHO_T}$CC" >&6; } 2671 else 2672 { echo "$as_me:$LINENO: result: no" >&5 2673 echo "${ECHO_T}no" >&6; } 2674 fi 2675 2676 2677 fi 2678 if test -z "$ac_cv_prog_CC"; then 2679 ac_ct_CC=$CC 2680 # Extract the first word of "gcc", so it can be a program name with args. 2681 set dummy gcc; ac_word=$2 2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2685 echo $ECHO_N "(cached) $ECHO_C" >&6 2686 else 2687 if test -n "$ac_ct_CC"; then 2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2689 else 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691 for as_dir in $PATH 2692 do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_ac_ct_CC="gcc" 2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701 done 2702 done 2703 IFS=$as_save_IFS 2704 2705 fi 2706 fi 2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2708 if test -n "$ac_ct_CC"; then 2709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2710 echo "${ECHO_T}$ac_ct_CC" >&6; } 2711 else 2712 { echo "$as_me:$LINENO: result: no" >&5 2713 echo "${ECHO_T}no" >&6; } 2714 fi 2715 2716 if test "x$ac_ct_CC" = x; then 2717 CC="" 2718 else 2719 case $cross_compiling:$ac_tool_warned in 2720 yes:) 2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2722 whose name does not start with the host triplet. If you think this 2723 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2725 whose name does not start with the host triplet. If you think this 2726 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2727 ac_tool_warned=yes ;; 2728 esac 2729 CC=$ac_ct_CC 2730 fi 2731 else 2732 CC="$ac_cv_prog_CC" 2733 fi 2734 2735 if test -z "$CC"; then 2736 if test -n "$ac_tool_prefix"; then 2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2738 set dummy ${ac_tool_prefix}cc; ac_word=$2 2739 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2741 if test "${ac_cv_prog_CC+set}" = set; then 2742 echo $ECHO_N "(cached) $ECHO_C" >&6 2743 else 2744 if test -n "$CC"; then 2745 ac_cv_prog_CC="$CC" # Let the user override the test. 2746 else 2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748 for as_dir in $PATH 2749 do 2750 IFS=$as_save_IFS 2751 test -z "$as_dir" && as_dir=. 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2754 ac_cv_prog_CC="${ac_tool_prefix}cc" 2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2756 break 2 2757 fi 2758 done 2759 done 2760 IFS=$as_save_IFS 2761 2762 fi 2763 fi 2764 CC=$ac_cv_prog_CC 2765 if test -n "$CC"; then 2766 { echo "$as_me:$LINENO: result: $CC" >&5 2767 echo "${ECHO_T}$CC" >&6; } 2768 else 2769 { echo "$as_me:$LINENO: result: no" >&5 2770 echo "${ECHO_T}no" >&6; } 2771 fi 2772 2773 2774 fi 2775 fi 2776 if test -z "$CC"; then 2777 # Extract the first word of "cc", so it can be a program name with args. 2778 set dummy cc; ac_word=$2 2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2781 if test "${ac_cv_prog_CC+set}" = set; then 2782 echo $ECHO_N "(cached) $ECHO_C" >&6 2783 else 2784 if test -n "$CC"; then 2785 ac_cv_prog_CC="$CC" # Let the user override the test. 2786 else 2787 ac_prog_rejected=no 2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2789 for as_dir in $PATH 2790 do 2791 IFS=$as_save_IFS 2792 test -z "$as_dir" && as_dir=. 2793 for ac_exec_ext in '' $ac_executable_extensions; do 2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2796 ac_prog_rejected=yes 2797 continue 2798 fi 2799 ac_cv_prog_CC="cc" 2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803 done 2804 done 2805 IFS=$as_save_IFS 2806 2807 if test $ac_prog_rejected = yes; then 2808 # We found a bogon in the path, so make sure we never use it. 2809 set dummy $ac_cv_prog_CC 2810 shift 2811 if test $# != 0; then 2812 # We chose a different compiler from the bogus one. 2813 # However, it has the same basename, so the bogon will be chosen 2814 # first if we set CC to just the basename; use the full file name. 2815 shift 2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2817 fi 2818 fi 2819 fi 2820 fi 2821 CC=$ac_cv_prog_CC 2822 if test -n "$CC"; then 2823 { echo "$as_me:$LINENO: result: $CC" >&5 2824 echo "${ECHO_T}$CC" >&6; } 2825 else 2826 { echo "$as_me:$LINENO: result: no" >&5 2827 echo "${ECHO_T}no" >&6; } 2828 fi 2829 2830 2831 fi 2832 if test -z "$CC"; then 2833 if test -n "$ac_tool_prefix"; then 2834 for ac_prog in cl.exe 2835 do 2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2840 if test "${ac_cv_prog_CC+set}" = set; then 2841 echo $ECHO_N "(cached) $ECHO_C" >&6 2842 else 2843 if test -n "$CC"; then 2844 ac_cv_prog_CC="$CC" # Let the user override the test. 2845 else 2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2847 for as_dir in $PATH 2848 do 2849 IFS=$as_save_IFS 2850 test -z "$as_dir" && as_dir=. 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2855 break 2 2856 fi 2857 done 2858 done 2859 IFS=$as_save_IFS 2860 2861 fi 2862 fi 2863 CC=$ac_cv_prog_CC 2864 if test -n "$CC"; then 2865 { echo "$as_me:$LINENO: result: $CC" >&5 2866 echo "${ECHO_T}$CC" >&6; } 2867 else 2868 { echo "$as_me:$LINENO: result: no" >&5 2869 echo "${ECHO_T}no" >&6; } 2870 fi 2871 2872 2873 test -n "$CC" && break 2874 done 2875 fi 2876 if test -z "$CC"; then 2877 ac_ct_CC=$CC 2878 for ac_prog in cl.exe 2879 do 2880 # Extract the first word of "$ac_prog", so it can be a program name with args. 2881 set dummy $ac_prog; ac_word=$2 2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2885 echo $ECHO_N "(cached) $ECHO_C" >&6 2886 else 2887 if test -n "$ac_ct_CC"; then 2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2889 else 2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891 for as_dir in $PATH 2892 do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2897 ac_cv_prog_ac_ct_CC="$ac_prog" 2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901 done 2902 done 2903 IFS=$as_save_IFS 2904 2905 fi 2906 fi 2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2908 if test -n "$ac_ct_CC"; then 2909 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2910 echo "${ECHO_T}$ac_ct_CC" >&6; } 2911 else 2912 { echo "$as_me:$LINENO: result: no" >&5 2913 echo "${ECHO_T}no" >&6; } 2914 fi 2915 2916 2917 test -n "$ac_ct_CC" && break 2918 done 2919 2920 if test "x$ac_ct_CC" = x; then 2921 CC="" 2922 else 2923 case $cross_compiling:$ac_tool_warned in 2924 yes:) 2925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2926 whose name does not start with the host triplet. If you think this 2927 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2929 whose name does not start with the host triplet. If you think this 2930 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2931 ac_tool_warned=yes ;; 2932 esac 2933 CC=$ac_ct_CC 2934 fi 2935 fi 2936 2937 fi 2938 2939 2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2941 See \`config.log' for more details." >&5 2942 echo "$as_me: error: no acceptable C compiler found in \$PATH 2943 See \`config.log' for more details." >&2;} 2944 { (exit 1); exit 1; }; } 2945 2946 # Provide some information about the compiler. 2947 echo "$as_me:$LINENO: checking for C compiler version" >&5 2948 ac_compiler=`set X $ac_compile; echo $2` 2949 { (ac_try="$ac_compiler --version >&5" 2950 case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953 esac 2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2955 (eval "$ac_compiler --version >&5") 2>&5 2956 ac_status=$? 2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); } 2959 { (ac_try="$ac_compiler -v >&5" 2960 case "(($ac_try" in 2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2962 *) ac_try_echo=$ac_try;; 2963 esac 2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2965 (eval "$ac_compiler -v >&5") 2>&5 2966 ac_status=$? 2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2968 (exit $ac_status); } 2969 { (ac_try="$ac_compiler -V >&5" 2970 case "(($ac_try" in 2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2972 *) ac_try_echo=$ac_try;; 2973 esac 2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2975 (eval "$ac_compiler -V >&5") 2>&5 2976 ac_status=$? 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } 2979 2980 cat >conftest.$ac_ext <<_ACEOF 2981 /* confdefs.h. */ 2982 _ACEOF 2983 cat confdefs.h >>conftest.$ac_ext 2984 cat >>conftest.$ac_ext <<_ACEOF 2985 /* end confdefs.h. */ 2986 2987 int 2988 main () 2989 { 2990 2991 ; 2992 return 0; 2993 } 2994 _ACEOF 2995 ac_clean_files_save=$ac_clean_files 2996 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2997 # Try to create an executable without -o first, disregard a.out. 2998 # It will help us diagnose broken compilers, and finding out an intuition 2999 # of exeext. 3000 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3001 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3002 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3003 # 3004 # List of possible output files, starting from the most likely. 3005 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3006 # only as a last resort. b.out is created by i960 compilers. 3007 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3008 # 3009 # The IRIX 6 linker writes into existing files which may not be 3010 # executable, retaining their permissions. Remove them first so a 3011 # subsequent execution test works. 3012 ac_rmfiles= 3013 for ac_file in $ac_files 3014 do 3015 case $ac_file in 3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3017 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3018 esac 3019 done 3020 rm -f $ac_rmfiles 3021 3022 if { (ac_try="$ac_link_default" 3023 case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026 esac 3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3028 (eval "$ac_link_default") 2>&5 3029 ac_status=$? 3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3031 (exit $ac_status); }; then 3032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3034 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3035 # so that the user can short-circuit this test for compilers unknown to 3036 # Autoconf. 3037 for ac_file in $ac_files '' 3038 do 3039 test -f "$ac_file" || continue 3040 case $ac_file in 3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3042 ;; 3043 [ab].out ) 3044 # We found the default executable, but exeext='' is most 3045 # certainly right. 3046 break;; 3047 *.* ) 3048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3049 then :; else 3050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3051 fi 3052 # We set ac_cv_exeext here because the later test for it is not 3053 # safe: cross compilers may not add the suffix if given an `-o' 3054 # argument, so we may need to know it at that point already. 3055 # Even if this section looks crufty: it has the advantage of 3056 # actually working. 3057 break;; 3058 * ) 3059 break;; 3060 esac 3061 done 3062 test "$ac_cv_exeext" = no && ac_cv_exeext= 3063 3064 else 3065 ac_file='' 3066 fi 3067 3068 { echo "$as_me:$LINENO: result: $ac_file" >&5 3069 echo "${ECHO_T}$ac_file" >&6; } 3070 if test -z "$ac_file"; then 3071 echo "$as_me: failed program was:" >&5 3072 sed 's/^/| /' conftest.$ac_ext >&5 3073 3074 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 3075 See \`config.log' for more details." >&5 3076 echo "$as_me: error: C compiler cannot create executables 3077 See \`config.log' for more details." >&2;} 3078 { (exit 77); exit 77; }; } 3079 fi 3080 3081 ac_exeext=$ac_cv_exeext 3082 3083 # Check that the compiler produces executables we can run. If not, either 3084 # the compiler is broken, or we cross compile. 3085 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3088 # If not cross compiling, check that we can run a simple program. 3089 if test "$cross_compiling" != yes; then 3090 if { ac_try='./$ac_file' 3091 { (case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094 esac 3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_try") 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; }; then 3100 cross_compiling=no 3101 else 3102 if test "$cross_compiling" = maybe; then 3103 cross_compiling=yes 3104 else 3105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3106 If you meant to cross compile, use \`--host'. 3107 See \`config.log' for more details." >&5 3108 echo "$as_me: error: cannot run C compiled programs. 3109 If you meant to cross compile, use \`--host'. 3110 See \`config.log' for more details." >&2;} 3111 { (exit 1); exit 1; }; } 3112 fi 3113 fi 3114 fi 3115 { echo "$as_me:$LINENO: result: yes" >&5 3116 echo "${ECHO_T}yes" >&6; } 3117 3118 rm -f a.out a.exe conftest$ac_cv_exeext b.out 3119 ac_clean_files=$ac_clean_files_save 3120 # Check that the compiler produces executables we can run. If not, either 3121 # the compiler is broken, or we cross compile. 3122 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3124 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 3125 echo "${ECHO_T}$cross_compiling" >&6; } 3126 3127 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 3128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3129 if { (ac_try="$ac_link" 3130 case "(($ac_try" in 3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3132 *) ac_try_echo=$ac_try;; 3133 esac 3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3135 (eval "$ac_link") 2>&5 3136 ac_status=$? 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); }; then 3139 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3140 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3141 # work properly (i.e., refer to `conftest.exe'), while it won't with 3142 # `rm'. 3143 for ac_file in conftest.exe conftest conftest.*; do 3144 test -f "$ac_file" || continue 3145 case $ac_file in 3146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3148 break;; 3149 * ) break;; 3150 esac 3151 done 3152 else 3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3154 See \`config.log' for more details." >&5 3155 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3156 See \`config.log' for more details." >&2;} 3157 { (exit 1); exit 1; }; } 3158 fi 3159 3160 rm -f conftest$ac_cv_exeext 3161 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3162 echo "${ECHO_T}$ac_cv_exeext" >&6; } 3163 3164 rm -f conftest.$ac_ext 3165 EXEEXT=$ac_cv_exeext 3166 ac_exeext=$EXEEXT 3167 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 3168 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3169 if test "${ac_cv_objext+set}" = set; then 3170 echo $ECHO_N "(cached) $ECHO_C" >&6 3171 else 3172 cat >conftest.$ac_ext <<_ACEOF 3173 /* confdefs.h. */ 3174 _ACEOF 3175 cat confdefs.h >>conftest.$ac_ext 3176 cat >>conftest.$ac_ext <<_ACEOF 3177 /* end confdefs.h. */ 3178 3179 int 3180 main () 3181 { 3182 3183 ; 3184 return 0; 3185 } 3186 _ACEOF 3187 rm -f conftest.o conftest.obj 3188 if { (ac_try="$ac_compile" 3189 case "(($ac_try" in 3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191 *) ac_try_echo=$ac_try;; 3192 esac 3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3194 (eval "$ac_compile") 2>&5 3195 ac_status=$? 3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 (exit $ac_status); }; then 3198 for ac_file in conftest.o conftest.obj conftest.*; do 3199 test -f "$ac_file" || continue; 3200 case $ac_file in 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3203 break;; 3204 esac 3205 done 3206 else 3207 echo "$as_me: failed program was:" >&5 3208 sed 's/^/| /' conftest.$ac_ext >&5 3209 3210 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3211 See \`config.log' for more details." >&5 3212 echo "$as_me: error: cannot compute suffix of object files: cannot compile 3213 See \`config.log' for more details." >&2;} 3214 { (exit 1); exit 1; }; } 3215 fi 3216 3217 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3218 fi 3219 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3220 echo "${ECHO_T}$ac_cv_objext" >&6; } 3221 OBJEXT=$ac_cv_objext 3222 ac_objext=$OBJEXT 3223 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3224 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3225 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3226 echo $ECHO_N "(cached) $ECHO_C" >&6 3227 else 3228 cat >conftest.$ac_ext <<_ACEOF 3229 /* confdefs.h. */ 3230 _ACEOF 3231 cat confdefs.h >>conftest.$ac_ext 3232 cat >>conftest.$ac_ext <<_ACEOF 3233 /* end confdefs.h. */ 3234 3235 int 3236 main () 3237 { 3238 #ifndef __GNUC__ 3239 choke me 3240 #endif 3241 3242 ; 3243 return 0; 3244 } 3245 _ACEOF 3246 rm -f conftest.$ac_objext 3247 if { (ac_try="$ac_compile" 3248 case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251 esac 3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3253 (eval "$ac_compile") 2>conftest.er1 3254 ac_status=$? 3255 grep -v '^ *+' conftest.er1 >conftest.err 3256 rm -f conftest.er1 3257 cat conftest.err >&5 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); } && { 3260 test -z "$ac_c_werror_flag" || 3261 test ! -s conftest.err 3262 } && test -s conftest.$ac_objext; then 3263 ac_compiler_gnu=yes 3264 else 3265 echo "$as_me: failed program was:" >&5 3266 sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 ac_compiler_gnu=no 3269 fi 3270 3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3272 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3273 3274 fi 3275 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3277 GCC=`test $ac_compiler_gnu = yes && echo yes` 3278 ac_test_CFLAGS=${CFLAGS+set} 3279 ac_save_CFLAGS=$CFLAGS 3280 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3281 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3282 if test "${ac_cv_prog_cc_g+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284 else 3285 ac_save_c_werror_flag=$ac_c_werror_flag 3286 ac_c_werror_flag=yes 3287 ac_cv_prog_cc_g=no 3288 CFLAGS="-g" 3289 cat >conftest.$ac_ext <<_ACEOF 3290 /* confdefs.h. */ 3291 _ACEOF 3292 cat confdefs.h >>conftest.$ac_ext 3293 cat >>conftest.$ac_ext <<_ACEOF 3294 /* end confdefs.h. */ 3295 3296 int 3297 main () 3298 { 3299 3300 ; 3301 return 0; 3302 } 3303 _ACEOF 3304 rm -f conftest.$ac_objext 3305 if { (ac_try="$ac_compile" 3306 case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309 esac 3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3311 (eval "$ac_compile") 2>conftest.er1 3312 ac_status=$? 3313 grep -v '^ *+' conftest.er1 >conftest.err 3314 rm -f conftest.er1 3315 cat conftest.err >&5 3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3317 (exit $ac_status); } && { 3318 test -z "$ac_c_werror_flag" || 3319 test ! -s conftest.err 3320 } && test -s conftest.$ac_objext; then 3321 ac_cv_prog_cc_g=yes 3322 else 3323 echo "$as_me: failed program was:" >&5 3324 sed 's/^/| /' conftest.$ac_ext >&5 3325 3326 CFLAGS="" 3327 cat >conftest.$ac_ext <<_ACEOF 3328 /* confdefs.h. */ 3329 _ACEOF 3330 cat confdefs.h >>conftest.$ac_ext 3331 cat >>conftest.$ac_ext <<_ACEOF 3332 /* end confdefs.h. */ 3333 3334 int 3335 main () 3336 { 3337 3338 ; 3339 return 0; 3340 } 3341 _ACEOF 3342 rm -f conftest.$ac_objext 3343 if { (ac_try="$ac_compile" 3344 case "(($ac_try" in 3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3346 *) ac_try_echo=$ac_try;; 3347 esac 3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3349 (eval "$ac_compile") 2>conftest.er1 3350 ac_status=$? 3351 grep -v '^ *+' conftest.er1 >conftest.err 3352 rm -f conftest.er1 3353 cat conftest.err >&5 3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3355 (exit $ac_status); } && { 3356 test -z "$ac_c_werror_flag" || 3357 test ! -s conftest.err 3358 } && test -s conftest.$ac_objext; then 3359 : 3360 else 3361 echo "$as_me: failed program was:" >&5 3362 sed 's/^/| /' conftest.$ac_ext >&5 3363 3364 ac_c_werror_flag=$ac_save_c_werror_flag 3365 CFLAGS="-g" 3366 cat >conftest.$ac_ext <<_ACEOF 3367 /* confdefs.h. */ 3368 _ACEOF 3369 cat confdefs.h >>conftest.$ac_ext 3370 cat >>conftest.$ac_ext <<_ACEOF 3371 /* end confdefs.h. */ 3372 3373 int 3374 main () 3375 { 3376 3377 ; 3378 return 0; 3379 } 3380 _ACEOF 3381 rm -f conftest.$ac_objext 3382 if { (ac_try="$ac_compile" 3383 case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386 esac 3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3388 (eval "$ac_compile") 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } && { 3395 test -z "$ac_c_werror_flag" || 3396 test ! -s conftest.err 3397 } && test -s conftest.$ac_objext; then 3398 ac_cv_prog_cc_g=yes 3399 else 3400 echo "$as_me: failed program was:" >&5 3401 sed 's/^/| /' conftest.$ac_ext >&5 3402 3403 3404 fi 3405 3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3407 fi 3408 3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3410 fi 3411 3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3413 ac_c_werror_flag=$ac_save_c_werror_flag 3414 fi 3415 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3417 if test "$ac_test_CFLAGS" = set; then 3418 CFLAGS=$ac_save_CFLAGS 3419 elif test $ac_cv_prog_cc_g = yes; then 3420 if test "$GCC" = yes; then 3421 CFLAGS="-g -O2" 3422 else 3423 CFLAGS="-g" 3424 fi 3425 else 3426 if test "$GCC" = yes; then 3427 CFLAGS="-O2" 3428 else 3429 CFLAGS= 3430 fi 3431 fi 3432 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3433 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3434 if test "${ac_cv_prog_cc_c89+set}" = set; then 3435 echo $ECHO_N "(cached) $ECHO_C" >&6 3436 else 3437 ac_cv_prog_cc_c89=no 3438 ac_save_CC=$CC 3439 cat >conftest.$ac_ext <<_ACEOF 3440 /* confdefs.h. */ 3441 _ACEOF 3442 cat confdefs.h >>conftest.$ac_ext 3443 cat >>conftest.$ac_ext <<_ACEOF 3444 /* end confdefs.h. */ 3445 #include <stdarg.h> 3446 #include <stdio.h> 3447 #include <sys/types.h> 3448 #include <sys/stat.h> 3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3450 struct buf { int x; }; 3451 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3452 static char *e (p, i) 3453 char **p; 3454 int i; 3455 { 3456 return p[i]; 3457 } 3458 static char *f (char * (*g) (char **, int), char **p, ...) 3459 { 3460 char *s; 3461 va_list v; 3462 va_start (v,p); 3463 s = g (p, va_arg (v,int)); 3464 va_end (v); 3465 return s; 3466 } 3467 3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3469 function prototypes and stuff, but not '\xHH' hex character constants. 3470 These don't provoke an error unfortunately, instead are silently treated 3471 as 'x'. The following induces an error, until -std is added to get 3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3473 array size at least. It's necessary to write '\x00'==0 to get something 3474 that's true only with -std. */ 3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3476 3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3478 inside strings and character constants. */ 3479 #define FOO(x) 'x' 3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3481 3482 int test (int i, double x); 3483 struct s1 {int (*f) (int a);}; 3484 struct s2 {int (*f) (double a);}; 3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3486 int argc; 3487 char **argv; 3488 int 3489 main () 3490 { 3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3492 ; 3493 return 0; 3494 } 3495 _ACEOF 3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3498 do 3499 CC="$ac_save_CC $ac_arg" 3500 rm -f conftest.$ac_objext 3501 if { (ac_try="$ac_compile" 3502 case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505 esac 3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3507 (eval "$ac_compile") 2>conftest.er1 3508 ac_status=$? 3509 grep -v '^ *+' conftest.er1 >conftest.err 3510 rm -f conftest.er1 3511 cat conftest.err >&5 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); } && { 3514 test -z "$ac_c_werror_flag" || 3515 test ! -s conftest.err 3516 } && test -s conftest.$ac_objext; then 3517 ac_cv_prog_cc_c89=$ac_arg 3518 else 3519 echo "$as_me: failed program was:" >&5 3520 sed 's/^/| /' conftest.$ac_ext >&5 3521 3522 3523 fi 3524 3525 rm -f core conftest.err conftest.$ac_objext 3526 test "x$ac_cv_prog_cc_c89" != "xno" && break 3527 done 3528 rm -f conftest.$ac_ext 3529 CC=$ac_save_CC 3530 3531 fi 3532 # AC_CACHE_VAL 3533 case "x$ac_cv_prog_cc_c89" in 3534 x) 3535 { echo "$as_me:$LINENO: result: none needed" >&5 3536 echo "${ECHO_T}none needed" >&6; } ;; 3537 xno) 3538 { echo "$as_me:$LINENO: result: unsupported" >&5 3539 echo "${ECHO_T}unsupported" >&6; } ;; 3540 *) 3541 CC="$CC $ac_cv_prog_cc_c89" 3542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3543 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3544 esac 3545 3546 3547 ac_ext=c 3548 ac_cpp='$CPP $CPPFLAGS' 3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3552 DEPDIR="${am__leading_dot}deps" 3553 3554 ac_config_commands="$ac_config_commands depfiles" 3555 3556 3557 am_make=${MAKE-make} 3558 cat > confinc << 'END' 3559 am__doit: 3560 @echo done 3561 .PHONY: am__doit 3562 END 3563 # If we don't find an include directive, just comment out the code. 3564 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3565 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3566 am__include="#" 3567 am__quote= 3568 _am_result=none 3569 # First try GNU make style include. 3570 echo "include confinc" > confmf 3571 # We grep out `Entering directory' and `Leaving directory' 3572 # messages which can occur if `w' ends up in MAKEFLAGS. 3573 # In particular we don't look at `^make:' because GNU make might 3574 # be invoked under some other name (usually "gmake"), in which 3575 # case it prints its new name instead of `make'. 3576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3577 am__include=include 3578 am__quote= 3579 _am_result=GNU 3580 fi 3581 # Now try BSD make style include. 3582 if test "$am__include" = "#"; then 3583 echo '.include "confinc"' > confmf 3584 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3585 am__include=.include 3586 am__quote="\"" 3587 _am_result=BSD 3588 fi 3589 fi 3590 3591 3592 { echo "$as_me:$LINENO: result: $_am_result" >&5 3593 echo "${ECHO_T}$_am_result" >&6; } 3594 rm -f confinc confmf 3595 3596 # Check whether --enable-dependency-tracking was given. 3597 if test "${enable_dependency_tracking+set}" = set; then 3598 enableval=$enable_dependency_tracking; 3599 fi 3600 3601 if test "x$enable_dependency_tracking" != xno; then 3602 am_depcomp="$ac_aux_dir/depcomp" 3603 AMDEPBACKSLASH='\' 3604 fi 3605 if test "x$enable_dependency_tracking" != xno; then 3606 AMDEP_TRUE= 3607 AMDEP_FALSE='#' 3608 else 3609 AMDEP_TRUE='#' 3610 AMDEP_FALSE= 3611 fi 3612 3613 3614 3615 depcc="$CC" am_compiler_list= 3616 3617 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3618 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3619 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3620 echo $ECHO_N "(cached) $ECHO_C" >&6 3621 else 3622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3623 # We make a subdir and do the tests there. Otherwise we can end up 3624 # making bogus files that we don't know about and never remove. For 3625 # instance it was reported that on HP-UX the gcc test will end up 3626 # making a dummy file named `D' -- because `-MD' means `put the output 3627 # in D'. 3628 mkdir conftest.dir 3629 # Copy depcomp to subdir because otherwise we won't find it if we're 3630 # using a relative directory. 3631 cp "$am_depcomp" conftest.dir 3632 cd conftest.dir 3633 # We will build objects and dependencies in a subdirectory because 3634 # it helps to detect inapplicable dependency modes. For instance 3635 # both Tru64's cc and ICC support -MD to output dependencies as a 3636 # side effect of compilation, but ICC will put the dependencies in 3637 # the current directory while Tru64 will put them in the object 3638 # directory. 3639 mkdir sub 3640 3641 am_cv_CC_dependencies_compiler_type=none 3642 if test "$am_compiler_list" = ""; then 3643 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3644 fi 3645 for depmode in $am_compiler_list; do 3646 # Setup a source with many dependencies, because some compilers 3647 # like to wrap large dependency lists on column 80 (with \), and 3648 # we should not choose a depcomp mode which is confused by this. 3649 # 3650 # We need to recreate these files for each test, as the compiler may 3651 # overwrite some of them when testing with obscure command lines. 3652 # This happens at least with the AIX C compiler. 3653 : > sub/conftest.c 3654 for i in 1 2 3 4 5 6; do 3655 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3656 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3657 # Solaris 8's {/usr,}/bin/sh. 3658 touch sub/conftst$i.h 3659 done 3660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3661 3662 case $depmode in 3663 nosideeffect) 3664 # after this tag, mechanisms are not by side-effect, so they'll 3665 # only be used when explicitly requested 3666 if test "x$enable_dependency_tracking" = xyes; then 3667 continue 3668 else 3669 break 3670 fi 3671 ;; 3672 none) break ;; 3673 esac 3674 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3675 # mode. It turns out that the SunPro C++ compiler does not properly 3676 # handle `-M -o', and we need to detect this. 3677 if depmode=$depmode \ 3678 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3679 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3680 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3681 >/dev/null 2>conftest.err && 3682 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3684 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3686 # icc doesn't choke on unknown options, it will just issue warnings 3687 # or remarks (even with -Werror). So we grep stderr for any message 3688 # that says an option was ignored or not supported. 3689 # When given -MP, icc 7.0 and 7.1 complain thusly: 3690 # icc: Command line warning: ignoring option '-M'; no argument required 3691 # The diagnosis changed in icc 8.0: 3692 # icc: Command line remark: option '-MP' not supported 3693 if (grep 'ignoring option' conftest.err || 3694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3695 am_cv_CC_dependencies_compiler_type=$depmode 3696 break 3697 fi 3698 fi 3699 done 3700 3701 cd .. 3702 rm -rf conftest.dir 3703 else 3704 am_cv_CC_dependencies_compiler_type=none 3705 fi 3706 3707 fi 3708 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3709 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3710 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3711 3712 if 3713 test "x$enable_dependency_tracking" != xno \ 3714 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3715 am__fastdepCC_TRUE= 3716 am__fastdepCC_FALSE='#' 3717 else 3718 am__fastdepCC_TRUE='#' 3719 am__fastdepCC_FALSE= 3720 fi 3721 3722 3723 3724 3725 3726 3727 # By default we simply use the C compiler to build assembly code. 3728 3729 test "${CCAS+set}" = set || CCAS=$CC 3730 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 3731 3732 3733 3734 depcc="$CCAS" am_compiler_list= 3735 3736 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3738 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then 3739 echo $ECHO_N "(cached) $ECHO_C" >&6 3740 else 3741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3742 # We make a subdir and do the tests there. Otherwise we can end up 3743 # making bogus files that we don't know about and never remove. For 3744 # instance it was reported that on HP-UX the gcc test will end up 3745 # making a dummy file named `D' -- because `-MD' means `put the output 3746 # in D'. 3747 mkdir conftest.dir 3748 # Copy depcomp to subdir because otherwise we won't find it if we're 3749 # using a relative directory. 3750 cp "$am_depcomp" conftest.dir 3751 cd conftest.dir 3752 # We will build objects and dependencies in a subdirectory because 3753 # it helps to detect inapplicable dependency modes. For instance 3754 # both Tru64's cc and ICC support -MD to output dependencies as a 3755 # side effect of compilation, but ICC will put the dependencies in 3756 # the current directory while Tru64 will put them in the object 3757 # directory. 3758 mkdir sub 3759 3760 am_cv_CCAS_dependencies_compiler_type=none 3761 if test "$am_compiler_list" = ""; then 3762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3763 fi 3764 for depmode in $am_compiler_list; do 3765 # Setup a source with many dependencies, because some compilers 3766 # like to wrap large dependency lists on column 80 (with \), and 3767 # we should not choose a depcomp mode which is confused by this. 3768 # 3769 # We need to recreate these files for each test, as the compiler may 3770 # overwrite some of them when testing with obscure command lines. 3771 # This happens at least with the AIX C compiler. 3772 : > sub/conftest.c 3773 for i in 1 2 3 4 5 6; do 3774 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3775 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3776 # Solaris 8's {/usr,}/bin/sh. 3777 touch sub/conftst$i.h 3778 done 3779 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3780 3781 case $depmode in 3782 nosideeffect) 3783 # after this tag, mechanisms are not by side-effect, so they'll 3784 # only be used when explicitly requested 3785 if test "x$enable_dependency_tracking" = xyes; then 3786 continue 3787 else 3788 break 3789 fi 3790 ;; 3791 none) break ;; 3792 esac 3793 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3794 # mode. It turns out that the SunPro C++ compiler does not properly 3795 # handle `-M -o', and we need to detect this. 3796 if depmode=$depmode \ 3797 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3799 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3800 >/dev/null 2>conftest.err && 3801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3803 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3805 # icc doesn't choke on unknown options, it will just issue warnings 3806 # or remarks (even with -Werror). So we grep stderr for any message 3807 # that says an option was ignored or not supported. 3808 # When given -MP, icc 7.0 and 7.1 complain thusly: 3809 # icc: Command line warning: ignoring option '-M'; no argument required 3810 # The diagnosis changed in icc 8.0: 3811 # icc: Command line remark: option '-MP' not supported 3812 if (grep 'ignoring option' conftest.err || 3813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3814 am_cv_CCAS_dependencies_compiler_type=$depmode 3815 break 3816 fi 3817 fi 3818 done 3819 3820 cd .. 3821 rm -rf conftest.dir 3822 else 3823 am_cv_CCAS_dependencies_compiler_type=none 3824 fi 3825 3826 fi 3827 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 3828 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; } 3829 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 3830 3831 if 3832 test "x$enable_dependency_tracking" != xno \ 3833 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 3834 am__fastdepCCAS_TRUE= 3835 am__fastdepCCAS_FALSE='#' 3836 else 3837 am__fastdepCCAS_TRUE='#' 3838 am__fastdepCCAS_FALSE= 3839 fi 3840 3841 3842 if test "x$CC" != xcc; then 3843 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3844 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } 3845 else 3846 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3847 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } 3848 fi 3849 set dummy $CC; ac_cc=`echo $2 | 3850 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3851 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3852 echo $ECHO_N "(cached) $ECHO_C" >&6 3853 else 3854 cat >conftest.$ac_ext <<_ACEOF 3855 /* confdefs.h. */ 3856 _ACEOF 3857 cat confdefs.h >>conftest.$ac_ext 3858 cat >>conftest.$ac_ext <<_ACEOF 3859 /* end confdefs.h. */ 3860 3861 int 3862 main () 3863 { 3864 3865 ; 3866 return 0; 3867 } 3868 _ACEOF 3869 # Make sure it works both with $CC and with simple cc. 3870 # We do the test twice because some compilers refuse to overwrite an 3871 # existing .o file with -o, though they will create one. 3872 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3873 rm -f conftest2.* 3874 if { (case "(($ac_try" in 3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3876 *) ac_try_echo=$ac_try;; 3877 esac 3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3879 (eval "$ac_try") 2>&5 3880 ac_status=$? 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 (exit $ac_status); } && 3883 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886 esac 3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3888 (eval "$ac_try") 2>&5 3889 ac_status=$? 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); }; 3892 then 3893 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3894 if test "x$CC" != xcc; then 3895 # Test first that cc exists at all. 3896 if { ac_try='cc -c conftest.$ac_ext >&5' 3897 { (case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900 esac 3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3902 (eval "$ac_try") 2>&5 3903 ac_status=$? 3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 (exit $ac_status); }; }; then 3906 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3907 rm -f conftest2.* 3908 if { (case "(($ac_try" in 3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3910 *) ac_try_echo=$ac_try;; 3911 esac 3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3913 (eval "$ac_try") 2>&5 3914 ac_status=$? 3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3916 (exit $ac_status); } && 3917 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920 esac 3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3922 (eval "$ac_try") 2>&5 3923 ac_status=$? 3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3925 (exit $ac_status); }; 3926 then 3927 # cc works too. 3928 : 3929 else 3930 # cc exists but doesn't like -o. 3931 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3932 fi 3933 fi 3934 fi 3935 else 3936 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3937 fi 3938 rm -f core conftest* 3939 3940 fi 3941 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3942 { echo "$as_me:$LINENO: result: yes" >&5 3943 echo "${ECHO_T}yes" >&6; } 3944 else 3945 { echo "$as_me:$LINENO: result: no" >&5 3946 echo "${ECHO_T}no" >&6; } 3947 3948 cat >>confdefs.h <<\_ACEOF 3949 #define NO_MINUS_C_MINUS_O 1 3950 _ACEOF 3951 3952 fi 3953 3954 # FIXME: we rely on the cache variable name because 3955 # there is no other way. 3956 set dummy $CC 3957 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3958 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 3959 # Losing compiler, so override with the script. 3960 # FIXME: It is wrong to rewrite CC. 3961 # But if we don't then we get into trouble of one sort or another. 3962 # A longer-term fix would be to have automake use am__CC in this case, 3963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3964 CC="$am_aux_dir/compile $CC" 3965 fi 3966 3967 3968 # Check whether --enable-shared was given. 3969 if test "${enable_shared+set}" = set; then 3970 enableval=$enable_shared; p=${PACKAGE-default} 3971 case $enableval in 3972 yes) enable_shared=yes ;; 3973 no) enable_shared=no ;; 3974 *) 3975 enable_shared=no 3976 # Look at the argument we got. We use all the common list separators. 3977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3978 for pkg in $enableval; do 3979 IFS="$lt_save_ifs" 3980 if test "X$pkg" = "X$p"; then 3981 enable_shared=yes 3982 fi 3983 done 3984 IFS="$lt_save_ifs" 3985 ;; 3986 esac 3987 else 3988 enable_shared=yes 3989 fi 3990 3991 3992 # Check whether --enable-static was given. 3993 if test "${enable_static+set}" = set; then 3994 enableval=$enable_static; p=${PACKAGE-default} 3995 case $enableval in 3996 yes) enable_static=yes ;; 3997 no) enable_static=no ;; 3998 *) 3999 enable_static=no 4000 # Look at the argument we got. We use all the common list separators. 4001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4002 for pkg in $enableval; do 4003 IFS="$lt_save_ifs" 4004 if test "X$pkg" = "X$p"; then 4005 enable_static=yes 4006 fi 4007 done 4008 IFS="$lt_save_ifs" 4009 ;; 4010 esac 4011 else 4012 enable_static=yes 4013 fi 4014 4015 4016 # Check whether --enable-fast-install was given. 4017 if test "${enable_fast_install+set}" = set; then 4018 enableval=$enable_fast_install; p=${PACKAGE-default} 4019 case $enableval in 4020 yes) enable_fast_install=yes ;; 4021 no) enable_fast_install=no ;; 4022 *) 4023 enable_fast_install=no 4024 # Look at the argument we got. We use all the common list separators. 4025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4026 for pkg in $enableval; do 4027 IFS="$lt_save_ifs" 4028 if test "X$pkg" = "X$p"; then 4029 enable_fast_install=yes 4030 fi 4031 done 4032 IFS="$lt_save_ifs" 4033 ;; 4034 esac 4035 else 4036 enable_fast_install=yes 4037 fi 4038 4039 4040 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4041 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4042 if test "${lt_cv_path_SED+set}" = set; then 4043 echo $ECHO_N "(cached) $ECHO_C" >&6 4044 else 4045 # Loop through the user's path and test for sed and gsed. 4046 # Then use that list of sed's as ones to test for truncation. 4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4048 for as_dir in $PATH 4049 do 4050 IFS=$as_save_IFS 4051 test -z "$as_dir" && as_dir=. 4052 for lt_ac_prog in sed gsed; do 4053 for ac_exec_ext in '' $ac_executable_extensions; do 4054 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4055 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4056 fi 4057 done 4058 done 4059 done 4060 IFS=$as_save_IFS 4061 lt_ac_max=0 4062 lt_ac_count=0 4063 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 4064 # along with /bin/sed that truncates output. 4065 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4066 test ! -f $lt_ac_sed && continue 4067 cat /dev/null > conftest.in 4068 lt_ac_count=0 4069 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4070 # Check for GNU sed and select it if it is found. 4071 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4072 lt_cv_path_SED=$lt_ac_sed 4073 break 4074 fi 4075 while true; do 4076 cat conftest.in conftest.in >conftest.tmp 4077 mv conftest.tmp conftest.in 4078 cp conftest.in conftest.nl 4079 echo >>conftest.nl 4080 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4081 cmp -s conftest.out conftest.nl || break 4082 # 10000 chars as input seems more than enough 4083 test $lt_ac_count -gt 10 && break 4084 lt_ac_count=`expr $lt_ac_count + 1` 4085 if test $lt_ac_count -gt $lt_ac_max; then 4086 lt_ac_max=$lt_ac_count 4087 lt_cv_path_SED=$lt_ac_sed 4088 fi 4089 done 4090 done 4091 4092 fi 4093 4094 SED=$lt_cv_path_SED 4095 4096 { echo "$as_me:$LINENO: result: $SED" >&5 4097 echo "${ECHO_T}$SED" >&6; } 4098 4099 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4100 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4101 if test "${ac_cv_path_GREP+set}" = set; then 4102 echo $ECHO_N "(cached) $ECHO_C" >&6 4103 else 4104 # Extract the first word of "grep ggrep" to use in msg output 4105 if test -z "$GREP"; then 4106 set dummy grep ggrep; ac_prog_name=$2 4107 if test "${ac_cv_path_GREP+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109 else 4110 ac_path_GREP_found=false 4111 # Loop through the user's path and test for each of PROGNAME-LIST 4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4114 do 4115 IFS=$as_save_IFS 4116 test -z "$as_dir" && as_dir=. 4117 for ac_prog in grep ggrep; do 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4120 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4121 # Check for GNU ac_path_GREP and select it if it is found. 4122 # Check for GNU $ac_path_GREP 4123 case `"$ac_path_GREP" --version 2>&1` in 4124 *GNU*) 4125 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4126 *) 4127 ac_count=0 4128 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4129 while : 4130 do 4131 cat "conftest.in" "conftest.in" >"conftest.tmp" 4132 mv "conftest.tmp" "conftest.in" 4133 cp "conftest.in" "conftest.nl" 4134 echo 'GREP' >> "conftest.nl" 4135 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4137 ac_count=`expr $ac_count + 1` 4138 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4139 # Best one so far, save it but keep looking for a better one 4140 ac_cv_path_GREP="$ac_path_GREP" 4141 ac_path_GREP_max=$ac_count 4142 fi 4143 # 10*(2^10) chars as input seems more than enough 4144 test $ac_count -gt 10 && break 4145 done 4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4147 esac 4148 4149 4150 $ac_path_GREP_found && break 3 4151 done 4152 done 4153 4154 done 4155 IFS=$as_save_IFS 4156 4157 4158 fi 4159 4160 GREP="$ac_cv_path_GREP" 4161 if test -z "$GREP"; then 4162 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4163 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4164 { (exit 1); exit 1; }; } 4165 fi 4166 4167 else 4168 ac_cv_path_GREP=$GREP 4169 fi 4170 4171 4172 fi 4173 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4174 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4175 GREP="$ac_cv_path_GREP" 4176 4177 4178 { echo "$as_me:$LINENO: checking for egrep" >&5 4179 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4180 if test "${ac_cv_path_EGREP+set}" = set; then 4181 echo $ECHO_N "(cached) $ECHO_C" >&6 4182 else 4183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4184 then ac_cv_path_EGREP="$GREP -E" 4185 else 4186 # Extract the first word of "egrep" to use in msg output 4187 if test -z "$EGREP"; then 4188 set dummy egrep; ac_prog_name=$2 4189 if test "${ac_cv_path_EGREP+set}" = set; then 4190 echo $ECHO_N "(cached) $ECHO_C" >&6 4191 else 4192 ac_path_EGREP_found=false 4193 # Loop through the user's path and test for each of PROGNAME-LIST 4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4196 do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 for ac_prog in egrep; do 4200 for ac_exec_ext in '' $ac_executable_extensions; do 4201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4203 # Check for GNU ac_path_EGREP and select it if it is found. 4204 # Check for GNU $ac_path_EGREP 4205 case `"$ac_path_EGREP" --version 2>&1` in 4206 *GNU*) 4207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4208 *) 4209 ac_count=0 4210 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4211 while : 4212 do 4213 cat "conftest.in" "conftest.in" >"conftest.tmp" 4214 mv "conftest.tmp" "conftest.in" 4215 cp "conftest.in" "conftest.nl" 4216 echo 'EGREP' >> "conftest.nl" 4217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4219 ac_count=`expr $ac_count + 1` 4220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4221 # Best one so far, save it but keep looking for a better one 4222 ac_cv_path_EGREP="$ac_path_EGREP" 4223 ac_path_EGREP_max=$ac_count 4224 fi 4225 # 10*(2^10) chars as input seems more than enough 4226 test $ac_count -gt 10 && break 4227 done 4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4229 esac 4230 4231 4232 $ac_path_EGREP_found && break 3 4233 done 4234 done 4235 4236 done 4237 IFS=$as_save_IFS 4238 4239 4240 fi 4241 4242 EGREP="$ac_cv_path_EGREP" 4243 if test -z "$EGREP"; then 4244 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4245 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4246 { (exit 1); exit 1; }; } 4247 fi 4248 4249 else 4250 ac_cv_path_EGREP=$EGREP 4251 fi 4252 4253 4254 fi 4255 fi 4256 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4257 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4258 EGREP="$ac_cv_path_EGREP" 4259 4260 4261 4262 # Check whether --with-gnu-ld was given. 4263 if test "${with_gnu_ld+set}" = set; then 4264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4265 else 4266 with_gnu_ld=no 4267 fi 4268 4269 ac_prog=ld 4270 if test "$GCC" = yes; then 4271 # Check if gcc -print-prog-name=ld gives a path. 4272 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4273 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4274 case $host in 4275 *-*-mingw*) 4276 # gcc leaves a trailing carriage return which upsets mingw 4277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4278 *) 4279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4280 esac 4281 case $ac_prog in 4282 # Accept absolute paths. 4283 [\\/]* | ?:[\\/]*) 4284 re_direlt='/[^/][^/]*/\.\./' 4285 # Canonicalize the pathname of ld 4286 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4287 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4288 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4289 done 4290 test -z "$LD" && LD="$ac_prog" 4291 ;; 4292 "") 4293 # If it fails, then pretend we aren't using GCC. 4294 ac_prog=ld 4295 ;; 4296 *) 4297 # If it is relative, then search for the first ld in PATH. 4298 with_gnu_ld=unknown 4299 ;; 4300 esac 4301 elif test "$with_gnu_ld" = yes; then 4302 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4303 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4304 else 4305 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4306 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4307 fi 4308 if test "${lt_cv_path_LD+set}" = set; then 4309 echo $ECHO_N "(cached) $ECHO_C" >&6 4310 else 4311 if test -z "$LD"; then 4312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4313 for ac_dir in $PATH; do 4314 IFS="$lt_save_ifs" 4315 test -z "$ac_dir" && ac_dir=. 4316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4317 lt_cv_path_LD="$ac_dir/$ac_prog" 4318 # Check to see if the program is GNU ld. I'd rather use --version, 4319 # but apparently some variants of GNU ld only accept -v. 4320 # Break only if it was the GNU/non-GNU ld that we prefer. 4321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4322 *GNU* | *'with BFD'*) 4323 test "$with_gnu_ld" != no && break 4324 ;; 4325 *) 4326 test "$with_gnu_ld" != yes && break 4327 ;; 4328 esac 4329 fi 4330 done 4331 IFS="$lt_save_ifs" 4332 else 4333 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4334 fi 4335 fi 4336 4337 LD="$lt_cv_path_LD" 4338 if test -n "$LD"; then 4339 { echo "$as_me:$LINENO: result: $LD" >&5 4340 echo "${ECHO_T}$LD" >&6; } 4341 else 4342 { echo "$as_me:$LINENO: result: no" >&5 4343 echo "${ECHO_T}no" >&6; } 4344 fi 4345 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4346 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4347 { (exit 1); exit 1; }; } 4348 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4349 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4350 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4351 echo $ECHO_N "(cached) $ECHO_C" >&6 4352 else 4353 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4354 case `$LD -v 2>&1 </dev/null` in 4355 *GNU* | *'with BFD'*) 4356 lt_cv_prog_gnu_ld=yes 4357 ;; 4358 *) 4359 lt_cv_prog_gnu_ld=no 4360 ;; 4361 esac 4362 fi 4363 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4364 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4365 with_gnu_ld=$lt_cv_prog_gnu_ld 4366 4367 4368 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4369 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4370 if test "${lt_cv_ld_reload_flag+set}" = set; then 4371 echo $ECHO_N "(cached) $ECHO_C" >&6 4372 else 4373 lt_cv_ld_reload_flag='-r' 4374 fi 4375 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4376 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4377 reload_flag=$lt_cv_ld_reload_flag 4378 case $reload_flag in 4379 "" | " "*) ;; 4380 *) reload_flag=" $reload_flag" ;; 4381 esac 4382 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4383 case $host_os in 4384 darwin*) 4385 if test "$GCC" = yes; then 4386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4387 else 4388 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4389 fi 4390 ;; 4391 esac 4392 4393 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4394 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4395 if test "${lt_cv_path_NM+set}" = set; then 4396 echo $ECHO_N "(cached) $ECHO_C" >&6 4397 else 4398 if test -n "$NM"; then 4399 # Let the user override the test. 4400 lt_cv_path_NM="$NM" 4401 else 4402 lt_nm_to_check="${ac_tool_prefix}nm" 4403 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4404 lt_nm_to_check="$lt_nm_to_check nm" 4405 fi 4406 for lt_tmp_nm in $lt_nm_to_check; do 4407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4408 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4409 IFS="$lt_save_ifs" 4410 test -z "$ac_dir" && ac_dir=. 4411 tmp_nm="$ac_dir/$lt_tmp_nm" 4412 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4413 # Check to see if the nm accepts a BSD-compat flag. 4414 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4415 # nm: unknown option "B" ignored 4416 # Tru64's nm complains that /dev/null is an invalid object file 4417 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4418 */dev/null* | *'Invalid file or object type'*) 4419 lt_cv_path_NM="$tmp_nm -B" 4420 break 4421 ;; 4422 *) 4423 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4424 */dev/null*) 4425 lt_cv_path_NM="$tmp_nm -p" 4426 break 4427 ;; 4428 *) 4429 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4430 continue # so that we can try to find one that supports BSD flags 4431 ;; 4432 esac 4433 ;; 4434 esac 4435 fi 4436 done 4437 IFS="$lt_save_ifs" 4438 done 4439 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4440 fi 4441 fi 4442 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4443 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4444 NM="$lt_cv_path_NM" 4445 4446 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 4447 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4448 LN_S=$as_ln_s 4449 if test "$LN_S" = "ln -s"; then 4450 { echo "$as_me:$LINENO: result: yes" >&5 4451 echo "${ECHO_T}yes" >&6; } 4452 else 4453 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4454 echo "${ECHO_T}no, using $LN_S" >&6; } 4455 fi 4456 4457 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4458 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4459 if test "${lt_cv_deplibs_check_method+set}" = set; then 4460 echo $ECHO_N "(cached) $ECHO_C" >&6 4461 else 4462 lt_cv_file_magic_cmd='$MAGIC_CMD' 4463 lt_cv_file_magic_test_file= 4464 lt_cv_deplibs_check_method='unknown' 4465 # Need to set the preceding variable on all platforms that support 4466 # interlibrary dependencies. 4467 # 'none' -- dependencies not supported. 4468 # `unknown' -- same as none, but documents that we really don't know. 4469 # 'pass_all' -- all dependencies passed with no checks. 4470 # 'test_compile' -- check by making test program. 4471 # 'file_magic [[regex]]' -- check by looking for files in library path 4472 # which responds to the $file_magic_cmd with a given extended regex. 4473 # If you have `file' or equivalent on your system and you're not sure 4474 # whether `pass_all' will *always* work, you probably want this one. 4475 4476 case $host_os in 4477 aix4* | aix5*) 4478 lt_cv_deplibs_check_method=pass_all 4479 ;; 4480 4481 beos*) 4482 lt_cv_deplibs_check_method=pass_all 4483 ;; 4484 4485 bsdi[45]*) 4486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4487 lt_cv_file_magic_cmd='/usr/bin/file -L' 4488 lt_cv_file_magic_test_file=/shlib/libc.so 4489 ;; 4490 4491 cygwin*) 4492 # func_win32_libid is a shell function defined in ltmain.sh 4493 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4494 lt_cv_file_magic_cmd='func_win32_libid' 4495 ;; 4496 4497 mingw* | pw32*) 4498 # Base MSYS/MinGW do not provide the 'file' command needed by 4499 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4500 # unless we find 'file', for example because we are cross-compiling. 4501 if ( file / ) >/dev/null 2>&1; then 4502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4503 lt_cv_file_magic_cmd='func_win32_libid' 4504 else 4505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4506 lt_cv_file_magic_cmd='$OBJDUMP -f' 4507 fi 4508 ;; 4509 4510 darwin* | rhapsody*) 4511 lt_cv_deplibs_check_method=pass_all 4512 ;; 4513 4514 freebsd* | dragonfly*) 4515 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4516 case $host_cpu in 4517 i*86 ) 4518 # Not sure whether the presence of OpenBSD here was a mistake. 4519 # Let's accept both of them until this is cleared up. 4520 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4521 lt_cv_file_magic_cmd=/usr/bin/file 4522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4523 ;; 4524 esac 4525 else 4526 lt_cv_deplibs_check_method=pass_all 4527 fi 4528 ;; 4529 4530 gnu*) 4531 lt_cv_deplibs_check_method=pass_all 4532 ;; 4533 4534 hpux10.20* | hpux11*) 4535 lt_cv_file_magic_cmd=/usr/bin/file 4536 case $host_cpu in 4537 ia64*) 4538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4539 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4540 ;; 4541 hppa*64*) 4542 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]' 4543 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4544 ;; 4545 *) 4546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4547 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4548 ;; 4549 esac 4550 ;; 4551 4552 interix[3-9]*) 4553 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4555 ;; 4556 4557 irix5* | irix6* | nonstopux*) 4558 case $LD in 4559 *-32|*"-32 ") libmagic=32-bit;; 4560 *-n32|*"-n32 ") libmagic=N32;; 4561 *-64|*"-64 ") libmagic=64-bit;; 4562 *) libmagic=never-match;; 4563 esac 4564 lt_cv_deplibs_check_method=pass_all 4565 ;; 4566 4567 # This must be Linux ELF. 4568 linux* | k*bsd*-gnu) 4569 lt_cv_deplibs_check_method=pass_all 4570 ;; 4571 4572 netbsd*) 4573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4575 else 4576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4577 fi 4578 ;; 4579 4580 newos6*) 4581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4582 lt_cv_file_magic_cmd=/usr/bin/file 4583 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4584 ;; 4585 4586 nto-qnx*) 4587 lt_cv_deplibs_check_method=unknown 4588 ;; 4589 4590 openbsd*) 4591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4593 else 4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4595 fi 4596 ;; 4597 4598 osf3* | osf4* | osf5*) 4599 lt_cv_deplibs_check_method=pass_all 4600 ;; 4601 4602 rdos*) 4603 lt_cv_deplibs_check_method=pass_all 4604 ;; 4605 4606 solaris*) 4607 lt_cv_deplibs_check_method=pass_all 4608 ;; 4609 4610 sysv4 | sysv4.3*) 4611 case $host_vendor in 4612 motorola) 4613 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]' 4614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4615 ;; 4616 ncr) 4617 lt_cv_deplibs_check_method=pass_all 4618 ;; 4619 sequent) 4620 lt_cv_file_magic_cmd='/bin/file' 4621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4622 ;; 4623 sni) 4624 lt_cv_file_magic_cmd='/bin/file' 4625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4626 lt_cv_file_magic_test_file=/lib/libc.so 4627 ;; 4628 siemens) 4629 lt_cv_deplibs_check_method=pass_all 4630 ;; 4631 pc) 4632 lt_cv_deplibs_check_method=pass_all 4633 ;; 4634 esac 4635 ;; 4636 4637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4638 lt_cv_deplibs_check_method=pass_all 4639 ;; 4640 esac 4641 4642 fi 4643 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4645 file_magic_cmd=$lt_cv_file_magic_cmd 4646 deplibs_check_method=$lt_cv_deplibs_check_method 4647 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4648 4649 4650 4651 4652 # If no C compiler was specified, use CC. 4653 LTCC=${LTCC-"$CC"} 4654 4655 # If no C compiler flags were specified, use CFLAGS. 4656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4657 4658 # Allow CC to be a program name with arguments. 4659 compiler=$CC 4660 4661 4662 # Check whether --enable-libtool-lock was given. 4663 if test "${enable_libtool_lock+set}" = set; then 4664 enableval=$enable_libtool_lock; 4665 fi 4666 4667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4668 4669 # Some flags need to be propagated to the compiler or linker for good 4670 # libtool support. 4671 case $host in 4672 ia64-*-hpux*) 4673 # Find out which ABI we are using. 4674 echo 'int i;' > conftest.$ac_ext 4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4676 (eval $ac_compile) 2>&5 4677 ac_status=$? 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); }; then 4680 case `/usr/bin/file conftest.$ac_objext` in 4681 *ELF-32*) 4682 HPUX_IA64_MODE="32" 4683 ;; 4684 *ELF-64*) 4685 HPUX_IA64_MODE="64" 4686 ;; 4687 esac 4688 fi 4689 rm -rf conftest* 4690 ;; 4691 *-*-irix6*) 4692 # Find out which ABI we are using. 4693 echo '#line 4693 "configure"' > conftest.$ac_ext 4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4695 (eval $ac_compile) 2>&5 4696 ac_status=$? 4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698 (exit $ac_status); }; then 4699 if test "$lt_cv_prog_gnu_ld" = yes; then 4700 case `/usr/bin/file conftest.$ac_objext` in 4701 *32-bit*) 4702 LD="${LD-ld} -melf32bsmip" 4703 ;; 4704 *N32*) 4705 LD="${LD-ld} -melf32bmipn32" 4706 ;; 4707 *64-bit*) 4708 LD="${LD-ld} -melf64bmip" 4709 ;; 4710 esac 4711 else 4712 case `/usr/bin/file conftest.$ac_objext` in 4713 *32-bit*) 4714 LD="${LD-ld} -32" 4715 ;; 4716 *N32*) 4717 LD="${LD-ld} -n32" 4718 ;; 4719 *64-bit*) 4720 LD="${LD-ld} -64" 4721 ;; 4722 esac 4723 fi 4724 fi 4725 rm -rf conftest* 4726 ;; 4727 4728 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4729 s390*-*linux*|sparc*-*linux*) 4730 # Find out which ABI we are using. 4731 echo 'int i;' > conftest.$ac_ext 4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4733 (eval $ac_compile) 2>&5 4734 ac_status=$? 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); }; then 4737 case `/usr/bin/file conftest.o` in 4738 *32-bit*) 4739 case $host in 4740 x86_64-*kfreebsd*-gnu) 4741 LD="${LD-ld} -m elf_i386_fbsd" 4742 ;; 4743 x86_64-*linux*) 4744 LD="${LD-ld} -m elf_i386" 4745 ;; 4746 ppc64-*linux*|powerpc64-*linux*) 4747 LD="${LD-ld} -m elf32ppclinux" 4748 ;; 4749 s390x-*linux*) 4750 LD="${LD-ld} -m elf_s390" 4751 ;; 4752 sparc64-*linux*) 4753 LD="${LD-ld} -m elf32_sparc" 4754 ;; 4755 esac 4756 ;; 4757 *64-bit*) 4758 libsuff=64 4759 case $host in 4760 x86_64-*kfreebsd*-gnu) 4761 LD="${LD-ld} -m elf_x86_64_fbsd" 4762 ;; 4763 x86_64-*linux*) 4764 LD="${LD-ld} -m elf_x86_64" 4765 ;; 4766 ppc*-*linux*|powerpc*-*linux*) 4767 LD="${LD-ld} -m elf64ppc" 4768 ;; 4769 s390*-*linux*) 4770 LD="${LD-ld} -m elf64_s390" 4771 ;; 4772 sparc*-*linux*) 4773 LD="${LD-ld} -m elf64_sparc" 4774 ;; 4775 esac 4776 ;; 4777 esac 4778 fi 4779 rm -rf conftest* 4780 ;; 4781 4782 *-*-sco3.2v5*) 4783 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4784 SAVE_CFLAGS="$CFLAGS" 4785 CFLAGS="$CFLAGS -belf" 4786 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4787 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4788 if test "${lt_cv_cc_needs_belf+set}" = set; then 4789 echo $ECHO_N "(cached) $ECHO_C" >&6 4790 else 4791 ac_ext=c 4792 ac_cpp='$CPP $CPPFLAGS' 4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4796 4797 cat >conftest.$ac_ext <<_ACEOF 4798 /* confdefs.h. */ 4799 _ACEOF 4800 cat confdefs.h >>conftest.$ac_ext 4801 cat >>conftest.$ac_ext <<_ACEOF 4802 /* end confdefs.h. */ 4803 4804 int 4805 main () 4806 { 4807 4808 ; 4809 return 0; 4810 } 4811 _ACEOF 4812 rm -f conftest.$ac_objext conftest$ac_exeext 4813 if { (ac_try="$ac_link" 4814 case "(($ac_try" in 4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4816 *) ac_try_echo=$ac_try;; 4817 esac 4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4819 (eval "$ac_link") 2>conftest.er1 4820 ac_status=$? 4821 grep -v '^ *+' conftest.er1 >conftest.err 4822 rm -f conftest.er1 4823 cat conftest.err >&5 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); } && { 4826 test -z "$ac_c_werror_flag" || 4827 test ! -s conftest.err 4828 } && test -s conftest$ac_exeext && 4829 $as_test_x conftest$ac_exeext; then 4830 lt_cv_cc_needs_belf=yes 4831 else 4832 echo "$as_me: failed program was:" >&5 4833 sed 's/^/| /' conftest.$ac_ext >&5 4834 4835 lt_cv_cc_needs_belf=no 4836 fi 4837 4838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4839 conftest$ac_exeext conftest.$ac_ext 4840 ac_ext=c 4841 ac_cpp='$CPP $CPPFLAGS' 4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4845 4846 fi 4847 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4848 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4851 CFLAGS="$SAVE_CFLAGS" 4852 fi 4853 ;; 4854 sparc*-*solaris*) 4855 # Find out which ABI we are using. 4856 echo 'int i;' > conftest.$ac_ext 4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4858 (eval $ac_compile) 2>&5 4859 ac_status=$? 4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); }; then 4862 case `/usr/bin/file conftest.o` in 4863 *64-bit*) 4864 case $lt_cv_prog_gnu_ld in 4865 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4866 *) LD="${LD-ld} -64" ;; 4867 esac 4868 ;; 4869 esac 4870 fi 4871 rm -rf conftest* 4872 ;; 4873 4874 4875 esac 4876 4877 need_locks="$enable_libtool_lock" 4878 4879 4880 ac_ext=c 4881 ac_cpp='$CPP $CPPFLAGS' 4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4885 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4887 # On Suns, sometimes $CPP names a directory. 4888 if test -n "$CPP" && test -d "$CPP"; then 4889 CPP= 4890 fi 4891 if test -z "$CPP"; then 4892 if test "${ac_cv_prog_CPP+set}" = set; then 4893 echo $ECHO_N "(cached) $ECHO_C" >&6 4894 else 4895 # Double quotes because CPP needs to be expanded 4896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4897 do 4898 ac_preproc_ok=false 4899 for ac_c_preproc_warn_flag in '' yes 4900 do 4901 # Use a header file that comes with gcc, so configuring glibc 4902 # with a fresh cross-compiler works. 4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4904 # <limits.h> exists even on freestanding compilers. 4905 # On the NeXT, cc -E runs the code through the compiler's parser, 4906 # not just through cpp. "Syntax error" is here to catch this case. 4907 cat >conftest.$ac_ext <<_ACEOF 4908 /* confdefs.h. */ 4909 _ACEOF 4910 cat confdefs.h >>conftest.$ac_ext 4911 cat >>conftest.$ac_ext <<_ACEOF 4912 /* end confdefs.h. */ 4913 #ifdef __STDC__ 4914 # include <limits.h> 4915 #else 4916 # include <assert.h> 4917 #endif 4918 Syntax error 4919 _ACEOF 4920 if { (ac_try="$ac_cpp conftest.$ac_ext" 4921 case "(($ac_try" in 4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4923 *) ac_try_echo=$ac_try;; 4924 esac 4925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4927 ac_status=$? 4928 grep -v '^ *+' conftest.er1 >conftest.err 4929 rm -f conftest.er1 4930 cat conftest.err >&5 4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4932 (exit $ac_status); } >/dev/null && { 4933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4934 test ! -s conftest.err 4935 }; then 4936 : 4937 else 4938 echo "$as_me: failed program was:" >&5 4939 sed 's/^/| /' conftest.$ac_ext >&5 4940 4941 # Broken: fails on valid input. 4942 continue 4943 fi 4944 4945 rm -f conftest.err conftest.$ac_ext 4946 4947 # OK, works on sane cases. Now check whether nonexistent headers 4948 # can be detected and how. 4949 cat >conftest.$ac_ext <<_ACEOF 4950 /* confdefs.h. */ 4951 _ACEOF 4952 cat confdefs.h >>conftest.$ac_ext 4953 cat >>conftest.$ac_ext <<_ACEOF 4954 /* end confdefs.h. */ 4955 #include <ac_nonexistent.h> 4956 _ACEOF 4957 if { (ac_try="$ac_cpp conftest.$ac_ext" 4958 case "(($ac_try" in 4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4960 *) ac_try_echo=$ac_try;; 4961 esac 4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4964 ac_status=$? 4965 grep -v '^ *+' conftest.er1 >conftest.err 4966 rm -f conftest.er1 4967 cat conftest.err >&5 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } >/dev/null && { 4970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4971 test ! -s conftest.err 4972 }; then 4973 # Broken: success on invalid input. 4974 continue 4975 else 4976 echo "$as_me: failed program was:" >&5 4977 sed 's/^/| /' conftest.$ac_ext >&5 4978 4979 # Passes both tests. 4980 ac_preproc_ok=: 4981 break 4982 fi 4983 4984 rm -f conftest.err conftest.$ac_ext 4985 4986 done 4987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4988 rm -f conftest.err conftest.$ac_ext 4989 if $ac_preproc_ok; then 4990 break 4991 fi 4992 4993 done 4994 ac_cv_prog_CPP=$CPP 4995 4996 fi 4997 CPP=$ac_cv_prog_CPP 4998 else 4999 ac_cv_prog_CPP=$CPP 5000 fi 5001 { echo "$as_me:$LINENO: result: $CPP" >&5 5002 echo "${ECHO_T}$CPP" >&6; } 5003 ac_preproc_ok=false 5004 for ac_c_preproc_warn_flag in '' yes 5005 do 5006 # Use a header file that comes with gcc, so configuring glibc 5007 # with a fresh cross-compiler works. 5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5009 # <limits.h> exists even on freestanding compilers. 5010 # On the NeXT, cc -E runs the code through the compiler's parser, 5011 # not just through cpp. "Syntax error" is here to catch this case. 5012 cat >conftest.$ac_ext <<_ACEOF 5013 /* confdefs.h. */ 5014 _ACEOF 5015 cat confdefs.h >>conftest.$ac_ext 5016 cat >>conftest.$ac_ext <<_ACEOF 5017 /* end confdefs.h. */ 5018 #ifdef __STDC__ 5019 # include <limits.h> 5020 #else 5021 # include <assert.h> 5022 #endif 5023 Syntax error 5024 _ACEOF 5025 if { (ac_try="$ac_cpp conftest.$ac_ext" 5026 case "(($ac_try" in 5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 *) ac_try_echo=$ac_try;; 5029 esac 5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5032 ac_status=$? 5033 grep -v '^ *+' conftest.er1 >conftest.err 5034 rm -f conftest.er1 5035 cat conftest.err >&5 5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5037 (exit $ac_status); } >/dev/null && { 5038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5039 test ! -s conftest.err 5040 }; then 5041 : 5042 else 5043 echo "$as_me: failed program was:" >&5 5044 sed 's/^/| /' conftest.$ac_ext >&5 5045 5046 # Broken: fails on valid input. 5047 continue 5048 fi 5049 5050 rm -f conftest.err conftest.$ac_ext 5051 5052 # OK, works on sane cases. Now check whether nonexistent headers 5053 # can be detected and how. 5054 cat >conftest.$ac_ext <<_ACEOF 5055 /* confdefs.h. */ 5056 _ACEOF 5057 cat confdefs.h >>conftest.$ac_ext 5058 cat >>conftest.$ac_ext <<_ACEOF 5059 /* end confdefs.h. */ 5060 #include <ac_nonexistent.h> 5061 _ACEOF 5062 if { (ac_try="$ac_cpp conftest.$ac_ext" 5063 case "(($ac_try" in 5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5065 *) ac_try_echo=$ac_try;; 5066 esac 5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5069 ac_status=$? 5070 grep -v '^ *+' conftest.er1 >conftest.err 5071 rm -f conftest.er1 5072 cat conftest.err >&5 5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5074 (exit $ac_status); } >/dev/null && { 5075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5076 test ! -s conftest.err 5077 }; then 5078 # Broken: success on invalid input. 5079 continue 5080 else 5081 echo "$as_me: failed program was:" >&5 5082 sed 's/^/| /' conftest.$ac_ext >&5 5083 5084 # Passes both tests. 5085 ac_preproc_ok=: 5086 break 5087 fi 5088 5089 rm -f conftest.err conftest.$ac_ext 5090 5091 done 5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5093 rm -f conftest.err conftest.$ac_ext 5094 if $ac_preproc_ok; then 5095 : 5096 else 5097 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5098 See \`config.log' for more details." >&5 5099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5100 See \`config.log' for more details." >&2;} 5101 { (exit 1); exit 1; }; } 5102 fi 5103 5104 ac_ext=c 5105 ac_cpp='$CPP $CPPFLAGS' 5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5109 5110 5111 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5112 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5113 if test "${ac_cv_header_stdc+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115 else 5116 cat >conftest.$ac_ext <<_ACEOF 5117 /* confdefs.h. */ 5118 _ACEOF 5119 cat confdefs.h >>conftest.$ac_ext 5120 cat >>conftest.$ac_ext <<_ACEOF 5121 /* end confdefs.h. */ 5122 #include <stdlib.h> 5123 #include <stdarg.h> 5124 #include <string.h> 5125 #include <float.h> 5126 5127 int 5128 main () 5129 { 5130 5131 ; 5132 return 0; 5133 } 5134 _ACEOF 5135 rm -f conftest.$ac_objext 5136 if { (ac_try="$ac_compile" 5137 case "(($ac_try" in 5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5139 *) ac_try_echo=$ac_try;; 5140 esac 5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5142 (eval "$ac_compile") 2>conftest.er1 5143 ac_status=$? 5144 grep -v '^ *+' conftest.er1 >conftest.err 5145 rm -f conftest.er1 5146 cat conftest.err >&5 5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5148 (exit $ac_status); } && { 5149 test -z "$ac_c_werror_flag" || 5150 test ! -s conftest.err 5151 } && test -s conftest.$ac_objext; then 5152 ac_cv_header_stdc=yes 5153 else 5154 echo "$as_me: failed program was:" >&5 5155 sed 's/^/| /' conftest.$ac_ext >&5 5156 5157 ac_cv_header_stdc=no 5158 fi 5159 5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161 5162 if test $ac_cv_header_stdc = yes; then 5163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5164 cat >conftest.$ac_ext <<_ACEOF 5165 /* confdefs.h. */ 5166 _ACEOF 5167 cat confdefs.h >>conftest.$ac_ext 5168 cat >>conftest.$ac_ext <<_ACEOF 5169 /* end confdefs.h. */ 5170 #include <string.h> 5171 5172 _ACEOF 5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5174 $EGREP "memchr" >/dev/null 2>&1; then 5175 : 5176 else 5177 ac_cv_header_stdc=no 5178 fi 5179 rm -f conftest* 5180 5181 fi 5182 5183 if test $ac_cv_header_stdc = yes; then 5184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5185 cat >conftest.$ac_ext <<_ACEOF 5186 /* confdefs.h. */ 5187 _ACEOF 5188 cat confdefs.h >>conftest.$ac_ext 5189 cat >>conftest.$ac_ext <<_ACEOF 5190 /* end confdefs.h. */ 5191 #include <stdlib.h> 5192 5193 _ACEOF 5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5195 $EGREP "free" >/dev/null 2>&1; then 5196 : 5197 else 5198 ac_cv_header_stdc=no 5199 fi 5200 rm -f conftest* 5201 5202 fi 5203 5204 if test $ac_cv_header_stdc = yes; then 5205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5206 if test "$cross_compiling" = yes; then 5207 : 5208 else 5209 cat >conftest.$ac_ext <<_ACEOF 5210 /* confdefs.h. */ 5211 _ACEOF 5212 cat confdefs.h >>conftest.$ac_ext 5213 cat >>conftest.$ac_ext <<_ACEOF 5214 /* end confdefs.h. */ 5215 #include <ctype.h> 5216 #include <stdlib.h> 5217 #if ((' ' & 0x0FF) == 0x020) 5218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5220 #else 5221 # define ISLOWER(c) \ 5222 (('a' <= (c) && (c) <= 'i') \ 5223 || ('j' <= (c) && (c) <= 'r') \ 5224 || ('s' <= (c) && (c) <= 'z')) 5225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5226 #endif 5227 5228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5229 int 5230 main () 5231 { 5232 int i; 5233 for (i = 0; i < 256; i++) 5234 if (XOR (islower (i), ISLOWER (i)) 5235 || toupper (i) != TOUPPER (i)) 5236 return 2; 5237 return 0; 5238 } 5239 _ACEOF 5240 rm -f conftest$ac_exeext 5241 if { (ac_try="$ac_link" 5242 case "(($ac_try" in 5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5244 *) ac_try_echo=$ac_try;; 5245 esac 5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5247 (eval "$ac_link") 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5251 { (case "(($ac_try" in 5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5253 *) ac_try_echo=$ac_try;; 5254 esac 5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5256 (eval "$ac_try") 2>&5 5257 ac_status=$? 5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 (exit $ac_status); }; }; then 5260 : 5261 else 5262 echo "$as_me: program exited with status $ac_status" >&5 5263 echo "$as_me: failed program was:" >&5 5264 sed 's/^/| /' conftest.$ac_ext >&5 5265 5266 ( exit $ac_status ) 5267 ac_cv_header_stdc=no 5268 fi 5269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5270 fi 5271 5272 5273 fi 5274 fi 5275 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5276 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5277 if test $ac_cv_header_stdc = yes; then 5278 5279 cat >>confdefs.h <<\_ACEOF 5280 #define STDC_HEADERS 1 5281 _ACEOF 5282 5283 fi 5284 5285 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5296 inttypes.h stdint.h unistd.h 5297 do 5298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5299 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5302 echo $ECHO_N "(cached) $ECHO_C" >&6 5303 else 5304 cat >conftest.$ac_ext <<_ACEOF 5305 /* confdefs.h. */ 5306 _ACEOF 5307 cat confdefs.h >>conftest.$ac_ext 5308 cat >>conftest.$ac_ext <<_ACEOF 5309 /* end confdefs.h. */ 5310 $ac_includes_default 5311 5312 #include <$ac_header> 5313 _ACEOF 5314 rm -f conftest.$ac_objext 5315 if { (ac_try="$ac_compile" 5316 case "(($ac_try" in 5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5318 *) ac_try_echo=$ac_try;; 5319 esac 5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5321 (eval "$ac_compile") 2>conftest.er1 5322 ac_status=$? 5323 grep -v '^ *+' conftest.er1 >conftest.err 5324 rm -f conftest.er1 5325 cat conftest.err >&5 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5327 (exit $ac_status); } && { 5328 test -z "$ac_c_werror_flag" || 5329 test ! -s conftest.err 5330 } && test -s conftest.$ac_objext; then 5331 eval "$as_ac_Header=yes" 5332 else 5333 echo "$as_me: failed program was:" >&5 5334 sed 's/^/| /' conftest.$ac_ext >&5 5335 5336 eval "$as_ac_Header=no" 5337 fi 5338 5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5340 fi 5341 ac_res=`eval echo '${'$as_ac_Header'}'` 5342 { echo "$as_me:$LINENO: result: $ac_res" >&5 5343 echo "${ECHO_T}$ac_res" >&6; } 5344 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5345 cat >>confdefs.h <<_ACEOF 5346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5347 _ACEOF 5348 5349 fi 5350 5351 done 5352 5353 5354 5355 for ac_header in dlfcn.h 5356 do 5357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5359 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5362 echo $ECHO_N "(cached) $ECHO_C" >&6 5363 fi 5364 ac_res=`eval echo '${'$as_ac_Header'}'` 5365 { echo "$as_me:$LINENO: result: $ac_res" >&5 5366 echo "${ECHO_T}$ac_res" >&6; } 5367 else 5368 # Is the header compilable? 5369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 5370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5371 cat >conftest.$ac_ext <<_ACEOF 5372 /* confdefs.h. */ 5373 _ACEOF 5374 cat confdefs.h >>conftest.$ac_ext 5375 cat >>conftest.$ac_ext <<_ACEOF 5376 /* end confdefs.h. */ 5377 $ac_includes_default 5378 #include <$ac_header> 5379 _ACEOF 5380 rm -f conftest.$ac_objext 5381 if { (ac_try="$ac_compile" 5382 case "(($ac_try" in 5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5384 *) ac_try_echo=$ac_try;; 5385 esac 5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5387 (eval "$ac_compile") 2>conftest.er1 5388 ac_status=$? 5389 grep -v '^ *+' conftest.er1 >conftest.err 5390 rm -f conftest.er1 5391 cat conftest.err >&5 5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 (exit $ac_status); } && { 5394 test -z "$ac_c_werror_flag" || 5395 test ! -s conftest.err 5396 } && test -s conftest.$ac_objext; then 5397 ac_header_compiler=yes 5398 else 5399 echo "$as_me: failed program was:" >&5 5400 sed 's/^/| /' conftest.$ac_ext >&5 5401 5402 ac_header_compiler=no 5403 fi 5404 5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5407 echo "${ECHO_T}$ac_header_compiler" >&6; } 5408 5409 # Is the header present? 5410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 5411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5412 cat >conftest.$ac_ext <<_ACEOF 5413 /* confdefs.h. */ 5414 _ACEOF 5415 cat confdefs.h >>conftest.$ac_ext 5416 cat >>conftest.$ac_ext <<_ACEOF 5417 /* end confdefs.h. */ 5418 #include <$ac_header> 5419 _ACEOF 5420 if { (ac_try="$ac_cpp conftest.$ac_ext" 5421 case "(($ac_try" in 5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5423 *) ac_try_echo=$ac_try;; 5424 esac 5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5427 ac_status=$? 5428 grep -v '^ *+' conftest.er1 >conftest.err 5429 rm -f conftest.er1 5430 cat conftest.err >&5 5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5432 (exit $ac_status); } >/dev/null && { 5433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5434 test ! -s conftest.err 5435 }; then 5436 ac_header_preproc=yes 5437 else 5438 echo "$as_me: failed program was:" >&5 5439 sed 's/^/| /' conftest.$ac_ext >&5 5440 5441 ac_header_preproc=no 5442 fi 5443 5444 rm -f conftest.err conftest.$ac_ext 5445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5446 echo "${ECHO_T}$ac_header_preproc" >&6; } 5447 5448 # So? What about this header? 5449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5450 yes:no: ) 5451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5455 ac_header_preproc=yes 5456 ;; 5457 no:yes:* ) 5458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5470 ( cat <<\_ASBOX 5471 ## ------------------------------------------- ## 5472 ## Report this to http://gcc.gnu.org/bugs.html ## 5473 ## ------------------------------------------- ## 5474 _ASBOX 5475 ) | sed "s/^/$as_me: WARNING: /" >&2 5476 ;; 5477 esac 5478 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5481 echo $ECHO_N "(cached) $ECHO_C" >&6 5482 else 5483 eval "$as_ac_Header=\$ac_header_preproc" 5484 fi 5485 ac_res=`eval echo '${'$as_ac_Header'}'` 5486 { echo "$as_me:$LINENO: result: $ac_res" >&5 5487 echo "${ECHO_T}$ac_res" >&6; } 5488 5489 fi 5490 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5491 cat >>confdefs.h <<_ACEOF 5492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5493 _ACEOF 5494 5495 fi 5496 5497 done 5498 5499 ac_ext=cpp 5500 ac_cpp='$CXXCPP $CPPFLAGS' 5501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5504 if test -z "$CXX"; then 5505 if test -n "$CCC"; then 5506 CXX=$CCC 5507 else 5508 if test -n "$ac_tool_prefix"; then 5509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5510 do 5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5513 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5515 if test "${ac_cv_prog_CXX+set}" = set; then 5516 echo $ECHO_N "(cached) $ECHO_C" >&6 5517 else 5518 if test -n "$CXX"; then 5519 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5520 else 5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5522 for as_dir in $PATH 5523 do 5524 IFS=$as_save_IFS 5525 test -z "$as_dir" && as_dir=. 5526 for ac_exec_ext in '' $ac_executable_extensions; do 5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5530 break 2 5531 fi 5532 done 5533 done 5534 IFS=$as_save_IFS 5535 5536 fi 5537 fi 5538 CXX=$ac_cv_prog_CXX 5539 if test -n "$CXX"; then 5540 { echo "$as_me:$LINENO: result: $CXX" >&5 5541 echo "${ECHO_T}$CXX" >&6; } 5542 else 5543 { echo "$as_me:$LINENO: result: no" >&5 5544 echo "${ECHO_T}no" >&6; } 5545 fi 5546 5547 5548 test -n "$CXX" && break 5549 done 5550 fi 5551 if test -z "$CXX"; then 5552 ac_ct_CXX=$CXX 5553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5554 do 5555 # Extract the first word of "$ac_prog", so it can be a program name with args. 5556 set dummy $ac_prog; ac_word=$2 5557 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5560 echo $ECHO_N "(cached) $ECHO_C" >&6 5561 else 5562 if test -n "$ac_ct_CXX"; then 5563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5564 else 5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5566 for as_dir in $PATH 5567 do 5568 IFS=$as_save_IFS 5569 test -z "$as_dir" && as_dir=. 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5572 ac_cv_prog_ac_ct_CXX="$ac_prog" 5573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5574 break 2 5575 fi 5576 done 5577 done 5578 IFS=$as_save_IFS 5579 5580 fi 5581 fi 5582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5583 if test -n "$ac_ct_CXX"; then 5584 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5585 echo "${ECHO_T}$ac_ct_CXX" >&6; } 5586 else 5587 { echo "$as_me:$LINENO: result: no" >&5 5588 echo "${ECHO_T}no" >&6; } 5589 fi 5590 5591 5592 test -n "$ac_ct_CXX" && break 5593 done 5594 5595 if test "x$ac_ct_CXX" = x; then 5596 CXX="g++" 5597 else 5598 case $cross_compiling:$ac_tool_warned in 5599 yes:) 5600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5601 whose name does not start with the host triplet. If you think this 5602 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 5603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5604 whose name does not start with the host triplet. If you think this 5605 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 5606 ac_tool_warned=yes ;; 5607 esac 5608 CXX=$ac_ct_CXX 5609 fi 5610 fi 5611 5612 fi 5613 fi 5614 # Provide some information about the compiler. 5615 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5616 ac_compiler=`set X $ac_compile; echo $2` 5617 { (ac_try="$ac_compiler --version >&5" 5618 case "(($ac_try" in 5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5620 *) ac_try_echo=$ac_try;; 5621 esac 5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5623 (eval "$ac_compiler --version >&5") 2>&5 5624 ac_status=$? 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } 5627 { (ac_try="$ac_compiler -v >&5" 5628 case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631 esac 5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5633 (eval "$ac_compiler -v >&5") 2>&5 5634 ac_status=$? 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } 5637 { (ac_try="$ac_compiler -V >&5" 5638 case "(($ac_try" in 5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5640 *) ac_try_echo=$ac_try;; 5641 esac 5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5643 (eval "$ac_compiler -V >&5") 2>&5 5644 ac_status=$? 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646 (exit $ac_status); } 5647 5648 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5649 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5650 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5651 echo $ECHO_N "(cached) $ECHO_C" >&6 5652 else 5653 cat >conftest.$ac_ext <<_ACEOF 5654 /* confdefs.h. */ 5655 _ACEOF 5656 cat confdefs.h >>conftest.$ac_ext 5657 cat >>conftest.$ac_ext <<_ACEOF 5658 /* end confdefs.h. */ 5659 5660 int 5661 main () 5662 { 5663 #ifndef __GNUC__ 5664 choke me 5665 #endif 5666 5667 ; 5668 return 0; 5669 } 5670 _ACEOF 5671 rm -f conftest.$ac_objext 5672 if { (ac_try="$ac_compile" 5673 case "(($ac_try" in 5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5675 *) ac_try_echo=$ac_try;; 5676 esac 5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5678 (eval "$ac_compile") 2>conftest.er1 5679 ac_status=$? 5680 grep -v '^ *+' conftest.er1 >conftest.err 5681 rm -f conftest.er1 5682 cat conftest.err >&5 5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5684 (exit $ac_status); } && { 5685 test -z "$ac_cxx_werror_flag" || 5686 test ! -s conftest.err 5687 } && test -s conftest.$ac_objext; then 5688 ac_compiler_gnu=yes 5689 else 5690 echo "$as_me: failed program was:" >&5 5691 sed 's/^/| /' conftest.$ac_ext >&5 5692 5693 ac_compiler_gnu=no 5694 fi 5695 5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5698 5699 fi 5700 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5701 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5702 GXX=`test $ac_compiler_gnu = yes && echo yes` 5703 ac_test_CXXFLAGS=${CXXFLAGS+set} 5704 ac_save_CXXFLAGS=$CXXFLAGS 5705 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5706 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5707 if test "${ac_cv_prog_cxx_g+set}" = set; then 5708 echo $ECHO_N "(cached) $ECHO_C" >&6 5709 else 5710 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5711 ac_cxx_werror_flag=yes 5712 ac_cv_prog_cxx_g=no 5713 CXXFLAGS="-g" 5714 cat >conftest.$ac_ext <<_ACEOF 5715 /* confdefs.h. */ 5716 _ACEOF 5717 cat confdefs.h >>conftest.$ac_ext 5718 cat >>conftest.$ac_ext <<_ACEOF 5719 /* end confdefs.h. */ 5720 5721 int 5722 main () 5723 { 5724 5725 ; 5726 return 0; 5727 } 5728 _ACEOF 5729 rm -f conftest.$ac_objext 5730 if { (ac_try="$ac_compile" 5731 case "(($ac_try" in 5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5733 *) ac_try_echo=$ac_try;; 5734 esac 5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5736 (eval "$ac_compile") 2>conftest.er1 5737 ac_status=$? 5738 grep -v '^ *+' conftest.er1 >conftest.err 5739 rm -f conftest.er1 5740 cat conftest.err >&5 5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5742 (exit $ac_status); } && { 5743 test -z "$ac_cxx_werror_flag" || 5744 test ! -s conftest.err 5745 } && test -s conftest.$ac_objext; then 5746 ac_cv_prog_cxx_g=yes 5747 else 5748 echo "$as_me: failed program was:" >&5 5749 sed 's/^/| /' conftest.$ac_ext >&5 5750 5751 CXXFLAGS="" 5752 cat >conftest.$ac_ext <<_ACEOF 5753 /* confdefs.h. */ 5754 _ACEOF 5755 cat confdefs.h >>conftest.$ac_ext 5756 cat >>conftest.$ac_ext <<_ACEOF 5757 /* end confdefs.h. */ 5758 5759 int 5760 main () 5761 { 5762 5763 ; 5764 return 0; 5765 } 5766 _ACEOF 5767 rm -f conftest.$ac_objext 5768 if { (ac_try="$ac_compile" 5769 case "(($ac_try" in 5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5771 *) ac_try_echo=$ac_try;; 5772 esac 5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5774 (eval "$ac_compile") 2>conftest.er1 5775 ac_status=$? 5776 grep -v '^ *+' conftest.er1 >conftest.err 5777 rm -f conftest.er1 5778 cat conftest.err >&5 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); } && { 5781 test -z "$ac_cxx_werror_flag" || 5782 test ! -s conftest.err 5783 } && test -s conftest.$ac_objext; then 5784 : 5785 else 5786 echo "$as_me: failed program was:" >&5 5787 sed 's/^/| /' conftest.$ac_ext >&5 5788 5789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5790 CXXFLAGS="-g" 5791 cat >conftest.$ac_ext <<_ACEOF 5792 /* confdefs.h. */ 5793 _ACEOF 5794 cat confdefs.h >>conftest.$ac_ext 5795 cat >>conftest.$ac_ext <<_ACEOF 5796 /* end confdefs.h. */ 5797 5798 int 5799 main () 5800 { 5801 5802 ; 5803 return 0; 5804 } 5805 _ACEOF 5806 rm -f conftest.$ac_objext 5807 if { (ac_try="$ac_compile" 5808 case "(($ac_try" in 5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5810 *) ac_try_echo=$ac_try;; 5811 esac 5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5813 (eval "$ac_compile") 2>conftest.er1 5814 ac_status=$? 5815 grep -v '^ *+' conftest.er1 >conftest.err 5816 rm -f conftest.er1 5817 cat conftest.err >&5 5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5819 (exit $ac_status); } && { 5820 test -z "$ac_cxx_werror_flag" || 5821 test ! -s conftest.err 5822 } && test -s conftest.$ac_objext; then 5823 ac_cv_prog_cxx_g=yes 5824 else 5825 echo "$as_me: failed program was:" >&5 5826 sed 's/^/| /' conftest.$ac_ext >&5 5827 5828 5829 fi 5830 5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5832 fi 5833 5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5835 fi 5836 5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5839 fi 5840 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5841 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5842 if test "$ac_test_CXXFLAGS" = set; then 5843 CXXFLAGS=$ac_save_CXXFLAGS 5844 elif test $ac_cv_prog_cxx_g = yes; then 5845 if test "$GXX" = yes; then 5846 CXXFLAGS="-g -O2" 5847 else 5848 CXXFLAGS="-g" 5849 fi 5850 else 5851 if test "$GXX" = yes; then 5852 CXXFLAGS="-O2" 5853 else 5854 CXXFLAGS= 5855 fi 5856 fi 5857 ac_ext=cpp 5858 ac_cpp='$CXXCPP $CPPFLAGS' 5859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5862 5863 depcc="$CXX" am_compiler_list= 5864 5865 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5868 echo $ECHO_N "(cached) $ECHO_C" >&6 5869 else 5870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5871 # We make a subdir and do the tests there. Otherwise we can end up 5872 # making bogus files that we don't know about and never remove. For 5873 # instance it was reported that on HP-UX the gcc test will end up 5874 # making a dummy file named `D' -- because `-MD' means `put the output 5875 # in D'. 5876 mkdir conftest.dir 5877 # Copy depcomp to subdir because otherwise we won't find it if we're 5878 # using a relative directory. 5879 cp "$am_depcomp" conftest.dir 5880 cd conftest.dir 5881 # We will build objects and dependencies in a subdirectory because 5882 # it helps to detect inapplicable dependency modes. For instance 5883 # both Tru64's cc and ICC support -MD to output dependencies as a 5884 # side effect of compilation, but ICC will put the dependencies in 5885 # the current directory while Tru64 will put them in the object 5886 # directory. 5887 mkdir sub 5888 5889 am_cv_CXX_dependencies_compiler_type=none 5890 if test "$am_compiler_list" = ""; then 5891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5892 fi 5893 for depmode in $am_compiler_list; do 5894 # Setup a source with many dependencies, because some compilers 5895 # like to wrap large dependency lists on column 80 (with \), and 5896 # we should not choose a depcomp mode which is confused by this. 5897 # 5898 # We need to recreate these files for each test, as the compiler may 5899 # overwrite some of them when testing with obscure command lines. 5900 # This happens at least with the AIX C compiler. 5901 : > sub/conftest.c 5902 for i in 1 2 3 4 5 6; do 5903 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5904 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5905 # Solaris 8's {/usr,}/bin/sh. 5906 touch sub/conftst$i.h 5907 done 5908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5909 5910 case $depmode in 5911 nosideeffect) 5912 # after this tag, mechanisms are not by side-effect, so they'll 5913 # only be used when explicitly requested 5914 if test "x$enable_dependency_tracking" = xyes; then 5915 continue 5916 else 5917 break 5918 fi 5919 ;; 5920 none) break ;; 5921 esac 5922 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5923 # mode. It turns out that the SunPro C++ compiler does not properly 5924 # handle `-M -o', and we need to detect this. 5925 if depmode=$depmode \ 5926 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5928 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5929 >/dev/null 2>conftest.err && 5930 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5931 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5932 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5933 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5934 # icc doesn't choke on unknown options, it will just issue warnings 5935 # or remarks (even with -Werror). So we grep stderr for any message 5936 # that says an option was ignored or not supported. 5937 # When given -MP, icc 7.0 and 7.1 complain thusly: 5938 # icc: Command line warning: ignoring option '-M'; no argument required 5939 # The diagnosis changed in icc 8.0: 5940 # icc: Command line remark: option '-MP' not supported 5941 if (grep 'ignoring option' conftest.err || 5942 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5943 am_cv_CXX_dependencies_compiler_type=$depmode 5944 break 5945 fi 5946 fi 5947 done 5948 5949 cd .. 5950 rm -rf conftest.dir 5951 else 5952 am_cv_CXX_dependencies_compiler_type=none 5953 fi 5954 5955 fi 5956 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5957 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5958 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5959 5960 if 5961 test "x$enable_dependency_tracking" != xno \ 5962 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5963 am__fastdepCXX_TRUE= 5964 am__fastdepCXX_FALSE='#' 5965 else 5966 am__fastdepCXX_TRUE='#' 5967 am__fastdepCXX_FALSE= 5968 fi 5969 5970 5971 5972 5973 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5974 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5975 (test "X$CXX" != "Xg++"))) ; then 5976 ac_ext=cpp 5977 ac_cpp='$CXXCPP $CPPFLAGS' 5978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5981 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5982 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5983 if test -z "$CXXCPP"; then 5984 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5985 echo $ECHO_N "(cached) $ECHO_C" >&6 5986 else 5987 # Double quotes because CXXCPP needs to be expanded 5988 for CXXCPP in "$CXX -E" "/lib/cpp" 5989 do 5990 ac_preproc_ok=false 5991 for ac_cxx_preproc_warn_flag in '' yes 5992 do 5993 # Use a header file that comes with gcc, so configuring glibc 5994 # with a fresh cross-compiler works. 5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5996 # <limits.h> exists even on freestanding compilers. 5997 # On the NeXT, cc -E runs the code through the compiler's parser, 5998 # not just through cpp. "Syntax error" is here to catch this case. 5999 cat >conftest.$ac_ext <<_ACEOF 6000 /* confdefs.h. */ 6001 _ACEOF 6002 cat confdefs.h >>conftest.$ac_ext 6003 cat >>conftest.$ac_ext <<_ACEOF 6004 /* end confdefs.h. */ 6005 #ifdef __STDC__ 6006 # include <limits.h> 6007 #else 6008 # include <assert.h> 6009 #endif 6010 Syntax error 6011 _ACEOF 6012 if { (ac_try="$ac_cpp conftest.$ac_ext" 6013 case "(($ac_try" in 6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6015 *) ac_try_echo=$ac_try;; 6016 esac 6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6019 ac_status=$? 6020 grep -v '^ *+' conftest.er1 >conftest.err 6021 rm -f conftest.er1 6022 cat conftest.err >&5 6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6024 (exit $ac_status); } >/dev/null && { 6025 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6026 test ! -s conftest.err 6027 }; then 6028 : 6029 else 6030 echo "$as_me: failed program was:" >&5 6031 sed 's/^/| /' conftest.$ac_ext >&5 6032 6033 # Broken: fails on valid input. 6034 continue 6035 fi 6036 6037 rm -f conftest.err conftest.$ac_ext 6038 6039 # OK, works on sane cases. Now check whether nonexistent headers 6040 # can be detected and how. 6041 cat >conftest.$ac_ext <<_ACEOF 6042 /* confdefs.h. */ 6043 _ACEOF 6044 cat confdefs.h >>conftest.$ac_ext 6045 cat >>conftest.$ac_ext <<_ACEOF 6046 /* end confdefs.h. */ 6047 #include <ac_nonexistent.h> 6048 _ACEOF 6049 if { (ac_try="$ac_cpp conftest.$ac_ext" 6050 case "(($ac_try" in 6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6052 *) ac_try_echo=$ac_try;; 6053 esac 6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6056 ac_status=$? 6057 grep -v '^ *+' conftest.er1 >conftest.err 6058 rm -f conftest.er1 6059 cat conftest.err >&5 6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6061 (exit $ac_status); } >/dev/null && { 6062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6063 test ! -s conftest.err 6064 }; then 6065 # Broken: success on invalid input. 6066 continue 6067 else 6068 echo "$as_me: failed program was:" >&5 6069 sed 's/^/| /' conftest.$ac_ext >&5 6070 6071 # Passes both tests. 6072 ac_preproc_ok=: 6073 break 6074 fi 6075 6076 rm -f conftest.err conftest.$ac_ext 6077 6078 done 6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6080 rm -f conftest.err conftest.$ac_ext 6081 if $ac_preproc_ok; then 6082 break 6083 fi 6084 6085 done 6086 ac_cv_prog_CXXCPP=$CXXCPP 6087 6088 fi 6089 CXXCPP=$ac_cv_prog_CXXCPP 6090 else 6091 ac_cv_prog_CXXCPP=$CXXCPP 6092 fi 6093 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 6094 echo "${ECHO_T}$CXXCPP" >&6; } 6095 ac_preproc_ok=false 6096 for ac_cxx_preproc_warn_flag in '' yes 6097 do 6098 # Use a header file that comes with gcc, so configuring glibc 6099 # with a fresh cross-compiler works. 6100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6101 # <limits.h> exists even on freestanding compilers. 6102 # On the NeXT, cc -E runs the code through the compiler's parser, 6103 # not just through cpp. "Syntax error" is here to catch this case. 6104 cat >conftest.$ac_ext <<_ACEOF 6105 /* confdefs.h. */ 6106 _ACEOF 6107 cat confdefs.h >>conftest.$ac_ext 6108 cat >>conftest.$ac_ext <<_ACEOF 6109 /* end confdefs.h. */ 6110 #ifdef __STDC__ 6111 # include <limits.h> 6112 #else 6113 # include <assert.h> 6114 #endif 6115 Syntax error 6116 _ACEOF 6117 if { (ac_try="$ac_cpp conftest.$ac_ext" 6118 case "(($ac_try" in 6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6120 *) ac_try_echo=$ac_try;; 6121 esac 6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6124 ac_status=$? 6125 grep -v '^ *+' conftest.er1 >conftest.err 6126 rm -f conftest.er1 6127 cat conftest.err >&5 6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6129 (exit $ac_status); } >/dev/null && { 6130 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6131 test ! -s conftest.err 6132 }; then 6133 : 6134 else 6135 echo "$as_me: failed program was:" >&5 6136 sed 's/^/| /' conftest.$ac_ext >&5 6137 6138 # Broken: fails on valid input. 6139 continue 6140 fi 6141 6142 rm -f conftest.err conftest.$ac_ext 6143 6144 # OK, works on sane cases. Now check whether nonexistent headers 6145 # can be detected and how. 6146 cat >conftest.$ac_ext <<_ACEOF 6147 /* confdefs.h. */ 6148 _ACEOF 6149 cat confdefs.h >>conftest.$ac_ext 6150 cat >>conftest.$ac_ext <<_ACEOF 6151 /* end confdefs.h. */ 6152 #include <ac_nonexistent.h> 6153 _ACEOF 6154 if { (ac_try="$ac_cpp conftest.$ac_ext" 6155 case "(($ac_try" in 6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6157 *) ac_try_echo=$ac_try;; 6158 esac 6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6161 ac_status=$? 6162 grep -v '^ *+' conftest.er1 >conftest.err 6163 rm -f conftest.er1 6164 cat conftest.err >&5 6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6166 (exit $ac_status); } >/dev/null && { 6167 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6168 test ! -s conftest.err 6169 }; then 6170 # Broken: success on invalid input. 6171 continue 6172 else 6173 echo "$as_me: failed program was:" >&5 6174 sed 's/^/| /' conftest.$ac_ext >&5 6175 6176 # Passes both tests. 6177 ac_preproc_ok=: 6178 break 6179 fi 6180 6181 rm -f conftest.err conftest.$ac_ext 6182 6183 done 6184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6185 rm -f conftest.err conftest.$ac_ext 6186 if $ac_preproc_ok; then 6187 : 6188 else 6189 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6190 See \`config.log' for more details." >&5 6191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6192 See \`config.log' for more details." >&2;} 6193 { (exit 1); exit 1; }; } 6194 fi 6195 6196 ac_ext=cpp 6197 ac_cpp='$CXXCPP $CPPFLAGS' 6198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6201 6202 fi 6203 6204 6205 ac_ext=f 6206 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6207 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6208 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6209 if test -n "$ac_tool_prefix"; then 6210 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 6211 do 6212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6214 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6216 if test "${ac_cv_prog_F77+set}" = set; then 6217 echo $ECHO_N "(cached) $ECHO_C" >&6 6218 else 6219 if test -n "$F77"; then 6220 ac_cv_prog_F77="$F77" # Let the user override the test. 6221 else 6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223 for as_dir in $PATH 6224 do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_exec_ext in '' $ac_executable_extensions; do 6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6229 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6231 break 2 6232 fi 6233 done 6234 done 6235 IFS=$as_save_IFS 6236 6237 fi 6238 fi 6239 F77=$ac_cv_prog_F77 6240 if test -n "$F77"; then 6241 { echo "$as_me:$LINENO: result: $F77" >&5 6242 echo "${ECHO_T}$F77" >&6; } 6243 else 6244 { echo "$as_me:$LINENO: result: no" >&5 6245 echo "${ECHO_T}no" >&6; } 6246 fi 6247 6248 6249 test -n "$F77" && break 6250 done 6251 fi 6252 if test -z "$F77"; then 6253 ac_ct_F77=$F77 6254 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 6255 do 6256 # Extract the first word of "$ac_prog", so it can be a program name with args. 6257 set dummy $ac_prog; ac_word=$2 6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6260 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6261 echo $ECHO_N "(cached) $ECHO_C" >&6 6262 else 6263 if test -n "$ac_ct_F77"; then 6264 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6265 else 6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6267 for as_dir in $PATH 6268 do 6269 IFS=$as_save_IFS 6270 test -z "$as_dir" && as_dir=. 6271 for ac_exec_ext in '' $ac_executable_extensions; do 6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6273 ac_cv_prog_ac_ct_F77="$ac_prog" 6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6275 break 2 6276 fi 6277 done 6278 done 6279 IFS=$as_save_IFS 6280 6281 fi 6282 fi 6283 ac_ct_F77=$ac_cv_prog_ac_ct_F77 6284 if test -n "$ac_ct_F77"; then 6285 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6286 echo "${ECHO_T}$ac_ct_F77" >&6; } 6287 else 6288 { echo "$as_me:$LINENO: result: no" >&5 6289 echo "${ECHO_T}no" >&6; } 6290 fi 6291 6292 6293 test -n "$ac_ct_F77" && break 6294 done 6295 6296 if test "x$ac_ct_F77" = x; then 6297 F77="" 6298 else 6299 case $cross_compiling:$ac_tool_warned in 6300 yes:) 6301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6302 whose name does not start with the host triplet. If you think this 6303 configuration is useful to you, please write to autoconf@gnu.org." >&5 6304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6305 whose name does not start with the host triplet. If you think this 6306 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6307 ac_tool_warned=yes ;; 6308 esac 6309 F77=$ac_ct_F77 6310 fi 6311 fi 6312 6313 6314 # Provide some information about the compiler. 6315 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6316 ac_compiler=`set X $ac_compile; echo $2` 6317 { (ac_try="$ac_compiler --version >&5" 6318 case "(($ac_try" in 6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6320 *) ac_try_echo=$ac_try;; 6321 esac 6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6323 (eval "$ac_compiler --version >&5") 2>&5 6324 ac_status=$? 6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6326 (exit $ac_status); } 6327 { (ac_try="$ac_compiler -v >&5" 6328 case "(($ac_try" in 6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6330 *) ac_try_echo=$ac_try;; 6331 esac 6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6333 (eval "$ac_compiler -v >&5") 2>&5 6334 ac_status=$? 6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); } 6337 { (ac_try="$ac_compiler -V >&5" 6338 case "(($ac_try" in 6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6340 *) ac_try_echo=$ac_try;; 6341 esac 6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6343 (eval "$ac_compiler -V >&5") 2>&5 6344 ac_status=$? 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } 6347 rm -f a.out 6348 6349 # If we don't use `.F' as extension, the preprocessor is not run on the 6350 # input file. (Note that this only needs to work for GNU compilers.) 6351 ac_save_ext=$ac_ext 6352 ac_ext=F 6353 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6354 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6355 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6356 echo $ECHO_N "(cached) $ECHO_C" >&6 6357 else 6358 cat >conftest.$ac_ext <<_ACEOF 6359 program main 6360 #ifndef __GNUC__ 6361 choke me 6362 #endif 6363 6364 end 6365 _ACEOF 6366 rm -f conftest.$ac_objext 6367 if { (ac_try="$ac_compile" 6368 case "(($ac_try" in 6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6370 *) ac_try_echo=$ac_try;; 6371 esac 6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6373 (eval "$ac_compile") 2>conftest.er1 6374 ac_status=$? 6375 grep -v '^ *+' conftest.er1 >conftest.err 6376 rm -f conftest.er1 6377 cat conftest.err >&5 6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6379 (exit $ac_status); } && { 6380 test -z "$ac_f77_werror_flag" || 6381 test ! -s conftest.err 6382 } && test -s conftest.$ac_objext; then 6383 ac_compiler_gnu=yes 6384 else 6385 echo "$as_me: failed program was:" >&5 6386 sed 's/^/| /' conftest.$ac_ext >&5 6387 6388 ac_compiler_gnu=no 6389 fi 6390 6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6392 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6393 6394 fi 6395 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6396 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6397 ac_ext=$ac_save_ext 6398 ac_test_FFLAGS=${FFLAGS+set} 6399 ac_save_FFLAGS=$FFLAGS 6400 FFLAGS= 6401 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6402 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6403 if test "${ac_cv_prog_f77_g+set}" = set; then 6404 echo $ECHO_N "(cached) $ECHO_C" >&6 6405 else 6406 FFLAGS=-g 6407 cat >conftest.$ac_ext <<_ACEOF 6408 program main 6409 6410 end 6411 _ACEOF 6412 rm -f conftest.$ac_objext 6413 if { (ac_try="$ac_compile" 6414 case "(($ac_try" in 6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6416 *) ac_try_echo=$ac_try;; 6417 esac 6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6419 (eval "$ac_compile") 2>conftest.er1 6420 ac_status=$? 6421 grep -v '^ *+' conftest.er1 >conftest.err 6422 rm -f conftest.er1 6423 cat conftest.err >&5 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); } && { 6426 test -z "$ac_f77_werror_flag" || 6427 test ! -s conftest.err 6428 } && test -s conftest.$ac_objext; then 6429 ac_cv_prog_f77_g=yes 6430 else 6431 echo "$as_me: failed program was:" >&5 6432 sed 's/^/| /' conftest.$ac_ext >&5 6433 6434 ac_cv_prog_f77_g=no 6435 fi 6436 6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6438 6439 fi 6440 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6441 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6442 if test "$ac_test_FFLAGS" = set; then 6443 FFLAGS=$ac_save_FFLAGS 6444 elif test $ac_cv_prog_f77_g = yes; then 6445 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6446 FFLAGS="-g -O2" 6447 else 6448 FFLAGS="-g" 6449 fi 6450 else 6451 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6452 FFLAGS="-O2" 6453 else 6454 FFLAGS= 6455 fi 6456 fi 6457 6458 G77=`test $ac_compiler_gnu = yes && echo yes` 6459 ac_ext=c 6460 ac_cpp='$CPP $CPPFLAGS' 6461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6463 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6464 6465 6466 6467 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6468 6469 # find the maximum length of command line arguments 6470 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6471 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6472 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6473 echo $ECHO_N "(cached) $ECHO_C" >&6 6474 else 6475 i=0 6476 teststring="ABCD" 6477 6478 case $build_os in 6479 msdosdjgpp*) 6480 # On DJGPP, this test can blow up pretty badly due to problems in libc 6481 # (any single argument exceeding 2000 bytes causes a buffer overrun 6482 # during glob expansion). Even if it were fixed, the result of this 6483 # check would be larger than it should be. 6484 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6485 ;; 6486 6487 gnu*) 6488 # Under GNU Hurd, this test is not required because there is 6489 # no limit to the length of command line arguments. 6490 # Libtool will interpret -1 as no limit whatsoever 6491 lt_cv_sys_max_cmd_len=-1; 6492 ;; 6493 6494 cygwin* | mingw*) 6495 # On Win9x/ME, this test blows up -- it succeeds, but takes 6496 # about 5 minutes as the teststring grows exponentially. 6497 # Worse, since 9x/ME are not pre-emptively multitasking, 6498 # you end up with a "frozen" computer, even though with patience 6499 # the test eventually succeeds (with a max line length of 256k). 6500 # Instead, let's just punt: use the minimum linelength reported by 6501 # all of the supported platforms: 8192 (on NT/2K/XP). 6502 lt_cv_sys_max_cmd_len=8192; 6503 ;; 6504 6505 amigaos*) 6506 # On AmigaOS with pdksh, this test takes hours, literally. 6507 # So we just punt and use a minimum line length of 8192. 6508 lt_cv_sys_max_cmd_len=8192; 6509 ;; 6510 6511 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6512 # This has been around since 386BSD, at least. Likely further. 6513 if test -x /sbin/sysctl; then 6514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6515 elif test -x /usr/sbin/sysctl; then 6516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6517 else 6518 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6519 fi 6520 # And add a safety zone 6521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6523 ;; 6524 6525 interix*) 6526 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6527 lt_cv_sys_max_cmd_len=196608 6528 ;; 6529 6530 osf*) 6531 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6532 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6533 # nice to cause kernel panics so lets avoid the loop below. 6534 # First set a reasonable default. 6535 lt_cv_sys_max_cmd_len=16384 6536 # 6537 if test -x /sbin/sysconfig; then 6538 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6539 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6540 esac 6541 fi 6542 ;; 6543 sco3.2v5*) 6544 lt_cv_sys_max_cmd_len=102400 6545 ;; 6546 sysv5* | sco5v6* | sysv4.2uw2*) 6547 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6548 if test -n "$kargmax"; then 6549 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6550 else 6551 lt_cv_sys_max_cmd_len=32768 6552 fi 6553 ;; 6554 *) 6555 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6556 if test -n "$lt_cv_sys_max_cmd_len"; then 6557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6559 else 6560 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6561 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6562 = "XX$teststring") >/dev/null 2>&1 && 6563 new_result=`expr "X$teststring" : ".*" 2>&1` && 6564 lt_cv_sys_max_cmd_len=$new_result && 6565 test $i != 17 # 1/2 MB should be enough 6566 do 6567 i=`expr $i + 1` 6568 teststring=$teststring$teststring 6569 done 6570 teststring= 6571 # Add a significant safety factor because C++ compilers can tack on massive 6572 # amounts of additional arguments before passing them to the linker. 6573 # It appears as though 1/2 is a usable value. 6574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6575 fi 6576 ;; 6577 esac 6578 6579 fi 6580 6581 if test -n $lt_cv_sys_max_cmd_len ; then 6582 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6583 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6584 else 6585 { echo "$as_me:$LINENO: result: none" >&5 6586 echo "${ECHO_T}none" >&6; } 6587 fi 6588 6589 6590 6591 6592 6593 # Check for command to grab the raw symbol name followed by C symbol from nm. 6594 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6595 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6596 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6597 echo $ECHO_N "(cached) $ECHO_C" >&6 6598 else 6599 6600 # These are sane defaults that work on at least a few old systems. 6601 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6602 6603 # Character class describing NM global symbol codes. 6604 symcode='[BCDEGRST]' 6605 6606 # Regexp to match symbols that can be accessed directly from C. 6607 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6608 6609 # Transform an extracted symbol line into a proper C declaration 6610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6611 6612 # Transform an extracted symbol line into symbol name and symbol address 6613 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'" 6614 6615 # Define system-specific variables. 6616 case $host_os in 6617 aix*) 6618 symcode='[BCDT]' 6619 ;; 6620 cygwin* | mingw* | pw32*) 6621 symcode='[ABCDGISTW]' 6622 ;; 6623 hpux*) # Its linker distinguishes data from code symbols 6624 if test "$host_cpu" = ia64; then 6625 symcode='[ABCDEGRST]' 6626 fi 6627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6628 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'" 6629 ;; 6630 linux* | k*bsd*-gnu) 6631 if test "$host_cpu" = ia64; then 6632 symcode='[ABCDGIRSTW]' 6633 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6634 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'" 6635 fi 6636 ;; 6637 irix* | nonstopux*) 6638 symcode='[BCDEGRST]' 6639 ;; 6640 osf*) 6641 symcode='[BCDEGQRST]' 6642 ;; 6643 solaris*) 6644 symcode='[BDRT]' 6645 ;; 6646 sco3.2v5*) 6647 symcode='[DT]' 6648 ;; 6649 sysv4.2uw2*) 6650 symcode='[DT]' 6651 ;; 6652 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6653 symcode='[ABDT]' 6654 ;; 6655 sysv4) 6656 symcode='[DFNSTU]' 6657 ;; 6658 esac 6659 6660 # Handle CRLF in mingw tool chain 6661 opt_cr= 6662 case $build_os in 6663 mingw*) 6664 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6665 ;; 6666 esac 6667 6668 # If we're using GNU nm, then use its standard symbol codes. 6669 case `$NM -V 2>&1` in 6670 *GNU* | *'with BFD'*) 6671 symcode='[ABCDGIRSTW]' ;; 6672 esac 6673 6674 # Try without a prefix undercore, then with it. 6675 for ac_symprfx in "" "_"; do 6676 6677 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6678 symxfrm="\\1 $ac_symprfx\\2 \\2" 6679 6680 # Write the raw and C identifiers. 6681 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6682 6683 # Check to see that the pipe works correctly. 6684 pipe_works=no 6685 6686 rm -f conftest* 6687 cat > conftest.$ac_ext <<EOF 6688 #ifdef __cplusplus 6689 extern "C" { 6690 #endif 6691 char nm_test_var; 6692 void nm_test_func(){} 6693 #ifdef __cplusplus 6694 } 6695 #endif 6696 int main(){nm_test_var='a';nm_test_func();return(0);} 6697 EOF 6698 6699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6700 (eval $ac_compile) 2>&5 6701 ac_status=$? 6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6703 (exit $ac_status); }; then 6704 # Now try to grab the symbols. 6705 nlist=conftest.nm 6706 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6707 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6708 ac_status=$? 6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6710 (exit $ac_status); } && test -s "$nlist"; then 6711 # Try sorting and uniquifying the output. 6712 if sort "$nlist" | uniq > "$nlist"T; then 6713 mv -f "$nlist"T "$nlist" 6714 else 6715 rm -f "$nlist"T 6716 fi 6717 6718 # Make sure that we snagged all the symbols we need. 6719 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6720 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6721 cat <<EOF > conftest.$ac_ext 6722 #ifdef __cplusplus 6723 extern "C" { 6724 #endif 6725 6726 EOF 6727 # Now generate the symbol file. 6728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6729 6730 cat <<EOF >> conftest.$ac_ext 6731 #if defined (__STDC__) && __STDC__ 6732 # define lt_ptr_t void * 6733 #else 6734 # define lt_ptr_t char * 6735 # define const 6736 #endif 6737 6738 /* The mapping between symbol names and symbols. */ 6739 const struct { 6740 const char *name; 6741 lt_ptr_t address; 6742 } 6743 lt_preloaded_symbols[] = 6744 { 6745 EOF 6746 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6747 cat <<\EOF >> conftest.$ac_ext 6748 {0, (lt_ptr_t) 0} 6749 }; 6750 6751 #ifdef __cplusplus 6752 } 6753 #endif 6754 EOF 6755 # Now try linking the two files. 6756 mv conftest.$ac_objext conftstm.$ac_objext 6757 lt_save_LIBS="$LIBS" 6758 lt_save_CFLAGS="$CFLAGS" 6759 LIBS="conftstm.$ac_objext" 6760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6762 (eval $ac_link) 2>&5 6763 ac_status=$? 6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6765 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6766 pipe_works=yes 6767 fi 6768 LIBS="$lt_save_LIBS" 6769 CFLAGS="$lt_save_CFLAGS" 6770 else 6771 echo "cannot find nm_test_func in $nlist" >&5 6772 fi 6773 else 6774 echo "cannot find nm_test_var in $nlist" >&5 6775 fi 6776 else 6777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6778 fi 6779 else 6780 echo "$progname: failed program was:" >&5 6781 cat conftest.$ac_ext >&5 6782 fi 6783 rm -f conftest* conftst* 6784 6785 # Do not use the global_symbol_pipe unless it works. 6786 if test "$pipe_works" = yes; then 6787 break 6788 else 6789 lt_cv_sys_global_symbol_pipe= 6790 fi 6791 done 6792 6793 fi 6794 6795 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6796 lt_cv_sys_global_symbol_to_cdecl= 6797 fi 6798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6799 { echo "$as_me:$LINENO: result: failed" >&5 6800 echo "${ECHO_T}failed" >&6; } 6801 else 6802 { echo "$as_me:$LINENO: result: ok" >&5 6803 echo "${ECHO_T}ok" >&6; } 6804 fi 6805 6806 { echo "$as_me:$LINENO: checking for objdir" >&5 6807 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6808 if test "${lt_cv_objdir+set}" = set; then 6809 echo $ECHO_N "(cached) $ECHO_C" >&6 6810 else 6811 rm -f .libs 2>/dev/null 6812 mkdir .libs 2>/dev/null 6813 if test -d .libs; then 6814 lt_cv_objdir=.libs 6815 else 6816 # MS-DOS does not allow filenames that begin with a dot. 6817 lt_cv_objdir=_libs 6818 fi 6819 rmdir .libs 2>/dev/null 6820 fi 6821 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6822 echo "${ECHO_T}$lt_cv_objdir" >&6; } 6823 objdir=$lt_cv_objdir 6824 6825 6826 6827 6828 6829 case $host_os in 6830 aix3*) 6831 # AIX sometimes has problems with the GCC collect2 program. For some 6832 # reason, if we set the COLLECT_NAMES environment variable, the problems 6833 # vanish in a puff of smoke. 6834 if test "X${COLLECT_NAMES+set}" != Xset; then 6835 COLLECT_NAMES= 6836 export COLLECT_NAMES 6837 fi 6838 ;; 6839 esac 6840 6841 # Sed substitution that helps us do robust quoting. It backslashifies 6842 # metacharacters that are still active within double-quoted strings. 6843 Xsed='sed -e 1s/^X//' 6844 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6845 6846 # Same as above, but do not quote variable references. 6847 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6848 6849 # Sed substitution to delay expansion of an escaped shell variable in a 6850 # double_quote_subst'ed string. 6851 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6852 6853 # Sed substitution to avoid accidental globbing in evaled expressions 6854 no_glob_subst='s/\*/\\\*/g' 6855 6856 # Constants: 6857 rm="rm -f" 6858 6859 # Global variables: 6860 default_ofile=libtool 6861 can_build_shared=yes 6862 6863 # All known linkers require a `.a' archive for static linking (except MSVC, 6864 # which needs '.lib'). 6865 libext=a 6866 ltmain="$ac_aux_dir/ltmain.sh" 6867 ofile="$default_ofile" 6868 with_gnu_ld="$lt_cv_prog_gnu_ld" 6869 6870 if test -n "$ac_tool_prefix"; then 6871 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6872 set dummy ${ac_tool_prefix}ar; ac_word=$2 6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6875 if test "${ac_cv_prog_AR+set}" = set; then 6876 echo $ECHO_N "(cached) $ECHO_C" >&6 6877 else 6878 if test -n "$AR"; then 6879 ac_cv_prog_AR="$AR" # Let the user override the test. 6880 else 6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6882 for as_dir in $PATH 6883 do 6884 IFS=$as_save_IFS 6885 test -z "$as_dir" && as_dir=. 6886 for ac_exec_ext in '' $ac_executable_extensions; do 6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6888 ac_cv_prog_AR="${ac_tool_prefix}ar" 6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6890 break 2 6891 fi 6892 done 6893 done 6894 IFS=$as_save_IFS 6895 6896 fi 6897 fi 6898 AR=$ac_cv_prog_AR 6899 if test -n "$AR"; then 6900 { echo "$as_me:$LINENO: result: $AR" >&5 6901 echo "${ECHO_T}$AR" >&6; } 6902 else 6903 { echo "$as_me:$LINENO: result: no" >&5 6904 echo "${ECHO_T}no" >&6; } 6905 fi 6906 6907 6908 fi 6909 if test -z "$ac_cv_prog_AR"; then 6910 ac_ct_AR=$AR 6911 # Extract the first word of "ar", so it can be a program name with args. 6912 set dummy ar; ac_word=$2 6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6915 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6916 echo $ECHO_N "(cached) $ECHO_C" >&6 6917 else 6918 if test -n "$ac_ct_AR"; then 6919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6920 else 6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6922 for as_dir in $PATH 6923 do 6924 IFS=$as_save_IFS 6925 test -z "$as_dir" && as_dir=. 6926 for ac_exec_ext in '' $ac_executable_extensions; do 6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6928 ac_cv_prog_ac_ct_AR="ar" 6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6930 break 2 6931 fi 6932 done 6933 done 6934 IFS=$as_save_IFS 6935 6936 fi 6937 fi 6938 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6939 if test -n "$ac_ct_AR"; then 6940 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6941 echo "${ECHO_T}$ac_ct_AR" >&6; } 6942 else 6943 { echo "$as_me:$LINENO: result: no" >&5 6944 echo "${ECHO_T}no" >&6; } 6945 fi 6946 6947 if test "x$ac_ct_AR" = x; then 6948 AR="false" 6949 else 6950 case $cross_compiling:$ac_tool_warned in 6951 yes:) 6952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6953 whose name does not start with the host triplet. If you think this 6954 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6956 whose name does not start with the host triplet. If you think this 6957 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6958 ac_tool_warned=yes ;; 6959 esac 6960 AR=$ac_ct_AR 6961 fi 6962 else 6963 AR="$ac_cv_prog_AR" 6964 fi 6965 6966 if test -n "$ac_tool_prefix"; then 6967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6971 if test "${ac_cv_prog_RANLIB+set}" = set; then 6972 echo $ECHO_N "(cached) $ECHO_C" >&6 6973 else 6974 if test -n "$RANLIB"; then 6975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6976 else 6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6978 for as_dir in $PATH 6979 do 6980 IFS=$as_save_IFS 6981 test -z "$as_dir" && as_dir=. 6982 for ac_exec_ext in '' $ac_executable_extensions; do 6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6986 break 2 6987 fi 6988 done 6989 done 6990 IFS=$as_save_IFS 6991 6992 fi 6993 fi 6994 RANLIB=$ac_cv_prog_RANLIB 6995 if test -n "$RANLIB"; then 6996 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6997 echo "${ECHO_T}$RANLIB" >&6; } 6998 else 6999 { echo "$as_me:$LINENO: result: no" >&5 7000 echo "${ECHO_T}no" >&6; } 7001 fi 7002 7003 7004 fi 7005 if test -z "$ac_cv_prog_RANLIB"; then 7006 ac_ct_RANLIB=$RANLIB 7007 # Extract the first word of "ranlib", so it can be a program name with args. 7008 set dummy ranlib; ac_word=$2 7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7012 echo $ECHO_N "(cached) $ECHO_C" >&6 7013 else 7014 if test -n "$ac_ct_RANLIB"; then 7015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7016 else 7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018 for as_dir in $PATH 7019 do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7024 ac_cv_prog_ac_ct_RANLIB="ranlib" 7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028 done 7029 done 7030 IFS=$as_save_IFS 7031 7032 fi 7033 fi 7034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7035 if test -n "$ac_ct_RANLIB"; then 7036 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7037 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7038 else 7039 { echo "$as_me:$LINENO: result: no" >&5 7040 echo "${ECHO_T}no" >&6; } 7041 fi 7042 7043 if test "x$ac_ct_RANLIB" = x; then 7044 RANLIB=":" 7045 else 7046 case $cross_compiling:$ac_tool_warned in 7047 yes:) 7048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7049 whose name does not start with the host triplet. If you think this 7050 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 7051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7052 whose name does not start with the host triplet. If you think this 7053 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 7054 ac_tool_warned=yes ;; 7055 esac 7056 RANLIB=$ac_ct_RANLIB 7057 fi 7058 else 7059 RANLIB="$ac_cv_prog_RANLIB" 7060 fi 7061 7062 if test -n "$ac_tool_prefix"; then 7063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7064 set dummy ${ac_tool_prefix}strip; ac_word=$2 7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7067 if test "${ac_cv_prog_STRIP+set}" = set; then 7068 echo $ECHO_N "(cached) $ECHO_C" >&6 7069 else 7070 if test -n "$STRIP"; then 7071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7072 else 7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7074 for as_dir in $PATH 7075 do 7076 IFS=$as_save_IFS 7077 test -z "$as_dir" && as_dir=. 7078 for ac_exec_ext in '' $ac_executable_extensions; do 7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7080 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7082 break 2 7083 fi 7084 done 7085 done 7086 IFS=$as_save_IFS 7087 7088 fi 7089 fi 7090 STRIP=$ac_cv_prog_STRIP 7091 if test -n "$STRIP"; then 7092 { echo "$as_me:$LINENO: result: $STRIP" >&5 7093 echo "${ECHO_T}$STRIP" >&6; } 7094 else 7095 { echo "$as_me:$LINENO: result: no" >&5 7096 echo "${ECHO_T}no" >&6; } 7097 fi 7098 7099 7100 fi 7101 if test -z "$ac_cv_prog_STRIP"; then 7102 ac_ct_STRIP=$STRIP 7103 # Extract the first word of "strip", so it can be a program name with args. 7104 set dummy strip; ac_word=$2 7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7107 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7108 echo $ECHO_N "(cached) $ECHO_C" >&6 7109 else 7110 if test -n "$ac_ct_STRIP"; then 7111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7112 else 7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114 for as_dir in $PATH 7115 do 7116 IFS=$as_save_IFS 7117 test -z "$as_dir" && as_dir=. 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7120 ac_cv_prog_ac_ct_STRIP="strip" 7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124 done 7125 done 7126 IFS=$as_save_IFS 7127 7128 fi 7129 fi 7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7131 if test -n "$ac_ct_STRIP"; then 7132 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7133 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7134 else 7135 { echo "$as_me:$LINENO: result: no" >&5 7136 echo "${ECHO_T}no" >&6; } 7137 fi 7138 7139 if test "x$ac_ct_STRIP" = x; then 7140 STRIP=":" 7141 else 7142 case $cross_compiling:$ac_tool_warned in 7143 yes:) 7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7145 whose name does not start with the host triplet. If you think this 7146 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7148 whose name does not start with the host triplet. If you think this 7149 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 7150 ac_tool_warned=yes ;; 7151 esac 7152 STRIP=$ac_ct_STRIP 7153 fi 7154 else 7155 STRIP="$ac_cv_prog_STRIP" 7156 fi 7157 7158 7159 old_CC="$CC" 7160 old_CFLAGS="$CFLAGS" 7161 7162 # Set sane defaults for various variables 7163 test -z "$AR" && AR=ar 7164 test -z "$AR_FLAGS" && AR_FLAGS=cru 7165 test -z "$AS" && AS=as 7166 test -z "$CC" && CC=cc 7167 test -z "$LTCC" && LTCC=$CC 7168 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7169 test -z "$DLLTOOL" && DLLTOOL=dlltool 7170 test -z "$LD" && LD=ld 7171 test -z "$LN_S" && LN_S="ln -s" 7172 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7173 test -z "$NM" && NM=nm 7174 test -z "$SED" && SED=sed 7175 test -z "$OBJDUMP" && OBJDUMP=objdump 7176 test -z "$RANLIB" && RANLIB=: 7177 test -z "$STRIP" && STRIP=: 7178 test -z "$ac_objext" && ac_objext=o 7179 7180 # Determine commands to create old-style static archives. 7181 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7182 old_postinstall_cmds='chmod 644 $oldlib' 7183 old_postuninstall_cmds= 7184 7185 if test -n "$RANLIB"; then 7186 case $host_os in 7187 openbsd*) 7188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7189 ;; 7190 *) 7191 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7192 ;; 7193 esac 7194 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7195 fi 7196 7197 for cc_temp in $compiler""; do 7198 case $cc_temp in 7199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7201 \-*) ;; 7202 *) break;; 7203 esac 7204 done 7205 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7206 7207 7208 # Only perform the check for file, if the check method requires it 7209 case $deplibs_check_method in 7210 file_magic*) 7211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7212 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7213 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7215 echo $ECHO_N "(cached) $ECHO_C" >&6 7216 else 7217 case $MAGIC_CMD in 7218 [\\/*] | ?:[\\/]*) 7219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7220 ;; 7221 *) 7222 lt_save_MAGIC_CMD="$MAGIC_CMD" 7223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7225 for ac_dir in $ac_dummy; do 7226 IFS="$lt_save_ifs" 7227 test -z "$ac_dir" && ac_dir=. 7228 if test -f $ac_dir/${ac_tool_prefix}file; then 7229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7230 if test -n "$file_magic_test_file"; then 7231 case $deplibs_check_method in 7232 "file_magic "*) 7233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7236 $EGREP "$file_magic_regex" > /dev/null; then 7237 : 7238 else 7239 cat <<EOF 1>&2 7240 7241 *** Warning: the command libtool uses to detect shared libraries, 7242 *** $file_magic_cmd, produces output that libtool cannot recognize. 7243 *** The result is that libtool may fail to recognize shared libraries 7244 *** as such. This will affect the creation of libtool libraries that 7245 *** depend on shared libraries, but programs linked with such libtool 7246 *** libraries will work regardless of this problem. Nevertheless, you 7247 *** may want to report the problem to your system manager and/or to 7248 *** bug-libtool@gnu.org 7249 7250 EOF 7251 fi ;; 7252 esac 7253 fi 7254 break 7255 fi 7256 done 7257 IFS="$lt_save_ifs" 7258 MAGIC_CMD="$lt_save_MAGIC_CMD" 7259 ;; 7260 esac 7261 fi 7262 7263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7264 if test -n "$MAGIC_CMD"; then 7265 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7266 echo "${ECHO_T}$MAGIC_CMD" >&6; } 7267 else 7268 { echo "$as_me:$LINENO: result: no" >&5 7269 echo "${ECHO_T}no" >&6; } 7270 fi 7271 7272 if test -z "$lt_cv_path_MAGIC_CMD"; then 7273 if test -n "$ac_tool_prefix"; then 7274 { echo "$as_me:$LINENO: checking for file" >&5 7275 echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7277 echo $ECHO_N "(cached) $ECHO_C" >&6 7278 else 7279 case $MAGIC_CMD in 7280 [\\/*] | ?:[\\/]*) 7281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7282 ;; 7283 *) 7284 lt_save_MAGIC_CMD="$MAGIC_CMD" 7285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7287 for ac_dir in $ac_dummy; do 7288 IFS="$lt_save_ifs" 7289 test -z "$ac_dir" && ac_dir=. 7290 if test -f $ac_dir/file; then 7291 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7292 if test -n "$file_magic_test_file"; then 7293 case $deplibs_check_method in 7294 "file_magic "*) 7295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7298 $EGREP "$file_magic_regex" > /dev/null; then 7299 : 7300 else 7301 cat <<EOF 1>&2 7302 7303 *** Warning: the command libtool uses to detect shared libraries, 7304 *** $file_magic_cmd, produces output that libtool cannot recognize. 7305 *** The result is that libtool may fail to recognize shared libraries 7306 *** as such. This will affect the creation of libtool libraries that 7307 *** depend on shared libraries, but programs linked with such libtool 7308 *** libraries will work regardless of this problem. Nevertheless, you 7309 *** may want to report the problem to your system manager and/or to 7310 *** bug-libtool@gnu.org 7311 7312 EOF 7313 fi ;; 7314 esac 7315 fi 7316 break 7317 fi 7318 done 7319 IFS="$lt_save_ifs" 7320 MAGIC_CMD="$lt_save_MAGIC_CMD" 7321 ;; 7322 esac 7323 fi 7324 7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7326 if test -n "$MAGIC_CMD"; then 7327 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7328 echo "${ECHO_T}$MAGIC_CMD" >&6; } 7329 else 7330 { echo "$as_me:$LINENO: result: no" >&5 7331 echo "${ECHO_T}no" >&6; } 7332 fi 7333 7334 else 7335 MAGIC_CMD=: 7336 fi 7337 fi 7338 7339 fi 7340 ;; 7341 esac 7342 7343 enable_dlopen=no 7344 enable_win32_dll=no 7345 7346 # Check whether --enable-libtool-lock was given. 7347 if test "${enable_libtool_lock+set}" = set; then 7348 enableval=$enable_libtool_lock; 7349 fi 7350 7351 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7352 7353 7354 # Check whether --with-pic was given. 7355 if test "${with_pic+set}" = set; then 7356 withval=$with_pic; pic_mode="$withval" 7357 else 7358 pic_mode=default 7359 fi 7360 7361 test -z "$pic_mode" && pic_mode=default 7362 7363 # Use C for the default configuration in the libtool script 7364 tagname= 7365 lt_save_CC="$CC" 7366 ac_ext=c 7367 ac_cpp='$CPP $CPPFLAGS' 7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7371 7372 7373 # Source file extension for C test sources. 7374 ac_ext=c 7375 7376 # Object file extension for compiled C test sources. 7377 objext=o 7378 objext=$objext 7379 7380 # Code to be used in simple compile tests 7381 lt_simple_compile_test_code="int some_variable = 0;" 7382 7383 # Code to be used in simple link tests 7384 lt_simple_link_test_code='int main(){return(0);}' 7385 7386 7387 # If no C compiler was specified, use CC. 7388 LTCC=${LTCC-"$CC"} 7389 7390 # If no C compiler flags were specified, use CFLAGS. 7391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7392 7393 # Allow CC to be a program name with arguments. 7394 compiler=$CC 7395 7396 7397 # save warnings/boilerplate of simple test code 7398 ac_outfile=conftest.$ac_objext 7399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7401 _lt_compiler_boilerplate=`cat conftest.err` 7402 $rm conftest* 7403 7404 ac_outfile=conftest.$ac_objext 7405 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7407 _lt_linker_boilerplate=`cat conftest.err` 7408 $rm conftest* 7409 7410 7411 7412 lt_prog_compiler_no_builtin_flag= 7413 7414 if test "$GCC" = yes; then 7415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7416 7417 7418 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7421 echo $ECHO_N "(cached) $ECHO_C" >&6 7422 else 7423 lt_cv_prog_compiler_rtti_exceptions=no 7424 ac_outfile=conftest.$ac_objext 7425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7426 lt_compiler_flag="-fno-rtti -fno-exceptions" 7427 # Insert the option either (1) after the last *FLAGS variable, or 7428 # (2) before a word containing "conftest.", or (3) at the end. 7429 # Note that $ac_compile itself does not contain backslashes and begins 7430 # with a dollar sign (not a hyphen), so the echo should work correctly. 7431 # The option is referenced via a variable to avoid confusing sed. 7432 lt_compile=`echo "$ac_compile" | $SED \ 7433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7435 -e 's:$: $lt_compiler_flag:'` 7436 (eval echo "\"\$as_me:7436: $lt_compile\"" >&5) 7437 (eval "$lt_compile" 2>conftest.err) 7438 ac_status=$? 7439 cat conftest.err >&5 7440 echo "$as_me:7440: \$? = $ac_status" >&5 7441 if (exit $ac_status) && test -s "$ac_outfile"; then 7442 # The compiler can only warn and ignore the option if not recognized 7443 # So say no if there are warnings other than the usual output. 7444 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7447 lt_cv_prog_compiler_rtti_exceptions=yes 7448 fi 7449 fi 7450 $rm conftest* 7451 7452 fi 7453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7455 7456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7458 else 7459 : 7460 fi 7461 7462 fi 7463 7464 lt_prog_compiler_wl= 7465 lt_prog_compiler_pic= 7466 lt_prog_compiler_static= 7467 7468 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7470 7471 if test "$GCC" = yes; then 7472 lt_prog_compiler_wl='-Wl,' 7473 lt_prog_compiler_static='-static' 7474 7475 case $host_os in 7476 aix*) 7477 # All AIX code is PIC. 7478 if test "$host_cpu" = ia64; then 7479 # AIX 5 now supports IA64 processor 7480 lt_prog_compiler_static='-Bstatic' 7481 fi 7482 ;; 7483 7484 amigaos*) 7485 # FIXME: we need at least 68020 code to build shared libraries, but 7486 # adding the `-m68020' flag to GCC prevents building anything better, 7487 # like `-m68040'. 7488 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7489 ;; 7490 7491 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7492 # PIC is the default for these OSes. 7493 ;; 7494 7495 mingw* | cygwin* | pw32* | os2*) 7496 # This hack is so that the source file can tell whether it is being 7497 # built for inclusion in a dll (and should export symbols for example). 7498 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7499 # (--disable-auto-import) libraries 7500 lt_prog_compiler_pic='-DDLL_EXPORT' 7501 ;; 7502 7503 darwin* | rhapsody*) 7504 # PIC is the default on this platform 7505 # Common symbols not allowed in MH_DYLIB files 7506 lt_prog_compiler_pic='-fno-common' 7507 ;; 7508 7509 interix[3-9]*) 7510 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7511 # Instead, we relocate shared libraries at runtime. 7512 ;; 7513 7514 msdosdjgpp*) 7515 # Just because we use GCC doesn't mean we suddenly get shared libraries 7516 # on systems that don't support them. 7517 lt_prog_compiler_can_build_shared=no 7518 enable_shared=no 7519 ;; 7520 7521 sysv4*MP*) 7522 if test -d /usr/nec; then 7523 lt_prog_compiler_pic=-Kconform_pic 7524 fi 7525 ;; 7526 7527 hpux*) 7528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7529 # not for PA HP-UX. 7530 case $host_cpu in 7531 hppa*64*|ia64*) 7532 # +Z the default 7533 ;; 7534 *) 7535 lt_prog_compiler_pic='-fPIC' 7536 ;; 7537 esac 7538 ;; 7539 7540 *) 7541 lt_prog_compiler_pic='-fPIC' 7542 ;; 7543 esac 7544 else 7545 # PORTME Check for flag to pass linker flags through the system compiler. 7546 case $host_os in 7547 aix*) 7548 lt_prog_compiler_wl='-Wl,' 7549 if test "$host_cpu" = ia64; then 7550 # AIX 5 now supports IA64 processor 7551 lt_prog_compiler_static='-Bstatic' 7552 else 7553 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7554 fi 7555 ;; 7556 darwin*) 7557 # PIC is the default on this platform 7558 # Common symbols not allowed in MH_DYLIB files 7559 case $cc_basename in 7560 xlc*) 7561 lt_prog_compiler_pic='-qnocommon' 7562 lt_prog_compiler_wl='-Wl,' 7563 ;; 7564 esac 7565 ;; 7566 7567 mingw* | cygwin* | pw32* | os2*) 7568 # This hack is so that the source file can tell whether it is being 7569 # built for inclusion in a dll (and should export symbols for example). 7570 lt_prog_compiler_pic='-DDLL_EXPORT' 7571 ;; 7572 7573 hpux9* | hpux10* | hpux11*) 7574 lt_prog_compiler_wl='-Wl,' 7575 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7576 # not for PA HP-UX. 7577 case $host_cpu in 7578 hppa*64*|ia64*) 7579 # +Z the default 7580 ;; 7581 *) 7582 lt_prog_compiler_pic='+Z' 7583 ;; 7584 esac 7585 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7586 lt_prog_compiler_static='${wl}-a ${wl}archive' 7587 ;; 7588 7589 irix5* | irix6* | nonstopux*) 7590 lt_prog_compiler_wl='-Wl,' 7591 # PIC (with -KPIC) is the default. 7592 lt_prog_compiler_static='-non_shared' 7593 ;; 7594 7595 newsos6) 7596 lt_prog_compiler_pic='-KPIC' 7597 lt_prog_compiler_static='-Bstatic' 7598 ;; 7599 7600 linux* | k*bsd*-gnu) 7601 case $cc_basename in 7602 icc* | ecc*) 7603 lt_prog_compiler_wl='-Wl,' 7604 lt_prog_compiler_pic='-KPIC' 7605 lt_prog_compiler_static='-static' 7606 ;; 7607 pgcc* | pgf77* | pgf90* | pgf95*) 7608 # Portland Group compilers (*not* the Pentium gcc compiler, 7609 # which looks to be a dead project) 7610 lt_prog_compiler_wl='-Wl,' 7611 lt_prog_compiler_pic='-fpic' 7612 lt_prog_compiler_static='-Bstatic' 7613 ;; 7614 ccc*) 7615 lt_prog_compiler_wl='-Wl,' 7616 # All Alpha code is PIC. 7617 lt_prog_compiler_static='-non_shared' 7618 ;; 7619 *) 7620 case `$CC -V 2>&1 | sed 5q` in 7621 *Sun\ C*) 7622 # Sun C 5.9 7623 lt_prog_compiler_pic='-KPIC' 7624 lt_prog_compiler_static='-Bstatic' 7625 lt_prog_compiler_wl='-Wl,' 7626 ;; 7627 *Sun\ F*) 7628 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7629 lt_prog_compiler_pic='-KPIC' 7630 lt_prog_compiler_static='-Bstatic' 7631 lt_prog_compiler_wl='' 7632 ;; 7633 esac 7634 ;; 7635 esac 7636 ;; 7637 7638 osf3* | osf4* | osf5*) 7639 lt_prog_compiler_wl='-Wl,' 7640 # All OSF/1 code is PIC. 7641 lt_prog_compiler_static='-non_shared' 7642 ;; 7643 7644 rdos*) 7645 lt_prog_compiler_static='-non_shared' 7646 ;; 7647 7648 solaris*) 7649 lt_prog_compiler_pic='-KPIC' 7650 lt_prog_compiler_static='-Bstatic' 7651 case $cc_basename in 7652 f77* | f90* | f95*) 7653 lt_prog_compiler_wl='-Qoption ld ';; 7654 *) 7655 lt_prog_compiler_wl='-Wl,';; 7656 esac 7657 ;; 7658 7659 sunos4*) 7660 lt_prog_compiler_wl='-Qoption ld ' 7661 lt_prog_compiler_pic='-PIC' 7662 lt_prog_compiler_static='-Bstatic' 7663 ;; 7664 7665 sysv4 | sysv4.2uw2* | sysv4.3*) 7666 lt_prog_compiler_wl='-Wl,' 7667 lt_prog_compiler_pic='-KPIC' 7668 lt_prog_compiler_static='-Bstatic' 7669 ;; 7670 7671 sysv4*MP*) 7672 if test -d /usr/nec ;then 7673 lt_prog_compiler_pic='-Kconform_pic' 7674 lt_prog_compiler_static='-Bstatic' 7675 fi 7676 ;; 7677 7678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7679 lt_prog_compiler_wl='-Wl,' 7680 lt_prog_compiler_pic='-KPIC' 7681 lt_prog_compiler_static='-Bstatic' 7682 ;; 7683 7684 unicos*) 7685 lt_prog_compiler_wl='-Wl,' 7686 lt_prog_compiler_can_build_shared=no 7687 ;; 7688 7689 uts4*) 7690 lt_prog_compiler_pic='-pic' 7691 lt_prog_compiler_static='-Bstatic' 7692 ;; 7693 7694 *) 7695 lt_prog_compiler_can_build_shared=no 7696 ;; 7697 esac 7698 fi 7699 7700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7701 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7702 7703 # 7704 # Check to make sure the PIC flag actually works. 7705 # 7706 if test -n "$lt_prog_compiler_pic"; then 7707 7708 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7709 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7710 if test "${lt_prog_compiler_pic_works+set}" = set; then 7711 echo $ECHO_N "(cached) $ECHO_C" >&6 7712 else 7713 lt_prog_compiler_pic_works=no 7714 ac_outfile=conftest.$ac_objext 7715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7716 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7717 # Insert the option either (1) after the last *FLAGS variable, or 7718 # (2) before a word containing "conftest.", or (3) at the end. 7719 # Note that $ac_compile itself does not contain backslashes and begins 7720 # with a dollar sign (not a hyphen), so the echo should work correctly. 7721 # The option is referenced via a variable to avoid confusing sed. 7722 lt_compile=`echo "$ac_compile" | $SED \ 7723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7725 -e 's:$: $lt_compiler_flag:'` 7726 (eval echo "\"\$as_me:7726: $lt_compile\"" >&5) 7727 (eval "$lt_compile" 2>conftest.err) 7728 ac_status=$? 7729 cat conftest.err >&5 7730 echo "$as_me:7730: \$? = $ac_status" >&5 7731 if (exit $ac_status) && test -s "$ac_outfile"; then 7732 # The compiler can only warn and ignore the option if not recognized 7733 # So say no if there are warnings other than the usual output. 7734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7737 lt_prog_compiler_pic_works=yes 7738 fi 7739 fi 7740 $rm conftest* 7741 7742 fi 7743 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7744 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7745 7746 if test x"$lt_prog_compiler_pic_works" = xyes; then 7747 case $lt_prog_compiler_pic in 7748 "" | " "*) ;; 7749 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7750 esac 7751 else 7752 lt_prog_compiler_pic= 7753 lt_prog_compiler_can_build_shared=no 7754 fi 7755 7756 fi 7757 case $host_os in 7758 # For platforms which do not support PIC, -DPIC is meaningless: 7759 *djgpp*) 7760 lt_prog_compiler_pic= 7761 ;; 7762 *) 7763 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7764 ;; 7765 esac 7766 7767 # 7768 # Check to make sure the static flag actually works. 7769 # 7770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7771 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7773 if test "${lt_prog_compiler_static_works+set}" = set; then 7774 echo $ECHO_N "(cached) $ECHO_C" >&6 7775 else 7776 lt_prog_compiler_static_works=no 7777 save_LDFLAGS="$LDFLAGS" 7778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7779 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7781 # The linker can only warn and ignore the option if not recognized 7782 # So say no if there are warnings 7783 if test -s conftest.err; then 7784 # Append any errors to the config.log. 7785 cat conftest.err 1>&5 7786 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7788 if diff conftest.exp conftest.er2 >/dev/null; then 7789 lt_prog_compiler_static_works=yes 7790 fi 7791 else 7792 lt_prog_compiler_static_works=yes 7793 fi 7794 fi 7795 $rm conftest* 7796 LDFLAGS="$save_LDFLAGS" 7797 7798 fi 7799 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7800 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7801 7802 if test x"$lt_prog_compiler_static_works" = xyes; then 7803 : 7804 else 7805 lt_prog_compiler_static= 7806 fi 7807 7808 7809 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7811 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7812 echo $ECHO_N "(cached) $ECHO_C" >&6 7813 else 7814 lt_cv_prog_compiler_c_o=no 7815 $rm -r conftest 2>/dev/null 7816 mkdir conftest 7817 cd conftest 7818 mkdir out 7819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7820 7821 lt_compiler_flag="-o out/conftest2.$ac_objext" 7822 # Insert the option either (1) after the last *FLAGS variable, or 7823 # (2) before a word containing "conftest.", or (3) at the end. 7824 # Note that $ac_compile itself does not contain backslashes and begins 7825 # with a dollar sign (not a hyphen), so the echo should work correctly. 7826 lt_compile=`echo "$ac_compile" | $SED \ 7827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7829 -e 's:$: $lt_compiler_flag:'` 7830 (eval echo "\"\$as_me:7830: $lt_compile\"" >&5) 7831 (eval "$lt_compile" 2>out/conftest.err) 7832 ac_status=$? 7833 cat out/conftest.err >&5 7834 echo "$as_me:7834: \$? = $ac_status" >&5 7835 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7836 then 7837 # The compiler can only warn and ignore the option if not recognized 7838 # So say no if there are warnings 7839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7842 lt_cv_prog_compiler_c_o=yes 7843 fi 7844 fi 7845 chmod u+w . 2>&5 7846 $rm conftest* 7847 # SGI C++ compiler will create directory out/ii_files/ for 7848 # template instantiation 7849 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7850 $rm out/* && rmdir out 7851 cd .. 7852 rmdir conftest 7853 $rm conftest* 7854 7855 fi 7856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7857 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7858 7859 7860 hard_links="nottested" 7861 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7862 # do not overwrite the value of need_locks provided by the user 7863 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7864 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7865 hard_links=yes 7866 $rm conftest* 7867 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7868 touch conftest.a 7869 ln conftest.a conftest.b 2>&5 || hard_links=no 7870 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7871 { echo "$as_me:$LINENO: result: $hard_links" >&5 7872 echo "${ECHO_T}$hard_links" >&6; } 7873 if test "$hard_links" = no; then 7874 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7875 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7876 need_locks=warn 7877 fi 7878 else 7879 need_locks=no 7880 fi 7881 7882 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7883 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7884 7885 runpath_var= 7886 allow_undefined_flag= 7887 enable_shared_with_static_runtimes=no 7888 archive_cmds= 7889 archive_expsym_cmds= 7890 old_archive_From_new_cmds= 7891 old_archive_from_expsyms_cmds= 7892 export_dynamic_flag_spec= 7893 whole_archive_flag_spec= 7894 thread_safe_flag_spec= 7895 hardcode_libdir_flag_spec= 7896 hardcode_libdir_flag_spec_ld= 7897 hardcode_libdir_separator= 7898 hardcode_direct=no 7899 hardcode_minus_L=no 7900 hardcode_shlibpath_var=unsupported 7901 link_all_deplibs=unknown 7902 hardcode_automatic=no 7903 module_cmds= 7904 module_expsym_cmds= 7905 always_export_symbols=no 7906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7907 # include_expsyms should be a list of space-separated symbols to be *always* 7908 # included in the symbol list 7909 include_expsyms= 7910 # exclude_expsyms can be an extended regexp of symbols to exclude 7911 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7913 # as well as any symbol that contains `d'. 7914 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7916 # platforms (ab)use it in PIC code, but their linkers get confused if 7917 # the symbol is explicitly referenced. Since portable code cannot 7918 # rely on this symbol name, it's probably fine to never include it in 7919 # preloaded symbol tables. 7920 extract_expsyms_cmds= 7921 # Just being paranoid about ensuring that cc_basename is set. 7922 for cc_temp in $compiler""; do 7923 case $cc_temp in 7924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7926 \-*) ;; 7927 *) break;; 7928 esac 7929 done 7930 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7931 7932 case $host_os in 7933 cygwin* | mingw* | pw32*) 7934 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7935 # When not using gcc, we currently assume that we are using 7936 # Microsoft Visual C++. 7937 if test "$GCC" != yes; then 7938 with_gnu_ld=no 7939 fi 7940 ;; 7941 interix*) 7942 # we just hope/assume this is gcc and not c89 (= MSVC++) 7943 with_gnu_ld=yes 7944 ;; 7945 openbsd*) 7946 with_gnu_ld=no 7947 ;; 7948 esac 7949 7950 ld_shlibs=yes 7951 if test "$with_gnu_ld" = yes; then 7952 # If archive_cmds runs LD, not CC, wlarc should be empty 7953 wlarc='${wl}' 7954 7955 # Set some defaults for GNU ld with shared library support. These 7956 # are reset later if shared libraries are not supported. Putting them 7957 # here allows them to be overridden if necessary. 7958 runpath_var=LD_RUN_PATH 7959 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7960 export_dynamic_flag_spec='${wl}--export-dynamic' 7961 # ancient GNU ld didn't support --whole-archive et. al. 7962 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7963 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7964 else 7965 whole_archive_flag_spec= 7966 fi 7967 supports_anon_versioning=no 7968 case `$LD -v 2>/dev/null` in 7969 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7970 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7971 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7972 *\ 2.11.*) ;; # other 2.11 versions 7973 *) supports_anon_versioning=yes ;; 7974 esac 7975 7976 # See if GNU ld supports shared libraries. 7977 case $host_os in 7978 aix3* | aix4* | aix5*) 7979 # On AIX/PPC, the GNU linker is very broken 7980 if test "$host_cpu" != ia64; then 7981 ld_shlibs=no 7982 cat <<EOF 1>&2 7983 7984 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 7985 *** to be unable to reliably create shared libraries on AIX. 7986 *** Therefore, libtool is disabling shared libraries support. If you 7987 *** really care for shared libraries, you may want to modify your PATH 7988 *** so that a non-GNU linker is found, and then restart. 7989 7990 EOF 7991 fi 7992 ;; 7993 7994 amigaos*) 7995 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)' 7996 hardcode_libdir_flag_spec='-L$libdir' 7997 hardcode_minus_L=yes 7998 7999 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 8000 # that the semantics of dynamic libraries on AmigaOS, at least up 8001 # to version 4, is to share data among multiple programs linked 8002 # with the same dynamic library. Since this doesn't match the 8003 # behavior of shared libraries on other platforms, we can't use 8004 # them. 8005 ld_shlibs=no 8006 ;; 8007 8008 beos*) 8009 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8010 allow_undefined_flag=unsupported 8011 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8012 # support --undefined. This deserves some investigation. FIXME 8013 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8014 else 8015 ld_shlibs=no 8016 fi 8017 ;; 8018 8019 cygwin* | mingw* | pw32*) 8020 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8021 # as there is no search path for DLLs. 8022 hardcode_libdir_flag_spec='-L$libdir' 8023 allow_undefined_flag=unsupported 8024 always_export_symbols=no 8025 enable_shared_with_static_runtimes=yes 8026 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8027 8028 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8030 # If the export-symbols file already is a .def file (1st line 8031 # is EXPORTS), use it as is; otherwise, prepend... 8032 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8033 cp $export_symbols $output_objdir/$soname.def; 8034 else 8035 echo EXPORTS > $output_objdir/$soname.def; 8036 cat $export_symbols >> $output_objdir/$soname.def; 8037 fi~ 8038 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8039 else 8040 ld_shlibs=no 8041 fi 8042 ;; 8043 8044 interix[3-9]*) 8045 hardcode_direct=no 8046 hardcode_shlibpath_var=no 8047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8048 export_dynamic_flag_spec='${wl}-E' 8049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8050 # Instead, shared libraries are loaded at an image base (0x10000000 by 8051 # default) and relocated if they conflict, which is a slow very memory 8052 # consuming and fragmenting process. To avoid this, we pick a random, 8053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8054 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8056 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8057 ;; 8058 8059 gnu* | linux* | k*bsd*-gnu) 8060 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8061 tmp_addflag= 8062 case $cc_basename,$host_cpu in 8063 pgcc*) # Portland Group C compiler 8064 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8065 tmp_addflag=' $pic_flag' 8066 ;; 8067 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8068 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8069 tmp_addflag=' $pic_flag -Mnomain' ;; 8070 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8071 tmp_addflag=' -i_dynamic' ;; 8072 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8073 tmp_addflag=' -i_dynamic -nofor_main' ;; 8074 ifc* | ifort*) # Intel Fortran compiler 8075 tmp_addflag=' -nofor_main' ;; 8076 esac 8077 case `$CC -V 2>&1 | sed 5q` in 8078 *Sun\ C*) # Sun C 5.9 8079 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8080 tmp_sharedflag='-G' ;; 8081 *Sun\ F*) # Sun Fortran 8.3 8082 tmp_sharedflag='-G' ;; 8083 *) 8084 tmp_sharedflag='-shared' ;; 8085 esac 8086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8087 8088 if test $supports_anon_versioning = yes; then 8089 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8091 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8093 fi 8094 else 8095 ld_shlibs=no 8096 fi 8097 ;; 8098 8099 netbsd*) 8100 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8101 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8102 wlarc= 8103 else 8104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8106 fi 8107 ;; 8108 8109 solaris*) 8110 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8111 ld_shlibs=no 8112 cat <<EOF 1>&2 8113 8114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8115 *** create shared libraries on Solaris systems. Therefore, libtool 8116 *** is disabling shared libraries support. We urge you to upgrade GNU 8117 *** binutils to release 2.9.1 or newer. Another option is to modify 8118 *** your PATH or compiler configuration so that the native linker is 8119 *** used, and then restart. 8120 8121 EOF 8122 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8125 else 8126 ld_shlibs=no 8127 fi 8128 ;; 8129 8130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8131 case `$LD -v 2>&1` in 8132 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8133 ld_shlibs=no 8134 cat <<_LT_EOF 1>&2 8135 8136 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8137 *** reliably create shared libraries on SCO systems. Therefore, libtool 8138 *** is disabling shared libraries support. We urge you to upgrade GNU 8139 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8140 *** your PATH or compiler configuration so that the native linker is 8141 *** used, and then restart. 8142 8143 _LT_EOF 8144 ;; 8145 *) 8146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8147 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8150 else 8151 ld_shlibs=no 8152 fi 8153 ;; 8154 esac 8155 ;; 8156 8157 sunos4*) 8158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8159 wlarc= 8160 hardcode_direct=yes 8161 hardcode_shlibpath_var=no 8162 ;; 8163 8164 *) 8165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8168 else 8169 ld_shlibs=no 8170 fi 8171 ;; 8172 esac 8173 8174 if test "$ld_shlibs" = no; then 8175 runpath_var= 8176 hardcode_libdir_flag_spec= 8177 export_dynamic_flag_spec= 8178 whole_archive_flag_spec= 8179 fi 8180 else 8181 # PORTME fill in a description of your system's linker (not GNU ld) 8182 case $host_os in 8183 aix3*) 8184 allow_undefined_flag=unsupported 8185 always_export_symbols=yes 8186 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' 8187 # Note: this linker hardcodes the directories in LIBPATH if there 8188 # are no directories specified by -L. 8189 hardcode_minus_L=yes 8190 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8191 # Neither direct hardcoding nor static linking is supported with a 8192 # broken collect2. 8193 hardcode_direct=unsupported 8194 fi 8195 ;; 8196 8197 aix4* | aix5*) 8198 if test "$host_cpu" = ia64; then 8199 # On IA64, the linker does run time linking by default, so we don't 8200 # have to do anything special. 8201 aix_use_runtimelinking=no 8202 exp_sym_flag='-Bexport' 8203 no_entry_flag="" 8204 else 8205 # If we're using GNU nm, then we don't want the "-C" option. 8206 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8207 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8208 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' 8209 else 8210 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' 8211 fi 8212 aix_use_runtimelinking=no 8213 8214 # Test if we are trying to use run time linking or normal 8215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8216 # need to do runtime linking. 8217 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8218 for ld_flag in $LDFLAGS; do 8219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8220 aix_use_runtimelinking=yes 8221 break 8222 fi 8223 done 8224 ;; 8225 esac 8226 8227 exp_sym_flag='-bexport' 8228 no_entry_flag='-bnoentry' 8229 fi 8230 8231 # When large executables or shared objects are built, AIX ld can 8232 # have problems creating the table of contents. If linking a library 8233 # or program results in "error TOC overflow" add -mminimal-toc to 8234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8236 8237 archive_cmds='' 8238 hardcode_direct=yes 8239 hardcode_libdir_separator=':' 8240 link_all_deplibs=yes 8241 8242 if test "$GCC" = yes; then 8243 case $host_os in aix4.[012]|aix4.[012].*) 8244 # We only want to do this on AIX 4.2 and lower, the check 8245 # below for broken collect2 doesn't work under 4.3+ 8246 collect2name=`${CC} -print-prog-name=collect2` 8247 if test -f "$collect2name" && \ 8248 strings "$collect2name" | grep resolve_lib_name >/dev/null 8249 then 8250 # We have reworked collect2 8251 : 8252 else 8253 # We have old collect2 8254 hardcode_direct=unsupported 8255 # It fails to find uninstalled libraries when the uninstalled 8256 # path is not listed in the libpath. Setting hardcode_minus_L 8257 # to unsupported forces relinking 8258 hardcode_minus_L=yes 8259 hardcode_libdir_flag_spec='-L$libdir' 8260 hardcode_libdir_separator= 8261 fi 8262 ;; 8263 esac 8264 shared_flag='-shared' 8265 if test "$aix_use_runtimelinking" = yes; then 8266 shared_flag="$shared_flag "'${wl}-G' 8267 fi 8268 else 8269 # not using gcc 8270 if test "$host_cpu" = ia64; then 8271 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8272 # chokes on -Wl,-G. The following line is correct: 8273 shared_flag='-G' 8274 else 8275 if test "$aix_use_runtimelinking" = yes; then 8276 shared_flag='${wl}-G' 8277 else 8278 shared_flag='${wl}-bM:SRE' 8279 fi 8280 fi 8281 fi 8282 8283 # It seems that -bexpall does not export symbols beginning with 8284 # underscore (_), so it is better to generate a list of symbols to export. 8285 always_export_symbols=yes 8286 if test "$aix_use_runtimelinking" = yes; then 8287 # Warning - without using the other runtime loading flags (-brtl), 8288 # -berok will link without error, but may produce a broken library. 8289 allow_undefined_flag='-berok' 8290 # Determine the default libpath from the value encoded in an empty executable. 8291 cat >conftest.$ac_ext <<_ACEOF 8292 /* confdefs.h. */ 8293 _ACEOF 8294 cat confdefs.h >>conftest.$ac_ext 8295 cat >>conftest.$ac_ext <<_ACEOF 8296 /* end confdefs.h. */ 8297 8298 int 8299 main () 8300 { 8301 8302 ; 8303 return 0; 8304 } 8305 _ACEOF 8306 rm -f conftest.$ac_objext conftest$ac_exeext 8307 if { (ac_try="$ac_link" 8308 case "(($ac_try" in 8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8310 *) ac_try_echo=$ac_try;; 8311 esac 8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8313 (eval "$ac_link") 2>conftest.er1 8314 ac_status=$? 8315 grep -v '^ *+' conftest.er1 >conftest.err 8316 rm -f conftest.er1 8317 cat conftest.err >&5 8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8319 (exit $ac_status); } && { 8320 test -z "$ac_c_werror_flag" || 8321 test ! -s conftest.err 8322 } && test -s conftest$ac_exeext && 8323 $as_test_x conftest$ac_exeext; then 8324 8325 lt_aix_libpath_sed=' 8326 /Import File Strings/,/^$/ { 8327 /^0/ { 8328 s/^0 *\(.*\)$/\1/ 8329 p 8330 } 8331 }' 8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8333 # Check for a 64-bit object if we didn't find anything. 8334 if test -z "$aix_libpath"; then 8335 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8336 fi 8337 else 8338 echo "$as_me: failed program was:" >&5 8339 sed 's/^/| /' conftest.$ac_ext >&5 8340 8341 8342 fi 8343 8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8345 conftest$ac_exeext conftest.$ac_ext 8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8347 8348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8349 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8350 else 8351 if test "$host_cpu" = ia64; then 8352 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8353 allow_undefined_flag="-z nodefs" 8354 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 8355 else 8356 # Determine the default libpath from the value encoded in an empty executable. 8357 cat >conftest.$ac_ext <<_ACEOF 8358 /* confdefs.h. */ 8359 _ACEOF 8360 cat confdefs.h >>conftest.$ac_ext 8361 cat >>conftest.$ac_ext <<_ACEOF 8362 /* end confdefs.h. */ 8363 8364 int 8365 main () 8366 { 8367 8368 ; 8369 return 0; 8370 } 8371 _ACEOF 8372 rm -f conftest.$ac_objext conftest$ac_exeext 8373 if { (ac_try="$ac_link" 8374 case "(($ac_try" in 8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8376 *) ac_try_echo=$ac_try;; 8377 esac 8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8379 (eval "$ac_link") 2>conftest.er1 8380 ac_status=$? 8381 grep -v '^ *+' conftest.er1 >conftest.err 8382 rm -f conftest.er1 8383 cat conftest.err >&5 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8385 (exit $ac_status); } && { 8386 test -z "$ac_c_werror_flag" || 8387 test ! -s conftest.err 8388 } && test -s conftest$ac_exeext && 8389 $as_test_x conftest$ac_exeext; then 8390 8391 lt_aix_libpath_sed=' 8392 /Import File Strings/,/^$/ { 8393 /^0/ { 8394 s/^0 *\(.*\)$/\1/ 8395 p 8396 } 8397 }' 8398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8399 # Check for a 64-bit object if we didn't find anything. 8400 if test -z "$aix_libpath"; then 8401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8402 fi 8403 else 8404 echo "$as_me: failed program was:" >&5 8405 sed 's/^/| /' conftest.$ac_ext >&5 8406 8407 8408 fi 8409 8410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8411 conftest$ac_exeext conftest.$ac_ext 8412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8413 8414 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8415 # Warning - without using the other run time loading flags, 8416 # -berok will link without error, but may produce a broken library. 8417 no_undefined_flag=' ${wl}-bernotok' 8418 allow_undefined_flag=' ${wl}-berok' 8419 # Exported symbols can be pulled into shared objects from archives 8420 whole_archive_flag_spec='$convenience' 8421 archive_cmds_need_lc=yes 8422 # This is similar to how AIX traditionally builds its shared libraries. 8423 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8424 fi 8425 fi 8426 ;; 8427 8428 amigaos*) 8429 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)' 8430 hardcode_libdir_flag_spec='-L$libdir' 8431 hardcode_minus_L=yes 8432 # see comment about different semantics on the GNU ld section 8433 ld_shlibs=no 8434 ;; 8435 8436 bsdi[45]*) 8437 export_dynamic_flag_spec=-rdynamic 8438 ;; 8439 8440 cygwin* | mingw* | pw32*) 8441 # When not using gcc, we currently assume that we are using 8442 # Microsoft Visual C++. 8443 # hardcode_libdir_flag_spec is actually meaningless, as there is 8444 # no search path for DLLs. 8445 hardcode_libdir_flag_spec=' ' 8446 allow_undefined_flag=unsupported 8447 # Tell ltmain to make .lib files, not .a files. 8448 libext=lib 8449 # Tell ltmain to make .dll files, not .so files. 8450 shrext_cmds=".dll" 8451 # FIXME: Setting linknames here is a bad hack. 8452 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8453 # The linker will automatically build a .lib file if we build a DLL. 8454 old_archive_From_new_cmds='true' 8455 # FIXME: Should let the user specify the lib program. 8456 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8457 fix_srcfile_path='`cygpath -w "$srcfile"`' 8458 enable_shared_with_static_runtimes=yes 8459 ;; 8460 8461 darwin* | rhapsody*) 8462 case $host_os in 8463 rhapsody* | darwin1.[012]) 8464 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8465 ;; 8466 *) # Darwin 1.3 on 8467 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8468 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8469 else 8470 case ${MACOSX_DEPLOYMENT_TARGET} in 8471 10.[012]) 8472 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8473 ;; 8474 10.*) 8475 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8476 ;; 8477 esac 8478 fi 8479 ;; 8480 esac 8481 archive_cmds_need_lc=no 8482 hardcode_direct=no 8483 hardcode_automatic=yes 8484 hardcode_shlibpath_var=unsupported 8485 whole_archive_flag_spec='' 8486 link_all_deplibs=yes 8487 if test "$GCC" = yes ; then 8488 output_verbose_link_cmd='echo' 8489 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8490 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8491 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8492 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8493 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}' 8494 else 8495 case $cc_basename in 8496 xlc*) 8497 output_verbose_link_cmd='echo' 8498 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8499 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8501 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8502 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}' 8503 ;; 8504 *) 8505 ld_shlibs=no 8506 ;; 8507 esac 8508 fi 8509 ;; 8510 8511 dgux*) 8512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8513 hardcode_libdir_flag_spec='-L$libdir' 8514 hardcode_shlibpath_var=no 8515 ;; 8516 8517 freebsd1*) 8518 ld_shlibs=no 8519 ;; 8520 8521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8522 # support. Future versions do this automatically, but an explicit c++rt0.o 8523 # does not break anything, and helps significantly (at the cost of a little 8524 # extra space). 8525 freebsd2.2*) 8526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8527 hardcode_libdir_flag_spec='-R$libdir' 8528 hardcode_direct=yes 8529 hardcode_shlibpath_var=no 8530 ;; 8531 8532 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8533 freebsd2*) 8534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8535 hardcode_direct=yes 8536 hardcode_minus_L=yes 8537 hardcode_shlibpath_var=no 8538 ;; 8539 8540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8541 freebsd* | dragonfly*) 8542 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8543 hardcode_libdir_flag_spec='-R$libdir' 8544 hardcode_direct=yes 8545 hardcode_shlibpath_var=no 8546 ;; 8547 8548 hpux9*) 8549 if test "$GCC" = yes; then 8550 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' 8551 else 8552 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' 8553 fi 8554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8555 hardcode_libdir_separator=: 8556 hardcode_direct=yes 8557 8558 # hardcode_minus_L: Not really in the search PATH, 8559 # but as the default location of the library. 8560 hardcode_minus_L=yes 8561 export_dynamic_flag_spec='${wl}-E' 8562 ;; 8563 8564 hpux10*) 8565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8567 else 8568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8569 fi 8570 if test "$with_gnu_ld" = no; then 8571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8572 hardcode_libdir_separator=: 8573 8574 hardcode_direct=yes 8575 export_dynamic_flag_spec='${wl}-E' 8576 8577 # hardcode_minus_L: Not really in the search PATH, 8578 # but as the default location of the library. 8579 hardcode_minus_L=yes 8580 fi 8581 ;; 8582 8583 hpux11*) 8584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8585 case $host_cpu in 8586 hppa*64*) 8587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8588 ;; 8589 ia64*) 8590 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8591 ;; 8592 *) 8593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8594 ;; 8595 esac 8596 else 8597 case $host_cpu in 8598 hppa*64*) 8599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8600 ;; 8601 ia64*) 8602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8603 ;; 8604 *) 8605 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8606 ;; 8607 esac 8608 fi 8609 if test "$with_gnu_ld" = no; then 8610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8611 hardcode_libdir_separator=: 8612 8613 case $host_cpu in 8614 hppa*64*|ia64*) 8615 hardcode_libdir_flag_spec_ld='+b $libdir' 8616 hardcode_direct=no 8617 hardcode_shlibpath_var=no 8618 ;; 8619 *) 8620 hardcode_direct=yes 8621 export_dynamic_flag_spec='${wl}-E' 8622 8623 # hardcode_minus_L: Not really in the search PATH, 8624 # but as the default location of the library. 8625 hardcode_minus_L=yes 8626 ;; 8627 esac 8628 fi 8629 ;; 8630 8631 irix5* | irix6* | nonstopux*) 8632 if test "$GCC" = yes; then 8633 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' 8634 else 8635 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' 8636 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8637 fi 8638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8639 hardcode_libdir_separator=: 8640 link_all_deplibs=yes 8641 ;; 8642 8643 netbsd*) 8644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8646 else 8647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8648 fi 8649 hardcode_libdir_flag_spec='-R$libdir' 8650 hardcode_direct=yes 8651 hardcode_shlibpath_var=no 8652 ;; 8653 8654 newsos6) 8655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8656 hardcode_direct=yes 8657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8658 hardcode_libdir_separator=: 8659 hardcode_shlibpath_var=no 8660 ;; 8661 8662 openbsd*) 8663 if test -f /usr/libexec/ld.so; then 8664 hardcode_direct=yes 8665 hardcode_shlibpath_var=no 8666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8668 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8670 export_dynamic_flag_spec='${wl}-E' 8671 else 8672 case $host_os in 8673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8675 hardcode_libdir_flag_spec='-R$libdir' 8676 ;; 8677 *) 8678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8680 ;; 8681 esac 8682 fi 8683 else 8684 ld_shlibs=no 8685 fi 8686 ;; 8687 8688 os2*) 8689 hardcode_libdir_flag_spec='-L$libdir' 8690 hardcode_minus_L=yes 8691 allow_undefined_flag=unsupported 8692 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' 8693 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8694 ;; 8695 8696 osf3*) 8697 if test "$GCC" = yes; then 8698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8699 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' 8700 else 8701 allow_undefined_flag=' -expect_unresolved \*' 8702 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' 8703 fi 8704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8705 hardcode_libdir_separator=: 8706 ;; 8707 8708 osf4* | osf5*) # as osf3* with the addition of -msym flag 8709 if test "$GCC" = yes; then 8710 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8711 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' 8712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8713 else 8714 allow_undefined_flag=' -expect_unresolved \*' 8715 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' 8716 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8717 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8718 8719 # Both c and cxx compiler support -rpath directly 8720 hardcode_libdir_flag_spec='-rpath $libdir' 8721 fi 8722 hardcode_libdir_separator=: 8723 ;; 8724 8725 solaris*) 8726 no_undefined_flag=' -z text' 8727 if test "$GCC" = yes; then 8728 wlarc='${wl}' 8729 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8730 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8731 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8732 else 8733 wlarc='' 8734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8737 fi 8738 hardcode_libdir_flag_spec='-R$libdir' 8739 hardcode_shlibpath_var=no 8740 case $host_os in 8741 solaris2.[0-5] | solaris2.[0-5].*) ;; 8742 *) 8743 # The compiler driver will combine and reorder linker options, 8744 # but understands `-z linker_flag'. GCC discards it without `$wl', 8745 # but is careful enough not to reorder. 8746 # Supported since Solaris 2.6 (maybe 2.5.1?) 8747 if test "$GCC" = yes; then 8748 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8749 else 8750 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8751 fi 8752 ;; 8753 esac 8754 link_all_deplibs=yes 8755 ;; 8756 8757 sunos4*) 8758 if test "x$host_vendor" = xsequent; then 8759 # Use $CC to link under sequent, because it throws in some extra .o 8760 # files that make .init and .fini sections work. 8761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8762 else 8763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8764 fi 8765 hardcode_libdir_flag_spec='-L$libdir' 8766 hardcode_direct=yes 8767 hardcode_minus_L=yes 8768 hardcode_shlibpath_var=no 8769 ;; 8770 8771 sysv4) 8772 case $host_vendor in 8773 sni) 8774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8775 hardcode_direct=yes # is this really true??? 8776 ;; 8777 siemens) 8778 ## LD is ld it makes a PLAMLIB 8779 ## CC just makes a GrossModule. 8780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8781 reload_cmds='$CC -r -o $output$reload_objs' 8782 hardcode_direct=no 8783 ;; 8784 motorola) 8785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8787 ;; 8788 esac 8789 runpath_var='LD_RUN_PATH' 8790 hardcode_shlibpath_var=no 8791 ;; 8792 8793 sysv4.3*) 8794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8795 hardcode_shlibpath_var=no 8796 export_dynamic_flag_spec='-Bexport' 8797 ;; 8798 8799 sysv4*MP*) 8800 if test -d /usr/nec; then 8801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8802 hardcode_shlibpath_var=no 8803 runpath_var=LD_RUN_PATH 8804 hardcode_runpath_var=yes 8805 ld_shlibs=yes 8806 fi 8807 ;; 8808 8809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8810 no_undefined_flag='${wl}-z,text' 8811 archive_cmds_need_lc=no 8812 hardcode_shlibpath_var=no 8813 runpath_var='LD_RUN_PATH' 8814 8815 if test "$GCC" = yes; then 8816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8818 else 8819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8821 fi 8822 ;; 8823 8824 sysv5* | sco3.2v5* | sco5v6*) 8825 # Note: We can NOT use -z defs as we might desire, because we do not 8826 # link with -lc, and that would cause any symbols used from libc to 8827 # always be unresolved, which means just about no library would 8828 # ever link correctly. If we're not using GNU ld we use -z text 8829 # though, which does catch some bad symbols but isn't as heavy-handed 8830 # as -z defs. 8831 no_undefined_flag='${wl}-z,text' 8832 allow_undefined_flag='${wl}-z,nodefs' 8833 archive_cmds_need_lc=no 8834 hardcode_shlibpath_var=no 8835 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8836 hardcode_libdir_separator=':' 8837 link_all_deplibs=yes 8838 export_dynamic_flag_spec='${wl}-Bexport' 8839 runpath_var='LD_RUN_PATH' 8840 8841 if test "$GCC" = yes; then 8842 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8844 else 8845 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8847 fi 8848 ;; 8849 8850 uts4*) 8851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8852 hardcode_libdir_flag_spec='-L$libdir' 8853 hardcode_shlibpath_var=no 8854 ;; 8855 8856 *) 8857 ld_shlibs=no 8858 ;; 8859 esac 8860 fi 8861 8862 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8863 echo "${ECHO_T}$ld_shlibs" >&6; } 8864 test "$ld_shlibs" = no && can_build_shared=no 8865 8866 # 8867 # Do we need to explicitly link libc? 8868 # 8869 case "x$archive_cmds_need_lc" in 8870 x|xyes) 8871 # Assume -lc should be added 8872 archive_cmds_need_lc=yes 8873 8874 if test "$enable_shared" = yes && test "$GCC" = yes; then 8875 case $archive_cmds in 8876 *'~'*) 8877 # FIXME: we may have to deal with multi-command sequences. 8878 ;; 8879 '$CC '*) 8880 # Test whether the compiler implicitly links with -lc since on some 8881 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8882 # to ld, don't add -lc before -lgcc. 8883 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8884 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8885 $rm conftest* 8886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8887 8888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8889 (eval $ac_compile) 2>&5 8890 ac_status=$? 8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8892 (exit $ac_status); } 2>conftest.err; then 8893 soname=conftest 8894 lib=conftest 8895 libobjs=conftest.$ac_objext 8896 deplibs= 8897 wl=$lt_prog_compiler_wl 8898 pic_flag=$lt_prog_compiler_pic 8899 compiler_flags=-v 8900 linker_flags=-v 8901 verstring= 8902 output_objdir=. 8903 libname=conftest 8904 lt_save_allow_undefined_flag=$allow_undefined_flag 8905 allow_undefined_flag= 8906 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8907 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8908 ac_status=$? 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8910 (exit $ac_status); } 8911 then 8912 archive_cmds_need_lc=no 8913 else 8914 archive_cmds_need_lc=yes 8915 fi 8916 allow_undefined_flag=$lt_save_allow_undefined_flag 8917 else 8918 cat conftest.err 1>&5 8919 fi 8920 $rm conftest* 8921 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8922 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8923 ;; 8924 esac 8925 fi 8926 ;; 8927 esac 8928 8929 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8930 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8931 library_names_spec= 8932 libname_spec='lib$name' 8933 soname_spec= 8934 shrext_cmds=".so" 8935 postinstall_cmds= 8936 postuninstall_cmds= 8937 finish_cmds= 8938 finish_eval= 8939 shlibpath_var= 8940 shlibpath_overrides_runpath=unknown 8941 version_type=none 8942 dynamic_linker="$host_os ld.so" 8943 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8944 8945 if test "$GCC" = yes; then 8946 case $host_os in 8947 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8948 *) lt_awk_arg="/^libraries:/" ;; 8949 esac 8950 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8951 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8952 # if the path contains ";" then we assume it to be the separator 8953 # otherwise default to the standard path separator (i.e. ":") - it is 8954 # assumed that no part of a normal pathname contains ";" but that should 8955 # okay in the real world where ";" in dirpaths is itself problematic. 8956 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8957 else 8958 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8959 fi 8960 # Ok, now we have the path, separated by spaces, we can step through it 8961 # and add multilib dir if necessary. 8962 lt_tmp_lt_search_path_spec= 8963 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8964 for lt_sys_path in $lt_search_path_spec; do 8965 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8967 else 8968 test -d "$lt_sys_path" && \ 8969 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8970 fi 8971 done 8972 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8973 BEGIN {RS=" "; FS="/|\n";} { 8974 lt_foo=""; 8975 lt_count=0; 8976 for (lt_i = NF; lt_i > 0; lt_i--) { 8977 if ($lt_i != "" && $lt_i != ".") { 8978 if ($lt_i == "..") { 8979 lt_count++; 8980 } else { 8981 if (lt_count == 0) { 8982 lt_foo="/" $lt_i lt_foo; 8983 } else { 8984 lt_count--; 8985 } 8986 } 8987 } 8988 } 8989 if (lt_foo != "") { lt_freq[lt_foo]++; } 8990 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8991 }'` 8992 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8993 else 8994 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8995 fi 8996 need_lib_prefix=unknown 8997 hardcode_into_libs=no 8998 8999 # when you set need_version to no, make sure it does not cause -set_version 9000 # flags to be left without arguments 9001 need_version=unknown 9002 9003 case $host_os in 9004 aix3*) 9005 version_type=linux 9006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9007 shlibpath_var=LIBPATH 9008 9009 # AIX 3 has no versioning support, so we append a major version to the name. 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 ;; 9012 9013 aix4* | aix5*) 9014 version_type=linux 9015 need_lib_prefix=no 9016 need_version=no 9017 hardcode_into_libs=yes 9018 if test "$host_cpu" = ia64; then 9019 # AIX 5 supports IA64 9020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9021 shlibpath_var=LD_LIBRARY_PATH 9022 else 9023 # With GCC up to 2.95.x, collect2 would create an import file 9024 # for dependence libraries. The import file would start with 9025 # the line `#! .'. This would cause the generated library to 9026 # depend on `.', always an invalid library. This was fixed in 9027 # development snapshots of GCC prior to 3.0. 9028 case $host_os in 9029 aix4 | aix4.[01] | aix4.[01].*) 9030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9031 echo ' yes ' 9032 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9033 : 9034 else 9035 can_build_shared=no 9036 fi 9037 ;; 9038 esac 9039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9040 # soname into executable. Probably we can add versioning support to 9041 # collect2, so additional links can be useful in future. 9042 if test "$aix_use_runtimelinking" = yes; then 9043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9044 # instead of lib<name>.a to let people know that these are not 9045 # typical AIX shared libraries. 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 else 9048 # We preserve .a as extension for shared libraries through AIX4.2 9049 # and later when we are not doing run time linking. 9050 library_names_spec='${libname}${release}.a $libname.a' 9051 soname_spec='${libname}${release}${shared_ext}$major' 9052 fi 9053 shlibpath_var=LIBPATH 9054 fi 9055 ;; 9056 9057 amigaos*) 9058 library_names_spec='$libname.ixlibrary $libname.a' 9059 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9060 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9061 ;; 9062 9063 beos*) 9064 library_names_spec='${libname}${shared_ext}' 9065 dynamic_linker="$host_os ld.so" 9066 shlibpath_var=LIBRARY_PATH 9067 ;; 9068 9069 bsdi[45]*) 9070 version_type=linux 9071 need_version=no 9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9073 soname_spec='${libname}${release}${shared_ext}$major' 9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9075 shlibpath_var=LD_LIBRARY_PATH 9076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9078 # the default ld.so.conf also contains /usr/contrib/lib and 9079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9080 # libtool to hard-code these into programs 9081 ;; 9082 9083 cygwin* | mingw* | pw32*) 9084 version_type=windows 9085 shrext_cmds=".dll" 9086 need_version=no 9087 need_lib_prefix=no 9088 9089 case $GCC,$host_os in 9090 yes,cygwin* | yes,mingw* | yes,pw32*) 9091 library_names_spec='$libname.dll.a' 9092 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9093 postinstall_cmds='base_file=`basename \${file}`~ 9094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9095 dldir=$destdir/`dirname \$dlpath`~ 9096 test -d \$dldir || mkdir -p \$dldir~ 9097 $install_prog $dir/$dlname \$dldir/$dlname~ 9098 chmod a+x \$dldir/$dlname' 9099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9100 dlpath=$dir/\$dldll~ 9101 $rm \$dlpath' 9102 shlibpath_overrides_runpath=yes 9103 9104 case $host_os in 9105 cygwin*) 9106 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9108 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9109 ;; 9110 mingw*) 9111 # MinGW DLLs use traditional 'lib' prefix 9112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9114 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9115 # It is most probably a Windows format PATH printed by 9116 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9117 # path with ; separators, and with drive letters. We can handle the 9118 # drive letters (cygwin fileutils understands them), so leave them, 9119 # especially as we might pass files found there to a mingw objdump, 9120 # which wouldn't understand a cygwinified path. Ahh. 9121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9122 else 9123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9124 fi 9125 ;; 9126 pw32*) 9127 # pw32 DLLs use 'pw' prefix rather than 'lib' 9128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9129 ;; 9130 esac 9131 ;; 9132 9133 *) 9134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9135 ;; 9136 esac 9137 dynamic_linker='Win32 ld.exe' 9138 # FIXME: first we should search . and the directory the executable is in 9139 shlibpath_var=PATH 9140 ;; 9141 9142 darwin* | rhapsody*) 9143 dynamic_linker="$host_os dyld" 9144 version_type=darwin 9145 need_lib_prefix=no 9146 need_version=no 9147 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9148 soname_spec='${libname}${release}${major}$shared_ext' 9149 shlibpath_overrides_runpath=yes 9150 shlibpath_var=DYLD_LIBRARY_PATH 9151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9152 9153 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9154 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9155 ;; 9156 9157 dgux*) 9158 version_type=linux 9159 need_lib_prefix=no 9160 need_version=no 9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9162 soname_spec='${libname}${release}${shared_ext}$major' 9163 shlibpath_var=LD_LIBRARY_PATH 9164 ;; 9165 9166 freebsd1*) 9167 dynamic_linker=no 9168 ;; 9169 9170 freebsd* | dragonfly*) 9171 # DragonFly does not have aout. When/if they implement a new 9172 # versioning mechanism, adjust this. 9173 if test -x /usr/bin/objformat; then 9174 objformat=`/usr/bin/objformat` 9175 else 9176 case $host_os in 9177 freebsd[123]*) objformat=aout ;; 9178 *) objformat=elf ;; 9179 esac 9180 fi 9181 version_type=freebsd-$objformat 9182 case $version_type in 9183 freebsd-elf*) 9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9185 need_version=no 9186 need_lib_prefix=no 9187 ;; 9188 freebsd-*) 9189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9190 need_version=yes 9191 ;; 9192 esac 9193 shlibpath_var=LD_LIBRARY_PATH 9194 case $host_os in 9195 freebsd2*) 9196 shlibpath_overrides_runpath=yes 9197 ;; 9198 freebsd3.[01]* | freebsdelf3.[01]*) 9199 shlibpath_overrides_runpath=yes 9200 hardcode_into_libs=yes 9201 ;; 9202 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9203 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9204 shlibpath_overrides_runpath=no 9205 hardcode_into_libs=yes 9206 ;; 9207 *) # from 4.6 on, and DragonFly 9208 shlibpath_overrides_runpath=yes 9209 hardcode_into_libs=yes 9210 ;; 9211 esac 9212 ;; 9213 9214 gnu*) 9215 version_type=linux 9216 need_lib_prefix=no 9217 need_version=no 9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9219 soname_spec='${libname}${release}${shared_ext}$major' 9220 shlibpath_var=LD_LIBRARY_PATH 9221 hardcode_into_libs=yes 9222 ;; 9223 9224 hpux9* | hpux10* | hpux11*) 9225 # Give a soname corresponding to the major version so that dld.sl refuses to 9226 # link against other versions. 9227 version_type=sunos 9228 need_lib_prefix=no 9229 need_version=no 9230 case $host_cpu in 9231 ia64*) 9232 shrext_cmds='.so' 9233 hardcode_into_libs=yes 9234 dynamic_linker="$host_os dld.so" 9235 shlibpath_var=LD_LIBRARY_PATH 9236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9238 soname_spec='${libname}${release}${shared_ext}$major' 9239 if test "X$HPUX_IA64_MODE" = X32; then 9240 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9241 else 9242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9243 fi 9244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9245 ;; 9246 hppa*64*) 9247 shrext_cmds='.sl' 9248 hardcode_into_libs=yes 9249 dynamic_linker="$host_os dld.sl" 9250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9253 soname_spec='${libname}${release}${shared_ext}$major' 9254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9256 ;; 9257 *) 9258 shrext_cmds='.sl' 9259 dynamic_linker="$host_os dld.sl" 9260 shlibpath_var=SHLIB_PATH 9261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9263 soname_spec='${libname}${release}${shared_ext}$major' 9264 ;; 9265 esac 9266 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9267 postinstall_cmds='chmod 555 $lib' 9268 ;; 9269 9270 interix[3-9]*) 9271 version_type=linux 9272 need_lib_prefix=no 9273 need_version=no 9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9275 soname_spec='${libname}${release}${shared_ext}$major' 9276 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9277 shlibpath_var=LD_LIBRARY_PATH 9278 shlibpath_overrides_runpath=no 9279 hardcode_into_libs=yes 9280 ;; 9281 9282 irix5* | irix6* | nonstopux*) 9283 case $host_os in 9284 nonstopux*) version_type=nonstopux ;; 9285 *) 9286 if test "$lt_cv_prog_gnu_ld" = yes; then 9287 version_type=linux 9288 else 9289 version_type=irix 9290 fi ;; 9291 esac 9292 need_lib_prefix=no 9293 need_version=no 9294 soname_spec='${libname}${release}${shared_ext}$major' 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9296 case $host_os in 9297 irix5* | nonstopux*) 9298 libsuff= shlibsuff= 9299 ;; 9300 *) 9301 case $LD in # libtool.m4 will add one of these switches to LD 9302 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9303 libsuff= shlibsuff= libmagic=32-bit;; 9304 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9305 libsuff=32 shlibsuff=N32 libmagic=N32;; 9306 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9307 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9308 *) libsuff= shlibsuff= libmagic=never-match;; 9309 esac 9310 ;; 9311 esac 9312 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9313 shlibpath_overrides_runpath=no 9314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9316 hardcode_into_libs=yes 9317 ;; 9318 9319 # No shared lib support for Linux oldld, aout, or coff. 9320 linux*oldld* | linux*aout* | linux*coff*) 9321 dynamic_linker=no 9322 ;; 9323 9324 # This must be Linux ELF. 9325 linux* | k*bsd*-gnu) 9326 version_type=linux 9327 need_lib_prefix=no 9328 need_version=no 9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9330 soname_spec='${libname}${release}${shared_ext}$major' 9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9332 shlibpath_var=LD_LIBRARY_PATH 9333 shlibpath_overrides_runpath=no 9334 # This implies no fast_install, which is unacceptable. 9335 # Some rework will be needed to allow for fast_install 9336 # before this can be enabled. 9337 hardcode_into_libs=yes 9338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9340 9341 # Append ld.so.conf contents to the search path 9342 if test -f /etc/ld.so.conf; then 9343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9344 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9345 fi 9346 9347 # We used to test for /lib/ld.so.1 and disable shared libraries on 9348 # powerpc, because MkLinux only supported shared libraries with the 9349 # GNU dynamic linker. Since this was broken with cross compilers, 9350 # most powerpc-linux boxes support dynamic linking these days and 9351 # people can always --disable-shared, the test was removed, and we 9352 # assume the GNU/Linux dynamic linker is in use. 9353 dynamic_linker='GNU/Linux ld.so' 9354 ;; 9355 9356 netbsd*) 9357 version_type=sunos 9358 need_lib_prefix=no 9359 need_version=no 9360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9363 dynamic_linker='NetBSD (a.out) ld.so' 9364 else 9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9366 soname_spec='${libname}${release}${shared_ext}$major' 9367 dynamic_linker='NetBSD ld.elf_so' 9368 fi 9369 shlibpath_var=LD_LIBRARY_PATH 9370 shlibpath_overrides_runpath=yes 9371 hardcode_into_libs=yes 9372 ;; 9373 9374 newsos6) 9375 version_type=linux 9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9377 shlibpath_var=LD_LIBRARY_PATH 9378 shlibpath_overrides_runpath=yes 9379 ;; 9380 9381 nto-qnx*) 9382 version_type=linux 9383 need_lib_prefix=no 9384 need_version=no 9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9386 soname_spec='${libname}${release}${shared_ext}$major' 9387 shlibpath_var=LD_LIBRARY_PATH 9388 shlibpath_overrides_runpath=yes 9389 ;; 9390 9391 openbsd*) 9392 version_type=sunos 9393 sys_lib_dlsearch_path_spec="/usr/lib" 9394 need_lib_prefix=no 9395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9396 case $host_os in 9397 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9398 *) need_version=no ;; 9399 esac 9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9402 shlibpath_var=LD_LIBRARY_PATH 9403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9404 case $host_os in 9405 openbsd2.[89] | openbsd2.[89].*) 9406 shlibpath_overrides_runpath=no 9407 ;; 9408 *) 9409 shlibpath_overrides_runpath=yes 9410 ;; 9411 esac 9412 else 9413 shlibpath_overrides_runpath=yes 9414 fi 9415 ;; 9416 9417 os2*) 9418 libname_spec='$name' 9419 shrext_cmds=".dll" 9420 need_lib_prefix=no 9421 library_names_spec='$libname${shared_ext} $libname.a' 9422 dynamic_linker='OS/2 ld.exe' 9423 shlibpath_var=LIBPATH 9424 ;; 9425 9426 osf3* | osf4* | osf5*) 9427 version_type=osf 9428 need_lib_prefix=no 9429 need_version=no 9430 soname_spec='${libname}${release}${shared_ext}$major' 9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9432 shlibpath_var=LD_LIBRARY_PATH 9433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9435 ;; 9436 9437 rdos*) 9438 dynamic_linker=no 9439 ;; 9440 9441 solaris*) 9442 version_type=linux 9443 need_lib_prefix=no 9444 need_version=no 9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9446 soname_spec='${libname}${release}${shared_ext}$major' 9447 shlibpath_var=LD_LIBRARY_PATH 9448 shlibpath_overrides_runpath=yes 9449 hardcode_into_libs=yes 9450 # ldd complains unless libraries are executable 9451 postinstall_cmds='chmod +x $lib' 9452 ;; 9453 9454 sunos4*) 9455 version_type=sunos 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9458 shlibpath_var=LD_LIBRARY_PATH 9459 shlibpath_overrides_runpath=yes 9460 if test "$with_gnu_ld" = yes; then 9461 need_lib_prefix=no 9462 fi 9463 need_version=yes 9464 ;; 9465 9466 sysv4 | sysv4.3*) 9467 version_type=linux 9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9469 soname_spec='${libname}${release}${shared_ext}$major' 9470 shlibpath_var=LD_LIBRARY_PATH 9471 case $host_vendor in 9472 sni) 9473 shlibpath_overrides_runpath=no 9474 need_lib_prefix=no 9475 export_dynamic_flag_spec='${wl}-Blargedynsym' 9476 runpath_var=LD_RUN_PATH 9477 ;; 9478 siemens) 9479 need_lib_prefix=no 9480 ;; 9481 motorola) 9482 need_lib_prefix=no 9483 need_version=no 9484 shlibpath_overrides_runpath=no 9485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9486 ;; 9487 esac 9488 ;; 9489 9490 sysv4*MP*) 9491 if test -d /usr/nec ;then 9492 version_type=linux 9493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9494 soname_spec='$libname${shared_ext}.$major' 9495 shlibpath_var=LD_LIBRARY_PATH 9496 fi 9497 ;; 9498 9499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9500 version_type=freebsd-elf 9501 need_lib_prefix=no 9502 need_version=no 9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9504 soname_spec='${libname}${release}${shared_ext}$major' 9505 shlibpath_var=LD_LIBRARY_PATH 9506 hardcode_into_libs=yes 9507 if test "$with_gnu_ld" = yes; then 9508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9509 shlibpath_overrides_runpath=no 9510 else 9511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9512 shlibpath_overrides_runpath=yes 9513 case $host_os in 9514 sco3.2v5*) 9515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9516 ;; 9517 esac 9518 fi 9519 sys_lib_dlsearch_path_spec='/usr/lib' 9520 ;; 9521 9522 uts4*) 9523 version_type=linux 9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9525 soname_spec='${libname}${release}${shared_ext}$major' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 ;; 9528 9529 *) 9530 dynamic_linker=no 9531 ;; 9532 esac 9533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9534 echo "${ECHO_T}$dynamic_linker" >&6; } 9535 test "$dynamic_linker" = no && can_build_shared=no 9536 9537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9538 if test "$GCC" = yes; then 9539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9540 fi 9541 9542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9544 hardcode_action= 9545 if test -n "$hardcode_libdir_flag_spec" || \ 9546 test -n "$runpath_var" || \ 9547 test "X$hardcode_automatic" = "Xyes" ; then 9548 9549 # We can hardcode non-existant directories. 9550 if test "$hardcode_direct" != no && 9551 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9552 # have to relink, otherwise we might link with an installed library 9553 # when we should be linking with a yet-to-be-installed one 9554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9555 test "$hardcode_minus_L" != no; then 9556 # Linking always hardcodes the temporary library directory. 9557 hardcode_action=relink 9558 else 9559 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9560 hardcode_action=immediate 9561 fi 9562 else 9563 # We cannot hardcode anything, or else we can only hardcode existing 9564 # directories. 9565 hardcode_action=unsupported 9566 fi 9567 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 9568 echo "${ECHO_T}$hardcode_action" >&6; } 9569 9570 if test "$hardcode_action" = relink; then 9571 # Fast installation is not supported 9572 enable_fast_install=no 9573 elif test "$shlibpath_overrides_runpath" = yes || 9574 test "$enable_shared" = no; then 9575 # Fast installation is not necessary 9576 enable_fast_install=needless 9577 fi 9578 9579 striplib= 9580 old_striplib= 9581 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9582 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9583 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9584 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9585 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9586 { echo "$as_me:$LINENO: result: yes" >&5 9587 echo "${ECHO_T}yes" >&6; } 9588 else 9589 # FIXME - insert some real tests, host_os isn't really good enough 9590 case $host_os in 9591 darwin*) 9592 if test -n "$STRIP" ; then 9593 striplib="$STRIP -x" 9594 old_striplib="$STRIP -S" 9595 { echo "$as_me:$LINENO: result: yes" >&5 9596 echo "${ECHO_T}yes" >&6; } 9597 else 9598 { echo "$as_me:$LINENO: result: no" >&5 9599 echo "${ECHO_T}no" >&6; } 9600 fi 9601 ;; 9602 *) 9603 { echo "$as_me:$LINENO: result: no" >&5 9604 echo "${ECHO_T}no" >&6; } 9605 ;; 9606 esac 9607 fi 9608 9609 if test "x$enable_dlopen" != xyes; then 9610 enable_dlopen=unknown 9611 enable_dlopen_self=unknown 9612 enable_dlopen_self_static=unknown 9613 else 9614 lt_cv_dlopen=no 9615 lt_cv_dlopen_libs= 9616 9617 case $host_os in 9618 beos*) 9619 lt_cv_dlopen="load_add_on" 9620 lt_cv_dlopen_libs= 9621 lt_cv_dlopen_self=yes 9622 ;; 9623 9624 mingw* | pw32*) 9625 lt_cv_dlopen="LoadLibrary" 9626 lt_cv_dlopen_libs= 9627 ;; 9628 9629 cygwin*) 9630 lt_cv_dlopen="dlopen" 9631 lt_cv_dlopen_libs= 9632 ;; 9633 9634 darwin*) 9635 # if libdl is installed we need to link against it 9636 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9639 echo $ECHO_N "(cached) $ECHO_C" >&6 9640 else 9641 ac_check_lib_save_LIBS=$LIBS 9642 LIBS="-ldl $LIBS" 9643 cat >conftest.$ac_ext <<_ACEOF 9644 /* confdefs.h. */ 9645 _ACEOF 9646 cat confdefs.h >>conftest.$ac_ext 9647 cat >>conftest.$ac_ext <<_ACEOF 9648 /* end confdefs.h. */ 9649 9650 /* Override any GCC internal prototype to avoid an error. 9651 Use char because int might match the return type of a GCC 9652 builtin and then its argument prototype would still apply. */ 9653 #ifdef __cplusplus 9654 extern "C" 9655 #endif 9656 char dlopen (); 9657 int 9658 main () 9659 { 9660 return dlopen (); 9661 ; 9662 return 0; 9663 } 9664 _ACEOF 9665 rm -f conftest.$ac_objext conftest$ac_exeext 9666 if { (ac_try="$ac_link" 9667 case "(($ac_try" in 9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9669 *) ac_try_echo=$ac_try;; 9670 esac 9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9672 (eval "$ac_link") 2>conftest.er1 9673 ac_status=$? 9674 grep -v '^ *+' conftest.er1 >conftest.err 9675 rm -f conftest.er1 9676 cat conftest.err >&5 9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9678 (exit $ac_status); } && { 9679 test -z "$ac_c_werror_flag" || 9680 test ! -s conftest.err 9681 } && test -s conftest$ac_exeext && 9682 $as_test_x conftest$ac_exeext; then 9683 ac_cv_lib_dl_dlopen=yes 9684 else 9685 echo "$as_me: failed program was:" >&5 9686 sed 's/^/| /' conftest.$ac_ext >&5 9687 9688 ac_cv_lib_dl_dlopen=no 9689 fi 9690 9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9692 conftest$ac_exeext conftest.$ac_ext 9693 LIBS=$ac_check_lib_save_LIBS 9694 fi 9695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9697 if test $ac_cv_lib_dl_dlopen = yes; then 9698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9699 else 9700 9701 lt_cv_dlopen="dyld" 9702 lt_cv_dlopen_libs= 9703 lt_cv_dlopen_self=yes 9704 9705 fi 9706 9707 ;; 9708 9709 *) 9710 { echo "$as_me:$LINENO: checking for shl_load" >&5 9711 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9712 if test "${ac_cv_func_shl_load+set}" = set; then 9713 echo $ECHO_N "(cached) $ECHO_C" >&6 9714 else 9715 cat >conftest.$ac_ext <<_ACEOF 9716 /* confdefs.h. */ 9717 _ACEOF 9718 cat confdefs.h >>conftest.$ac_ext 9719 cat >>conftest.$ac_ext <<_ACEOF 9720 /* end confdefs.h. */ 9721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9723 #define shl_load innocuous_shl_load 9724 9725 /* System header to define __stub macros and hopefully few prototypes, 9726 which can conflict with char shl_load (); below. 9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9728 <limits.h> exists even on freestanding compilers. */ 9729 9730 #ifdef __STDC__ 9731 # include <limits.h> 9732 #else 9733 # include <assert.h> 9734 #endif 9735 9736 #undef shl_load 9737 9738 /* Override any GCC internal prototype to avoid an error. 9739 Use char because int might match the return type of a GCC 9740 builtin and then its argument prototype would still apply. */ 9741 #ifdef __cplusplus 9742 extern "C" 9743 #endif 9744 char shl_load (); 9745 /* The GNU C library defines this for functions which it implements 9746 to always fail with ENOSYS. Some functions are actually named 9747 something starting with __ and the normal name is an alias. */ 9748 #if defined __stub_shl_load || defined __stub___shl_load 9749 choke me 9750 #endif 9751 9752 int 9753 main () 9754 { 9755 return shl_load (); 9756 ; 9757 return 0; 9758 } 9759 _ACEOF 9760 rm -f conftest.$ac_objext conftest$ac_exeext 9761 if { (ac_try="$ac_link" 9762 case "(($ac_try" in 9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9764 *) ac_try_echo=$ac_try;; 9765 esac 9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9767 (eval "$ac_link") 2>conftest.er1 9768 ac_status=$? 9769 grep -v '^ *+' conftest.er1 >conftest.err 9770 rm -f conftest.er1 9771 cat conftest.err >&5 9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 (exit $ac_status); } && { 9774 test -z "$ac_c_werror_flag" || 9775 test ! -s conftest.err 9776 } && test -s conftest$ac_exeext && 9777 $as_test_x conftest$ac_exeext; then 9778 ac_cv_func_shl_load=yes 9779 else 9780 echo "$as_me: failed program was:" >&5 9781 sed 's/^/| /' conftest.$ac_ext >&5 9782 9783 ac_cv_func_shl_load=no 9784 fi 9785 9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9787 conftest$ac_exeext conftest.$ac_ext 9788 fi 9789 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9790 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9791 if test $ac_cv_func_shl_load = yes; then 9792 lt_cv_dlopen="shl_load" 9793 else 9794 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9795 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9796 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9797 echo $ECHO_N "(cached) $ECHO_C" >&6 9798 else 9799 ac_check_lib_save_LIBS=$LIBS 9800 LIBS="-ldld $LIBS" 9801 cat >conftest.$ac_ext <<_ACEOF 9802 /* confdefs.h. */ 9803 _ACEOF 9804 cat confdefs.h >>conftest.$ac_ext 9805 cat >>conftest.$ac_ext <<_ACEOF 9806 /* end confdefs.h. */ 9807 9808 /* Override any GCC internal prototype to avoid an error. 9809 Use char because int might match the return type of a GCC 9810 builtin and then its argument prototype would still apply. */ 9811 #ifdef __cplusplus 9812 extern "C" 9813 #endif 9814 char shl_load (); 9815 int 9816 main () 9817 { 9818 return shl_load (); 9819 ; 9820 return 0; 9821 } 9822 _ACEOF 9823 rm -f conftest.$ac_objext conftest$ac_exeext 9824 if { (ac_try="$ac_link" 9825 case "(($ac_try" in 9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9827 *) ac_try_echo=$ac_try;; 9828 esac 9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9830 (eval "$ac_link") 2>conftest.er1 9831 ac_status=$? 9832 grep -v '^ *+' conftest.er1 >conftest.err 9833 rm -f conftest.er1 9834 cat conftest.err >&5 9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9836 (exit $ac_status); } && { 9837 test -z "$ac_c_werror_flag" || 9838 test ! -s conftest.err 9839 } && test -s conftest$ac_exeext && 9840 $as_test_x conftest$ac_exeext; then 9841 ac_cv_lib_dld_shl_load=yes 9842 else 9843 echo "$as_me: failed program was:" >&5 9844 sed 's/^/| /' conftest.$ac_ext >&5 9845 9846 ac_cv_lib_dld_shl_load=no 9847 fi 9848 9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9850 conftest$ac_exeext conftest.$ac_ext 9851 LIBS=$ac_check_lib_save_LIBS 9852 fi 9853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9855 if test $ac_cv_lib_dld_shl_load = yes; then 9856 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9857 else 9858 { echo "$as_me:$LINENO: checking for dlopen" >&5 9859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9860 if test "${ac_cv_func_dlopen+set}" = set; then 9861 echo $ECHO_N "(cached) $ECHO_C" >&6 9862 else 9863 cat >conftest.$ac_ext <<_ACEOF 9864 /* confdefs.h. */ 9865 _ACEOF 9866 cat confdefs.h >>conftest.$ac_ext 9867 cat >>conftest.$ac_ext <<_ACEOF 9868 /* end confdefs.h. */ 9869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9870 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9871 #define dlopen innocuous_dlopen 9872 9873 /* System header to define __stub macros and hopefully few prototypes, 9874 which can conflict with char dlopen (); below. 9875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9876 <limits.h> exists even on freestanding compilers. */ 9877 9878 #ifdef __STDC__ 9879 # include <limits.h> 9880 #else 9881 # include <assert.h> 9882 #endif 9883 9884 #undef dlopen 9885 9886 /* Override any GCC internal prototype to avoid an error. 9887 Use char because int might match the return type of a GCC 9888 builtin and then its argument prototype would still apply. */ 9889 #ifdef __cplusplus 9890 extern "C" 9891 #endif 9892 char dlopen (); 9893 /* The GNU C library defines this for functions which it implements 9894 to always fail with ENOSYS. Some functions are actually named 9895 something starting with __ and the normal name is an alias. */ 9896 #if defined __stub_dlopen || defined __stub___dlopen 9897 choke me 9898 #endif 9899 9900 int 9901 main () 9902 { 9903 return dlopen (); 9904 ; 9905 return 0; 9906 } 9907 _ACEOF 9908 rm -f conftest.$ac_objext conftest$ac_exeext 9909 if { (ac_try="$ac_link" 9910 case "(($ac_try" in 9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9912 *) ac_try_echo=$ac_try;; 9913 esac 9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9915 (eval "$ac_link") 2>conftest.er1 9916 ac_status=$? 9917 grep -v '^ *+' conftest.er1 >conftest.err 9918 rm -f conftest.er1 9919 cat conftest.err >&5 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); } && { 9922 test -z "$ac_c_werror_flag" || 9923 test ! -s conftest.err 9924 } && test -s conftest$ac_exeext && 9925 $as_test_x conftest$ac_exeext; then 9926 ac_cv_func_dlopen=yes 9927 else 9928 echo "$as_me: failed program was:" >&5 9929 sed 's/^/| /' conftest.$ac_ext >&5 9930 9931 ac_cv_func_dlopen=no 9932 fi 9933 9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9935 conftest$ac_exeext conftest.$ac_ext 9936 fi 9937 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9939 if test $ac_cv_func_dlopen = yes; then 9940 lt_cv_dlopen="dlopen" 9941 else 9942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9945 echo $ECHO_N "(cached) $ECHO_C" >&6 9946 else 9947 ac_check_lib_save_LIBS=$LIBS 9948 LIBS="-ldl $LIBS" 9949 cat >conftest.$ac_ext <<_ACEOF 9950 /* confdefs.h. */ 9951 _ACEOF 9952 cat confdefs.h >>conftest.$ac_ext 9953 cat >>conftest.$ac_ext <<_ACEOF 9954 /* end confdefs.h. */ 9955 9956 /* Override any GCC internal prototype to avoid an error. 9957 Use char because int might match the return type of a GCC 9958 builtin and then its argument prototype would still apply. */ 9959 #ifdef __cplusplus 9960 extern "C" 9961 #endif 9962 char dlopen (); 9963 int 9964 main () 9965 { 9966 return dlopen (); 9967 ; 9968 return 0; 9969 } 9970 _ACEOF 9971 rm -f conftest.$ac_objext conftest$ac_exeext 9972 if { (ac_try="$ac_link" 9973 case "(($ac_try" in 9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9975 *) ac_try_echo=$ac_try;; 9976 esac 9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9978 (eval "$ac_link") 2>conftest.er1 9979 ac_status=$? 9980 grep -v '^ *+' conftest.er1 >conftest.err 9981 rm -f conftest.er1 9982 cat conftest.err >&5 9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 (exit $ac_status); } && { 9985 test -z "$ac_c_werror_flag" || 9986 test ! -s conftest.err 9987 } && test -s conftest$ac_exeext && 9988 $as_test_x conftest$ac_exeext; then 9989 ac_cv_lib_dl_dlopen=yes 9990 else 9991 echo "$as_me: failed program was:" >&5 9992 sed 's/^/| /' conftest.$ac_ext >&5 9993 9994 ac_cv_lib_dl_dlopen=no 9995 fi 9996 9997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9998 conftest$ac_exeext conftest.$ac_ext 9999 LIBS=$ac_check_lib_save_LIBS 10000 fi 10001 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10003 if test $ac_cv_lib_dl_dlopen = yes; then 10004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10005 else 10006 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10007 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10008 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10009 echo $ECHO_N "(cached) $ECHO_C" >&6 10010 else 10011 ac_check_lib_save_LIBS=$LIBS 10012 LIBS="-lsvld $LIBS" 10013 cat >conftest.$ac_ext <<_ACEOF 10014 /* confdefs.h. */ 10015 _ACEOF 10016 cat confdefs.h >>conftest.$ac_ext 10017 cat >>conftest.$ac_ext <<_ACEOF 10018 /* end confdefs.h. */ 10019 10020 /* Override any GCC internal prototype to avoid an error. 10021 Use char because int might match the return type of a GCC 10022 builtin and then its argument prototype would still apply. */ 10023 #ifdef __cplusplus 10024 extern "C" 10025 #endif 10026 char dlopen (); 10027 int 10028 main () 10029 { 10030 return dlopen (); 10031 ; 10032 return 0; 10033 } 10034 _ACEOF 10035 rm -f conftest.$ac_objext conftest$ac_exeext 10036 if { (ac_try="$ac_link" 10037 case "(($ac_try" in 10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10039 *) ac_try_echo=$ac_try;; 10040 esac 10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10042 (eval "$ac_link") 2>conftest.er1 10043 ac_status=$? 10044 grep -v '^ *+' conftest.er1 >conftest.err 10045 rm -f conftest.er1 10046 cat conftest.err >&5 10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 (exit $ac_status); } && { 10049 test -z "$ac_c_werror_flag" || 10050 test ! -s conftest.err 10051 } && test -s conftest$ac_exeext && 10052 $as_test_x conftest$ac_exeext; then 10053 ac_cv_lib_svld_dlopen=yes 10054 else 10055 echo "$as_me: failed program was:" >&5 10056 sed 's/^/| /' conftest.$ac_ext >&5 10057 10058 ac_cv_lib_svld_dlopen=no 10059 fi 10060 10061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10062 conftest$ac_exeext conftest.$ac_ext 10063 LIBS=$ac_check_lib_save_LIBS 10064 fi 10065 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10066 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10067 if test $ac_cv_lib_svld_dlopen = yes; then 10068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10069 else 10070 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10071 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10073 echo $ECHO_N "(cached) $ECHO_C" >&6 10074 else 10075 ac_check_lib_save_LIBS=$LIBS 10076 LIBS="-ldld $LIBS" 10077 cat >conftest.$ac_ext <<_ACEOF 10078 /* confdefs.h. */ 10079 _ACEOF 10080 cat confdefs.h >>conftest.$ac_ext 10081 cat >>conftest.$ac_ext <<_ACEOF 10082 /* end confdefs.h. */ 10083 10084 /* Override any GCC internal prototype to avoid an error. 10085 Use char because int might match the return type of a GCC 10086 builtin and then its argument prototype would still apply. */ 10087 #ifdef __cplusplus 10088 extern "C" 10089 #endif 10090 char dld_link (); 10091 int 10092 main () 10093 { 10094 return dld_link (); 10095 ; 10096 return 0; 10097 } 10098 _ACEOF 10099 rm -f conftest.$ac_objext conftest$ac_exeext 10100 if { (ac_try="$ac_link" 10101 case "(($ac_try" in 10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10103 *) ac_try_echo=$ac_try;; 10104 esac 10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10106 (eval "$ac_link") 2>conftest.er1 10107 ac_status=$? 10108 grep -v '^ *+' conftest.er1 >conftest.err 10109 rm -f conftest.er1 10110 cat conftest.err >&5 10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10112 (exit $ac_status); } && { 10113 test -z "$ac_c_werror_flag" || 10114 test ! -s conftest.err 10115 } && test -s conftest$ac_exeext && 10116 $as_test_x conftest$ac_exeext; then 10117 ac_cv_lib_dld_dld_link=yes 10118 else 10119 echo "$as_me: failed program was:" >&5 10120 sed 's/^/| /' conftest.$ac_ext >&5 10121 10122 ac_cv_lib_dld_dld_link=no 10123 fi 10124 10125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10126 conftest$ac_exeext conftest.$ac_ext 10127 LIBS=$ac_check_lib_save_LIBS 10128 fi 10129 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10130 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10131 if test $ac_cv_lib_dld_dld_link = yes; then 10132 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10133 fi 10134 10135 10136 fi 10137 10138 10139 fi 10140 10141 10142 fi 10143 10144 10145 fi 10146 10147 10148 fi 10149 10150 ;; 10151 esac 10152 10153 if test "x$lt_cv_dlopen" != xno; then 10154 enable_dlopen=yes 10155 else 10156 enable_dlopen=no 10157 fi 10158 10159 case $lt_cv_dlopen in 10160 dlopen) 10161 save_CPPFLAGS="$CPPFLAGS" 10162 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10163 10164 save_LDFLAGS="$LDFLAGS" 10165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10166 10167 save_LIBS="$LIBS" 10168 LIBS="$lt_cv_dlopen_libs $LIBS" 10169 10170 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10171 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10172 if test "${lt_cv_dlopen_self+set}" = set; then 10173 echo $ECHO_N "(cached) $ECHO_C" >&6 10174 else 10175 if test "$cross_compiling" = yes; then : 10176 lt_cv_dlopen_self=cross 10177 else 10178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10179 lt_status=$lt_dlunknown 10180 cat > conftest.$ac_ext <<EOF 10181 #line 10181 "configure" 10182 #include "confdefs.h" 10183 10184 #if HAVE_DLFCN_H 10185 #include <dlfcn.h> 10186 #endif 10187 10188 #include <stdio.h> 10189 10190 #ifdef RTLD_GLOBAL 10191 # define LT_DLGLOBAL RTLD_GLOBAL 10192 #else 10193 # ifdef DL_GLOBAL 10194 # define LT_DLGLOBAL DL_GLOBAL 10195 # else 10196 # define LT_DLGLOBAL 0 10197 # endif 10198 #endif 10199 10200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10201 find out it does not work in some platform. */ 10202 #ifndef LT_DLLAZY_OR_NOW 10203 # ifdef RTLD_LAZY 10204 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10205 # else 10206 # ifdef DL_LAZY 10207 # define LT_DLLAZY_OR_NOW DL_LAZY 10208 # else 10209 # ifdef RTLD_NOW 10210 # define LT_DLLAZY_OR_NOW RTLD_NOW 10211 # else 10212 # ifdef DL_NOW 10213 # define LT_DLLAZY_OR_NOW DL_NOW 10214 # else 10215 # define LT_DLLAZY_OR_NOW 0 10216 # endif 10217 # endif 10218 # endif 10219 # endif 10220 #endif 10221 10222 #ifdef __cplusplus 10223 extern "C" void exit (int); 10224 #endif 10225 10226 void fnord() { int i=42;} 10227 int main () 10228 { 10229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10230 int status = $lt_dlunknown; 10231 10232 if (self) 10233 { 10234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10236 /* dlclose (self); */ 10237 } 10238 else 10239 puts (dlerror ()); 10240 10241 exit (status); 10242 } 10243 EOF 10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10245 (eval $ac_link) 2>&5 10246 ac_status=$? 10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10249 (./conftest; exit; ) >&5 2>/dev/null 10250 lt_status=$? 10251 case x$lt_status in 10252 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10253 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10254 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10255 esac 10256 else : 10257 # compilation failed 10258 lt_cv_dlopen_self=no 10259 fi 10260 fi 10261 rm -fr conftest* 10262 10263 10264 fi 10265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10266 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10267 10268 if test "x$lt_cv_dlopen_self" = xyes; then 10269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10270 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10271 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10272 if test "${lt_cv_dlopen_self_static+set}" = set; then 10273 echo $ECHO_N "(cached) $ECHO_C" >&6 10274 else 10275 if test "$cross_compiling" = yes; then : 10276 lt_cv_dlopen_self_static=cross 10277 else 10278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10279 lt_status=$lt_dlunknown 10280 cat > conftest.$ac_ext <<EOF 10281 #line 10281 "configure" 10282 #include "confdefs.h" 10283 10284 #if HAVE_DLFCN_H 10285 #include <dlfcn.h> 10286 #endif 10287 10288 #include <stdio.h> 10289 10290 #ifdef RTLD_GLOBAL 10291 # define LT_DLGLOBAL RTLD_GLOBAL 10292 #else 10293 # ifdef DL_GLOBAL 10294 # define LT_DLGLOBAL DL_GLOBAL 10295 # else 10296 # define LT_DLGLOBAL 0 10297 # endif 10298 #endif 10299 10300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10301 find out it does not work in some platform. */ 10302 #ifndef LT_DLLAZY_OR_NOW 10303 # ifdef RTLD_LAZY 10304 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10305 # else 10306 # ifdef DL_LAZY 10307 # define LT_DLLAZY_OR_NOW DL_LAZY 10308 # else 10309 # ifdef RTLD_NOW 10310 # define LT_DLLAZY_OR_NOW RTLD_NOW 10311 # else 10312 # ifdef DL_NOW 10313 # define LT_DLLAZY_OR_NOW DL_NOW 10314 # else 10315 # define LT_DLLAZY_OR_NOW 0 10316 # endif 10317 # endif 10318 # endif 10319 # endif 10320 #endif 10321 10322 #ifdef __cplusplus 10323 extern "C" void exit (int); 10324 #endif 10325 10326 void fnord() { int i=42;} 10327 int main () 10328 { 10329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10330 int status = $lt_dlunknown; 10331 10332 if (self) 10333 { 10334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10335 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10336 /* dlclose (self); */ 10337 } 10338 else 10339 puts (dlerror ()); 10340 10341 exit (status); 10342 } 10343 EOF 10344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10345 (eval $ac_link) 2>&5 10346 ac_status=$? 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10348 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10349 (./conftest; exit; ) >&5 2>/dev/null 10350 lt_status=$? 10351 case x$lt_status in 10352 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10353 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10354 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10355 esac 10356 else : 10357 # compilation failed 10358 lt_cv_dlopen_self_static=no 10359 fi 10360 fi 10361 rm -fr conftest* 10362 10363 10364 fi 10365 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10366 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10367 fi 10368 10369 CPPFLAGS="$save_CPPFLAGS" 10370 LDFLAGS="$save_LDFLAGS" 10371 LIBS="$save_LIBS" 10372 ;; 10373 esac 10374 10375 case $lt_cv_dlopen_self in 10376 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10377 *) enable_dlopen_self=unknown ;; 10378 esac 10379 10380 case $lt_cv_dlopen_self_static in 10381 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10382 *) enable_dlopen_self_static=unknown ;; 10383 esac 10384 fi 10385 10386 10387 # Report which library types will actually be built 10388 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10389 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10390 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 10391 echo "${ECHO_T}$can_build_shared" >&6; } 10392 10393 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10394 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10395 test "$can_build_shared" = "no" && enable_shared=no 10396 10397 # On AIX, shared libraries and static libraries use the same namespace, and 10398 # are all built from PIC. 10399 case $host_os in 10400 aix3*) 10401 test "$enable_shared" = yes && enable_static=no 10402 if test -n "$RANLIB"; then 10403 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10404 postinstall_cmds='$RANLIB $lib' 10405 fi 10406 ;; 10407 10408 aix4* | aix5*) 10409 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10410 test "$enable_shared" = yes && enable_static=no 10411 fi 10412 ;; 10413 esac 10414 { echo "$as_me:$LINENO: result: $enable_shared" >&5 10415 echo "${ECHO_T}$enable_shared" >&6; } 10416 10417 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10418 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10419 # Make sure either enable_shared or enable_static is yes. 10420 test "$enable_shared" = yes || enable_static=yes 10421 { echo "$as_me:$LINENO: result: $enable_static" >&5 10422 echo "${ECHO_T}$enable_static" >&6; } 10423 10424 # The else clause should only fire when bootstrapping the 10425 # libtool distribution, otherwise you forgot to ship ltmain.sh 10426 # with your package, and you will get complaints that there are 10427 # no rules to generate ltmain.sh. 10428 if test -f "$ltmain"; then 10429 # See if we are running on zsh, and set the options which allow our commands through 10430 # without removal of \ escapes. 10431 if test -n "${ZSH_VERSION+set}" ; then 10432 setopt NO_GLOB_SUBST 10433 fi 10434 # Now quote all the things that may contain metacharacters while being 10435 # careful not to overquote the AC_SUBSTed values. We take copies of the 10436 # variables and quote the copies for generation of the libtool script. 10437 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10438 SED SHELL STRIP \ 10439 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10440 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10441 deplibs_check_method reload_flag reload_cmds need_locks \ 10442 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10443 lt_cv_sys_global_symbol_to_c_name_address \ 10444 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10445 old_postinstall_cmds old_postuninstall_cmds \ 10446 compiler \ 10447 CC \ 10448 LD \ 10449 lt_prog_compiler_wl \ 10450 lt_prog_compiler_pic \ 10451 lt_prog_compiler_static \ 10452 lt_prog_compiler_no_builtin_flag \ 10453 export_dynamic_flag_spec \ 10454 thread_safe_flag_spec \ 10455 whole_archive_flag_spec \ 10456 enable_shared_with_static_runtimes \ 10457 old_archive_cmds \ 10458 old_archive_from_new_cmds \ 10459 predep_objects \ 10460 postdep_objects \ 10461 predeps \ 10462 postdeps \ 10463 compiler_lib_search_path \ 10464 archive_cmds \ 10465 archive_expsym_cmds \ 10466 postinstall_cmds \ 10467 postuninstall_cmds \ 10468 old_archive_from_expsyms_cmds \ 10469 allow_undefined_flag \ 10470 no_undefined_flag \ 10471 export_symbols_cmds \ 10472 hardcode_libdir_flag_spec \ 10473 hardcode_libdir_flag_spec_ld \ 10474 hardcode_libdir_separator \ 10475 hardcode_automatic \ 10476 module_cmds \ 10477 module_expsym_cmds \ 10478 lt_cv_prog_compiler_c_o \ 10479 fix_srcfile_path \ 10480 exclude_expsyms \ 10481 include_expsyms; do 10482 10483 case $var in 10484 old_archive_cmds | \ 10485 old_archive_from_new_cmds | \ 10486 archive_cmds | \ 10487 archive_expsym_cmds | \ 10488 module_cmds | \ 10489 module_expsym_cmds | \ 10490 old_archive_from_expsyms_cmds | \ 10491 export_symbols_cmds | \ 10492 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10493 postinstall_cmds | postuninstall_cmds | \ 10494 old_postinstall_cmds | old_postuninstall_cmds | \ 10495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10496 # Double-quote double-evaled strings. 10497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10498 ;; 10499 *) 10500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10501 ;; 10502 esac 10503 done 10504 10505 case $lt_echo in 10506 *'\$0 --fallback-echo"') 10507 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10508 ;; 10509 esac 10510 10511 cfgfile="${ofile}T" 10512 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10513 $rm -f "$cfgfile" 10514 { echo "$as_me:$LINENO: creating $ofile" >&5 10515 echo "$as_me: creating $ofile" >&6;} 10516 10517 cat <<__EOF__ >> "$cfgfile" 10518 #! $SHELL 10519 10520 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10521 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10522 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 10523 # 10524 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10525 # Free Software Foundation, Inc. 10526 # 10527 # This file is part of GNU Libtool: 10528 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996 10529 # 10530 # This program is free software; you can redistribute it and/or modify 10531 # it under the terms of the GNU General Public License as published by 10532 # the Free Software Foundation; either version 2 of the License, or 10533 # (at your option) any later version. 10534 # 10535 # This program is distributed in the hope that it will be useful, but 10536 # WITHOUT ANY WARRANTY; without even the implied warranty of 10537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10538 # General Public License for more details. 10539 # 10540 # You should have received a copy of the GNU General Public License 10541 # along with this program; if not, write to the Free Software 10542 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10543 # 10544 # As a special exception to the GNU General Public License, if you 10545 # distribute this file as part of a program that contains a 10546 # configuration script generated by Autoconf, you may include it under 10547 # the same distribution terms that you use for the rest of that program. 10548 10549 # A sed program that does not truncate output. 10550 SED=$lt_SED 10551 10552 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 10553 Xsed="$SED -e 1s/^X//" 10554 10555 # The HP-UX ksh and POSIX shell print the target directory to stdout 10556 # if CDPATH is set. 10557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10558 10559 # The names of the tagged configurations supported by this script. 10560 available_tags= 10561 10562 # ### BEGIN LIBTOOL CONFIG 10563 10564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10565 10566 # Shell to use when invoking shell scripts. 10567 SHELL=$lt_SHELL 10568 10569 # Whether or not to build shared libraries. 10570 build_libtool_libs=$enable_shared 10571 10572 # Whether or not to build static libraries. 10573 build_old_libs=$enable_static 10574 10575 # Whether or not to add -lc for building shared libraries. 10576 build_libtool_need_lc=$archive_cmds_need_lc 10577 10578 # Whether or not to disallow shared libs when runtime libs are static 10579 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10580 10581 # Whether or not to optimize for fast installation. 10582 fast_install=$enable_fast_install 10583 10584 # The host system. 10585 host_alias=$host_alias 10586 host=$host 10587 host_os=$host_os 10588 10589 # The build system. 10590 build_alias=$build_alias 10591 build=$build 10592 build_os=$build_os 10593 10594 # An echo program that does not interpret backslashes. 10595 echo=$lt_echo 10596 10597 # The archiver. 10598 AR=$lt_AR 10599 AR_FLAGS=$lt_AR_FLAGS 10600 10601 # A C compiler. 10602 LTCC=$lt_LTCC 10603 10604 # LTCC compiler flags. 10605 LTCFLAGS=$lt_LTCFLAGS 10606 10607 # A language-specific compiler. 10608 CC=$lt_compiler 10609 10610 # Is the compiler the GNU C compiler? 10611 with_gcc=$GCC 10612 10613 # An ERE matcher. 10614 EGREP=$lt_EGREP 10615 10616 # The linker used to build libraries. 10617 LD=$lt_LD 10618 10619 # Whether we need hard or soft links. 10620 LN_S=$lt_LN_S 10621 10622 # A BSD-compatible nm program. 10623 NM=$lt_NM 10624 10625 # A symbol stripping program 10626 STRIP=$lt_STRIP 10627 10628 # Used to examine libraries when file_magic_cmd begins "file" 10629 MAGIC_CMD=$MAGIC_CMD 10630 10631 # Used on cygwin: DLL creation program. 10632 DLLTOOL="$DLLTOOL" 10633 10634 # Used on cygwin: object dumper. 10635 OBJDUMP="$OBJDUMP" 10636 10637 # Used on cygwin: assembler. 10638 AS="$AS" 10639 10640 # The name of the directory that contains temporary libtool files. 10641 objdir=$objdir 10642 10643 # How to create reloadable object files. 10644 reload_flag=$lt_reload_flag 10645 reload_cmds=$lt_reload_cmds 10646 10647 # How to pass a linker flag through the compiler. 10648 wl=$lt_lt_prog_compiler_wl 10649 10650 # Object file suffix (normally "o"). 10651 objext="$ac_objext" 10652 10653 # Old archive suffix (normally "a"). 10654 libext="$libext" 10655 10656 # Shared library suffix (normally ".so"). 10657 shrext_cmds='$shrext_cmds' 10658 10659 # Executable file suffix (normally ""). 10660 exeext="$exeext" 10661 10662 # Additional compiler flags for building library objects. 10663 pic_flag=$lt_lt_prog_compiler_pic 10664 pic_mode=$pic_mode 10665 10666 # What is the maximum length of a command? 10667 max_cmd_len=$lt_cv_sys_max_cmd_len 10668 10669 # Does compiler simultaneously support -c and -o options? 10670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10671 10672 # Must we lock files when doing compilation? 10673 need_locks=$lt_need_locks 10674 10675 # Do we need the lib prefix for modules? 10676 need_lib_prefix=$need_lib_prefix 10677 10678 # Do we need a version for libraries? 10679 need_version=$need_version 10680 10681 # Whether dlopen is supported. 10682 dlopen_support=$enable_dlopen 10683 10684 # Whether dlopen of programs is supported. 10685 dlopen_self=$enable_dlopen_self 10686 10687 # Whether dlopen of statically linked programs is supported. 10688 dlopen_self_static=$enable_dlopen_self_static 10689 10690 # Compiler flag to prevent dynamic linking. 10691 link_static_flag=$lt_lt_prog_compiler_static 10692 10693 # Compiler flag to turn off builtin functions. 10694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10695 10696 # Compiler flag to allow reflexive dlopens. 10697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10698 10699 # Compiler flag to generate shared objects directly from archives. 10700 whole_archive_flag_spec=$lt_whole_archive_flag_spec 10701 10702 # Compiler flag to generate thread-safe objects. 10703 thread_safe_flag_spec=$lt_thread_safe_flag_spec 10704 10705 # Library versioning type. 10706 version_type=$version_type 10707 10708 # Format of library name prefix. 10709 libname_spec=$lt_libname_spec 10710 10711 # List of archive names. First name is the real one, the rest are links. 10712 # The last name is the one that the linker finds with -lNAME. 10713 library_names_spec=$lt_library_names_spec 10714 10715 # The coded name of the library, if different from the real name. 10716 soname_spec=$lt_soname_spec 10717 10718 # Commands used to build and install an old-style archive. 10719 RANLIB=$lt_RANLIB 10720 old_archive_cmds=$lt_old_archive_cmds 10721 old_postinstall_cmds=$lt_old_postinstall_cmds 10722 old_postuninstall_cmds=$lt_old_postuninstall_cmds 10723 10724 # Create an old-style archive from a shared archive. 10725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10726 10727 # Create a temporary old-style archive to link instead of a shared archive. 10728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10729 10730 # Commands used to build and install a shared archive. 10731 archive_cmds=$lt_archive_cmds 10732 archive_expsym_cmds=$lt_archive_expsym_cmds 10733 postinstall_cmds=$lt_postinstall_cmds 10734 postuninstall_cmds=$lt_postuninstall_cmds 10735 10736 # Commands used to build a loadable module (assumed same as above if empty) 10737 module_cmds=$lt_module_cmds 10738 module_expsym_cmds=$lt_module_expsym_cmds 10739 10740 # Commands to strip libraries. 10741 old_striplib=$lt_old_striplib 10742 striplib=$lt_striplib 10743 10744 # Dependencies to place before the objects being linked to create a 10745 # shared library. 10746 predep_objects=$lt_predep_objects 10747 10748 # Dependencies to place after the objects being linked to create a 10749 # shared library. 10750 postdep_objects=$lt_postdep_objects 10751 10752 # Dependencies to place before the objects being linked to create a 10753 # shared library. 10754 predeps=$lt_predeps 10755 10756 # Dependencies to place after the objects being linked to create a 10757 # shared library. 10758 postdeps=$lt_postdeps 10759 10760 # The library search path used internally by the compiler when linking 10761 # a shared library. 10762 compiler_lib_search_path=$lt_compiler_lib_search_path 10763 10764 # Method to check whether dependent libraries are shared objects. 10765 deplibs_check_method=$lt_deplibs_check_method 10766 10767 # Command to use when deplibs_check_method == file_magic. 10768 file_magic_cmd=$lt_file_magic_cmd 10769 10770 # Flag that allows shared libraries with undefined symbols to be built. 10771 allow_undefined_flag=$lt_allow_undefined_flag 10772 10773 # Flag that forces no undefined symbols. 10774 no_undefined_flag=$lt_no_undefined_flag 10775 10776 # Commands used to finish a libtool library installation in a directory. 10777 finish_cmds=$lt_finish_cmds 10778 10779 # Same as above, but a single script fragment to be evaled but not shown. 10780 finish_eval=$lt_finish_eval 10781 10782 # Take the output of nm and produce a listing of raw symbols and C names. 10783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10784 10785 # Transform the output of nm in a proper C declaration 10786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10787 10788 # Transform the output of nm in a C name address pair 10789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10790 10791 # This is the shared library runtime path variable. 10792 runpath_var=$runpath_var 10793 10794 # This is the shared library path variable. 10795 shlibpath_var=$shlibpath_var 10796 10797 # Is shlibpath searched before the hard-coded library search path? 10798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10799 10800 # How to hardcode a shared library path into an executable. 10801 hardcode_action=$hardcode_action 10802 10803 # Whether we should hardcode library paths into libraries. 10804 hardcode_into_libs=$hardcode_into_libs 10805 10806 # Flag to hardcode \$libdir into a binary during linking. 10807 # This must work even if \$libdir does not exist. 10808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10809 10810 # If ld is used when linking, flag to hardcode \$libdir into 10811 # a binary during linking. This must work even if \$libdir does 10812 # not exist. 10813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10814 10815 # Whether we need a single -rpath flag with a separated argument. 10816 hardcode_libdir_separator=$lt_hardcode_libdir_separator 10817 10818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10819 # resulting binary. 10820 hardcode_direct=$hardcode_direct 10821 10822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10823 # resulting binary. 10824 hardcode_minus_L=$hardcode_minus_L 10825 10826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10827 # the resulting binary. 10828 hardcode_shlibpath_var=$hardcode_shlibpath_var 10829 10830 # Set to yes if building a shared library automatically hardcodes DIR into the library 10831 # and all subsequent libraries and executables linked against it. 10832 hardcode_automatic=$hardcode_automatic 10833 10834 # Variables whose values should be saved in libtool wrapper scripts and 10835 # restored at relink time. 10836 variables_saved_for_relink="$variables_saved_for_relink" 10837 10838 # Whether libtool must link a program against all its dependency libraries. 10839 link_all_deplibs=$link_all_deplibs 10840 10841 # Compile-time system search path for libraries 10842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10843 10844 # Run-time system search path for libraries 10845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10846 10847 # Fix the shell variable \$srcfile for the compiler. 10848 fix_srcfile_path=$lt_fix_srcfile_path 10849 10850 # Set to yes if exported symbols are required. 10851 always_export_symbols=$always_export_symbols 10852 10853 # The commands to list exported symbols. 10854 export_symbols_cmds=$lt_export_symbols_cmds 10855 10856 # The commands to extract the exported symbol list from a shared archive. 10857 extract_expsyms_cmds=$lt_extract_expsyms_cmds 10858 10859 # Symbols that should not be listed in the preloaded symbols. 10860 exclude_expsyms=$lt_exclude_expsyms 10861 10862 # Symbols that must always be exported. 10863 include_expsyms=$lt_include_expsyms 10864 10865 # ### END LIBTOOL CONFIG 10866 10867 __EOF__ 10868 10869 10870 case $host_os in 10871 aix3*) 10872 cat <<\EOF >> "$cfgfile" 10873 10874 # AIX sometimes has problems with the GCC collect2 program. For some 10875 # reason, if we set the COLLECT_NAMES environment variable, the problems 10876 # vanish in a puff of smoke. 10877 if test "X${COLLECT_NAMES+set}" != Xset; then 10878 COLLECT_NAMES= 10879 export COLLECT_NAMES 10880 fi 10881 EOF 10882 ;; 10883 esac 10884 10885 # We use sed instead of cat because bash on DJGPP gets confused if 10886 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10887 # text mode, it properly converts lines to CR/LF. This bash problem 10888 # is reportedly fixed, but why not run on old versions too? 10889 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10890 10891 mv -f "$cfgfile" "$ofile" || \ 10892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10893 chmod +x "$ofile" 10894 10895 else 10896 # If there is no Makefile yet, we rely on a make rule to execute 10897 # `config.status --recheck' to rerun these tests and create the 10898 # libtool script then. 10899 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10900 if test -f "$ltmain_in"; then 10901 test -f Makefile && make "$ltmain" 10902 fi 10903 fi 10904 10905 10906 ac_ext=c 10907 ac_cpp='$CPP $CPPFLAGS' 10908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10910 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10911 10912 CC="$lt_save_CC" 10913 10914 10915 # Check whether --with-tags was given. 10916 if test "${with_tags+set}" = set; then 10917 withval=$with_tags; tagnames="$withval" 10918 fi 10919 10920 10921 if test -f "$ltmain" && test -n "$tagnames"; then 10922 if test ! -f "${ofile}"; then 10923 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10924 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10925 fi 10926 10927 if test -z "$LTCC"; then 10928 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10929 if test -z "$LTCC"; then 10930 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10931 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10932 else 10933 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10934 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10935 fi 10936 fi 10937 if test -z "$LTCFLAGS"; then 10938 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10939 fi 10940 10941 # Extract list of available tagged configurations in $ofile. 10942 # Note that this assumes the entire list is on one line. 10943 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10944 10945 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10946 for tagname in $tagnames; do 10947 IFS="$lt_save_ifs" 10948 # Check whether tagname contains only valid characters 10949 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10950 "") ;; 10951 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10952 echo "$as_me: error: invalid tag name: $tagname" >&2;} 10953 { (exit 1); exit 1; }; } 10954 ;; 10955 esac 10956 10957 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10958 then 10959 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10960 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10961 { (exit 1); exit 1; }; } 10962 fi 10963 10964 # Update the list of available tags. 10965 if test -n "$tagname"; then 10966 echo appending configuration tag \"$tagname\" to $ofile 10967 10968 case $tagname in 10969 CXX) 10970 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10971 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10972 (test "X$CXX" != "Xg++"))) ; then 10973 ac_ext=cpp 10974 ac_cpp='$CXXCPP $CPPFLAGS' 10975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10978 10979 10980 10981 10982 archive_cmds_need_lc_CXX=no 10983 allow_undefined_flag_CXX= 10984 always_export_symbols_CXX=no 10985 archive_expsym_cmds_CXX= 10986 export_dynamic_flag_spec_CXX= 10987 hardcode_direct_CXX=no 10988 hardcode_libdir_flag_spec_CXX= 10989 hardcode_libdir_flag_spec_ld_CXX= 10990 hardcode_libdir_separator_CXX= 10991 hardcode_minus_L_CXX=no 10992 hardcode_shlibpath_var_CXX=unsupported 10993 hardcode_automatic_CXX=no 10994 module_cmds_CXX= 10995 module_expsym_cmds_CXX= 10996 link_all_deplibs_CXX=unknown 10997 old_archive_cmds_CXX=$old_archive_cmds 10998 no_undefined_flag_CXX= 10999 whole_archive_flag_spec_CXX= 11000 enable_shared_with_static_runtimes_CXX=no 11001 11002 # Dependencies to place before and after the object being linked: 11003 predep_objects_CXX= 11004 postdep_objects_CXX= 11005 predeps_CXX= 11006 postdeps_CXX= 11007 compiler_lib_search_path_CXX= 11008 11009 # Source file extension for C++ test sources. 11010 ac_ext=cpp 11011 11012 # Object file extension for compiled C++ test sources. 11013 objext=o 11014 objext_CXX=$objext 11015 11016 # Code to be used in simple compile tests 11017 lt_simple_compile_test_code="int some_variable = 0;" 11018 11019 # Code to be used in simple link tests 11020 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11021 11022 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11023 11024 # If no C compiler was specified, use CC. 11025 LTCC=${LTCC-"$CC"} 11026 11027 # If no C compiler flags were specified, use CFLAGS. 11028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11029 11030 # Allow CC to be a program name with arguments. 11031 compiler=$CC 11032 11033 11034 # save warnings/boilerplate of simple test code 11035 ac_outfile=conftest.$ac_objext 11036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11038 _lt_compiler_boilerplate=`cat conftest.err` 11039 $rm conftest* 11040 11041 ac_outfile=conftest.$ac_objext 11042 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11044 _lt_linker_boilerplate=`cat conftest.err` 11045 $rm conftest* 11046 11047 11048 # Allow CC to be a program name with arguments. 11049 lt_save_CC=$CC 11050 lt_save_LD=$LD 11051 lt_save_GCC=$GCC 11052 GCC=$GXX 11053 lt_save_with_gnu_ld=$with_gnu_ld 11054 lt_save_path_LD=$lt_cv_path_LD 11055 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11056 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11057 else 11058 $as_unset lt_cv_prog_gnu_ld 11059 fi 11060 if test -n "${lt_cv_path_LDCXX+set}"; then 11061 lt_cv_path_LD=$lt_cv_path_LDCXX 11062 else 11063 $as_unset lt_cv_path_LD 11064 fi 11065 test -z "${LDCXX+set}" || LD=$LDCXX 11066 CC=${CXX-"c++"} 11067 compiler=$CC 11068 compiler_CXX=$CC 11069 for cc_temp in $compiler""; do 11070 case $cc_temp in 11071 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11072 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11073 \-*) ;; 11074 *) break;; 11075 esac 11076 done 11077 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11078 11079 11080 # We don't want -fno-exception wen compiling C++ code, so set the 11081 # no_builtin_flag separately 11082 if test "$GXX" = yes; then 11083 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11084 else 11085 lt_prog_compiler_no_builtin_flag_CXX= 11086 fi 11087 11088 if test "$GXX" = yes; then 11089 # Set up default GNU C++ configuration 11090 11091 11092 # Check whether --with-gnu-ld was given. 11093 if test "${with_gnu_ld+set}" = set; then 11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11095 else 11096 with_gnu_ld=no 11097 fi 11098 11099 ac_prog=ld 11100 if test "$GCC" = yes; then 11101 # Check if gcc -print-prog-name=ld gives a path. 11102 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11103 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11104 case $host in 11105 *-*-mingw*) 11106 # gcc leaves a trailing carriage return which upsets mingw 11107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11108 *) 11109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11110 esac 11111 case $ac_prog in 11112 # Accept absolute paths. 11113 [\\/]* | ?:[\\/]*) 11114 re_direlt='/[^/][^/]*/\.\./' 11115 # Canonicalize the pathname of ld 11116 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11118 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11119 done 11120 test -z "$LD" && LD="$ac_prog" 11121 ;; 11122 "") 11123 # If it fails, then pretend we aren't using GCC. 11124 ac_prog=ld 11125 ;; 11126 *) 11127 # If it is relative, then search for the first ld in PATH. 11128 with_gnu_ld=unknown 11129 ;; 11130 esac 11131 elif test "$with_gnu_ld" = yes; then 11132 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11134 else 11135 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11137 fi 11138 if test "${lt_cv_path_LD+set}" = set; then 11139 echo $ECHO_N "(cached) $ECHO_C" >&6 11140 else 11141 if test -z "$LD"; then 11142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11143 for ac_dir in $PATH; do 11144 IFS="$lt_save_ifs" 11145 test -z "$ac_dir" && ac_dir=. 11146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11147 lt_cv_path_LD="$ac_dir/$ac_prog" 11148 # Check to see if the program is GNU ld. I'd rather use --version, 11149 # but apparently some variants of GNU ld only accept -v. 11150 # Break only if it was the GNU/non-GNU ld that we prefer. 11151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11152 *GNU* | *'with BFD'*) 11153 test "$with_gnu_ld" != no && break 11154 ;; 11155 *) 11156 test "$with_gnu_ld" != yes && break 11157 ;; 11158 esac 11159 fi 11160 done 11161 IFS="$lt_save_ifs" 11162 else 11163 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11164 fi 11165 fi 11166 11167 LD="$lt_cv_path_LD" 11168 if test -n "$LD"; then 11169 { echo "$as_me:$LINENO: result: $LD" >&5 11170 echo "${ECHO_T}$LD" >&6; } 11171 else 11172 { echo "$as_me:$LINENO: result: no" >&5 11173 echo "${ECHO_T}no" >&6; } 11174 fi 11175 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11176 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11177 { (exit 1); exit 1; }; } 11178 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11179 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11180 if test "${lt_cv_prog_gnu_ld+set}" = set; then 11181 echo $ECHO_N "(cached) $ECHO_C" >&6 11182 else 11183 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11184 case `$LD -v 2>&1 </dev/null` in 11185 *GNU* | *'with BFD'*) 11186 lt_cv_prog_gnu_ld=yes 11187 ;; 11188 *) 11189 lt_cv_prog_gnu_ld=no 11190 ;; 11191 esac 11192 fi 11193 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11194 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11195 with_gnu_ld=$lt_cv_prog_gnu_ld 11196 11197 11198 11199 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11200 # archiving commands below assume that GNU ld is being used. 11201 if test "$with_gnu_ld" = yes; then 11202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11203 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11204 11205 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11207 11208 # If archive_cmds runs LD, not CC, wlarc should be empty 11209 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11210 # investigate it a little bit more. (MM) 11211 wlarc='${wl}' 11212 11213 # ancient GNU ld didn't support --whole-archive et. al. 11214 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11215 grep 'no-whole-archive' > /dev/null; then 11216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11217 else 11218 whole_archive_flag_spec_CXX= 11219 fi 11220 else 11221 with_gnu_ld=no 11222 wlarc= 11223 11224 # A generic and very simple default shared library creation 11225 # command for GNU C++ for the case where it uses the native 11226 # linker, instead of GNU ld. If possible, this setting should 11227 # overridden to take advantage of the native linker features on 11228 # the platform it is being used on. 11229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11230 fi 11231 11232 # Commands to make compiler produce verbose output that lists 11233 # what "hidden" libraries, object files and flags are used when 11234 # linking a shared library. 11235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11236 11237 else 11238 GXX=no 11239 with_gnu_ld=no 11240 wlarc= 11241 fi 11242 11243 # PORTME: fill in a description of your system's C++ link characteristics 11244 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11245 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11246 ld_shlibs_CXX=yes 11247 case $host_os in 11248 aix3*) 11249 # FIXME: insert proper C++ library support 11250 ld_shlibs_CXX=no 11251 ;; 11252 aix4* | aix5*) 11253 if test "$host_cpu" = ia64; then 11254 # On IA64, the linker does run time linking by default, so we don't 11255 # have to do anything special. 11256 aix_use_runtimelinking=no 11257 exp_sym_flag='-Bexport' 11258 no_entry_flag="" 11259 else 11260 aix_use_runtimelinking=no 11261 11262 # Test if we are trying to use run time linking or normal 11263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11264 # need to do runtime linking. 11265 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11266 for ld_flag in $LDFLAGS; do 11267 case $ld_flag in 11268 *-brtl*) 11269 aix_use_runtimelinking=yes 11270 break 11271 ;; 11272 esac 11273 done 11274 ;; 11275 esac 11276 11277 exp_sym_flag='-bexport' 11278 no_entry_flag='-bnoentry' 11279 fi 11280 11281 # When large executables or shared objects are built, AIX ld can 11282 # have problems creating the table of contents. If linking a library 11283 # or program results in "error TOC overflow" add -mminimal-toc to 11284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11286 11287 archive_cmds_CXX='' 11288 hardcode_direct_CXX=yes 11289 hardcode_libdir_separator_CXX=':' 11290 link_all_deplibs_CXX=yes 11291 11292 if test "$GXX" = yes; then 11293 case $host_os in aix4.[012]|aix4.[012].*) 11294 # We only want to do this on AIX 4.2 and lower, the check 11295 # below for broken collect2 doesn't work under 4.3+ 11296 collect2name=`${CC} -print-prog-name=collect2` 11297 if test -f "$collect2name" && \ 11298 strings "$collect2name" | grep resolve_lib_name >/dev/null 11299 then 11300 # We have reworked collect2 11301 : 11302 else 11303 # We have old collect2 11304 hardcode_direct_CXX=unsupported 11305 # It fails to find uninstalled libraries when the uninstalled 11306 # path is not listed in the libpath. Setting hardcode_minus_L 11307 # to unsupported forces relinking 11308 hardcode_minus_L_CXX=yes 11309 hardcode_libdir_flag_spec_CXX='-L$libdir' 11310 hardcode_libdir_separator_CXX= 11311 fi 11312 ;; 11313 esac 11314 shared_flag='-shared' 11315 if test "$aix_use_runtimelinking" = yes; then 11316 shared_flag="$shared_flag "'${wl}-G' 11317 fi 11318 else 11319 # not using gcc 11320 if test "$host_cpu" = ia64; then 11321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11322 # chokes on -Wl,-G. The following line is correct: 11323 shared_flag='-G' 11324 else 11325 if test "$aix_use_runtimelinking" = yes; then 11326 shared_flag='${wl}-G' 11327 else 11328 shared_flag='${wl}-bM:SRE' 11329 fi 11330 fi 11331 fi 11332 11333 # It seems that -bexpall does not export symbols beginning with 11334 # underscore (_), so it is better to generate a list of symbols to export. 11335 always_export_symbols_CXX=yes 11336 if test "$aix_use_runtimelinking" = yes; then 11337 # Warning - without using the other runtime loading flags (-brtl), 11338 # -berok will link without error, but may produce a broken library. 11339 allow_undefined_flag_CXX='-berok' 11340 # Determine the default libpath from the value encoded in an empty executable. 11341 cat >conftest.$ac_ext <<_ACEOF 11342 /* confdefs.h. */ 11343 _ACEOF 11344 cat confdefs.h >>conftest.$ac_ext 11345 cat >>conftest.$ac_ext <<_ACEOF 11346 /* end confdefs.h. */ 11347 11348 int 11349 main () 11350 { 11351 11352 ; 11353 return 0; 11354 } 11355 _ACEOF 11356 rm -f conftest.$ac_objext conftest$ac_exeext 11357 if { (ac_try="$ac_link" 11358 case "(($ac_try" in 11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11360 *) ac_try_echo=$ac_try;; 11361 esac 11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11363 (eval "$ac_link") 2>conftest.er1 11364 ac_status=$? 11365 grep -v '^ *+' conftest.er1 >conftest.err 11366 rm -f conftest.er1 11367 cat conftest.err >&5 11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11369 (exit $ac_status); } && { 11370 test -z "$ac_cxx_werror_flag" || 11371 test ! -s conftest.err 11372 } && test -s conftest$ac_exeext && 11373 $as_test_x conftest$ac_exeext; then 11374 11375 lt_aix_libpath_sed=' 11376 /Import File Strings/,/^$/ { 11377 /^0/ { 11378 s/^0 *\(.*\)$/\1/ 11379 p 11380 } 11381 }' 11382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11383 # Check for a 64-bit object if we didn't find anything. 11384 if test -z "$aix_libpath"; then 11385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11386 fi 11387 else 11388 echo "$as_me: failed program was:" >&5 11389 sed 's/^/| /' conftest.$ac_ext >&5 11390 11391 11392 fi 11393 11394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11395 conftest$ac_exeext conftest.$ac_ext 11396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11397 11398 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11399 11400 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11401 else 11402 if test "$host_cpu" = ia64; then 11403 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11404 allow_undefined_flag_CXX="-z nodefs" 11405 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 11406 else 11407 # Determine the default libpath from the value encoded in an empty executable. 11408 cat >conftest.$ac_ext <<_ACEOF 11409 /* confdefs.h. */ 11410 _ACEOF 11411 cat confdefs.h >>conftest.$ac_ext 11412 cat >>conftest.$ac_ext <<_ACEOF 11413 /* end confdefs.h. */ 11414 11415 int 11416 main () 11417 { 11418 11419 ; 11420 return 0; 11421 } 11422 _ACEOF 11423 rm -f conftest.$ac_objext conftest$ac_exeext 11424 if { (ac_try="$ac_link" 11425 case "(($ac_try" in 11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11427 *) ac_try_echo=$ac_try;; 11428 esac 11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11430 (eval "$ac_link") 2>conftest.er1 11431 ac_status=$? 11432 grep -v '^ *+' conftest.er1 >conftest.err 11433 rm -f conftest.er1 11434 cat conftest.err >&5 11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11436 (exit $ac_status); } && { 11437 test -z "$ac_cxx_werror_flag" || 11438 test ! -s conftest.err 11439 } && test -s conftest$ac_exeext && 11440 $as_test_x conftest$ac_exeext; then 11441 11442 lt_aix_libpath_sed=' 11443 /Import File Strings/,/^$/ { 11444 /^0/ { 11445 s/^0 *\(.*\)$/\1/ 11446 p 11447 } 11448 }' 11449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11450 # Check for a 64-bit object if we didn't find anything. 11451 if test -z "$aix_libpath"; then 11452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11453 fi 11454 else 11455 echo "$as_me: failed program was:" >&5 11456 sed 's/^/| /' conftest.$ac_ext >&5 11457 11458 11459 fi 11460 11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11462 conftest$ac_exeext conftest.$ac_ext 11463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11464 11465 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11466 # Warning - without using the other run time loading flags, 11467 # -berok will link without error, but may produce a broken library. 11468 no_undefined_flag_CXX=' ${wl}-bernotok' 11469 allow_undefined_flag_CXX=' ${wl}-berok' 11470 # Exported symbols can be pulled into shared objects from archives 11471 whole_archive_flag_spec_CXX='$convenience' 11472 archive_cmds_need_lc_CXX=yes 11473 # This is similar to how AIX traditionally builds its shared libraries. 11474 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11475 fi 11476 fi 11477 ;; 11478 11479 beos*) 11480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11481 allow_undefined_flag_CXX=unsupported 11482 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11483 # support --undefined. This deserves some investigation. FIXME 11484 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11485 else 11486 ld_shlibs_CXX=no 11487 fi 11488 ;; 11489 11490 chorus*) 11491 case $cc_basename in 11492 *) 11493 # FIXME: insert proper C++ library support 11494 ld_shlibs_CXX=no 11495 ;; 11496 esac 11497 ;; 11498 11499 cygwin* | mingw* | pw32*) 11500 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11501 # as there is no search path for DLLs. 11502 hardcode_libdir_flag_spec_CXX='-L$libdir' 11503 allow_undefined_flag_CXX=unsupported 11504 always_export_symbols_CXX=no 11505 enable_shared_with_static_runtimes_CXX=yes 11506 11507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11508 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11509 # If the export-symbols file already is a .def file (1st line 11510 # is EXPORTS), use it as is; otherwise, prepend... 11511 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11512 cp $export_symbols $output_objdir/$soname.def; 11513 else 11514 echo EXPORTS > $output_objdir/$soname.def; 11515 cat $export_symbols >> $output_objdir/$soname.def; 11516 fi~ 11517 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11518 else 11519 ld_shlibs_CXX=no 11520 fi 11521 ;; 11522 darwin* | rhapsody*) 11523 case $host_os in 11524 rhapsody* | darwin1.[012]) 11525 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11526 ;; 11527 *) # Darwin 1.3 on 11528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11529 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11530 else 11531 case ${MACOSX_DEPLOYMENT_TARGET} in 11532 10.[012]) 11533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11534 ;; 11535 10.*) 11536 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11537 ;; 11538 esac 11539 fi 11540 ;; 11541 esac 11542 archive_cmds_need_lc_CXX=no 11543 hardcode_direct_CXX=no 11544 hardcode_automatic_CXX=yes 11545 hardcode_shlibpath_var_CXX=unsupported 11546 whole_archive_flag_spec_CXX='' 11547 link_all_deplibs_CXX=yes 11548 11549 if test "$GXX" = yes ; then 11550 lt_int_apple_cc_single_mod=no 11551 output_verbose_link_cmd='echo' 11552 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11553 lt_int_apple_cc_single_mod=yes 11554 fi 11555 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11556 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11557 else 11558 archive_cmds_CXX='$CC -r -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' 11559 fi 11560 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11562 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11563 archive_expsym_cmds_CXX='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}' 11564 else 11565 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}' 11566 fi 11567 module_expsym_cmds_CXX='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}' 11568 else 11569 case $cc_basename in 11570 xlc*) 11571 output_verbose_link_cmd='echo' 11572 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11573 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11575 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11576 module_expsym_cmds_CXX='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}' 11577 ;; 11578 *) 11579 ld_shlibs_CXX=no 11580 ;; 11581 esac 11582 fi 11583 ;; 11584 11585 dgux*) 11586 case $cc_basename in 11587 ec++*) 11588 # FIXME: insert proper C++ library support 11589 ld_shlibs_CXX=no 11590 ;; 11591 ghcx*) 11592 # Green Hills C++ Compiler 11593 # FIXME: insert proper C++ library support 11594 ld_shlibs_CXX=no 11595 ;; 11596 *) 11597 # FIXME: insert proper C++ library support 11598 ld_shlibs_CXX=no 11599 ;; 11600 esac 11601 ;; 11602 freebsd[12]*) 11603 # C++ shared libraries reported to be fairly broken before switch to ELF 11604 ld_shlibs_CXX=no 11605 ;; 11606 freebsd-elf*) 11607 archive_cmds_need_lc_CXX=no 11608 ;; 11609 freebsd* | dragonfly*) 11610 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11611 # conventions 11612 ld_shlibs_CXX=yes 11613 ;; 11614 gnu*) 11615 ;; 11616 hpux9*) 11617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11618 hardcode_libdir_separator_CXX=: 11619 export_dynamic_flag_spec_CXX='${wl}-E' 11620 hardcode_direct_CXX=yes 11621 hardcode_minus_L_CXX=yes # Not in the search PATH, 11622 # but as the default 11623 # location of the library. 11624 11625 case $cc_basename in 11626 CC*) 11627 # FIXME: insert proper C++ library support 11628 ld_shlibs_CXX=no 11629 ;; 11630 aCC*) 11631 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11632 # Commands to make compiler produce verbose output that lists 11633 # what "hidden" libraries, object files and flags are used when 11634 # linking a shared library. 11635 # 11636 # There doesn't appear to be a way to prevent this compiler from 11637 # explicitly linking system object files so we need to strip them 11638 # from the output so that they don't get included in the library 11639 # dependencies. 11640 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11641 ;; 11642 *) 11643 if test "$GXX" = yes; then 11644 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11645 else 11646 # FIXME: insert proper C++ library support 11647 ld_shlibs_CXX=no 11648 fi 11649 ;; 11650 esac 11651 ;; 11652 hpux10*|hpux11*) 11653 if test $with_gnu_ld = no; then 11654 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11655 hardcode_libdir_separator_CXX=: 11656 11657 case $host_cpu in 11658 hppa*64*|ia64*) ;; 11659 *) 11660 export_dynamic_flag_spec_CXX='${wl}-E' 11661 ;; 11662 esac 11663 fi 11664 case $host_cpu in 11665 hppa*64*|ia64*) 11666 hardcode_direct_CXX=no 11667 hardcode_shlibpath_var_CXX=no 11668 ;; 11669 *) 11670 hardcode_direct_CXX=yes 11671 hardcode_minus_L_CXX=yes # Not in the search PATH, 11672 # but as the default 11673 # location of the library. 11674 ;; 11675 esac 11676 11677 case $cc_basename in 11678 CC*) 11679 # FIXME: insert proper C++ library support 11680 ld_shlibs_CXX=no 11681 ;; 11682 aCC*) 11683 case $host_cpu in 11684 hppa*64*) 11685 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11686 ;; 11687 ia64*) 11688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11689 ;; 11690 *) 11691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11692 ;; 11693 esac 11694 # Commands to make compiler produce verbose output that lists 11695 # what "hidden" libraries, object files and flags are used when 11696 # linking a shared library. 11697 # 11698 # There doesn't appear to be a way to prevent this compiler from 11699 # explicitly linking system object files so we need to strip them 11700 # from the output so that they don't get included in the library 11701 # dependencies. 11702 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11703 ;; 11704 *) 11705 if test "$GXX" = yes; then 11706 if test $with_gnu_ld = no; then 11707 case $host_cpu in 11708 hppa*64*) 11709 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11710 ;; 11711 ia64*) 11712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11713 ;; 11714 *) 11715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11716 ;; 11717 esac 11718 fi 11719 else 11720 # FIXME: insert proper C++ library support 11721 ld_shlibs_CXX=no 11722 fi 11723 ;; 11724 esac 11725 ;; 11726 interix[3-9]*) 11727 hardcode_direct_CXX=no 11728 hardcode_shlibpath_var_CXX=no 11729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11730 export_dynamic_flag_spec_CXX='${wl}-E' 11731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11732 # Instead, shared libraries are loaded at an image base (0x10000000 by 11733 # default) and relocated if they conflict, which is a slow very memory 11734 # consuming and fragmenting process. To avoid this, we pick a random, 11735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11736 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11737 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11738 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11739 ;; 11740 irix5* | irix6*) 11741 case $cc_basename in 11742 CC*) 11743 # SGI C++ 11744 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11745 11746 # Archives containing C++ object files must be created using 11747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11748 # necessary to make sure instantiated templates are included 11749 # in the archive. 11750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11751 ;; 11752 *) 11753 if test "$GXX" = yes; then 11754 if test "$with_gnu_ld" = no; then 11755 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 11756 else 11757 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11758 fi 11759 fi 11760 link_all_deplibs_CXX=yes 11761 ;; 11762 esac 11763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11764 hardcode_libdir_separator_CXX=: 11765 ;; 11766 linux* | k*bsd*-gnu) 11767 case $cc_basename in 11768 KCC*) 11769 # Kuck and Associates, Inc. (KAI) C++ Compiler 11770 11771 # KCC will only create a shared library if the output file 11772 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11773 # to its proper name (with version) after linking. 11774 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11775 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 11776 # Commands to make compiler produce verbose output that lists 11777 # what "hidden" libraries, object files and flags are used when 11778 # linking a shared library. 11779 # 11780 # There doesn't appear to be a way to prevent this compiler from 11781 # explicitly linking system object files so we need to strip them 11782 # from the output so that they don't get included in the library 11783 # dependencies. 11784 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11785 11786 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11788 11789 # Archives containing C++ object files must be created using 11790 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11791 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11792 ;; 11793 icpc*) 11794 # Intel C++ 11795 with_gnu_ld=yes 11796 # version 8.0 and above of icpc choke on multiply defined symbols 11797 # if we add $predep_objects and $postdep_objects, however 7.1 and 11798 # earlier do not add the objects themselves. 11799 case `$CC -V 2>&1` in 11800 *"Version 7."*) 11801 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11802 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11803 ;; 11804 *) # Version 8.0 or newer 11805 tmp_idyn= 11806 case $host_cpu in 11807 ia64*) tmp_idyn=' -i_dynamic';; 11808 esac 11809 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11810 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11811 ;; 11812 esac 11813 archive_cmds_need_lc_CXX=no 11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11816 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11817 ;; 11818 pgCC*) 11819 # Portland Group C++ compiler 11820 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11821 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11822 11823 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11824 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11825 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11826 ;; 11827 cxx*) 11828 # Compaq C++ 11829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11830 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 11831 11832 runpath_var=LD_RUN_PATH 11833 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11834 hardcode_libdir_separator_CXX=: 11835 11836 # Commands to make compiler produce verbose output that lists 11837 # what "hidden" libraries, object files and flags are used when 11838 # linking a shared library. 11839 # 11840 # There doesn't appear to be a way to prevent this compiler from 11841 # explicitly linking system object files so we need to strip them 11842 # from the output so that they don't get included in the library 11843 # dependencies. 11844 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11845 ;; 11846 *) 11847 case `$CC -V 2>&1 | sed 5q` in 11848 *Sun\ C*) 11849 # Sun C++ 5.9 11850 no_undefined_flag_CXX=' -zdefs' 11851 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11852 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11853 hardcode_libdir_flag_spec_CXX='-R$libdir' 11854 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11855 11856 # Not sure whether something based on 11857 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11858 # would be better. 11859 output_verbose_link_cmd='echo' 11860 11861 # Archives containing C++ object files must be created using 11862 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11863 # necessary to make sure instantiated templates are included 11864 # in the archive. 11865 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11866 ;; 11867 esac 11868 ;; 11869 esac 11870 ;; 11871 lynxos*) 11872 # FIXME: insert proper C++ library support 11873 ld_shlibs_CXX=no 11874 ;; 11875 m88k*) 11876 # FIXME: insert proper C++ library support 11877 ld_shlibs_CXX=no 11878 ;; 11879 mvs*) 11880 case $cc_basename in 11881 cxx*) 11882 # FIXME: insert proper C++ library support 11883 ld_shlibs_CXX=no 11884 ;; 11885 *) 11886 # FIXME: insert proper C++ library support 11887 ld_shlibs_CXX=no 11888 ;; 11889 esac 11890 ;; 11891 netbsd*) 11892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11893 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11894 wlarc= 11895 hardcode_libdir_flag_spec_CXX='-R$libdir' 11896 hardcode_direct_CXX=yes 11897 hardcode_shlibpath_var_CXX=no 11898 fi 11899 # Workaround some broken pre-1.5 toolchains 11900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11901 ;; 11902 openbsd2*) 11903 # C++ shared libraries are fairly broken 11904 ld_shlibs_CXX=no 11905 ;; 11906 openbsd*) 11907 if test -f /usr/libexec/ld.so; then 11908 hardcode_direct_CXX=yes 11909 hardcode_shlibpath_var_CXX=no 11910 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11913 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11914 export_dynamic_flag_spec_CXX='${wl}-E' 11915 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11916 fi 11917 output_verbose_link_cmd='echo' 11918 else 11919 ld_shlibs_CXX=no 11920 fi 11921 ;; 11922 osf3*) 11923 case $cc_basename in 11924 KCC*) 11925 # Kuck and Associates, Inc. (KAI) C++ Compiler 11926 11927 # KCC will only create a shared library if the output file 11928 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11929 # to its proper name (with version) after linking. 11930 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11931 11932 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11933 hardcode_libdir_separator_CXX=: 11934 11935 # Archives containing C++ object files must be created using 11936 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11937 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11938 11939 ;; 11940 RCC*) 11941 # Rational C++ 2.4.1 11942 # FIXME: insert proper C++ library support 11943 ld_shlibs_CXX=no 11944 ;; 11945 cxx*) 11946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11947 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11948 11949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11950 hardcode_libdir_separator_CXX=: 11951 11952 # Commands to make compiler produce verbose output that lists 11953 # what "hidden" libraries, object files and flags are used when 11954 # linking a shared library. 11955 # 11956 # There doesn't appear to be a way to prevent this compiler from 11957 # explicitly linking system object files so we need to strip them 11958 # from the output so that they don't get included in the library 11959 # dependencies. 11960 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11961 ;; 11962 *) 11963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11965 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 11966 11967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11968 hardcode_libdir_separator_CXX=: 11969 11970 # Commands to make compiler produce verbose output that lists 11971 # what "hidden" libraries, object files and flags are used when 11972 # linking a shared library. 11973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11974 11975 else 11976 # FIXME: insert proper C++ library support 11977 ld_shlibs_CXX=no 11978 fi 11979 ;; 11980 esac 11981 ;; 11982 osf4* | osf5*) 11983 case $cc_basename in 11984 KCC*) 11985 # Kuck and Associates, Inc. (KAI) C++ Compiler 11986 11987 # KCC will only create a shared library if the output file 11988 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11989 # to its proper name (with version) after linking. 11990 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11991 11992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11993 hardcode_libdir_separator_CXX=: 11994 11995 # Archives containing C++ object files must be created using 11996 # the KAI C++ compiler. 11997 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11998 ;; 11999 RCC*) 12000 # Rational C++ 2.4.1 12001 # FIXME: insert proper C++ library support 12002 ld_shlibs_CXX=no 12003 ;; 12004 cxx*) 12005 allow_undefined_flag_CXX=' -expect_unresolved \*' 12006 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12008 echo "-hidden">> $lib.exp~ 12009 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12010 $rm $lib.exp' 12011 12012 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12013 hardcode_libdir_separator_CXX=: 12014 12015 # Commands to make compiler produce verbose output that lists 12016 # what "hidden" libraries, object files and flags are used when 12017 # linking a shared library. 12018 # 12019 # There doesn't appear to be a way to prevent this compiler from 12020 # explicitly linking system object files so we need to strip them 12021 # from the output so that they don't get included in the library 12022 # dependencies. 12023 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12024 ;; 12025 *) 12026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12027 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12028 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 12029 12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12031 hardcode_libdir_separator_CXX=: 12032 12033 # Commands to make compiler produce verbose output that lists 12034 # what "hidden" libraries, object files and flags are used when 12035 # linking a shared library. 12036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12037 12038 else 12039 # FIXME: insert proper C++ library support 12040 ld_shlibs_CXX=no 12041 fi 12042 ;; 12043 esac 12044 ;; 12045 psos*) 12046 # FIXME: insert proper C++ library support 12047 ld_shlibs_CXX=no 12048 ;; 12049 sunos4*) 12050 case $cc_basename in 12051 CC*) 12052 # Sun C++ 4.x 12053 # FIXME: insert proper C++ library support 12054 ld_shlibs_CXX=no 12055 ;; 12056 lcc*) 12057 # Lucid 12058 # FIXME: insert proper C++ library support 12059 ld_shlibs_CXX=no 12060 ;; 12061 *) 12062 # FIXME: insert proper C++ library support 12063 ld_shlibs_CXX=no 12064 ;; 12065 esac 12066 ;; 12067 solaris*) 12068 case $cc_basename in 12069 CC*) 12070 # Sun C++ 4.2, 5.x and Centerline C++ 12071 archive_cmds_need_lc_CXX=yes 12072 no_undefined_flag_CXX=' -zdefs' 12073 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12075 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12076 12077 hardcode_libdir_flag_spec_CXX='-R$libdir' 12078 hardcode_shlibpath_var_CXX=no 12079 case $host_os in 12080 solaris2.[0-5] | solaris2.[0-5].*) ;; 12081 *) 12082 # The compiler driver will combine and reorder linker options, 12083 # but understands `-z linker_flag'. 12084 # Supported since Solaris 2.6 (maybe 2.5.1?) 12085 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12086 ;; 12087 esac 12088 link_all_deplibs_CXX=yes 12089 12090 output_verbose_link_cmd='echo' 12091 12092 # Archives containing C++ object files must be created using 12093 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12094 # necessary to make sure instantiated templates are included 12095 # in the archive. 12096 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12097 ;; 12098 gcx*) 12099 # Green Hills C++ Compiler 12100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12101 12102 # The C++ compiler must be used to create the archive. 12103 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12104 ;; 12105 *) 12106 # GNU C++ compiler with Solaris linker 12107 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12108 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12109 if $CC --version | grep -v '^2\.7' > /dev/null; then 12110 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12111 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12112 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12113 12114 # Commands to make compiler produce verbose output that lists 12115 # what "hidden" libraries, object files and flags are used when 12116 # linking a shared library. 12117 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12118 else 12119 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12120 # platform. 12121 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12122 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12123 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12124 12125 # Commands to make compiler produce verbose output that lists 12126 # what "hidden" libraries, object files and flags are used when 12127 # linking a shared library. 12128 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12129 fi 12130 12131 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12132 case $host_os in 12133 solaris2.[0-5] | solaris2.[0-5].*) ;; 12134 *) 12135 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12136 ;; 12137 esac 12138 fi 12139 ;; 12140 esac 12141 ;; 12142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12143 no_undefined_flag_CXX='${wl}-z,text' 12144 archive_cmds_need_lc_CXX=no 12145 hardcode_shlibpath_var_CXX=no 12146 runpath_var='LD_RUN_PATH' 12147 12148 case $cc_basename in 12149 CC*) 12150 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12151 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12152 ;; 12153 *) 12154 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12155 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12156 ;; 12157 esac 12158 ;; 12159 sysv5* | sco3.2v5* | sco5v6*) 12160 # Note: We can NOT use -z defs as we might desire, because we do not 12161 # link with -lc, and that would cause any symbols used from libc to 12162 # always be unresolved, which means just about no library would 12163 # ever link correctly. If we're not using GNU ld we use -z text 12164 # though, which does catch some bad symbols but isn't as heavy-handed 12165 # as -z defs. 12166 # For security reasons, it is highly recommended that you always 12167 # use absolute paths for naming shared libraries, and exclude the 12168 # DT_RUNPATH tag from executables and libraries. But doing so 12169 # requires that you compile everything twice, which is a pain. 12170 # So that behaviour is only enabled if SCOABSPATH is set to a 12171 # non-empty value in the environment. Most likely only useful for 12172 # creating official distributions of packages. 12173 # This is a hack until libtool officially supports absolute path 12174 # names for shared libraries. 12175 no_undefined_flag_CXX='${wl}-z,text' 12176 allow_undefined_flag_CXX='${wl}-z,nodefs' 12177 archive_cmds_need_lc_CXX=no 12178 hardcode_shlibpath_var_CXX=no 12179 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12180 hardcode_libdir_separator_CXX=':' 12181 link_all_deplibs_CXX=yes 12182 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12183 runpath_var='LD_RUN_PATH' 12184 12185 case $cc_basename in 12186 CC*) 12187 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12188 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12189 ;; 12190 *) 12191 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12192 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12193 ;; 12194 esac 12195 ;; 12196 tandem*) 12197 case $cc_basename in 12198 NCC*) 12199 # NonStop-UX NCC 3.20 12200 # FIXME: insert proper C++ library support 12201 ld_shlibs_CXX=no 12202 ;; 12203 *) 12204 # FIXME: insert proper C++ library support 12205 ld_shlibs_CXX=no 12206 ;; 12207 esac 12208 ;; 12209 vxworks*) 12210 # FIXME: insert proper C++ library support 12211 ld_shlibs_CXX=no 12212 ;; 12213 *) 12214 # FIXME: insert proper C++ library support 12215 ld_shlibs_CXX=no 12216 ;; 12217 esac 12218 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12219 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12220 test "$ld_shlibs_CXX" = no && can_build_shared=no 12221 12222 GCC_CXX="$GXX" 12223 LD_CXX="$LD" 12224 12225 12226 cat > conftest.$ac_ext <<EOF 12227 class Foo 12228 { 12229 public: 12230 Foo (void) { a = 0; } 12231 private: 12232 int a; 12233 }; 12234 EOF 12235 12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12237 (eval $ac_compile) 2>&5 12238 ac_status=$? 12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12240 (exit $ac_status); }; then 12241 # Parse the compiler output and extract the necessary 12242 # objects, libraries and library flags. 12243 12244 # Sentinel used to keep track of whether or not we are before 12245 # the conftest object file. 12246 pre_test_object_deps_done=no 12247 12248 # The `*' in the case matches for architectures that use `case' in 12249 # $output_verbose_cmd can trigger glob expansion during the loop 12250 # eval without this substitution. 12251 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12252 12253 for p in `eval $output_verbose_link_cmd`; do 12254 case $p in 12255 12256 -L* | -R* | -l*) 12257 # Some compilers place space between "-{L,R}" and the path. 12258 # Remove the space. 12259 if test $p = "-L" \ 12260 || test $p = "-R"; then 12261 prev=$p 12262 continue 12263 else 12264 prev= 12265 fi 12266 12267 if test "$pre_test_object_deps_done" = no; then 12268 case $p in 12269 -L* | -R*) 12270 # Internal compiler library paths should come after those 12271 # provided the user. The postdeps already come after the 12272 # user supplied libs so there is no need to process them. 12273 if test -z "$compiler_lib_search_path_CXX"; then 12274 compiler_lib_search_path_CXX="${prev}${p}" 12275 else 12276 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12277 fi 12278 ;; 12279 # The "-l" case would never come before the object being 12280 # linked, so don't bother handling this case. 12281 esac 12282 else 12283 if test -z "$postdeps_CXX"; then 12284 postdeps_CXX="${prev}${p}" 12285 else 12286 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12287 fi 12288 fi 12289 ;; 12290 12291 *.$objext) 12292 # This assumes that the test object file only shows up 12293 # once in the compiler output. 12294 if test "$p" = "conftest.$objext"; then 12295 pre_test_object_deps_done=yes 12296 continue 12297 fi 12298 12299 if test "$pre_test_object_deps_done" = no; then 12300 if test -z "$predep_objects_CXX"; then 12301 predep_objects_CXX="$p" 12302 else 12303 predep_objects_CXX="$predep_objects_CXX $p" 12304 fi 12305 else 12306 if test -z "$postdep_objects_CXX"; then 12307 postdep_objects_CXX="$p" 12308 else 12309 postdep_objects_CXX="$postdep_objects_CXX $p" 12310 fi 12311 fi 12312 ;; 12313 12314 *) ;; # Ignore the rest. 12315 12316 esac 12317 done 12318 12319 # Clean up. 12320 rm -f a.out a.exe 12321 else 12322 echo "libtool.m4: error: problem compiling CXX test program" 12323 fi 12324 12325 $rm -f confest.$objext 12326 12327 # PORTME: override above test on systems where it is broken 12328 case $host_os in 12329 interix[3-9]*) 12330 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12331 # hack all around it, let's just trust "g++" to DTRT. 12332 predep_objects_CXX= 12333 postdep_objects_CXX= 12334 postdeps_CXX= 12335 ;; 12336 12337 linux*) 12338 case `$CC -V 2>&1 | sed 5q` in 12339 *Sun\ C*) 12340 # Sun C++ 5.9 12341 # 12342 # The more standards-conforming stlport4 library is 12343 # incompatible with the Cstd library. Avoid specifying 12344 # it if it's in CXXFLAGS. Ignore libCrun as 12345 # -library=stlport4 depends on it. 12346 case " $CXX $CXXFLAGS " in 12347 *" -library=stlport4 "*) 12348 solaris_use_stlport4=yes 12349 ;; 12350 esac 12351 if test "$solaris_use_stlport4" != yes; then 12352 postdeps_CXX='-library=Cstd -library=Crun' 12353 fi 12354 ;; 12355 esac 12356 ;; 12357 12358 solaris*) 12359 case $cc_basename in 12360 CC*) 12361 # The more standards-conforming stlport4 library is 12362 # incompatible with the Cstd library. Avoid specifying 12363 # it if it's in CXXFLAGS. Ignore libCrun as 12364 # -library=stlport4 depends on it. 12365 case " $CXX $CXXFLAGS " in 12366 *" -library=stlport4 "*) 12367 solaris_use_stlport4=yes 12368 ;; 12369 esac 12370 12371 # Adding this requires a known-good setup of shared libraries for 12372 # Sun compiler versions before 5.6, else PIC objects from an old 12373 # archive will be linked into the output, leading to subtle bugs. 12374 if test "$solaris_use_stlport4" != yes; then 12375 postdeps_CXX='-library=Cstd -library=Crun' 12376 fi 12377 ;; 12378 esac 12379 ;; 12380 esac 12381 12382 12383 case " $postdeps_CXX " in 12384 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 12385 esac 12386 12387 lt_prog_compiler_wl_CXX= 12388 lt_prog_compiler_pic_CXX= 12389 lt_prog_compiler_static_CXX= 12390 12391 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12393 12394 # C++ specific cases for pic, static, wl, etc. 12395 if test "$GXX" = yes; then 12396 lt_prog_compiler_wl_CXX='-Wl,' 12397 lt_prog_compiler_static_CXX='-static' 12398 12399 case $host_os in 12400 aix*) 12401 # All AIX code is PIC. 12402 if test "$host_cpu" = ia64; then 12403 # AIX 5 now supports IA64 processor 12404 lt_prog_compiler_static_CXX='-Bstatic' 12405 fi 12406 ;; 12407 amigaos*) 12408 # FIXME: we need at least 68020 code to build shared libraries, but 12409 # adding the `-m68020' flag to GCC prevents building anything better, 12410 # like `-m68040'. 12411 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12412 ;; 12413 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12414 # PIC is the default for these OSes. 12415 ;; 12416 mingw* | cygwin* | os2* | pw32*) 12417 # This hack is so that the source file can tell whether it is being 12418 # built for inclusion in a dll (and should export symbols for example). 12419 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12420 # (--disable-auto-import) libraries 12421 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12422 ;; 12423 darwin* | rhapsody*) 12424 # PIC is the default on this platform 12425 # Common symbols not allowed in MH_DYLIB files 12426 lt_prog_compiler_pic_CXX='-fno-common' 12427 ;; 12428 *djgpp*) 12429 # DJGPP does not support shared libraries at all 12430 lt_prog_compiler_pic_CXX= 12431 ;; 12432 interix[3-9]*) 12433 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12434 # Instead, we relocate shared libraries at runtime. 12435 ;; 12436 sysv4*MP*) 12437 if test -d /usr/nec; then 12438 lt_prog_compiler_pic_CXX=-Kconform_pic 12439 fi 12440 ;; 12441 hpux*) 12442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12443 # not for PA HP-UX. 12444 case $host_cpu in 12445 hppa*64*|ia64*) 12446 ;; 12447 *) 12448 lt_prog_compiler_pic_CXX='-fPIC' 12449 ;; 12450 esac 12451 ;; 12452 *) 12453 lt_prog_compiler_pic_CXX='-fPIC' 12454 ;; 12455 esac 12456 else 12457 case $host_os in 12458 aix4* | aix5*) 12459 # All AIX code is PIC. 12460 if test "$host_cpu" = ia64; then 12461 # AIX 5 now supports IA64 processor 12462 lt_prog_compiler_static_CXX='-Bstatic' 12463 else 12464 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12465 fi 12466 ;; 12467 chorus*) 12468 case $cc_basename in 12469 cxch68*) 12470 # Green Hills C++ Compiler 12471 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12472 ;; 12473 esac 12474 ;; 12475 darwin*) 12476 # PIC is the default on this platform 12477 # Common symbols not allowed in MH_DYLIB files 12478 case $cc_basename in 12479 xlc*) 12480 lt_prog_compiler_pic_CXX='-qnocommon' 12481 lt_prog_compiler_wl_CXX='-Wl,' 12482 ;; 12483 esac 12484 ;; 12485 dgux*) 12486 case $cc_basename in 12487 ec++*) 12488 lt_prog_compiler_pic_CXX='-KPIC' 12489 ;; 12490 ghcx*) 12491 # Green Hills C++ Compiler 12492 lt_prog_compiler_pic_CXX='-pic' 12493 ;; 12494 *) 12495 ;; 12496 esac 12497 ;; 12498 freebsd* | dragonfly*) 12499 # FreeBSD uses GNU C++ 12500 ;; 12501 hpux9* | hpux10* | hpux11*) 12502 case $cc_basename in 12503 CC*) 12504 lt_prog_compiler_wl_CXX='-Wl,' 12505 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12506 if test "$host_cpu" != ia64; then 12507 lt_prog_compiler_pic_CXX='+Z' 12508 fi 12509 ;; 12510 aCC*) 12511 lt_prog_compiler_wl_CXX='-Wl,' 12512 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12513 case $host_cpu in 12514 hppa*64*|ia64*) 12515 # +Z the default 12516 ;; 12517 *) 12518 lt_prog_compiler_pic_CXX='+Z' 12519 ;; 12520 esac 12521 ;; 12522 *) 12523 ;; 12524 esac 12525 ;; 12526 interix*) 12527 # This is c89, which is MS Visual C++ (no shared libs) 12528 # Anyone wants to do a port? 12529 ;; 12530 irix5* | irix6* | nonstopux*) 12531 case $cc_basename in 12532 CC*) 12533 lt_prog_compiler_wl_CXX='-Wl,' 12534 lt_prog_compiler_static_CXX='-non_shared' 12535 # CC pic flag -KPIC is the default. 12536 ;; 12537 *) 12538 ;; 12539 esac 12540 ;; 12541 linux* | k*bsd*-gnu) 12542 case $cc_basename in 12543 KCC*) 12544 # KAI C++ Compiler 12545 lt_prog_compiler_wl_CXX='--backend -Wl,' 12546 lt_prog_compiler_pic_CXX='-fPIC' 12547 ;; 12548 icpc* | ecpc*) 12549 # Intel C++ 12550 lt_prog_compiler_wl_CXX='-Wl,' 12551 lt_prog_compiler_pic_CXX='-KPIC' 12552 lt_prog_compiler_static_CXX='-static' 12553 ;; 12554 pgCC*) 12555 # Portland Group C++ compiler. 12556 lt_prog_compiler_wl_CXX='-Wl,' 12557 lt_prog_compiler_pic_CXX='-fpic' 12558 lt_prog_compiler_static_CXX='-Bstatic' 12559 ;; 12560 cxx*) 12561 # Compaq C++ 12562 # Make sure the PIC flag is empty. It appears that all Alpha 12563 # Linux and Compaq Tru64 Unix objects are PIC. 12564 lt_prog_compiler_pic_CXX= 12565 lt_prog_compiler_static_CXX='-non_shared' 12566 ;; 12567 *) 12568 case `$CC -V 2>&1 | sed 5q` in 12569 *Sun\ C*) 12570 # Sun C++ 5.9 12571 lt_prog_compiler_pic_CXX='-KPIC' 12572 lt_prog_compiler_static_CXX='-Bstatic' 12573 lt_prog_compiler_wl_CXX='-Qoption ld ' 12574 ;; 12575 esac 12576 ;; 12577 esac 12578 ;; 12579 lynxos*) 12580 ;; 12581 m88k*) 12582 ;; 12583 mvs*) 12584 case $cc_basename in 12585 cxx*) 12586 lt_prog_compiler_pic_CXX='-W c,exportall' 12587 ;; 12588 *) 12589 ;; 12590 esac 12591 ;; 12592 netbsd*) 12593 ;; 12594 osf3* | osf4* | osf5*) 12595 case $cc_basename in 12596 KCC*) 12597 lt_prog_compiler_wl_CXX='--backend -Wl,' 12598 ;; 12599 RCC*) 12600 # Rational C++ 2.4.1 12601 lt_prog_compiler_pic_CXX='-pic' 12602 ;; 12603 cxx*) 12604 # Digital/Compaq C++ 12605 lt_prog_compiler_wl_CXX='-Wl,' 12606 # Make sure the PIC flag is empty. It appears that all Alpha 12607 # Linux and Compaq Tru64 Unix objects are PIC. 12608 lt_prog_compiler_pic_CXX= 12609 lt_prog_compiler_static_CXX='-non_shared' 12610 ;; 12611 *) 12612 ;; 12613 esac 12614 ;; 12615 psos*) 12616 ;; 12617 solaris*) 12618 case $cc_basename in 12619 CC*) 12620 # Sun C++ 4.2, 5.x and Centerline C++ 12621 lt_prog_compiler_pic_CXX='-KPIC' 12622 lt_prog_compiler_static_CXX='-Bstatic' 12623 lt_prog_compiler_wl_CXX='-Qoption ld ' 12624 ;; 12625 gcx*) 12626 # Green Hills C++ Compiler 12627 lt_prog_compiler_pic_CXX='-PIC' 12628 ;; 12629 *) 12630 ;; 12631 esac 12632 ;; 12633 sunos4*) 12634 case $cc_basename in 12635 CC*) 12636 # Sun C++ 4.x 12637 lt_prog_compiler_pic_CXX='-pic' 12638 lt_prog_compiler_static_CXX='-Bstatic' 12639 ;; 12640 lcc*) 12641 # Lucid 12642 lt_prog_compiler_pic_CXX='-pic' 12643 ;; 12644 *) 12645 ;; 12646 esac 12647 ;; 12648 tandem*) 12649 case $cc_basename in 12650 NCC*) 12651 # NonStop-UX NCC 3.20 12652 lt_prog_compiler_pic_CXX='-KPIC' 12653 ;; 12654 *) 12655 ;; 12656 esac 12657 ;; 12658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12659 case $cc_basename in 12660 CC*) 12661 lt_prog_compiler_wl_CXX='-Wl,' 12662 lt_prog_compiler_pic_CXX='-KPIC' 12663 lt_prog_compiler_static_CXX='-Bstatic' 12664 ;; 12665 esac 12666 ;; 12667 vxworks*) 12668 ;; 12669 *) 12670 lt_prog_compiler_can_build_shared_CXX=no 12671 ;; 12672 esac 12673 fi 12674 12675 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12676 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12677 12678 # 12679 # Check to make sure the PIC flag actually works. 12680 # 12681 if test -n "$lt_prog_compiler_pic_CXX"; then 12682 12683 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12684 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12685 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12686 echo $ECHO_N "(cached) $ECHO_C" >&6 12687 else 12688 lt_prog_compiler_pic_works_CXX=no 12689 ac_outfile=conftest.$ac_objext 12690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12691 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12692 # Insert the option either (1) after the last *FLAGS variable, or 12693 # (2) before a word containing "conftest.", or (3) at the end. 12694 # Note that $ac_compile itself does not contain backslashes and begins 12695 # with a dollar sign (not a hyphen), so the echo should work correctly. 12696 # The option is referenced via a variable to avoid confusing sed. 12697 lt_compile=`echo "$ac_compile" | $SED \ 12698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12700 -e 's:$: $lt_compiler_flag:'` 12701 (eval echo "\"\$as_me:12701: $lt_compile\"" >&5) 12702 (eval "$lt_compile" 2>conftest.err) 12703 ac_status=$? 12704 cat conftest.err >&5 12705 echo "$as_me:12705: \$? = $ac_status" >&5 12706 if (exit $ac_status) && test -s "$ac_outfile"; then 12707 # The compiler can only warn and ignore the option if not recognized 12708 # So say no if there are warnings other than the usual output. 12709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12712 lt_prog_compiler_pic_works_CXX=yes 12713 fi 12714 fi 12715 $rm conftest* 12716 12717 fi 12718 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12719 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12720 12721 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12722 case $lt_prog_compiler_pic_CXX in 12723 "" | " "*) ;; 12724 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12725 esac 12726 else 12727 lt_prog_compiler_pic_CXX= 12728 lt_prog_compiler_can_build_shared_CXX=no 12729 fi 12730 12731 fi 12732 case $host_os in 12733 # For platforms which do not support PIC, -DPIC is meaningless: 12734 *djgpp*) 12735 lt_prog_compiler_pic_CXX= 12736 ;; 12737 *) 12738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12739 ;; 12740 esac 12741 12742 # 12743 # Check to make sure the static flag actually works. 12744 # 12745 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12746 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12747 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12748 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12749 echo $ECHO_N "(cached) $ECHO_C" >&6 12750 else 12751 lt_prog_compiler_static_works_CXX=no 12752 save_LDFLAGS="$LDFLAGS" 12753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12754 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12756 # The linker can only warn and ignore the option if not recognized 12757 # So say no if there are warnings 12758 if test -s conftest.err; then 12759 # Append any errors to the config.log. 12760 cat conftest.err 1>&5 12761 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12763 if diff conftest.exp conftest.er2 >/dev/null; then 12764 lt_prog_compiler_static_works_CXX=yes 12765 fi 12766 else 12767 lt_prog_compiler_static_works_CXX=yes 12768 fi 12769 fi 12770 $rm conftest* 12771 LDFLAGS="$save_LDFLAGS" 12772 12773 fi 12774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12775 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12776 12777 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12778 : 12779 else 12780 lt_prog_compiler_static_CXX= 12781 fi 12782 12783 12784 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12785 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12786 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12787 echo $ECHO_N "(cached) $ECHO_C" >&6 12788 else 12789 lt_cv_prog_compiler_c_o_CXX=no 12790 $rm -r conftest 2>/dev/null 12791 mkdir conftest 12792 cd conftest 12793 mkdir out 12794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12795 12796 lt_compiler_flag="-o out/conftest2.$ac_objext" 12797 # Insert the option either (1) after the last *FLAGS variable, or 12798 # (2) before a word containing "conftest.", or (3) at the end. 12799 # Note that $ac_compile itself does not contain backslashes and begins 12800 # with a dollar sign (not a hyphen), so the echo should work correctly. 12801 lt_compile=`echo "$ac_compile" | $SED \ 12802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12804 -e 's:$: $lt_compiler_flag:'` 12805 (eval echo "\"\$as_me:12805: $lt_compile\"" >&5) 12806 (eval "$lt_compile" 2>out/conftest.err) 12807 ac_status=$? 12808 cat out/conftest.err >&5 12809 echo "$as_me:12809: \$? = $ac_status" >&5 12810 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12811 then 12812 # The compiler can only warn and ignore the option if not recognized 12813 # So say no if there are warnings 12814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12817 lt_cv_prog_compiler_c_o_CXX=yes 12818 fi 12819 fi 12820 chmod u+w . 2>&5 12821 $rm conftest* 12822 # SGI C++ compiler will create directory out/ii_files/ for 12823 # template instantiation 12824 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12825 $rm out/* && rmdir out 12826 cd .. 12827 rmdir conftest 12828 $rm conftest* 12829 12830 fi 12831 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12832 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12833 12834 12835 hard_links="nottested" 12836 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12837 # do not overwrite the value of need_locks provided by the user 12838 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12839 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12840 hard_links=yes 12841 $rm conftest* 12842 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12843 touch conftest.a 12844 ln conftest.a conftest.b 2>&5 || hard_links=no 12845 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12846 { echo "$as_me:$LINENO: result: $hard_links" >&5 12847 echo "${ECHO_T}$hard_links" >&6; } 12848 if test "$hard_links" = no; then 12849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12850 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12851 need_locks=warn 12852 fi 12853 else 12854 need_locks=no 12855 fi 12856 12857 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12859 12860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12861 case $host_os in 12862 aix4* | aix5*) 12863 # If we're using GNU nm, then we don't want the "-C" option. 12864 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12866 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12867 else 12868 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12869 fi 12870 ;; 12871 pw32*) 12872 export_symbols_cmds_CXX="$ltdll_cmds" 12873 ;; 12874 cygwin* | mingw*) 12875 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12876 ;; 12877 *) 12878 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12879 ;; 12880 esac 12881 12882 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12883 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12884 test "$ld_shlibs_CXX" = no && can_build_shared=no 12885 12886 # 12887 # Do we need to explicitly link libc? 12888 # 12889 case "x$archive_cmds_need_lc_CXX" in 12890 x|xyes) 12891 # Assume -lc should be added 12892 archive_cmds_need_lc_CXX=yes 12893 12894 if test "$enable_shared" = yes && test "$GCC" = yes; then 12895 case $archive_cmds_CXX in 12896 *'~'*) 12897 # FIXME: we may have to deal with multi-command sequences. 12898 ;; 12899 '$CC '*) 12900 # Test whether the compiler implicitly links with -lc since on some 12901 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12902 # to ld, don't add -lc before -lgcc. 12903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12904 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12905 $rm conftest* 12906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12907 12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12909 (eval $ac_compile) 2>&5 12910 ac_status=$? 12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12912 (exit $ac_status); } 2>conftest.err; then 12913 soname=conftest 12914 lib=conftest 12915 libobjs=conftest.$ac_objext 12916 deplibs= 12917 wl=$lt_prog_compiler_wl_CXX 12918 pic_flag=$lt_prog_compiler_pic_CXX 12919 compiler_flags=-v 12920 linker_flags=-v 12921 verstring= 12922 output_objdir=. 12923 libname=conftest 12924 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12925 allow_undefined_flag_CXX= 12926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12927 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12928 ac_status=$? 12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12930 (exit $ac_status); } 12931 then 12932 archive_cmds_need_lc_CXX=no 12933 else 12934 archive_cmds_need_lc_CXX=yes 12935 fi 12936 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12937 else 12938 cat conftest.err 1>&5 12939 fi 12940 $rm conftest* 12941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12942 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12943 ;; 12944 esac 12945 fi 12946 ;; 12947 esac 12948 12949 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12950 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12951 library_names_spec= 12952 libname_spec='lib$name' 12953 soname_spec= 12954 shrext_cmds=".so" 12955 postinstall_cmds= 12956 postuninstall_cmds= 12957 finish_cmds= 12958 finish_eval= 12959 shlibpath_var= 12960 shlibpath_overrides_runpath=unknown 12961 version_type=none 12962 dynamic_linker="$host_os ld.so" 12963 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12964 12965 need_lib_prefix=unknown 12966 hardcode_into_libs=no 12967 12968 # when you set need_version to no, make sure it does not cause -set_version 12969 # flags to be left without arguments 12970 need_version=unknown 12971 12972 case $host_os in 12973 aix3*) 12974 version_type=linux 12975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12976 shlibpath_var=LIBPATH 12977 12978 # AIX 3 has no versioning support, so we append a major version to the name. 12979 soname_spec='${libname}${release}${shared_ext}$major' 12980 ;; 12981 12982 aix4* | aix5*) 12983 version_type=linux 12984 need_lib_prefix=no 12985 need_version=no 12986 hardcode_into_libs=yes 12987 if test "$host_cpu" = ia64; then 12988 # AIX 5 supports IA64 12989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12990 shlibpath_var=LD_LIBRARY_PATH 12991 else 12992 # With GCC up to 2.95.x, collect2 would create an import file 12993 # for dependence libraries. The import file would start with 12994 # the line `#! .'. This would cause the generated library to 12995 # depend on `.', always an invalid library. This was fixed in 12996 # development snapshots of GCC prior to 3.0. 12997 case $host_os in 12998 aix4 | aix4.[01] | aix4.[01].*) 12999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13000 echo ' yes ' 13001 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13002 : 13003 else 13004 can_build_shared=no 13005 fi 13006 ;; 13007 esac 13008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13009 # soname into executable. Probably we can add versioning support to 13010 # collect2, so additional links can be useful in future. 13011 if test "$aix_use_runtimelinking" = yes; then 13012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13013 # instead of lib<name>.a to let people know that these are not