1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.61. 4 # 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22 else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40 # The user is always right. 41 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74 for as_dir in $PATH 75 do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463 } 464 465 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468 else 469 as_dirname=false 470 fi 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 474 -n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479 *) 480 ECHO_N='-n';; 481 esac 482 483 if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486 else 487 as_expr=false 488 fi 489 490 rm -f conf$$ conf$$.exe conf$$.file 491 if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493 else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 497 echo >conf$$.file 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506 elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508 else 509 as_ln_s='cp -p' 510 fi 511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512 rmdir conf$$.dir 2>/dev/null 513 514 if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516 else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519 fi 520 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 543 544 # Sed expression to map a string onto a valid CPP name. 545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547 # Sed expression to map a string onto a valid variable name. 548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553 # Check that we are running under the correct shell. 554 SHELL=${CONFIG_SHELL-/bin/sh} 555 556 case X$ECHO in 557 X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561 esac 562 563 echo=${ECHO-echo} 564 if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567 elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573 else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576 fi 577 578 if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582 $* 583 EOF 584 exit 0 585 fi 586 587 # The HP-UX ksh and POSIX shell print the target directory to stdout 588 # if CDPATH is set. 589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591 if test -z "$ECHO"; then 592 if test "X${echo_test_string+set}" != Xset; then 593 # find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603 fi 604 605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609 else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689 fi 690 fi 691 692 # Copy echo and quote the copy suitably for passing to libtool from 693 # the Makefile, instead of quoting the original, which is used later. 694 ECHO=$echo 695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697 fi 698 699 700 701 702 tagnames=${tagnames+${tagnames},}CXX 703 704 tagnames=${tagnames+${tagnames},}F77 705 706 exec 7<&0 </dev/null 6>&1 707 708 # Name of the host. 709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710 # so uname gets run too. 711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713 # 714 # Initializations. 715 # 716 ac_default_prefix=/usr/local 717 ac_clean_files= 718 ac_config_libobj_dir=. 719 LIBOBJS= 720 cross_compiling=no 721 subdirs= 722 MFLAGS= 723 MAKEFLAGS= 724 SHELL=${CONFIG_SHELL-/bin/sh} 725 726 # Identity of this package. 727 PACKAGE_NAME= 728 PACKAGE_TARNAME= 729 PACKAGE_VERSION= 730 PACKAGE_STRING= 731 PACKAGE_BUGREPORT= 732 733 ac_unique_file="tests/rpath-1a" 734 # Factoring default headers for most tests. 735 ac_includes_default="\ 736 #include <stdio.h> 737 #ifdef HAVE_SYS_TYPES_H 738 # include <sys/types.h> 739 #endif 740 #ifdef HAVE_SYS_STAT_H 741 # include <sys/stat.h> 742 #endif 743 #ifdef STDC_HEADERS 744 # include <stdlib.h> 745 # include <stddef.h> 746 #else 747 # ifdef HAVE_STDLIB_H 748 # include <stdlib.h> 749 # endif 750 #endif 751 #ifdef HAVE_STRING_H 752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753 # include <memory.h> 754 # endif 755 # include <string.h> 756 #endif 757 #ifdef HAVE_STRINGS_H 758 # include <strings.h> 759 #endif 760 #ifdef HAVE_INTTYPES_H 761 # include <inttypes.h> 762 #endif 763 #ifdef HAVE_STDINT_H 764 # include <stdint.h> 765 #endif 766 #ifdef HAVE_UNISTD_H 767 # include <unistd.h> 768 #endif" 769 770 ac_subst_vars='SHELL 771 PATH_SEPARATOR 772 PACKAGE_NAME 773 PACKAGE_TARNAME 774 PACKAGE_VERSION 775 PACKAGE_STRING 776 PACKAGE_BUGREPORT 777 exec_prefix 778 prefix 779 program_transform_name 780 bindir 781 sbindir 782 libexecdir 783 datarootdir 784 datadir 785 sysconfdir 786 sharedstatedir 787 localstatedir 788 includedir 789 oldincludedir 790 docdir 791 infodir 792 htmldir 793 dvidir 794 pdfdir 795 psdir 796 libdir 797 localedir 798 mandir 799 DEFS 800 ECHO_C 801 ECHO_N 802 ECHO_T 803 LIBS 804 build_alias 805 host_alias 806 target_alias 807 INSTALL_PROGRAM 808 INSTALL_SCRIPT 809 INSTALL_DATA 810 am__isrc 811 CYGPATH_W 812 PACKAGE 813 VERSION 814 ACLOCAL 815 AUTOCONF 816 AUTOMAKE 817 AUTOHEADER 818 MAKEINFO 819 install_sh 820 STRIP 821 INSTALL_STRIP_PROGRAM 822 mkdir_p 823 AWK 824 SET_MAKE 825 am__leading_dot 826 AMTAR 827 am__tar 828 am__untar 829 CC 830 CFLAGS 831 LDFLAGS 832 CPPFLAGS 833 ac_ct_CC 834 EXEEXT 835 OBJEXT 836 DEPDIR 837 am__include 838 am__quote 839 AMDEP_TRUE 840 AMDEP_FALSE 841 AMDEPBACKSLASH 842 CCDEPMODE 843 am__fastdepCC_TRUE 844 am__fastdepCC_FALSE 845 build 846 build_cpu 847 build_vendor 848 build_os 849 host 850 host_cpu 851 host_vendor 852 host_os 853 GREP 854 EGREP 855 LN_S 856 ECHO 857 AR 858 RANLIB 859 DLLTOOL 860 AS 861 OBJDUMP 862 CPP 863 CXX 864 CXXFLAGS 865 ac_ct_CXX 866 CXXDEPMODE 867 am__fastdepCXX_TRUE 868 am__fastdepCXX_FALSE 869 CXXCPP 870 F77 871 FFLAGS 872 ac_ct_F77 873 LIBTOOL 874 GCC 875 LD 876 with_gnu_ld 877 aclocaldir 878 LIBDIRSTEM 879 LIBOBJS 880 LTLIBOBJS' 881 ac_subst_files='' 882 ac_precious_vars='build_alias 883 host_alias 884 target_alias 885 CC 886 CFLAGS 887 LDFLAGS 888 LIBS 889 CPPFLAGS 890 CPP 891 CXX 892 CXXFLAGS 893 CCC 894 CXXCPP 895 F77 896 FFLAGS' 897 898 899 # Initialize some variables set by options. 900 ac_init_help= 901 ac_init_version=false 902 # The variables have the same names as the options, with 903 # dashes changed to underlines. 904 cache_file=/dev/null 905 exec_prefix=NONE 906 no_create= 907 no_recursion= 908 prefix=NONE 909 program_prefix=NONE 910 program_suffix=NONE 911 program_transform_name=s,x,x, 912 silent= 913 site= 914 srcdir= 915 verbose= 916 x_includes=NONE 917 x_libraries=NONE 918 919 # Installation directory options. 920 # These are left unexpanded so users can "make install exec_prefix=/foo" 921 # and all the variables that are supposed to be based on exec_prefix 922 # by default will actually change. 923 # Use braces instead of parens because sh, perl, etc. also accept them. 924 # (The list follows the same order as the GNU Coding Standards.) 925 bindir='${exec_prefix}/bin' 926 sbindir='${exec_prefix}/sbin' 927 libexecdir='${exec_prefix}/libexec' 928 datarootdir='${prefix}/share' 929 datadir='${datarootdir}' 930 sysconfdir='${prefix}/etc' 931 sharedstatedir='${prefix}/com' 932 localstatedir='${prefix}/var' 933 includedir='${prefix}/include' 934 oldincludedir='/usr/include' 935 docdir='${datarootdir}/doc/${PACKAGE}' 936 infodir='${datarootdir}/info' 937 htmldir='${docdir}' 938 dvidir='${docdir}' 939 pdfdir='${docdir}' 940 psdir='${docdir}' 941 libdir='${exec_prefix}/lib' 942 localedir='${datarootdir}/locale' 943 mandir='${datarootdir}/man' 944 945 ac_prev= 946 ac_dashdash= 947 for ac_option 948 do 949 # If the previous option needs an argument, assign it. 950 if test -n "$ac_prev"; then 951 eval $ac_prev=\$ac_option 952 ac_prev= 953 continue 954 fi 955 956 case $ac_option in 957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 958 *) ac_optarg=yes ;; 959 esac 960 961 # Accept the important Cygnus configure options, so we can diagnose typos. 962 963 case $ac_dashdash$ac_option in 964 --) 965 ac_dashdash=yes ;; 966 967 -bindir | --bindir | --bindi | --bind | --bin | --bi) 968 ac_prev=bindir ;; 969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 970 bindir=$ac_optarg ;; 971 972 -build | --build | --buil | --bui | --bu) 973 ac_prev=build_alias ;; 974 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 975 build_alias=$ac_optarg ;; 976 977 -cache-file | --cache-file | --cache-fil | --cache-fi \ 978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 979 ac_prev=cache_file ;; 980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 982 cache_file=$ac_optarg ;; 983 984 --config-cache | -C) 985 cache_file=config.cache ;; 986 987 -datadir | --datadir | --datadi | --datad) 988 ac_prev=datadir ;; 989 -datadir=* | --datadir=* | --datadi=* | --datad=*) 990 datadir=$ac_optarg ;; 991 992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 993 | --dataroo | --dataro | --datar) 994 ac_prev=datarootdir ;; 995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 997 datarootdir=$ac_optarg ;; 998 999 -disable-* | --disable-*) 1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1001 # Reject names that are not valid shell variable names. 1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1004 { (exit 1); exit 1; }; } 1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1006 eval enable_$ac_feature=no ;; 1007 1008 -docdir | --docdir | --docdi | --doc | --do) 1009 ac_prev=docdir ;; 1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1011 docdir=$ac_optarg ;; 1012 1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1014 ac_prev=dvidir ;; 1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1016 dvidir=$ac_optarg ;; 1017 1018 -enable-* | --enable-*) 1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1020 # Reject names that are not valid shell variable names. 1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1023 { (exit 1); exit 1; }; } 1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1025 eval enable_$ac_feature=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 { echo "$as_me: error: invalid package name: $ac_package" >&2 1220 { (exit 1); exit 1; }; } 1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1222 eval with_$ac_package=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 { echo "$as_me: error: invalid package name: $ac_package" >&2 1229 { (exit 1); exit 1; }; } 1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1231 eval with_$ac_package=no ;; 1232 1233 --x) 1234 # Obsolete; use --with-x. 1235 with_x=yes ;; 1236 1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1238 | --x-incl | --x-inc | --x-in | --x-i) 1239 ac_prev=x_includes ;; 1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1242 x_includes=$ac_optarg ;; 1243 1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1246 ac_prev=x_libraries ;; 1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1249 x_libraries=$ac_optarg ;; 1250 1251 -*) { echo "$as_me: error: unrecognized option: $ac_option 1252 Try \`$0 --help' for more information." >&2 1253 { (exit 1); exit 1; }; } 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1261 { (exit 1); exit 1; }; } 1262 eval $ac_envvar=\$ac_optarg 1263 export $ac_envvar ;; 1264 1265 *) 1266 # FIXME: should be removed in autoconf 3.0. 1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1271 ;; 1272 1273 esac 1274 done 1275 1276 if test -n "$ac_prev"; then 1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1278 { echo "$as_me: error: missing argument to $ac_option" >&2 1279 { (exit 1); exit 1; }; } 1280 fi 1281 1282 # Be sure to have absolute directory names. 1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1284 datadir sysconfdir sharedstatedir localstatedir includedir \ 1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1286 libdir localedir mandir 1287 do 1288 eval ac_val=\$$ac_var 1289 case $ac_val in 1290 [\\/$]* | ?:[\\/]* ) continue;; 1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1292 esac 1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1294 { (exit 1); exit 1; }; } 1295 done 1296 1297 # There might be people who depend on the old broken behavior: `$host' 1298 # used to hold the argument of --host etc. 1299 # FIXME: To remove some day. 1300 build=$build_alias 1301 host=$host_alias 1302 target=$target_alias 1303 1304 # FIXME: To remove some day. 1305 if test "x$host_alias" != x; then 1306 if test "x$build_alias" = x; then 1307 cross_compiling=maybe 1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1309 If a cross compiler is detected then cross compile mode will be used." >&2 1310 elif test "x$build_alias" != "x$host_alias"; then 1311 cross_compiling=yes 1312 fi 1313 fi 1314 1315 ac_tool_prefix= 1316 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1317 1318 test "$silent" = yes && exec 6>/dev/null 1319 1320 1321 ac_pwd=`pwd` && test -n "$ac_pwd" && 1322 ac_ls_di=`ls -di .` && 1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1324 { echo "$as_me: error: Working directory cannot be determined" >&2 1325 { (exit 1); exit 1; }; } 1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1327 { echo "$as_me: error: pwd does not report name of working directory" >&2 1328 { (exit 1); exit 1; }; } 1329 1330 1331 # Find the source files, if location was not specified. 1332 if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$0" || 1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$0" : 'X\(//\)[^/]' \| \ 1338 X"$0" : 'X\(//\)$' \| \ 1339 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1340 echo X"$0" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362 else 1363 ac_srcdir_defaulted=no 1364 fi 1365 if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1368 { (exit 1); exit 1; }; } 1369 fi 1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1371 ac_abs_confdir=`( 1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1373 { (exit 1); exit 1; }; } 1374 pwd)` 1375 # When building in place, set srcdir=. 1376 if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378 fi 1379 # Remove unnecessary trailing slashes from srcdir. 1380 # Double slashes in file names in object file debugging info 1381 # mess up M-x gdb in Emacs. 1382 case $srcdir in 1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384 esac 1385 for ac_var in $ac_precious_vars; do 1386 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_env_${ac_var}_value=\$${ac_var} 1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1390 done 1391 1392 # 1393 # Report the --help message. 1394 # 1395 if test "$ac_init_help" = "long"; then 1396 # Omit some internal or obsolete options to make the list less imposing. 1397 # This message is too long to be a string in the A/UX 3.1 sh. 1398 cat <<_ACEOF 1399 \`configure' configures this package to adapt to many kinds of systems. 1400 1401 Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404 VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406 Defaults for the options are specified in brackets. 1407 1408 Configuration: 1409 -h, --help display this help and exit 1410 --help=short display options specific to this package 1411 --help=recursive display the short help of all the included packages 1412 -V, --version display version information and exit 1413 -q, --quiet, --silent do not print \`checking...' messages 1414 --cache-file=FILE cache test results in FILE [disabled] 1415 -C, --config-cache alias for \`--cache-file=config.cache' 1416 -n, --no-create do not create output files 1417 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1418 1419 Installation directories: 1420 --prefix=PREFIX install architecture-independent files in PREFIX 1421 [$ac_default_prefix] 1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1423 [PREFIX] 1424 1425 By default, \`make install' will install all the files in 1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428 for instance \`--prefix=\$HOME'. 1429 1430 For better control, use the options below. 1431 1432 Fine tuning of the installation directories: 1433 --bindir=DIR user executables [EPREFIX/bin] 1434 --sbindir=DIR system admin executables [EPREFIX/sbin] 1435 --libexecdir=DIR program executables [EPREFIX/libexec] 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1439 --libdir=DIR object code libraries [EPREFIX/lib] 1440 --includedir=DIR C header files [PREFIX/include] 1441 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1444 --infodir=DIR info documentation [DATAROOTDIR/info] 1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1446 --mandir=DIR man documentation [DATAROOTDIR/man] 1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1448 --htmldir=DIR html documentation [DOCDIR] 1449 --dvidir=DIR dvi documentation [DOCDIR] 1450 --pdfdir=DIR pdf documentation [DOCDIR] 1451 --psdir=DIR ps documentation [DOCDIR] 1452 _ACEOF 1453 1454 cat <<\_ACEOF 1455 1456 Program names: 1457 --program-prefix=PREFIX prepend PREFIX to installed program names 1458 --program-suffix=SUFFIX append SUFFIX to installed program names 1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1460 1461 System types: 1462 --build=BUILD configure for building on BUILD [guessed] 1463 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1464 _ACEOF 1465 fi 1466 1467 if test -n "$ac_init_help"; then 1468 1469 cat <<\_ACEOF 1470 1471 Optional Features: 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --disable-dependency-tracking speeds up one-time build 1475 --enable-dependency-tracking do not reject slow dependency extractors 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 1482 Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1486 --with-pic try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-tags[=TAGS] include additional configurations [automatic] 1489 1490 Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CXXCPP C++ preprocessor 1502 F77 Fortran 77 compiler command 1503 FFLAGS Fortran 77 compiler flags 1504 1505 Use these variables to override the choices made by `configure' or to help 1506 it to find libraries and programs with nonstandard names/locations. 1507 1508 _ACEOF 1509 ac_status=$? 1510 fi 1511 1512 if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || continue 1516 ac_builddir=. 1517 1518 case "$ac_dir" in 1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) 1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1522 # A ".." for each directory in $ac_dir_suffix. 1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1524 case $ac_top_builddir_sub in 1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1527 esac ;; 1528 esac 1529 ac_abs_top_builddir=$ac_pwd 1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1531 # for backward compatibility: 1532 ac_top_builddir=$ac_top_build_prefix 1533 1534 case $srcdir in 1535 .) # We are building in place. 1536 ac_srcdir=. 1537 ac_top_srcdir=$ac_top_builddir_sub 1538 ac_abs_top_srcdir=$ac_pwd ;; 1539 [\\/]* | ?:[\\/]* ) # Absolute name. 1540 ac_srcdir=$srcdir$ac_dir_suffix; 1541 ac_top_srcdir=$srcdir 1542 ac_abs_top_srcdir=$srcdir ;; 1543 *) # Relative name. 1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1545 ac_top_srcdir=$ac_top_build_prefix$srcdir 1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1547 esac 1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1549 1550 cd "$ac_dir" || { ac_status=$?; continue; } 1551 # Check for guested configure. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563 fi 1564 1565 test -n "$ac_init_help" && exit $ac_status 1566 if $ac_init_version; then 1567 cat <<\_ACEOF 1568 configure 1569 generated by GNU Autoconf 2.61 1570 1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1573 This configure script is free software; the Free Software Foundation 1574 gives unlimited permission to copy, distribute and modify it. 1575 _ACEOF 1576 exit 1577 fi 1578 cat >config.log <<_ACEOF 1579 This file contains any messages produced by compilers while 1580 running configure, to aid debugging if configure makes a mistake. 1581 1582 It was created by $as_me, which was 1583 generated by GNU Autoconf 2.61. Invocation command line was 1584 1585 $ $0 $@ 1586 1587 _ACEOF 1588 exec 5>>config.log 1589 { 1590 cat <<_ASUNAME 1591 ## --------- ## 1592 ## Platform. ## 1593 ## --------- ## 1594 1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1596 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1597 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1598 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1599 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1600 1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1603 1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1611 1612 _ASUNAME 1613 1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1615 for as_dir in $PATH 1616 do 1617 IFS=$as_save_IFS 1618 test -z "$as_dir" && as_dir=. 1619 echo "PATH: $as_dir" 1620 done 1621 IFS=$as_save_IFS 1622 1623 } >&5 1624 1625 cat >&5 <<_ACEOF 1626 1627 1628 ## ----------- ## 1629 ## Core tests. ## 1630 ## ----------- ## 1631 1632 _ACEOF 1633 1634 1635 # Keep a trace of the command line. 1636 # Strip out --no-create and --no-recursion so they do not pile up. 1637 # Strip out --silent because we don't want to record it for future runs. 1638 # Also quote any args containing shell meta-characters. 1639 # Make two passes to allow for proper duplicate-argument suppression. 1640 ac_configure_args= 1641 ac_configure_args0= 1642 ac_configure_args1= 1643 ac_must_keep_next=false 1644 for ac_pass in 1 2 1645 do 1646 for ac_arg 1647 do 1648 case $ac_arg in 1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1651 | -silent | --silent | --silen | --sile | --sil) 1652 continue ;; 1653 *\'*) 1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1655 esac 1656 case $ac_pass in 1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1658 2) 1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1660 if test $ac_must_keep_next = true; then 1661 ac_must_keep_next=false # Got value, back to normal. 1662 else 1663 case $ac_arg in 1664 *=* | --config-cache | -C | -disable-* | --disable-* \ 1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1667 | -with-* | --with-* | -without-* | --without-* | --x) 1668 case "$ac_configure_args0 " in 1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1670 esac 1671 ;; 1672 -* ) ac_must_keep_next=true ;; 1673 esac 1674 fi 1675 ac_configure_args="$ac_configure_args '$ac_arg'" 1676 ;; 1677 esac 1678 done 1679 done 1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1682 1683 # When interrupted or exit'd, cleanup temporary files, and complete 1684 # config.log. We remove comments because anyway the quotes in there 1685 # would cause problems or look ugly. 1686 # WARNING: Use '\'' to represent an apostrophe within the trap. 1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1688 trap 'exit_status=$? 1689 # Save into config.log some information that might help in debugging. 1690 { 1691 echo 1692 1693 cat <<\_ASBOX 1694 ## ---------------- ## 1695 ## Cache variables. ## 1696 ## ---------------- ## 1697 _ASBOX 1698 echo 1699 # The following way of writing the cache mishandles newlines in values, 1700 ( 1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1702 eval ac_val=\$$ac_var 1703 case $ac_val in #( 1704 *${as_nl}*) 1705 case $ac_var in #( 1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1708 esac 1709 case $ac_var in #( 1710 _ | IFS | as_nl) ;; #( 1711 *) $as_unset $ac_var ;; 1712 esac ;; 1713 esac 1714 done 1715 (set) 2>&1 | 1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1717 *${as_nl}ac_space=\ *) 1718 sed -n \ 1719 "s/'\''/'\''\\\\'\'''\''/g; 1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1721 ;; #( 1722 *) 1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1724 ;; 1725 esac | 1726 sort 1727 ) 1728 echo 1729 1730 cat <<\_ASBOX 1731 ## ----------------- ## 1732 ## Output variables. ## 1733 ## ----------------- ## 1734 _ASBOX 1735 echo 1736 for ac_var in $ac_subst_vars 1737 do 1738 eval ac_val=\$$ac_var 1739 case $ac_val in 1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1741 esac 1742 echo "$ac_var='\''$ac_val'\''" 1743 done | sort 1744 echo 1745 1746 if test -n "$ac_subst_files"; then 1747 cat <<\_ASBOX 1748 ## ------------------- ## 1749 ## File substitutions. ## 1750 ## ------------------- ## 1751 _ASBOX 1752 echo 1753 for ac_var in $ac_subst_files 1754 do 1755 eval ac_val=\$$ac_var 1756 case $ac_val in 1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1758 esac 1759 echo "$ac_var='\''$ac_val'\''" 1760 done | sort 1761 echo 1762 fi 1763 1764 if test -s confdefs.h; then 1765 cat <<\_ASBOX 1766 ## ----------- ## 1767 ## confdefs.h. ## 1768 ## ----------- ## 1769 _ASBOX 1770 echo 1771 cat confdefs.h 1772 echo 1773 fi 1774 test "$ac_signal" != 0 && 1775 echo "$as_me: caught signal $ac_signal" 1776 echo "$as_me: exit $exit_status" 1777 } >&5 1778 rm -f core *.core core.conftest.* && 1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1780 exit $exit_status 1781 ' 0 1782 for ac_signal in 1 2 13 15; do 1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1784 done 1785 ac_signal=0 1786 1787 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1788 rm -f -r conftest* confdefs.h 1789 1790 # Predefined preprocessor variables. 1791 1792 cat >>confdefs.h <<_ACEOF 1793 #define PACKAGE_NAME "$PACKAGE_NAME" 1794 _ACEOF 1795 1796 1797 cat >>confdefs.h <<_ACEOF 1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1799 _ACEOF 1800 1801 1802 cat >>confdefs.h <<_ACEOF 1803 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1804 _ACEOF 1805 1806 1807 cat >>confdefs.h <<_ACEOF 1808 #define PACKAGE_STRING "$PACKAGE_STRING" 1809 _ACEOF 1810 1811 1812 cat >>confdefs.h <<_ACEOF 1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1814 _ACEOF 1815 1816 1817 # Let the site file select an alternate cache file if it wants to. 1818 # Prefer explicitly selected file to automatically selected ones. 1819 if test -n "$CONFIG_SITE"; then 1820 set x "$CONFIG_SITE" 1821 elif test "x$prefix" != xNONE; then 1822 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1823 else 1824 set x "$ac_default_prefix/share/config.site" \ 1825 "$ac_default_prefix/etc/config.site" 1826 fi 1827 shift 1828 for ac_site_file 1829 do 1830 if test -r "$ac_site_file"; then 1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1832 echo "$as_me: loading site script $ac_site_file" >&6;} 1833 sed 's/^/| /' "$ac_site_file" >&5 1834 . "$ac_site_file" 1835 fi 1836 done 1837 1838 if test -r "$cache_file"; then 1839 # Some versions of bash will fail to source /dev/null (special 1840 # files actually), so we avoid doing that. 1841 if test -f "$cache_file"; then 1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1843 echo "$as_me: loading cache $cache_file" >&6;} 1844 case $cache_file in 1845 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1846 *) . "./$cache_file";; 1847 esac 1848 fi 1849 else 1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1851 echo "$as_me: creating cache $cache_file" >&6;} 1852 >$cache_file 1853 fi 1854 1855 # Check that the precious variables saved in the cache have kept the same 1856 # value. 1857 ac_cache_corrupted=false 1858 for ac_var in $ac_precious_vars; do 1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1860 eval ac_new_set=\$ac_env_${ac_var}_set 1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1862 eval ac_new_val=\$ac_env_${ac_var}_value 1863 case $ac_old_set,$ac_new_set in 1864 set,) 1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1867 ac_cache_corrupted=: ;; 1868 ,set) 1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1871 ac_cache_corrupted=: ;; 1872 ,);; 1873 *) 1874 if test "x$ac_old_val" != "x$ac_new_val"; then 1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1878 echo "$as_me: former value: $ac_old_val" >&2;} 1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1880 echo "$as_me: current value: $ac_new_val" >&2;} 1881 ac_cache_corrupted=: 1882 fi;; 1883 esac 1884 # Pass precious variables to config.status. 1885 if test "$ac_new_set" = set; then 1886 case $ac_new_val in 1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1888 *) ac_arg=$ac_var=$ac_new_val ;; 1889 esac 1890 case " $ac_configure_args " in 1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1893 esac 1894 fi 1895 done 1896 if $ac_cache_corrupted; then 1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1901 { (exit 1); exit 1; }; } 1902 fi 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 ac_ext=c 1921 ac_cpp='$CPP $CPPFLAGS' 1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1925 1926 1927 1928 ac_aux_dir= 1929 for ac_dir in ../build-aux "$srcdir"/../build-aux; do 1930 if test -f "$ac_dir/install-sh"; then 1931 ac_aux_dir=$ac_dir 1932 ac_install_sh="$ac_aux_dir/install-sh -c" 1933 break 1934 elif test -f "$ac_dir/install.sh"; then 1935 ac_aux_dir=$ac_dir 1936 ac_install_sh="$ac_aux_dir/install.sh -c" 1937 break 1938 elif test -f "$ac_dir/shtool"; then 1939 ac_aux_dir=$ac_dir 1940 ac_install_sh="$ac_aux_dir/shtool install -c" 1941 break 1942 fi 1943 done 1944 if test -z "$ac_aux_dir"; then 1945 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5 1946 echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;} 1947 { (exit 1); exit 1; }; } 1948 fi 1949 1950 # These three variables are undocumented and unsupported, 1951 # and are intended to be withdrawn in a future Autoconf release. 1952 # They can cause serious problems if a builder's source tree is in a directory 1953 # whose full name contains unusual characters. 1954 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1955 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1956 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1957 1958 1959 . $srcdir/../version.sh 1960 am__api_version='1.10' 1961 1962 # Find a good install program. We prefer a C program (faster), 1963 # so one script is as good as another. But avoid the broken or 1964 # incompatible versions: 1965 # SysV /etc/install, /usr/sbin/install 1966 # SunOS /usr/etc/install 1967 # IRIX /sbin/install 1968 # AIX /bin/install 1969 # AmigaOS /C/install, which installs bootblocks on floppy discs 1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1973 # OS/2's system install, which has a completely different semantic 1974 # ./install, which can be erroneously created by make from ./install.sh. 1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1977 if test -z "$INSTALL"; then 1978 if test "${ac_cv_path_install+set}" = set; then 1979 echo $ECHO_N "(cached) $ECHO_C" >&6 1980 else 1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1982 for as_dir in $PATH 1983 do 1984 IFS=$as_save_IFS 1985 test -z "$as_dir" && as_dir=. 1986 # Account for people who put trailing slashes in PATH elements. 1987 case $as_dir/ in 1988 ./ | .// | /cC/* | \ 1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1991 /usr/ucb/* ) ;; 1992 *) 1993 # OSF1 and SCO ODT 3.0 have their own names for install. 1994 # Don't use installbsd from OSF since it installs stuff as root 1995 # by default. 1996 for ac_prog in ginstall scoinst install; do 1997 for ac_exec_ext in '' $ac_executable_extensions; do 1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1999 if test $ac_prog = install && 2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2001 # AIX install. It has an incompatible calling convention. 2002 : 2003 elif test $ac_prog = install && 2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2005 # program-specific install script used by HP pwplus--don't use. 2006 : 2007 else 2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2009 break 3 2010 fi 2011 fi 2012 done 2013 done 2014 ;; 2015 esac 2016 done 2017 IFS=$as_save_IFS 2018 2019 2020 fi 2021 if test "${ac_cv_path_install+set}" = set; then 2022 INSTALL=$ac_cv_path_install 2023 else 2024 # As a last resort, use the slow shell script. Don't cache a 2025 # value for INSTALL within a source directory, because that will 2026 # break other packages using the cache if that directory is 2027 # removed, or if the value is a relative name. 2028 INSTALL=$ac_install_sh 2029 fi 2030 fi 2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5 2032 echo "${ECHO_T}$INSTALL" >&6; } 2033 2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2035 # It thinks the first close brace ends the variable substitution. 2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2037 2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2039 2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2041 2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2044 # Just in case 2045 sleep 1 2046 echo timestamp > conftest.file 2047 # Do `set' in a subshell so we don't clobber the current shell's 2048 # arguments. Must try -L first in case configure is actually a 2049 # symlink; some systems play weird games with the mod time of symlinks 2050 # (eg FreeBSD returns the mod time of the symlink's containing 2051 # directory). 2052 if ( 2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2054 if test "$*" = "X"; then 2055 # -L didn't work. 2056 set X `ls -t $srcdir/configure conftest.file` 2057 fi 2058 rm -f conftest.file 2059 if test "$*" != "X $srcdir/configure conftest.file" \ 2060 && test "$*" != "X conftest.file $srcdir/configure"; then 2061 2062 # If neither matched, then we have a broken ls. This can happen 2063 # if, for instance, CONFIG_SHELL is bash and it inherits a 2064 # broken ls alias from the environment. This has actually 2065 # happened. Such a system could not be considered "sane". 2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2067 alias in your environment" >&5 2068 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2069 alias in your environment" >&2;} 2070 { (exit 1); exit 1; }; } 2071 fi 2072 2073 test "$2" = conftest.file 2074 ) 2075 then 2076 # Ok. 2077 : 2078 else 2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2080 Check your system clock" >&5 2081 echo "$as_me: error: newly created file is older than distributed files! 2082 Check your system clock" >&2;} 2083 { (exit 1); exit 1; }; } 2084 fi 2085 { echo "$as_me:$LINENO: result: yes" >&5 2086 echo "${ECHO_T}yes" >&6; } 2087 test "$program_prefix" != NONE && 2088 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2089 # Use a double $ so make ignores it. 2090 test "$program_suffix" != NONE && 2091 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2092 # Double any \ or $. echo might interpret backslashes. 2093 # By default was `s,x,x', remove it if useless. 2094 cat <<\_ACEOF >conftest.sed 2095 s/[\\$]/&&/g;s/;s,x,x,$// 2096 _ACEOF 2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2098 rm -f conftest.sed 2099 2100 # expand $ac_aux_dir to an absolute path 2101 am_aux_dir=`cd $ac_aux_dir && pwd` 2102 2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2104 # Use eval to expand $SHELL 2105 if eval "$MISSING --run true"; then 2106 am_missing_run="$MISSING --run " 2107 else 2108 am_missing_run= 2109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2111 fi 2112 2113 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2114 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2115 if test -z "$MKDIR_P"; then 2116 if test "${ac_cv_path_mkdir+set}" = set; then 2117 echo $ECHO_N "(cached) $ECHO_C" >&6 2118 else 2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2121 do 2122 IFS=$as_save_IFS 2123 test -z "$as_dir" && as_dir=. 2124 for ac_prog in mkdir gmkdir; do 2125 for ac_exec_ext in '' $ac_executable_extensions; do 2126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2128 'mkdir (GNU coreutils) '* | \ 2129 'mkdir (coreutils) '* | \ 2130 'mkdir (fileutils) '4.1*) 2131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2132 break 3;; 2133 esac 2134 done 2135 done 2136 done 2137 IFS=$as_save_IFS 2138 2139 fi 2140 2141 if test "${ac_cv_path_mkdir+set}" = set; then 2142 MKDIR_P="$ac_cv_path_mkdir -p" 2143 else 2144 # As a last resort, use the slow shell script. Don't cache a 2145 # value for MKDIR_P within a source directory, because that will 2146 # break other packages using the cache if that directory is 2147 # removed, or if the value is a relative name. 2148 test -d ./--version && rmdir ./--version 2149 MKDIR_P="$ac_install_sh -d" 2150 fi 2151 fi 2152 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2153 echo "${ECHO_T}$MKDIR_P" >&6; } 2154 2155 mkdir_p="$MKDIR_P" 2156 case $mkdir_p in 2157 [\\/$]* | ?:[\\/]*) ;; 2158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2159 esac 2160 2161 for ac_prog in gawk mawk nawk awk 2162 do 2163 # Extract the first word of "$ac_prog", so it can be a program name with args. 2164 set dummy $ac_prog; ac_word=$2 2165 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2167 if test "${ac_cv_prog_AWK+set}" = set; then 2168 echo $ECHO_N "(cached) $ECHO_C" >&6 2169 else 2170 if test -n "$AWK"; then 2171 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2172 else 2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2174 for as_dir in $PATH 2175 do 2176 IFS=$as_save_IFS 2177 test -z "$as_dir" && as_dir=. 2178 for ac_exec_ext in '' $ac_executable_extensions; do 2179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2180 ac_cv_prog_AWK="$ac_prog" 2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2182 break 2 2183 fi 2184 done 2185 done 2186 IFS=$as_save_IFS 2187 2188 fi 2189 fi 2190 AWK=$ac_cv_prog_AWK 2191 if test -n "$AWK"; then 2192 { echo "$as_me:$LINENO: result: $AWK" >&5 2193 echo "${ECHO_T}$AWK" >&6; } 2194 else 2195 { echo "$as_me:$LINENO: result: no" >&5 2196 echo "${ECHO_T}no" >&6; } 2197 fi 2198 2199 2200 test -n "$AWK" && break 2201 done 2202 2203 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2204 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2205 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2207 echo $ECHO_N "(cached) $ECHO_C" >&6 2208 else 2209 cat >conftest.make <<\_ACEOF 2210 SHELL = /bin/sh 2211 all: 2212 @echo '@@@%%%=$(MAKE)=@@@%%%' 2213 _ACEOF 2214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2215 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2216 *@@@%%%=?*=@@@%%%*) 2217 eval ac_cv_prog_make_${ac_make}_set=yes;; 2218 *) 2219 eval ac_cv_prog_make_${ac_make}_set=no;; 2220 esac 2221 rm -f conftest.make 2222 fi 2223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2224 { echo "$as_me:$LINENO: result: yes" >&5 2225 echo "${ECHO_T}yes" >&6; } 2226 SET_MAKE= 2227 else 2228 { echo "$as_me:$LINENO: result: no" >&5 2229 echo "${ECHO_T}no" >&6; } 2230 SET_MAKE="MAKE=${MAKE-make}" 2231 fi 2232 2233 rm -rf .tst 2>/dev/null 2234 mkdir .tst 2>/dev/null 2235 if test -d .tst; then 2236 am__leading_dot=. 2237 else 2238 am__leading_dot=_ 2239 fi 2240 rmdir .tst 2>/dev/null 2241 2242 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2243 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2244 # is not polluted with repeated "-I." 2245 am__isrc=' -I$(srcdir)' 2246 # test to see if srcdir already configured 2247 if test -f $srcdir/config.status; then 2248 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2249 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2250 { (exit 1); exit 1; }; } 2251 fi 2252 fi 2253 2254 # test whether we have cygpath 2255 if test -z "$CYGPATH_W"; then 2256 if (cygpath --version) >/dev/null 2>/dev/null; then 2257 CYGPATH_W='cygpath -w' 2258 else 2259 CYGPATH_W=echo 2260 fi 2261 fi 2262 2263 2264 # Define the identity of the package. 2265 PACKAGE=autoconf-lib-link 2266 VERSION=$VERSION_NUMBER 2267 2268 2269 cat >>confdefs.h <<_ACEOF 2270 #define PACKAGE "$PACKAGE" 2271 _ACEOF 2272 2273 2274 cat >>confdefs.h <<_ACEOF 2275 #define VERSION "$VERSION" 2276 _ACEOF 2277 2278 # Some tools Automake needs. 2279 2280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2281 2282 2283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2284 2285 2286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2287 2288 2289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2290 2291 2292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2293 2294 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2295 2296 # Installed binaries are usually stripped using `strip' when the user 2297 # run `make install-strip'. However `strip' might not be the right 2298 # tool to use in cross-compilation environments, therefore Automake 2299 # will honor the `STRIP' environment variable to overrule this program. 2300 if test "$cross_compiling" != no; then 2301 if test -n "$ac_tool_prefix"; then 2302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2303 set dummy ${ac_tool_prefix}strip; ac_word=$2 2304 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2306 if test "${ac_cv_prog_STRIP+set}" = set; then 2307 echo $ECHO_N "(cached) $ECHO_C" >&6 2308 else 2309 if test -n "$STRIP"; then 2310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2311 else 2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2313 for as_dir in $PATH 2314 do 2315 IFS=$as_save_IFS 2316 test -z "$as_dir" && as_dir=. 2317 for ac_exec_ext in '' $ac_executable_extensions; do 2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2321 break 2 2322 fi 2323 done 2324 done 2325 IFS=$as_save_IFS 2326 2327 fi 2328 fi 2329 STRIP=$ac_cv_prog_STRIP 2330 if test -n "$STRIP"; then 2331 { echo "$as_me:$LINENO: result: $STRIP" >&5 2332 echo "${ECHO_T}$STRIP" >&6; } 2333 else 2334 { echo "$as_me:$LINENO: result: no" >&5 2335 echo "${ECHO_T}no" >&6; } 2336 fi 2337 2338 2339 fi 2340 if test -z "$ac_cv_prog_STRIP"; then 2341 ac_ct_STRIP=$STRIP 2342 # Extract the first word of "strip", so it can be a program name with args. 2343 set dummy strip; ac_word=$2 2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2347 echo $ECHO_N "(cached) $ECHO_C" >&6 2348 else 2349 if test -n "$ac_ct_STRIP"; then 2350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2351 else 2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353 for as_dir in $PATH 2354 do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_ac_ct_STRIP="strip" 2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363 done 2364 done 2365 IFS=$as_save_IFS 2366 2367 fi 2368 fi 2369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2370 if test -n "$ac_ct_STRIP"; then 2371 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2372 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2373 else 2374 { echo "$as_me:$LINENO: result: no" >&5 2375 echo "${ECHO_T}no" >&6; } 2376 fi 2377 2378 if test "x$ac_ct_STRIP" = x; then 2379 STRIP=":" 2380 else 2381 case $cross_compiling:$ac_tool_warned in 2382 yes:) 2383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2384 whose name does not start with the host triplet. If you think this 2385 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2387 whose name does not start with the host triplet. If you think this 2388 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2389 ac_tool_warned=yes ;; 2390 esac 2391 STRIP=$ac_ct_STRIP 2392 fi 2393 else 2394 STRIP="$ac_cv_prog_STRIP" 2395 fi 2396 2397 fi 2398 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2399 2400 # We need awk for the "check" target. The system "awk" is bad on 2401 # some platforms. 2402 # Always define AMTAR for backward compatibility. 2403 2404 AMTAR=${AMTAR-"${am_missing_run}tar"} 2405 2406 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2407 2408 2409 2410 2411 2412 2413 ac_ext=c 2414 ac_cpp='$CPP $CPPFLAGS' 2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2418 if test -n "$ac_tool_prefix"; then 2419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2420 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2423 if test "${ac_cv_prog_CC+set}" = set; then 2424 echo $ECHO_N "(cached) $ECHO_C" >&6 2425 else 2426 if test -n "$CC"; then 2427 ac_cv_prog_CC="$CC" # Let the user override the test. 2428 else 2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2430 for as_dir in $PATH 2431 do 2432 IFS=$as_save_IFS 2433 test -z "$as_dir" && as_dir=. 2434 for ac_exec_ext in '' $ac_executable_extensions; do 2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2436 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2438 break 2 2439 fi 2440 done 2441 done 2442 IFS=$as_save_IFS 2443 2444 fi 2445 fi 2446 CC=$ac_cv_prog_CC 2447 if test -n "$CC"; then 2448 { echo "$as_me:$LINENO: result: $CC" >&5 2449 echo "${ECHO_T}$CC" >&6; } 2450 else 2451 { echo "$as_me:$LINENO: result: no" >&5 2452 echo "${ECHO_T}no" >&6; } 2453 fi 2454 2455 2456 fi 2457 if test -z "$ac_cv_prog_CC"; then 2458 ac_ct_CC=$CC 2459 # Extract the first word of "gcc", so it can be a program name with args. 2460 set dummy gcc; ac_word=$2 2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2464 echo $ECHO_N "(cached) $ECHO_C" >&6 2465 else 2466 if test -n "$ac_ct_CC"; then 2467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2468 else 2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470 for as_dir in $PATH 2471 do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2476 ac_cv_prog_ac_ct_CC="gcc" 2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480 done 2481 done 2482 IFS=$as_save_IFS 2483 2484 fi 2485 fi 2486 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2487 if test -n "$ac_ct_CC"; then 2488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2489 echo "${ECHO_T}$ac_ct_CC" >&6; } 2490 else 2491 { echo "$as_me:$LINENO: result: no" >&5 2492 echo "${ECHO_T}no" >&6; } 2493 fi 2494 2495 if test "x$ac_ct_CC" = x; then 2496 CC="" 2497 else 2498 case $cross_compiling:$ac_tool_warned in 2499 yes:) 2500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2501 whose name does not start with the host triplet. If you think this 2502 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2504 whose name does not start with the host triplet. If you think this 2505 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2506 ac_tool_warned=yes ;; 2507 esac 2508 CC=$ac_ct_CC 2509 fi 2510 else 2511 CC="$ac_cv_prog_CC" 2512 fi 2513 2514 if test -z "$CC"; then 2515 if test -n "$ac_tool_prefix"; then 2516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2517 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then 2521 echo $ECHO_N "(cached) $ECHO_C" >&6 2522 else 2523 if test -n "$CC"; then 2524 ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc" 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 CC=$ac_cv_prog_CC 2544 if test -n "$CC"; then 2545 { echo "$as_me:$LINENO: result: $CC" >&5 2546 echo "${ECHO_T}$CC" >&6; } 2547 else 2548 { echo "$as_me:$LINENO: result: no" >&5 2549 echo "${ECHO_T}no" >&6; } 2550 fi 2551 2552 2553 fi 2554 fi 2555 if test -z "$CC"; then 2556 # Extract the first word of "cc", so it can be a program name with args. 2557 set dummy cc; 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_CC+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562 else 2563 if test -n "$CC"; then 2564 ac_cv_prog_CC="$CC" # Let the user override the test. 2565 else 2566 ac_prog_rejected=no 2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2568 for as_dir in $PATH 2569 do 2570 IFS=$as_save_IFS 2571 test -z "$as_dir" && as_dir=. 2572 for ac_exec_ext in '' $ac_executable_extensions; do 2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2575 ac_prog_rejected=yes 2576 continue 2577 fi 2578 ac_cv_prog_CC="cc" 2579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2580 break 2 2581 fi 2582 done 2583 done 2584 IFS=$as_save_IFS 2585 2586 if test $ac_prog_rejected = yes; then 2587 # We found a bogon in the path, so make sure we never use it. 2588 set dummy $ac_cv_prog_CC 2589 shift 2590 if test $# != 0; then 2591 # We chose a different compiler from the bogus one. 2592 # However, it has the same basename, so the bogon will be chosen 2593 # first if we set CC to just the basename; use the full file name. 2594 shift 2595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2596 fi 2597 fi 2598 fi 2599 fi 2600 CC=$ac_cv_prog_CC 2601 if test -n "$CC"; then 2602 { echo "$as_me:$LINENO: result: $CC" >&5 2603 echo "${ECHO_T}$CC" >&6; } 2604 else 2605 { echo "$as_me:$LINENO: result: no" >&5 2606 echo "${ECHO_T}no" >&6; } 2607 fi 2608 2609 2610 fi 2611 if test -z "$CC"; then 2612 if test -n "$ac_tool_prefix"; then 2613 for ac_prog in cl.exe 2614 do 2615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2619 if test "${ac_cv_prog_CC+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621 else 2622 if test -n "$CC"; then 2623 ac_cv_prog_CC="$CC" # Let the user override the test. 2624 else 2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626 for as_dir in $PATH 2627 do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636 done 2637 done 2638 IFS=$as_save_IFS 2639 2640 fi 2641 fi 2642 CC=$ac_cv_prog_CC 2643 if test -n "$CC"; then 2644 { echo "$as_me:$LINENO: result: $CC" >&5 2645 echo "${ECHO_T}$CC" >&6; } 2646 else 2647 { echo "$as_me:$LINENO: result: no" >&5 2648 echo "${ECHO_T}no" >&6; } 2649 fi 2650 2651 2652 test -n "$CC" && break 2653 done 2654 fi 2655 if test -z "$CC"; then 2656 ac_ct_CC=$CC 2657 for ac_prog in cl.exe 2658 do 2659 # Extract the first word of "$ac_prog", so it can be a program name with args. 2660 set dummy $ac_prog; ac_word=$2 2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2664 echo $ECHO_N "(cached) $ECHO_C" >&6 2665 else 2666 if test -n "$ac_ct_CC"; then 2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2668 else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670 for as_dir in $PATH 2671 do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2676 ac_cv_prog_ac_ct_CC="$ac_prog" 2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680 done 2681 done 2682 IFS=$as_save_IFS 2683 2684 fi 2685 fi 2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2687 if test -n "$ac_ct_CC"; then 2688 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2689 echo "${ECHO_T}$ac_ct_CC" >&6; } 2690 else 2691 { echo "$as_me:$LINENO: result: no" >&5 2692 echo "${ECHO_T}no" >&6; } 2693 fi 2694 2695 2696 test -n "$ac_ct_CC" && break 2697 done 2698 2699 if test "x$ac_ct_CC" = x; then 2700 CC="" 2701 else 2702 case $cross_compiling:$ac_tool_warned in 2703 yes:) 2704 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2705 whose name does not start with the host triplet. If you think this 2706 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2707 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2708 whose name does not start with the host triplet. If you think this 2709 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2710 ac_tool_warned=yes ;; 2711 esac 2712 CC=$ac_ct_CC 2713 fi 2714 fi 2715 2716 fi 2717 2718 2719 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2720 See \`config.log' for more details." >&5 2721 echo "$as_me: error: no acceptable C compiler found in \$PATH 2722 See \`config.log' for more details." >&2;} 2723 { (exit 1); exit 1; }; } 2724 2725 # Provide some information about the compiler. 2726 echo "$as_me:$LINENO: checking for C compiler version" >&5 2727 ac_compiler=`set X $ac_compile; echo $2` 2728 { (ac_try="$ac_compiler --version >&5" 2729 case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732 esac 2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_compiler --version >&5") 2>&5 2735 ac_status=$? 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); } 2738 { (ac_try="$ac_compiler -v >&5" 2739 case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742 esac 2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2744 (eval "$ac_compiler -v >&5") 2>&5 2745 ac_status=$? 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2747 (exit $ac_status); } 2748 { (ac_try="$ac_compiler -V >&5" 2749 case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752 esac 2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2754 (eval "$ac_compiler -V >&5") 2>&5 2755 ac_status=$? 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } 2758 2759 cat >conftest.$ac_ext <<_ACEOF 2760 /* confdefs.h. */ 2761 _ACEOF 2762 cat confdefs.h >>conftest.$ac_ext 2763 cat >>conftest.$ac_ext <<_ACEOF 2764 /* end confdefs.h. */ 2765 2766 int 2767 main () 2768 { 2769 2770 ; 2771 return 0; 2772 } 2773 _ACEOF 2774 ac_clean_files_save=$ac_clean_files 2775 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2776 # Try to create an executable without -o first, disregard a.out. 2777 # It will help us diagnose broken compilers, and finding out an intuition 2778 # of exeext. 2779 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2780 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2781 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2782 # 2783 # List of possible output files, starting from the most likely. 2784 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2785 # only as a last resort. b.out is created by i960 compilers. 2786 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2787 # 2788 # The IRIX 6 linker writes into existing files which may not be 2789 # executable, retaining their permissions. Remove them first so a 2790 # subsequent execution test works. 2791 ac_rmfiles= 2792 for ac_file in $ac_files 2793 do 2794 case $ac_file in 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2796 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2797 esac 2798 done 2799 rm -f $ac_rmfiles 2800 2801 if { (ac_try="$ac_link_default" 2802 case "(($ac_try" in 2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2804 *) ac_try_echo=$ac_try;; 2805 esac 2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2807 (eval "$ac_link_default") 2>&5 2808 ac_status=$? 2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2810 (exit $ac_status); }; then 2811 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2812 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2813 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2814 # so that the user can short-circuit this test for compilers unknown to 2815 # Autoconf. 2816 for ac_file in $ac_files '' 2817 do 2818 test -f "$ac_file" || continue 2819 case $ac_file in 2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2821 ;; 2822 [ab].out ) 2823 # We found the default executable, but exeext='' is most 2824 # certainly right. 2825 break;; 2826 *.* ) 2827 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2828 then :; else 2829 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2830 fi 2831 # We set ac_cv_exeext here because the later test for it is not 2832 # safe: cross compilers may not add the suffix if given an `-o' 2833 # argument, so we may need to know it at that point already. 2834 # Even if this section looks crufty: it has the advantage of 2835 # actually working. 2836 break;; 2837 * ) 2838 break;; 2839 esac 2840 done 2841 test "$ac_cv_exeext" = no && ac_cv_exeext= 2842 2843 else 2844 ac_file='' 2845 fi 2846 2847 { echo "$as_me:$LINENO: result: $ac_file" >&5 2848 echo "${ECHO_T}$ac_file" >&6; } 2849 if test -z "$ac_file"; then 2850 echo "$as_me: failed program was:" >&5 2851 sed 's/^/| /' conftest.$ac_ext >&5 2852 2853 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2854 See \`config.log' for more details." >&5 2855 echo "$as_me: error: C compiler cannot create executables 2856 See \`config.log' for more details." >&2;} 2857 { (exit 77); exit 77; }; } 2858 fi 2859 2860 ac_exeext=$ac_cv_exeext 2861 2862 # Check that the compiler produces executables we can run. If not, either 2863 # the compiler is broken, or we cross compile. 2864 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2865 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2866 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2867 # If not cross compiling, check that we can run a simple program. 2868 if test "$cross_compiling" != yes; then 2869 if { ac_try='./$ac_file' 2870 { (case "(($ac_try" in 2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2872 *) ac_try_echo=$ac_try;; 2873 esac 2874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2875 (eval "$ac_try") 2>&5 2876 ac_status=$? 2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2878 (exit $ac_status); }; }; then 2879 cross_compiling=no 2880 else 2881 if test "$cross_compiling" = maybe; then 2882 cross_compiling=yes 2883 else 2884 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2885 If you meant to cross compile, use \`--host'. 2886 See \`config.log' for more details." >&5 2887 echo "$as_me: error: cannot run C compiled programs. 2888 If you meant to cross compile, use \`--host'. 2889 See \`config.log' for more details." >&2;} 2890 { (exit 1); exit 1; }; } 2891 fi 2892 fi 2893 fi 2894 { echo "$as_me:$LINENO: result: yes" >&5 2895 echo "${ECHO_T}yes" >&6; } 2896 2897 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2898 ac_clean_files=$ac_clean_files_save 2899 # Check that the compiler produces executables we can run. If not, either 2900 # the compiler is broken, or we cross compile. 2901 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2902 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2903 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2904 echo "${ECHO_T}$cross_compiling" >&6; } 2905 2906 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2907 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2908 if { (ac_try="$ac_link" 2909 case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912 esac 2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_link") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); }; then 2918 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2919 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2920 # work properly (i.e., refer to `conftest.exe'), while it won't with 2921 # `rm'. 2922 for ac_file in conftest.exe conftest conftest.*; do 2923 test -f "$ac_file" || continue 2924 case $ac_file in 2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2927 break;; 2928 * ) break;; 2929 esac 2930 done 2931 else 2932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2933 See \`config.log' for more details." >&5 2934 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2935 See \`config.log' for more details." >&2;} 2936 { (exit 1); exit 1; }; } 2937 fi 2938 2939 rm -f conftest$ac_cv_exeext 2940 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2941 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2942 2943 rm -f conftest.$ac_ext 2944 EXEEXT=$ac_cv_exeext 2945 ac_exeext=$EXEEXT 2946 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2947 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2948 if test "${ac_cv_objext+set}" = set; then 2949 echo $ECHO_N "(cached) $ECHO_C" >&6 2950 else 2951 cat >conftest.$ac_ext <<_ACEOF 2952 /* confdefs.h. */ 2953 _ACEOF 2954 cat confdefs.h >>conftest.$ac_ext 2955 cat >>conftest.$ac_ext <<_ACEOF 2956 /* end confdefs.h. */ 2957 2958 int 2959 main () 2960 { 2961 2962 ; 2963 return 0; 2964 } 2965 _ACEOF 2966 rm -f conftest.o conftest.obj 2967 if { (ac_try="$ac_compile" 2968 case "(($ac_try" in 2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2970 *) ac_try_echo=$ac_try;; 2971 esac 2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2973 (eval "$ac_compile") 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); }; then 2977 for ac_file in conftest.o conftest.obj conftest.*; do 2978 test -f "$ac_file" || continue; 2979 case $ac_file in 2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2982 break;; 2983 esac 2984 done 2985 else 2986 echo "$as_me: failed program was:" >&5 2987 sed 's/^/| /' conftest.$ac_ext >&5 2988 2989 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2990 See \`config.log' for more details." >&5 2991 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2992 See \`config.log' for more details." >&2;} 2993 { (exit 1); exit 1; }; } 2994 fi 2995 2996 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2997 fi 2998 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2999 echo "${ECHO_T}$ac_cv_objext" >&6; } 3000 OBJEXT=$ac_cv_objext 3001 ac_objext=$OBJEXT 3002 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3003 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3004 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3005 echo $ECHO_N "(cached) $ECHO_C" >&6 3006 else 3007 cat >conftest.$ac_ext <<_ACEOF 3008 /* confdefs.h. */ 3009 _ACEOF 3010 cat confdefs.h >>conftest.$ac_ext 3011 cat >>conftest.$ac_ext <<_ACEOF 3012 /* end confdefs.h. */ 3013 3014 int 3015 main () 3016 { 3017 #ifndef __GNUC__ 3018 choke me 3019 #endif 3020 3021 ; 3022 return 0; 3023 } 3024 _ACEOF 3025 rm -f conftest.$ac_objext 3026 if { (ac_try="$ac_compile" 3027 case "(($ac_try" in 3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3029 *) ac_try_echo=$ac_try;; 3030 esac 3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3032 (eval "$ac_compile") 2>conftest.er1 3033 ac_status=$? 3034 grep -v '^ *+' conftest.er1 >conftest.err 3035 rm -f conftest.er1 3036 cat conftest.err >&5 3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); } && { 3039 test -z "$ac_c_werror_flag" || 3040 test ! -s conftest.err 3041 } && test -s conftest.$ac_objext; then 3042 ac_compiler_gnu=yes 3043 else 3044 echo "$as_me: failed program was:" >&5 3045 sed 's/^/| /' conftest.$ac_ext >&5 3046 3047 ac_compiler_gnu=no 3048 fi 3049 3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3051 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3052 3053 fi 3054 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3056 GCC=`test $ac_compiler_gnu = yes && echo yes` 3057 ac_test_CFLAGS=${CFLAGS+set} 3058 ac_save_CFLAGS=$CFLAGS 3059 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3061 if test "${ac_cv_prog_cc_g+set}" = set; then 3062 echo $ECHO_N "(cached) $ECHO_C" >&6 3063 else 3064 ac_save_c_werror_flag=$ac_c_werror_flag 3065 ac_c_werror_flag=yes 3066 ac_cv_prog_cc_g=no 3067 CFLAGS="-g" 3068 cat >conftest.$ac_ext <<_ACEOF 3069 /* confdefs.h. */ 3070 _ACEOF 3071 cat confdefs.h >>conftest.$ac_ext 3072 cat >>conftest.$ac_ext <<_ACEOF 3073 /* end confdefs.h. */ 3074 3075 int 3076 main () 3077 { 3078 3079 ; 3080 return 0; 3081 } 3082 _ACEOF 3083 rm -f conftest.$ac_objext 3084 if { (ac_try="$ac_compile" 3085 case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088 esac 3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3090 (eval "$ac_compile") 2>conftest.er1 3091 ac_status=$? 3092 grep -v '^ *+' conftest.er1 >conftest.err 3093 rm -f conftest.er1 3094 cat conftest.err >&5 3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3096 (exit $ac_status); } && { 3097 test -z "$ac_c_werror_flag" || 3098 test ! -s conftest.err 3099 } && test -s conftest.$ac_objext; then 3100 ac_cv_prog_cc_g=yes 3101 else 3102 echo "$as_me: failed program was:" >&5 3103 sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 CFLAGS="" 3106 cat >conftest.$ac_ext <<_ACEOF 3107 /* confdefs.h. */ 3108 _ACEOF 3109 cat confdefs.h >>conftest.$ac_ext 3110 cat >>conftest.$ac_ext <<_ACEOF 3111 /* end confdefs.h. */ 3112 3113 int 3114 main () 3115 { 3116 3117 ; 3118 return 0; 3119 } 3120 _ACEOF 3121 rm -f conftest.$ac_objext 3122 if { (ac_try="$ac_compile" 3123 case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126 esac 3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } && { 3135 test -z "$ac_c_werror_flag" || 3136 test ! -s conftest.err 3137 } && test -s conftest.$ac_objext; then 3138 : 3139 else 3140 echo "$as_me: failed program was:" >&5 3141 sed 's/^/| /' conftest.$ac_ext >&5 3142 3143 ac_c_werror_flag=$ac_save_c_werror_flag 3144 CFLAGS="-g" 3145 cat >conftest.$ac_ext <<_ACEOF 3146 /* confdefs.h. */ 3147 _ACEOF 3148 cat confdefs.h >>conftest.$ac_ext 3149 cat >>conftest.$ac_ext <<_ACEOF 3150 /* end confdefs.h. */ 3151 3152 int 3153 main () 3154 { 3155 3156 ; 3157 return 0; 3158 } 3159 _ACEOF 3160 rm -f conftest.$ac_objext 3161 if { (ac_try="$ac_compile" 3162 case "(($ac_try" in 3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3164 *) ac_try_echo=$ac_try;; 3165 esac 3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3167 (eval "$ac_compile") 2>conftest.er1 3168 ac_status=$? 3169 grep -v '^ *+' conftest.er1 >conftest.err 3170 rm -f conftest.er1 3171 cat conftest.err >&5 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); } && { 3174 test -z "$ac_c_werror_flag" || 3175 test ! -s conftest.err 3176 } && test -s conftest.$ac_objext; then 3177 ac_cv_prog_cc_g=yes 3178 else 3179 echo "$as_me: failed program was:" >&5 3180 sed 's/^/| /' conftest.$ac_ext >&5 3181 3182 3183 fi 3184 3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3186 fi 3187 3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3189 fi 3190 3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3192 ac_c_werror_flag=$ac_save_c_werror_flag 3193 fi 3194 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3195 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3196 if test "$ac_test_CFLAGS" = set; then 3197 CFLAGS=$ac_save_CFLAGS 3198 elif test $ac_cv_prog_cc_g = yes; then 3199 if test "$GCC" = yes; then 3200 CFLAGS="-g -O2" 3201 else 3202 CFLAGS="-g" 3203 fi 3204 else 3205 if test "$GCC" = yes; then 3206 CFLAGS="-O2" 3207 else 3208 CFLAGS= 3209 fi 3210 fi 3211 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3212 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3213 if test "${ac_cv_prog_cc_c89+set}" = set; then 3214 echo $ECHO_N "(cached) $ECHO_C" >&6 3215 else 3216 ac_cv_prog_cc_c89=no 3217 ac_save_CC=$CC 3218 cat >conftest.$ac_ext <<_ACEOF 3219 /* confdefs.h. */ 3220 _ACEOF 3221 cat confdefs.h >>conftest.$ac_ext 3222 cat >>conftest.$ac_ext <<_ACEOF 3223 /* end confdefs.h. */ 3224 #include <stdarg.h> 3225 #include <stdio.h> 3226 #include <sys/types.h> 3227 #include <sys/stat.h> 3228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3229 struct buf { int x; }; 3230 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3231 static char *e (p, i) 3232 char **p; 3233 int i; 3234 { 3235 return p[i]; 3236 } 3237 static char *f (char * (*g) (char **, int), char **p, ...) 3238 { 3239 char *s; 3240 va_list v; 3241 va_start (v,p); 3242 s = g (p, va_arg (v,int)); 3243 va_end (v); 3244 return s; 3245 } 3246 3247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3248 function prototypes and stuff, but not '\xHH' hex character constants. 3249 These don't provoke an error unfortunately, instead are silently treated 3250 as 'x'. The following induces an error, until -std is added to get 3251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3252 array size at least. It's necessary to write '\x00'==0 to get something 3253 that's true only with -std. */ 3254 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3255 3256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3257 inside strings and character constants. */ 3258 #define FOO(x) 'x' 3259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3260 3261 int test (int i, double x); 3262 struct s1 {int (*f) (int a);}; 3263 struct s2 {int (*f) (double a);}; 3264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3265 int argc; 3266 char **argv; 3267 int 3268 main () 3269 { 3270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3271 ; 3272 return 0; 3273 } 3274 _ACEOF 3275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3277 do 3278 CC="$ac_save_CC $ac_arg" 3279 rm -f conftest.$ac_objext 3280 if { (ac_try="$ac_compile" 3281 case "(($ac_try" in 3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3283 *) ac_try_echo=$ac_try;; 3284 esac 3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3286 (eval "$ac_compile") 2>conftest.er1 3287 ac_status=$? 3288 grep -v '^ *+' conftest.er1 >conftest.err 3289 rm -f conftest.er1 3290 cat conftest.err >&5 3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3292 (exit $ac_status); } && { 3293 test -z "$ac_c_werror_flag" || 3294 test ! -s conftest.err 3295 } && test -s conftest.$ac_objext; then 3296 ac_cv_prog_cc_c89=$ac_arg 3297 else 3298 echo "$as_me: failed program was:" >&5 3299 sed 's/^/| /' conftest.$ac_ext >&5 3300 3301 3302 fi 3303 3304 rm -f core conftest.err conftest.$ac_objext 3305 test "x$ac_cv_prog_cc_c89" != "xno" && break 3306 done 3307 rm -f conftest.$ac_ext 3308 CC=$ac_save_CC 3309 3310 fi 3311 # AC_CACHE_VAL 3312 case "x$ac_cv_prog_cc_c89" in 3313 x) 3314 { echo "$as_me:$LINENO: result: none needed" >&5 3315 echo "${ECHO_T}none needed" >&6; } ;; 3316 xno) 3317 { echo "$as_me:$LINENO: result: unsupported" >&5 3318 echo "${ECHO_T}unsupported" >&6; } ;; 3319 *) 3320 CC="$CC $ac_cv_prog_cc_c89" 3321 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3322 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3323 esac 3324 3325 3326 ac_ext=c 3327 ac_cpp='$CPP $CPPFLAGS' 3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3331 DEPDIR="${am__leading_dot}deps" 3332 3333 ac_config_commands="$ac_config_commands depfiles" 3334 3335 3336 am_make=${MAKE-make} 3337 cat > confinc << 'END' 3338 am__doit: 3339 @echo done 3340 .PHONY: am__doit 3341 END 3342 # If we don't find an include directive, just comment out the code. 3343 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3344 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3345 am__include="#" 3346 am__quote= 3347 _am_result=none 3348 # First try GNU make style include. 3349 echo "include confinc" > confmf 3350 # We grep out `Entering directory' and `Leaving directory' 3351 # messages which can occur if `w' ends up in MAKEFLAGS. 3352 # In particular we don't look at `^make:' because GNU make might 3353 # be invoked under some other name (usually "gmake"), in which 3354 # case it prints its new name instead of `make'. 3355 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3356 am__include=include 3357 am__quote= 3358 _am_result=GNU 3359 fi 3360 # Now try BSD make style include. 3361 if test "$am__include" = "#"; then 3362 echo '.include "confinc"' > confmf 3363 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3364 am__include=.include 3365 am__quote="\"" 3366 _am_result=BSD 3367 fi 3368 fi 3369 3370 3371 { echo "$as_me:$LINENO: result: $_am_result" >&5 3372 echo "${ECHO_T}$_am_result" >&6; } 3373 rm -f confinc confmf 3374 3375 # Check whether --enable-dependency-tracking was given. 3376 if test "${enable_dependency_tracking+set}" = set; then 3377 enableval=$enable_dependency_tracking; 3378 fi 3379 3380 if test "x$enable_dependency_tracking" != xno; then 3381 am_depcomp="$ac_aux_dir/depcomp" 3382 AMDEPBACKSLASH='\' 3383 fi 3384 if test "x$enable_dependency_tracking" != xno; then 3385 AMDEP_TRUE= 3386 AMDEP_FALSE='#' 3387 else 3388 AMDEP_TRUE='#' 3389 AMDEP_FALSE= 3390 fi 3391 3392 3393 3394 depcc="$CC" am_compiler_list= 3395 3396 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3397 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3398 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3399 echo $ECHO_N "(cached) $ECHO_C" >&6 3400 else 3401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3402 # We make a subdir and do the tests there. Otherwise we can end up 3403 # making bogus files that we don't know about and never remove. For 3404 # instance it was reported that on HP-UX the gcc test will end up 3405 # making a dummy file named `D' -- because `-MD' means `put the output 3406 # in D'. 3407 mkdir conftest.dir 3408 # Copy depcomp to subdir because otherwise we won't find it if we're 3409 # using a relative directory. 3410 cp "$am_depcomp" conftest.dir 3411 cd conftest.dir 3412 # We will build objects and dependencies in a subdirectory because 3413 # it helps to detect inapplicable dependency modes. For instance 3414 # both Tru64's cc and ICC support -MD to output dependencies as a 3415 # side effect of compilation, but ICC will put the dependencies in 3416 # the current directory while Tru64 will put them in the object 3417 # directory. 3418 mkdir sub 3419 3420 am_cv_CC_dependencies_compiler_type=none 3421 if test "$am_compiler_list" = ""; then 3422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3423 fi 3424 for depmode in $am_compiler_list; do 3425 # Setup a source with many dependencies, because some compilers 3426 # like to wrap large dependency lists on column 80 (with \), and 3427 # we should not choose a depcomp mode which is confused by this. 3428 # 3429 # We need to recreate these files for each test, as the compiler may 3430 # overwrite some of them when testing with obscure command lines. 3431 # This happens at least with the AIX C compiler. 3432 : > sub/conftest.c 3433 for i in 1 2 3 4 5 6; do 3434 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3435 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3436 # Solaris 8's {/usr,}/bin/sh. 3437 touch sub/conftst$i.h 3438 done 3439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3440 3441 case $depmode in 3442 nosideeffect) 3443 # after this tag, mechanisms are not by side-effect, so they'll 3444 # only be used when explicitly requested 3445 if test "x$enable_dependency_tracking" = xyes; then 3446 continue 3447 else 3448 break 3449 fi 3450 ;; 3451 none) break ;; 3452 esac 3453 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3454 # mode. It turns out that the SunPro C++ compiler does not properly 3455 # handle `-M -o', and we need to detect this. 3456 if depmode=$depmode \ 3457 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3459 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3460 >/dev/null 2>conftest.err && 3461 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3465 # icc doesn't choke on unknown options, it will just issue warnings 3466 # or remarks (even with -Werror). So we grep stderr for any message 3467 # that says an option was ignored or not supported. 3468 # When given -MP, icc 7.0 and 7.1 complain thusly: 3469 # icc: Command line warning: ignoring option '-M'; no argument required 3470 # The diagnosis changed in icc 8.0: 3471 # icc: Command line remark: option '-MP' not supported 3472 if (grep 'ignoring option' conftest.err || 3473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3474 am_cv_CC_dependencies_compiler_type=$depmode 3475 break 3476 fi 3477 fi 3478 done 3479 3480 cd .. 3481 rm -rf conftest.dir 3482 else 3483 am_cv_CC_dependencies_compiler_type=none 3484 fi 3485 3486 fi 3487 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3488 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3489 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3490 3491 if 3492 test "x$enable_dependency_tracking" != xno \ 3493 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3494 am__fastdepCC_TRUE= 3495 am__fastdepCC_FALSE='#' 3496 else 3497 am__fastdepCC_TRUE='#' 3498 am__fastdepCC_FALSE= 3499 fi 3500 3501 3502 # Find a good install program. We prefer a C program (faster), 3503 # so one script is as good as another. But avoid the broken or 3504 # incompatible versions: 3505 # SysV /etc/install, /usr/sbin/install 3506 # SunOS /usr/etc/install 3507 # IRIX /sbin/install 3508 # AIX /bin/install 3509 # AmigaOS /C/install, which installs bootblocks on floppy discs 3510 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3511 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3512 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3513 # OS/2's system install, which has a completely different semantic 3514 # ./install, which can be erroneously created by make from ./install.sh. 3515 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3516 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3517 if test -z "$INSTALL"; then 3518 if test "${ac_cv_path_install+set}" = set; then 3519 echo $ECHO_N "(cached) $ECHO_C" >&6 3520 else 3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522 for as_dir in $PATH 3523 do 3524 IFS=$as_save_IFS 3525 test -z "$as_dir" && as_dir=. 3526 # Account for people who put trailing slashes in PATH elements. 3527 case $as_dir/ in 3528 ./ | .// | /cC/* | \ 3529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3530 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3531 /usr/ucb/* ) ;; 3532 *) 3533 # OSF1 and SCO ODT 3.0 have their own names for install. 3534 # Don't use installbsd from OSF since it installs stuff as root 3535 # by default. 3536 for ac_prog in ginstall scoinst install; do 3537 for ac_exec_ext in '' $ac_executable_extensions; do 3538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3539 if test $ac_prog = install && 3540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3541 # AIX install. It has an incompatible calling convention. 3542 : 3543 elif test $ac_prog = install && 3544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3545 # program-specific install script used by HP pwplus--don't use. 3546 : 3547 else 3548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3549 break 3 3550 fi 3551 fi 3552 done 3553 done 3554 ;; 3555 esac 3556 done 3557 IFS=$as_save_IFS 3558 3559 3560 fi 3561 if test "${ac_cv_path_install+set}" = set; then 3562 INSTALL=$ac_cv_path_install 3563 else 3564 # As a last resort, use the slow shell script. Don't cache a 3565 # value for INSTALL within a source directory, because that will 3566 # break other packages using the cache if that directory is 3567 # removed, or if the value is a relative name. 3568 INSTALL=$ac_install_sh 3569 fi 3570 fi 3571 { echo "$as_me:$LINENO: result: $INSTALL" >&5 3572 echo "${ECHO_T}$INSTALL" >&6; } 3573 3574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3575 # It thinks the first close brace ends the variable substitution. 3576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3577 3578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3579 3580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3581 3582 3583 # Make sure we can run config.sub. 3584 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3585 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3586 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3587 { (exit 1); exit 1; }; } 3588 3589 { echo "$as_me:$LINENO: checking build system type" >&5 3590 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3591 if test "${ac_cv_build+set}" = set; then 3592 echo $ECHO_N "(cached) $ECHO_C" >&6 3593 else 3594 ac_build_alias=$build_alias 3595 test "x$ac_build_alias" = x && 3596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3597 test "x$ac_build_alias" = x && 3598 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3599 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3600 { (exit 1); exit 1; }; } 3601 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3602 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3603 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3604 { (exit 1); exit 1; }; } 3605 3606 fi 3607 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3608 echo "${ECHO_T}$ac_cv_build" >&6; } 3609 case $ac_cv_build in 3610 *-*-*) ;; 3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3612 echo "$as_me: error: invalid value of canonical build" >&2;} 3613 { (exit 1); exit 1; }; };; 3614 esac 3615 build=$ac_cv_build 3616 ac_save_IFS=$IFS; IFS='-' 3617 set x $ac_cv_build 3618 shift 3619 build_cpu=$1 3620 build_vendor=$2 3621 shift; shift 3622 # Remember, the first character of IFS is used to create $*, 3623 # except with old shells: 3624 build_os=$* 3625 IFS=$ac_save_IFS 3626 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3627 3628 3629 { echo "$as_me:$LINENO: checking host system type" >&5 3630 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3631 if test "${ac_cv_host+set}" = set; then 3632 echo $ECHO_N "(cached) $ECHO_C" >&6 3633 else 3634 if test "x$host_alias" = x; then 3635 ac_cv_host=$ac_cv_build 3636 else 3637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3638 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3640 { (exit 1); exit 1; }; } 3641 fi 3642 3643 fi 3644 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3645 echo "${ECHO_T}$ac_cv_host" >&6; } 3646 case $ac_cv_host in 3647 *-*-*) ;; 3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3649 echo "$as_me: error: invalid value of canonical host" >&2;} 3650 { (exit 1); exit 1; }; };; 3651 esac 3652 host=$ac_cv_host 3653 ac_save_IFS=$IFS; IFS='-' 3654 set x $ac_cv_host 3655 shift 3656 host_cpu=$1 3657 host_vendor=$2 3658 shift; shift 3659 # Remember, the first character of IFS is used to create $*, 3660 # except with old shells: 3661 host_os=$* 3662 IFS=$ac_save_IFS 3663 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 case "$host_os" in 3675 mingw* | cygwin*) 3676 { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5 3677 echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; } 3678 if test "${gl_cv_ld_autoimport+set}" = set; then 3679 echo $ECHO_N "(cached) $ECHO_C" >&6 3680 else 3681 3682 gl_save_LDFLAGS="$LDFLAGS" 3683 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 3684 cat >conftest.$ac_ext <<_ACEOF 3685 /* confdefs.h. */ 3686 _ACEOF 3687 cat confdefs.h >>conftest.$ac_ext 3688 cat >>conftest.$ac_ext <<_ACEOF 3689 /* end confdefs.h. */ 3690 3691 int 3692 main () 3693 { 3694 3695 ; 3696 return 0; 3697 } 3698 _ACEOF 3699 rm -f conftest.$ac_objext conftest$ac_exeext 3700 if { (ac_try="$ac_link" 3701 case "(($ac_try" in 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703 *) ac_try_echo=$ac_try;; 3704 esac 3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3706 (eval "$ac_link") 2>conftest.er1 3707 ac_status=$? 3708 grep -v '^ *+' conftest.er1 >conftest.err 3709 rm -f conftest.er1 3710 cat conftest.err >&5 3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3712 (exit $ac_status); } && { 3713 test -z "$ac_c_werror_flag" || 3714 test ! -s conftest.err 3715 } && test -s conftest$ac_exeext && 3716 $as_test_x conftest$ac_exeext; then 3717 gl_cv_ld_autoimport=yes 3718 else 3719 echo "$as_me: failed program was:" >&5 3720 sed 's/^/| /' conftest.$ac_ext >&5 3721 3722 gl_cv_ld_autoimport=no 3723 fi 3724 3725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3726 conftest$ac_exeext conftest.$ac_ext 3727 LDFLAGS="$gl_save_LDFLAGS" 3728 fi 3729 3730 { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5 3731 echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; } 3732 if test $gl_cv_ld_autoimport = yes; then 3733 LDFLAGS="$LDFLAGS -Wl,--disable-auto-import" 3734 fi 3735 ;; 3736 esac 3737 3738 3739 3740 # Check whether --enable-shared was given. 3741 if test "${enable_shared+set}" = set; then 3742 enableval=$enable_shared; p=${PACKAGE-default} 3743 case $enableval in 3744 yes) enable_shared=yes ;; 3745 no) enable_shared=no ;; 3746 *) 3747 enable_shared=no 3748 # Look at the argument we got. We use all the common list separators. 3749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3750 for pkg in $enableval; do 3751 IFS="$lt_save_ifs" 3752 if test "X$pkg" = "X$p"; then 3753 enable_shared=yes 3754 fi 3755 done 3756 IFS="$lt_save_ifs" 3757 ;; 3758 esac 3759 else 3760 enable_shared=yes 3761 fi 3762 3763 3764 # Check whether --enable-static was given. 3765 if test "${enable_static+set}" = set; then 3766 enableval=$enable_static; p=${PACKAGE-default} 3767 case $enableval in 3768 yes) enable_static=yes ;; 3769 no) enable_static=no ;; 3770 *) 3771 enable_static=no 3772 # Look at the argument we got. We use all the common list separators. 3773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3774 for pkg in $enableval; do 3775 IFS="$lt_save_ifs" 3776 if test "X$pkg" = "X$p"; then 3777 enable_static=yes 3778 fi 3779 done 3780 IFS="$lt_save_ifs" 3781 ;; 3782 esac 3783 else 3784 enable_static=yes 3785 fi 3786 3787 3788 # Check whether --enable-fast-install was given. 3789 if test "${enable_fast_install+set}" = set; then 3790 enableval=$enable_fast_install; p=${PACKAGE-default} 3791 case $enableval in 3792 yes) enable_fast_install=yes ;; 3793 no) enable_fast_install=no ;; 3794 *) 3795 enable_fast_install=no 3796 # Look at the argument we got. We use all the common list separators. 3797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3798 for pkg in $enableval; do 3799 IFS="$lt_save_ifs" 3800 if test "X$pkg" = "X$p"; then 3801 enable_fast_install=yes 3802 fi 3803 done 3804 IFS="$lt_save_ifs" 3805 ;; 3806 esac 3807 else 3808 enable_fast_install=yes 3809 fi 3810 3811 3812 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3813 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3814 if test "${lt_cv_path_SED+set}" = set; then 3815 echo $ECHO_N "(cached) $ECHO_C" >&6 3816 else 3817 # Loop through the user's path and test for sed and gsed. 3818 # Then use that list of sed's as ones to test for truncation. 3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820 for as_dir in $PATH 3821 do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for lt_ac_prog in sed gsed; do 3825 for ac_exec_ext in '' $ac_executable_extensions; do 3826 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3827 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3828 fi 3829 done 3830 done 3831 done 3832 lt_ac_max=0 3833 lt_ac_count=0 3834 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 3835 # along with /bin/sed that truncates output. 3836 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3837 test ! -f $lt_ac_sed && continue 3838 cat /dev/null > conftest.in 3839 lt_ac_count=0 3840 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3841 # Check for GNU sed and select it if it is found. 3842 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3843 lt_cv_path_SED=$lt_ac_sed 3844 break 3845 fi 3846 while true; do 3847 cat conftest.in conftest.in >conftest.tmp 3848 mv conftest.tmp conftest.in 3849 cp conftest.in conftest.nl 3850 echo >>conftest.nl 3851 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3852 cmp -s conftest.out conftest.nl || break 3853 # 10000 chars as input seems more than enough 3854 test $lt_ac_count -gt 10 && break 3855 lt_ac_count=`expr $lt_ac_count + 1` 3856 if test $lt_ac_count -gt $lt_ac_max; then 3857 lt_ac_max=$lt_ac_count 3858 lt_cv_path_SED=$lt_ac_sed 3859 fi 3860 done 3861 done 3862 3863 fi 3864 3865 SED=$lt_cv_path_SED 3866 { echo "$as_me:$LINENO: result: $SED" >&5 3867 echo "${ECHO_T}$SED" >&6; } 3868 3869 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3870 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3871 if test "${ac_cv_path_GREP+set}" = set; then 3872 echo $ECHO_N "(cached) $ECHO_C" >&6 3873 else 3874 # Extract the first word of "grep ggrep" to use in msg output 3875 if test -z "$GREP"; then 3876 set dummy grep ggrep; ac_prog_name=$2 3877 if test "${ac_cv_path_GREP+set}" = set; then 3878 echo $ECHO_N "(cached) $ECHO_C" >&6 3879 else 3880 ac_path_GREP_found=false 3881 # Loop through the user's path and test for each of PROGNAME-LIST 3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3884 do 3885 IFS=$as_save_IFS 3886 test -z "$as_dir" && as_dir=. 3887 for ac_prog in grep ggrep; do 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3890 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3891 # Check for GNU ac_path_GREP and select it if it is found. 3892 # Check for GNU $ac_path_GREP 3893 case `"$ac_path_GREP" --version 2>&1` in 3894 *GNU*) 3895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3896 *) 3897 ac_count=0 3898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3899 while : 3900 do 3901 cat "conftest.in" "conftest.in" >"conftest.tmp" 3902 mv "conftest.tmp" "conftest.in" 3903 cp "conftest.in" "conftest.nl" 3904 echo 'GREP' >> "conftest.nl" 3905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3907 ac_count=`expr $ac_count + 1` 3908 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3909 # Best one so far, save it but keep looking for a better one 3910 ac_cv_path_GREP="$ac_path_GREP" 3911 ac_path_GREP_max=$ac_count 3912 fi 3913 # 10*(2^10) chars as input seems more than enough 3914 test $ac_count -gt 10 && break 3915 done 3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3917 esac 3918 3919 3920 $ac_path_GREP_found && break 3 3921 done 3922 done 3923 3924 done 3925 IFS=$as_save_IFS 3926 3927 3928 fi 3929 3930 GREP="$ac_cv_path_GREP" 3931 if test -z "$GREP"; then 3932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3934 { (exit 1); exit 1; }; } 3935 fi 3936 3937 else 3938 ac_cv_path_GREP=$GREP 3939 fi 3940 3941 3942 fi 3943 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3944 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3945 GREP="$ac_cv_path_GREP" 3946 3947 3948 { echo "$as_me:$LINENO: checking for egrep" >&5 3949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3950 if test "${ac_cv_path_EGREP+set}" = set; then 3951 echo $ECHO_N "(cached) $ECHO_C" >&6 3952 else 3953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3954 then ac_cv_path_EGREP="$GREP -E" 3955 else 3956 # Extract the first word of "egrep" to use in msg output 3957 if test -z "$EGREP"; then 3958 set dummy egrep; ac_prog_name=$2 3959 if test "${ac_cv_path_EGREP+set}" = set; then 3960 echo $ECHO_N "(cached) $ECHO_C" >&6 3961 else 3962 ac_path_EGREP_found=false 3963 # Loop through the user's path and test for each of PROGNAME-LIST 3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3966 do 3967 IFS=$as_save_IFS 3968 test -z "$as_dir" && as_dir=. 3969 for ac_prog in egrep; do 3970 for ac_exec_ext in '' $ac_executable_extensions; do 3971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3972 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3973 # Check for GNU ac_path_EGREP and select it if it is found. 3974 # Check for GNU $ac_path_EGREP 3975 case `"$ac_path_EGREP" --version 2>&1` in 3976 *GNU*) 3977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3978 *) 3979 ac_count=0 3980 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3981 while : 3982 do 3983 cat "conftest.in" "conftest.in" >"conftest.tmp" 3984 mv "conftest.tmp" "conftest.in" 3985 cp "conftest.in" "conftest.nl" 3986 echo 'EGREP' >> "conftest.nl" 3987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3989 ac_count=`expr $ac_count + 1` 3990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3991 # Best one so far, save it but keep looking for a better one 3992 ac_cv_path_EGREP="$ac_path_EGREP" 3993 ac_path_EGREP_max=$ac_count 3994 fi 3995 # 10*(2^10) chars as input seems more than enough 3996 test $ac_count -gt 10 && break 3997 done 3998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3999 esac 4000 4001 4002 $ac_path_EGREP_found && break 3 4003 done 4004 done 4005 4006 done 4007 IFS=$as_save_IFS 4008 4009 4010 fi 4011 4012 EGREP="$ac_cv_path_EGREP" 4013 if test -z "$EGREP"; then 4014 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4015 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4016 { (exit 1); exit 1; }; } 4017 fi 4018 4019 else 4020 ac_cv_path_EGREP=$EGREP 4021 fi 4022 4023 4024 fi 4025 fi 4026 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4027 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4028 EGREP="$ac_cv_path_EGREP" 4029 4030 4031 4032 # Check whether --with-gnu-ld was given. 4033 if test "${with_gnu_ld+set}" = set; then 4034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4035 else 4036 with_gnu_ld=no 4037 fi 4038 4039 ac_prog=ld 4040 if test "$GCC" = yes; then 4041 # Check if gcc -print-prog-name=ld gives a path. 4042 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4043 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4044 case $host in 4045 *-*-mingw*) 4046 # gcc leaves a trailing carriage return which upsets mingw 4047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4048 *) 4049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4050 esac 4051 case $ac_prog in 4052 # Accept absolute paths. 4053 [\\/]* | ?:[\\/]*) 4054 re_direlt='/[^/][^/]*/\.\./' 4055 # Canonicalize the pathname of ld 4056 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4057 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4058 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4059 done 4060 test -z "$LD" && LD="$ac_prog" 4061 ;; 4062 "") 4063 # If it fails, then pretend we aren't using GCC. 4064 ac_prog=ld 4065 ;; 4066 *) 4067 # If it is relative, then search for the first ld in PATH. 4068 with_gnu_ld=unknown 4069 ;; 4070 esac 4071 elif test "$with_gnu_ld" = yes; then 4072 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4074 else 4075 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4077 fi 4078 if test "${lt_cv_path_LD+set}" = set; then 4079 echo $ECHO_N "(cached) $ECHO_C" >&6 4080 else 4081 if test -z "$LD"; then 4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4083 for ac_dir in $PATH; do 4084 IFS="$lt_save_ifs" 4085 test -z "$ac_dir" && ac_dir=. 4086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4087 lt_cv_path_LD="$ac_dir/$ac_prog" 4088 # Check to see if the program is GNU ld. I'd rather use --version, 4089 # but apparently some variants of GNU ld only accept -v. 4090 # Break only if it was the GNU/non-GNU ld that we prefer. 4091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4092 *GNU* | *'with BFD'*) 4093 test "$with_gnu_ld" != no && break 4094 ;; 4095 *) 4096 test "$with_gnu_ld" != yes && break 4097 ;; 4098 esac 4099 fi 4100 done 4101 IFS="$lt_save_ifs" 4102 else 4103 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4104 fi 4105 fi 4106 4107 LD="$lt_cv_path_LD" 4108 if test -n "$LD"; then 4109 { echo "$as_me:$LINENO: result: $LD" >&5 4110 echo "${ECHO_T}$LD" >&6; } 4111 else 4112 { echo "$as_me:$LINENO: result: no" >&5 4113 echo "${ECHO_T}no" >&6; } 4114 fi 4115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4117 { (exit 1); exit 1; }; } 4118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4120 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4121 echo $ECHO_N "(cached) $ECHO_C" >&6 4122 else 4123 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4124 case `$LD -v 2>&1 </dev/null` in 4125 *GNU* | *'with BFD'*) 4126 lt_cv_prog_gnu_ld=yes 4127 ;; 4128 *) 4129 lt_cv_prog_gnu_ld=no 4130 ;; 4131 esac 4132 fi 4133 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4134 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4135 with_gnu_ld=$lt_cv_prog_gnu_ld 4136 4137 4138 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4139 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4140 if test "${lt_cv_ld_reload_flag+set}" = set; then 4141 echo $ECHO_N "(cached) $ECHO_C" >&6 4142 else 4143 lt_cv_ld_reload_flag='-r' 4144 fi 4145 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4146 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4147 reload_flag=$lt_cv_ld_reload_flag 4148 case $reload_flag in 4149 "" | " "*) ;; 4150 *) reload_flag=" $reload_flag" ;; 4151 esac 4152 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4153 case $host_os in 4154 darwin*) 4155 if test "$GCC" = yes; then 4156 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4157 else 4158 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4159 fi 4160 ;; 4161 esac 4162 4163 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4164 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4165 if test "${lt_cv_path_NM+set}" = set; then 4166 echo $ECHO_N "(cached) $ECHO_C" >&6 4167 else 4168 if test -n "$NM"; then 4169 # Let the user override the test. 4170 lt_cv_path_NM="$NM" 4171 else 4172 lt_nm_to_check="${ac_tool_prefix}nm" 4173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4174 lt_nm_to_check="$lt_nm_to_check nm" 4175 fi 4176 for lt_tmp_nm in $lt_nm_to_check; do 4177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4178 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4179 IFS="$lt_save_ifs" 4180 test -z "$ac_dir" && ac_dir=. 4181 tmp_nm="$ac_dir/$lt_tmp_nm" 4182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4183 # Check to see if the nm accepts a BSD-compat flag. 4184 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4185 # nm: unknown option "B" ignored 4186 # Tru64's nm complains that /dev/null is an invalid object file 4187 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4188 */dev/null* | *'Invalid file or object type'*) 4189 lt_cv_path_NM="$tmp_nm -B" 4190 break 4191 ;; 4192 *) 4193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4194 */dev/null*) 4195 lt_cv_path_NM="$tmp_nm -p" 4196 break 4197 ;; 4198 *) 4199 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4200 continue # so that we can try to find one that supports BSD flags 4201 ;; 4202 esac 4203 ;; 4204 esac 4205 fi 4206 done 4207 IFS="$lt_save_ifs" 4208 done 4209 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4210 fi 4211 fi 4212 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4213 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4214 NM="$lt_cv_path_NM" 4215 4216 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 4217 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4218 LN_S=$as_ln_s 4219 if test "$LN_S" = "ln -s"; then 4220 { echo "$as_me:$LINENO: result: yes" >&5 4221 echo "${ECHO_T}yes" >&6; } 4222 else 4223 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4224 echo "${ECHO_T}no, using $LN_S" >&6; } 4225 fi 4226 4227 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4228 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4229 if test "${lt_cv_deplibs_check_method+set}" = set; then 4230 echo $ECHO_N "(cached) $ECHO_C" >&6 4231 else 4232 lt_cv_file_magic_cmd='$MAGIC_CMD' 4233 lt_cv_file_magic_test_file= 4234 lt_cv_deplibs_check_method='unknown' 4235 # Need to set the preceding variable on all platforms that support 4236 # interlibrary dependencies. 4237 # 'none' -- dependencies not supported. 4238 # `unknown' -- same as none, but documents that we really don't know. 4239 # 'pass_all' -- all dependencies passed with no checks. 4240 # 'test_compile' -- check by making test program. 4241 # 'file_magic [[regex]]' -- check by looking for files in library path 4242 # which responds to the $file_magic_cmd with a given extended regex. 4243 # If you have `file' or equivalent on your system and you're not sure 4244 # whether `pass_all' will *always* work, you probably want this one. 4245 4246 case $host_os in 4247 aix4* | aix5*) 4248 lt_cv_deplibs_check_method=pass_all 4249 ;; 4250 4251 beos*) 4252 lt_cv_deplibs_check_method=pass_all 4253 ;; 4254 4255 bsdi[45]*) 4256 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4257 lt_cv_file_magic_cmd='/usr/bin/file -L' 4258 lt_cv_file_magic_test_file=/shlib/libc.so 4259 ;; 4260 4261 cygwin*) 4262 # func_win32_libid is a shell function defined in ltmain.sh 4263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4264 lt_cv_file_magic_cmd='func_win32_libid' 4265 ;; 4266 4267 mingw* | pw32*) 4268 # Base MSYS/MinGW do not provide the 'file' command needed by 4269 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4270 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4271 lt_cv_file_magic_cmd='$OBJDUMP -f' 4272 ;; 4273 4274 darwin* | rhapsody*) 4275 lt_cv_deplibs_check_method=pass_all 4276 ;; 4277 4278 freebsd* | kfreebsd*-gnu | dragonfly*) 4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4280 case $host_cpu in 4281 i*86 ) 4282 # Not sure whether the presence of OpenBSD here was a mistake. 4283 # Let's accept both of them until this is cleared up. 4284 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4285 lt_cv_file_magic_cmd=/usr/bin/file 4286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4287 ;; 4288 esac 4289 else 4290 lt_cv_deplibs_check_method=pass_all 4291 fi 4292 ;; 4293 4294 gnu*) 4295 lt_cv_deplibs_check_method=pass_all 4296 ;; 4297 4298 hpux10.20* | hpux11*) 4299 lt_cv_file_magic_cmd=/usr/bin/file 4300 case $host_cpu in 4301 ia64*) 4302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4303 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4304 ;; 4305 hppa*64*) 4306 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]' 4307 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4308 ;; 4309 *) 4310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4311 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4312 ;; 4313 esac 4314 ;; 4315 4316 interix3*) 4317 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4319 ;; 4320 4321 irix5* | irix6* | nonstopux*) 4322 case $LD in 4323 *-32|*"-32 ") libmagic=32-bit;; 4324 *-n32|*"-n32 ") libmagic=N32;; 4325 *-64|*"-64 ") libmagic=64-bit;; 4326 *) libmagic=never-match;; 4327 esac 4328 lt_cv_deplibs_check_method=pass_all 4329 ;; 4330 4331 # This must be Linux ELF. 4332 linux*) 4333 lt_cv_deplibs_check_method=pass_all 4334 ;; 4335 4336 netbsd*) 4337 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4339 else 4340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4341 fi 4342 ;; 4343 4344 newos6*) 4345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4346 lt_cv_file_magic_cmd=/usr/bin/file 4347 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4348 ;; 4349 4350 nto-qnx*) 4351 lt_cv_deplibs_check_method=unknown 4352 ;; 4353 4354 openbsd*) 4355 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4357 else 4358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4359 fi 4360 ;; 4361 4362 osf3* | osf4* | osf5*) 4363 lt_cv_deplibs_check_method=pass_all 4364 ;; 4365 4366 solaris*) 4367 lt_cv_deplibs_check_method=pass_all 4368 ;; 4369 4370 sysv4 | sysv4.3*) 4371 case $host_vendor in 4372 motorola) 4373 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]' 4374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4375 ;; 4376 ncr) 4377 lt_cv_deplibs_check_method=pass_all 4378 ;; 4379 sequent) 4380 lt_cv_file_magic_cmd='/bin/file' 4381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4382 ;; 4383 sni) 4384 lt_cv_file_magic_cmd='/bin/file' 4385 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4386 lt_cv_file_magic_test_file=/lib/libc.so 4387 ;; 4388 siemens) 4389 lt_cv_deplibs_check_method=pass_all 4390 ;; 4391 pc) 4392 lt_cv_deplibs_check_method=pass_all 4393 ;; 4394 esac 4395 ;; 4396 4397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4398 lt_cv_deplibs_check_method=pass_all 4399 ;; 4400 esac 4401 4402 fi 4403 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4404 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4405 file_magic_cmd=$lt_cv_file_magic_cmd 4406 deplibs_check_method=$lt_cv_deplibs_check_method 4407 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4408 4409 4410 # If no C compiler was specified, use CC. 4411 LTCC=${LTCC-"$CC"} 4412 4413 # If no C compiler flags were specified, use CFLAGS. 4414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4415 4416 # Allow CC to be a program name with arguments. 4417 compiler=$CC 4418 4419 # Check whether --enable-libtool-lock was given. 4420 if test "${enable_libtool_lock+set}" = set; then 4421 enableval=$enable_libtool_lock; 4422 fi 4423 4424 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4425 4426 # Some flags need to be propagated to the compiler or linker for good 4427 # libtool support. 4428 case $host in 4429 ia64-*-hpux*) 4430 # Find out which ABI we are using. 4431 echo 'int i;' > conftest.$ac_ext 4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4433 (eval $ac_compile) 2>&5 4434 ac_status=$? 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); }; then 4437 case `/usr/bin/file conftest.$ac_objext` in 4438 *ELF-32*) 4439 HPUX_IA64_MODE="32" 4440 ;; 4441 *ELF-64*) 4442 HPUX_IA64_MODE="64" 4443 ;; 4444 esac 4445 fi 4446 rm -rf conftest* 4447 ;; 4448 *-*-irix6*) 4449 # Find out which ABI we are using. 4450 echo '#line 4450 "configure"' > conftest.$ac_ext 4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4452 (eval $ac_compile) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; then 4456 if test "$lt_cv_prog_gnu_ld" = yes; then 4457 case `/usr/bin/file conftest.$ac_objext` in 4458 *32-bit*) 4459 LD="${LD-ld} -melf32bsmip" 4460 ;; 4461 *N32*) 4462 LD="${LD-ld} -melf32bmipn32" 4463 ;; 4464 *64-bit*) 4465 LD="${LD-ld} -melf64bmip" 4466 ;; 4467 esac 4468 else 4469 case `/usr/bin/file conftest.$ac_objext` in 4470 *32-bit*) 4471 LD="${LD-ld} -32" 4472 ;; 4473 *N32*) 4474 LD="${LD-ld} -n32" 4475 ;; 4476 *64-bit*) 4477 LD="${LD-ld} -64" 4478 ;; 4479 esac 4480 fi 4481 fi 4482 rm -rf conftest* 4483 ;; 4484 4485 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4486 # Find out which ABI we are using. 4487 echo 'int i;' > conftest.$ac_ext 4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4489 (eval $ac_compile) 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); }; then 4493 case `/usr/bin/file conftest.o` in 4494 *32-bit*) 4495 case $host in 4496 x86_64-*linux*) 4497 LD="${LD-ld} -m elf_i386" 4498 ;; 4499 ppc64-*linux*|powerpc64-*linux*) 4500 LD="${LD-ld} -m elf32ppclinux" 4501 ;; 4502 s390x-*linux*) 4503 LD="${LD-ld} -m elf_s390" 4504 ;; 4505 sparc64-*linux*) 4506 LD="${LD-ld} -m elf32_sparc" 4507 ;; 4508 esac 4509 ;; 4510 *64-bit*) 4511 case $host in 4512 x86_64-*linux*) 4513 LD="${LD-ld} -m elf_x86_64" 4514 ;; 4515 ppc*-*linux*|powerpc*-*linux*) 4516 LD="${LD-ld} -m elf64ppc" 4517 ;; 4518 s390*-*linux*) 4519 LD="${LD-ld} -m elf64_s390" 4520 ;; 4521 sparc*-*linux*) 4522 LD="${LD-ld} -m elf64_sparc" 4523 ;; 4524 esac 4525 ;; 4526 esac 4527 fi 4528 rm -rf conftest* 4529 ;; 4530 4531 *-*-sco3.2v5*) 4532 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4533 SAVE_CFLAGS="$CFLAGS" 4534 CFLAGS="$CFLAGS -belf" 4535 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4536 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4537 if test "${lt_cv_cc_needs_belf+set}" = set; then 4538 echo $ECHO_N "(cached) $ECHO_C" >&6 4539 else 4540 ac_ext=c 4541 ac_cpp='$CPP $CPPFLAGS' 4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4545 4546 cat >conftest.$ac_ext <<_ACEOF 4547 /* confdefs.h. */ 4548 _ACEOF 4549 cat confdefs.h >>conftest.$ac_ext 4550 cat >>conftest.$ac_ext <<_ACEOF 4551 /* end confdefs.h. */ 4552 4553 int 4554 main () 4555 { 4556 4557 ; 4558 return 0; 4559 } 4560 _ACEOF 4561 rm -f conftest.$ac_objext conftest$ac_exeext 4562 if { (ac_try="$ac_link" 4563 case "(($ac_try" in 4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4565 *) ac_try_echo=$ac_try;; 4566 esac 4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4568 (eval "$ac_link") 2>conftest.er1 4569 ac_status=$? 4570 grep -v '^ *+' conftest.er1 >conftest.err 4571 rm -f conftest.er1 4572 cat conftest.err >&5 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); } && { 4575 test -z "$ac_c_werror_flag" || 4576 test ! -s conftest.err 4577 } && test -s conftest$ac_exeext && 4578 $as_test_x conftest$ac_exeext; then 4579 lt_cv_cc_needs_belf=yes 4580 else 4581 echo "$as_me: failed program was:" >&5 4582 sed 's/^/| /' conftest.$ac_ext >&5 4583 4584 lt_cv_cc_needs_belf=no 4585 fi 4586 4587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4588 conftest$ac_exeext conftest.$ac_ext 4589 ac_ext=c 4590 ac_cpp='$CPP $CPPFLAGS' 4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4594 4595 fi 4596 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4597 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4600 CFLAGS="$SAVE_CFLAGS" 4601 fi 4602 ;; 4603 sparc*-*solaris*) 4604 # Find out which ABI we are using. 4605 echo 'int i;' > conftest.$ac_ext 4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4607 (eval $ac_compile) 2>&5 4608 ac_status=$? 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); }; then 4611 case `/usr/bin/file conftest.o` in 4612 *64-bit*) 4613 case $lt_cv_prog_gnu_ld in 4614 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4615 *) LD="${LD-ld} -64" ;; 4616 esac 4617 ;; 4618 esac 4619 fi 4620 rm -rf conftest* 4621 ;; 4622 4623 *-*-cygwin* | *-*-mingw* | *-*-pw32*) 4624 if test -n "$ac_tool_prefix"; then 4625 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4626 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4629 if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4630 echo $ECHO_N "(cached) $ECHO_C" >&6 4631 else 4632 if test -n "$DLLTOOL"; then 4633 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4634 else 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636 for as_dir in $PATH 4637 do 4638 IFS=$as_save_IFS 4639 test -z "$as_dir" && as_dir=. 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4642 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4644 break 2 4645 fi 4646 done 4647 done 4648 IFS=$as_save_IFS 4649 4650 fi 4651 fi 4652 DLLTOOL=$ac_cv_prog_DLLTOOL 4653 if test -n "$DLLTOOL"; then 4654 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4655 echo "${ECHO_T}$DLLTOOL" >&6; } 4656 else 4657 { echo "$as_me:$LINENO: result: no" >&5 4658 echo "${ECHO_T}no" >&6; } 4659 fi 4660 4661 4662 fi 4663 if test -z "$ac_cv_prog_DLLTOOL"; then 4664 ac_ct_DLLTOOL=$DLLTOOL 4665 # Extract the first word of "dlltool", so it can be a program name with args. 4666 set dummy dlltool; ac_word=$2 4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4669 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4670 echo $ECHO_N "(cached) $ECHO_C" >&6 4671 else 4672 if test -n "$ac_ct_DLLTOOL"; then 4673 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4674 else 4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676 for as_dir in $PATH 4677 do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_exec_ext in '' $ac_executable_extensions; do 4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4682 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4684 break 2 4685 fi 4686 done 4687 done 4688 IFS=$as_save_IFS 4689 4690 fi 4691 fi 4692 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4693 if test -n "$ac_ct_DLLTOOL"; then 4694 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4695 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 4696 else 4697 { echo "$as_me:$LINENO: result: no" >&5 4698 echo "${ECHO_T}no" >&6; } 4699 fi 4700 4701 if test "x$ac_ct_DLLTOOL" = x; then 4702 DLLTOOL="false" 4703 else 4704 case $cross_compiling:$ac_tool_warned in 4705 yes:) 4706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4707 whose name does not start with the host triplet. If you think this 4708 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 4709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4710 whose name does not start with the host triplet. If you think this 4711 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 4712 ac_tool_warned=yes ;; 4713 esac 4714 DLLTOOL=$ac_ct_DLLTOOL 4715 fi 4716 else 4717 DLLTOOL="$ac_cv_prog_DLLTOOL" 4718 fi 4719 4720 if test -n "$ac_tool_prefix"; then 4721 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4722 set dummy ${ac_tool_prefix}as; ac_word=$2 4723 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4725 if test "${ac_cv_prog_AS+set}" = set; then 4726 echo $ECHO_N "(cached) $ECHO_C" >&6 4727 else 4728 if test -n "$AS"; then 4729 ac_cv_prog_AS="$AS" # Let the user override the test. 4730 else 4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732 for as_dir in $PATH 4733 do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4738 ac_cv_prog_AS="${ac_tool_prefix}as" 4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4740 break 2 4741 fi 4742 done 4743 done 4744 IFS=$as_save_IFS 4745 4746 fi 4747 fi 4748 AS=$ac_cv_prog_AS 4749 if test -n "$AS"; then 4750 { echo "$as_me:$LINENO: result: $AS" >&5 4751 echo "${ECHO_T}$AS" >&6; } 4752 else 4753 { echo "$as_me:$LINENO: result: no" >&5 4754 echo "${ECHO_T}no" >&6; } 4755 fi 4756 4757 4758 fi 4759 if test -z "$ac_cv_prog_AS"; then 4760 ac_ct_AS=$AS 4761 # Extract the first word of "as", so it can be a program name with args. 4762 set dummy as; ac_word=$2 4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4765 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767 else 4768 if test -n "$ac_ct_AS"; then 4769 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4770 else 4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4772 for as_dir in $PATH 4773 do 4774 IFS=$as_save_IFS 4775 test -z "$as_dir" && as_dir=. 4776 for ac_exec_ext in '' $ac_executable_extensions; do 4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4778 ac_cv_prog_ac_ct_AS="as" 4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4780 break 2 4781 fi 4782 done 4783 done 4784 IFS=$as_save_IFS 4785 4786 fi 4787 fi 4788 ac_ct_AS=$ac_cv_prog_ac_ct_AS 4789 if test -n "$ac_ct_AS"; then 4790 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4791 echo "${ECHO_T}$ac_ct_AS" >&6; } 4792 else 4793 { echo "$as_me:$LINENO: result: no" >&5 4794 echo "${ECHO_T}no" >&6; } 4795 fi 4796 4797 if test "x$ac_ct_AS" = x; then 4798 AS="false" 4799 else 4800 case $cross_compiling:$ac_tool_warned in 4801 yes:) 4802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4803 whose name does not start with the host triplet. If you think this 4804 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 4805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4806 whose name does not start with the host triplet. If you think this 4807 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 4808 ac_tool_warned=yes ;; 4809 esac 4810 AS=$ac_ct_AS 4811 fi 4812 else 4813 AS="$ac_cv_prog_AS" 4814 fi 4815 4816 if test -n "$ac_tool_prefix"; then 4817 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4818 set dummy ${ac_tool_prefix}objdump; ac_word=$2 4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4821 if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4822 echo $ECHO_N "(cached) $ECHO_C" >&6 4823 else 4824 if test -n "$OBJDUMP"; then 4825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4826 else 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828 for as_dir in $PATH 4829 do 4830 IFS=$as_save_IFS 4831 test -z "$as_dir" && as_dir=. 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4834 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4836 break 2 4837 fi 4838 done 4839 done 4840 IFS=$as_save_IFS 4841 4842 fi 4843 fi 4844 OBJDUMP=$ac_cv_prog_OBJDUMP 4845 if test -n "$OBJDUMP"; then 4846 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4847 echo "${ECHO_T}$OBJDUMP" >&6; } 4848 else 4849 { echo "$as_me:$LINENO: result: no" >&5 4850 echo "${ECHO_T}no" >&6; } 4851 fi 4852 4853 4854 fi 4855 if test -z "$ac_cv_prog_OBJDUMP"; then 4856 ac_ct_OBJDUMP=$OBJDUMP 4857 # Extract the first word of "objdump", so it can be a program name with args. 4858 set dummy objdump; ac_word=$2 4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4861 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4863 else 4864 if test -n "$ac_ct_OBJDUMP"; then 4865 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4866 else 4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868 for as_dir in $PATH 4869 do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4874 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4876 break 2 4877 fi 4878 done 4879 done 4880 IFS=$as_save_IFS 4881 4882 fi 4883 fi 4884 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4885 if test -n "$ac_ct_OBJDUMP"; then 4886 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4887 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 4888 else 4889 { echo "$as_me:$LINENO: result: no" >&5 4890 echo "${ECHO_T}no" >&6; } 4891 fi 4892 4893 if test "x$ac_ct_OBJDUMP" = x; then 4894 OBJDUMP="false" 4895 else 4896 case $cross_compiling:$ac_tool_warned in 4897 yes:) 4898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4899 whose name does not start with the host triplet. If you think this 4900 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 4901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4902 whose name does not start with the host triplet. If you think this 4903 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 4904 ac_tool_warned=yes ;; 4905 esac 4906 OBJDUMP=$ac_ct_OBJDUMP 4907 fi 4908 else 4909 OBJDUMP="$ac_cv_prog_OBJDUMP" 4910 fi 4911 4912 ;; 4913 4914 esac 4915 4916 need_locks="$enable_libtool_lock" 4917 4918 4919 ac_ext=c 4920 ac_cpp='$CPP $CPPFLAGS' 4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4924 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4926 # On Suns, sometimes $CPP names a directory. 4927 if test -n "$CPP" && test -d "$CPP"; then 4928 CPP= 4929 fi 4930 if test -z "$CPP"; then 4931 if test "${ac_cv_prog_CPP+set}" = set; then 4932 echo $ECHO_N "(cached) $ECHO_C" >&6 4933 else 4934 # Double quotes because CPP needs to be expanded 4935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4936 do 4937 ac_preproc_ok=false 4938 for ac_c_preproc_warn_flag in '' yes 4939 do 4940 # Use a header file that comes with gcc, so configuring glibc 4941 # with a fresh cross-compiler works. 4942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4943 # <limits.h> exists even on freestanding compilers. 4944 # On the NeXT, cc -E runs the code through the compiler's parser, 4945 # not just through cpp. "Syntax error" is here to catch this case. 4946 cat >conftest.$ac_ext <<_ACEOF 4947 /* confdefs.h. */ 4948 _ACEOF 4949 cat confdefs.h >>conftest.$ac_ext 4950 cat >>conftest.$ac_ext <<_ACEOF 4951 /* end confdefs.h. */ 4952 #ifdef __STDC__ 4953 # include <limits.h> 4954 #else 4955 # include <assert.h> 4956 #endif 4957 Syntax error 4958 _ACEOF 4959 if { (ac_try="$ac_cpp conftest.$ac_ext" 4960 case "(($ac_try" in 4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4962 *) ac_try_echo=$ac_try;; 4963 esac 4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4966 ac_status=$? 4967 grep -v '^ *+' conftest.er1 >conftest.err 4968 rm -f conftest.er1 4969 cat conftest.err >&5 4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4971 (exit $ac_status); } >/dev/null && { 4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4973 test ! -s conftest.err 4974 }; then 4975 : 4976 else 4977 echo "$as_me: failed program was:" >&5 4978 sed 's/^/| /' conftest.$ac_ext >&5 4979 4980 # Broken: fails on valid input. 4981 continue 4982 fi 4983 4984 rm -f conftest.err conftest.$ac_ext 4985 4986 # OK, works on sane cases. Now check whether nonexistent headers 4987 # can be detected and how. 4988 cat >conftest.$ac_ext <<_ACEOF 4989 /* confdefs.h. */ 4990 _ACEOF 4991 cat confdefs.h >>conftest.$ac_ext 4992 cat >>conftest.$ac_ext <<_ACEOF 4993 /* end confdefs.h. */ 4994 #include <ac_nonexistent.h> 4995 _ACEOF 4996 if { (ac_try="$ac_cpp conftest.$ac_ext" 4997 case "(($ac_try" in 4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4999 *) ac_try_echo=$ac_try;; 5000 esac 5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5003 ac_status=$? 5004 grep -v '^ *+' conftest.er1 >conftest.err 5005 rm -f conftest.er1 5006 cat conftest.err >&5 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); } >/dev/null && { 5009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5010 test ! -s conftest.err 5011 }; then 5012 # Broken: success on invalid input. 5013 continue 5014 else 5015 echo "$as_me: failed program was:" >&5 5016 sed 's/^/| /' conftest.$ac_ext >&5 5017 5018 # Passes both tests. 5019 ac_preproc_ok=: 5020 break 5021 fi 5022 5023 rm -f conftest.err conftest.$ac_ext 5024 5025 done 5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5027 rm -f conftest.err conftest.$ac_ext 5028 if $ac_preproc_ok; then 5029 break 5030 fi 5031 5032 done 5033 ac_cv_prog_CPP=$CPP 5034 5035 fi 5036 CPP=$ac_cv_prog_CPP 5037 else 5038 ac_cv_prog_CPP=$CPP 5039 fi 5040 { echo "$as_me:$LINENO: result: $CPP" >&5 5041 echo "${ECHO_T}$CPP" >&6; } 5042 ac_preproc_ok=false 5043 for ac_c_preproc_warn_flag in '' yes 5044 do 5045 # Use a header file that comes with gcc, so configuring glibc 5046 # with a fresh cross-compiler works. 5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5048 # <limits.h> exists even on freestanding compilers. 5049 # On the NeXT, cc -E runs the code through the compiler's parser, 5050 # not just through cpp. "Syntax error" is here to catch this case. 5051 cat >conftest.$ac_ext <<_ACEOF 5052 /* confdefs.h. */ 5053 _ACEOF 5054 cat confdefs.h >>conftest.$ac_ext 5055 cat >>conftest.$ac_ext <<_ACEOF 5056 /* end confdefs.h. */ 5057 #ifdef __STDC__ 5058 # include <limits.h> 5059 #else 5060 # include <assert.h> 5061 #endif 5062 Syntax error 5063 _ACEOF 5064 if { (ac_try="$ac_cpp conftest.$ac_ext" 5065 case "(($ac_try" in 5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5067 *) ac_try_echo=$ac_try;; 5068 esac 5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5071 ac_status=$? 5072 grep -v '^ *+' conftest.er1 >conftest.err 5073 rm -f conftest.er1 5074 cat conftest.err >&5 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); } >/dev/null && { 5077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5078 test ! -s conftest.err 5079 }; then 5080 : 5081 else 5082 echo "$as_me: failed program was:" >&5 5083 sed 's/^/| /' conftest.$ac_ext >&5 5084 5085 # Broken: fails on valid input. 5086 continue 5087 fi 5088 5089 rm -f conftest.err conftest.$ac_ext 5090 5091 # OK, works on sane cases. Now check whether nonexistent headers 5092 # can be detected and how. 5093 cat >conftest.$ac_ext <<_ACEOF 5094 /* confdefs.h. */ 5095 _ACEOF 5096 cat confdefs.h >>conftest.$ac_ext 5097 cat >>conftest.$ac_ext <<_ACEOF 5098 /* end confdefs.h. */ 5099 #include <ac_nonexistent.h> 5100 _ACEOF 5101 if { (ac_try="$ac_cpp conftest.$ac_ext" 5102 case "(($ac_try" in 5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5104 *) ac_try_echo=$ac_try;; 5105 esac 5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5108 ac_status=$? 5109 grep -v '^ *+' conftest.er1 >conftest.err 5110 rm -f conftest.er1 5111 cat conftest.err >&5 5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5113 (exit $ac_status); } >/dev/null && { 5114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5115 test ! -s conftest.err 5116 }; then 5117 # Broken: success on invalid input. 5118 continue 5119 else 5120 echo "$as_me: failed program was:" >&5 5121 sed 's/^/| /' conftest.$ac_ext >&5 5122 5123 # Passes both tests. 5124 ac_preproc_ok=: 5125 break 5126 fi 5127 5128 rm -f conftest.err conftest.$ac_ext 5129 5130 done 5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5132 rm -f conftest.err conftest.$ac_ext 5133 if $ac_preproc_ok; then 5134 : 5135 else 5136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5137 See \`config.log' for more details." >&5 5138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5139 See \`config.log' for more details." >&2;} 5140 { (exit 1); exit 1; }; } 5141 fi 5142 5143 ac_ext=c 5144 ac_cpp='$CPP $CPPFLAGS' 5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5148 5149 5150 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5152 if test "${ac_cv_header_stdc+set}" = set; then 5153 echo $ECHO_N "(cached) $ECHO_C" >&6 5154 else 5155 cat >conftest.$ac_ext <<_ACEOF 5156 /* confdefs.h. */ 5157 _ACEOF 5158 cat confdefs.h >>conftest.$ac_ext 5159 cat >>conftest.$ac_ext <<_ACEOF 5160 /* end confdefs.h. */ 5161 #include <stdlib.h> 5162 #include <stdarg.h> 5163 #include <string.h> 5164 #include <float.h> 5165 5166 int 5167 main () 5168 { 5169 5170 ; 5171 return 0; 5172 } 5173 _ACEOF 5174 rm -f conftest.$ac_objext 5175 if { (ac_try="$ac_compile" 5176 case "(($ac_try" in 5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5178 *) ac_try_echo=$ac_try;; 5179 esac 5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5181 (eval "$ac_compile") 2>conftest.er1 5182 ac_status=$? 5183 grep -v '^ *+' conftest.er1 >conftest.err 5184 rm -f conftest.er1 5185 cat conftest.err >&5 5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5187 (exit $ac_status); } && { 5188 test -z "$ac_c_werror_flag" || 5189 test ! -s conftest.err 5190 } && test -s conftest.$ac_objext; then 5191 ac_cv_header_stdc=yes 5192 else 5193 echo "$as_me: failed program was:" >&5 5194 sed 's/^/| /' conftest.$ac_ext >&5 5195 5196 ac_cv_header_stdc=no 5197 fi 5198 5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5200 5201 if test $ac_cv_header_stdc = yes; then 5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5203 cat >conftest.$ac_ext <<_ACEOF 5204 /* confdefs.h. */ 5205 _ACEOF 5206 cat confdefs.h >>conftest.$ac_ext 5207 cat >>conftest.$ac_ext <<_ACEOF 5208 /* end confdefs.h. */ 5209 #include <string.h> 5210 5211 _ACEOF 5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5213 $EGREP "memchr" >/dev/null 2>&1; then 5214 : 5215 else 5216 ac_cv_header_stdc=no 5217 fi 5218 rm -f conftest* 5219 5220 fi 5221 5222 if test $ac_cv_header_stdc = yes; then 5223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5224 cat >conftest.$ac_ext <<_ACEOF 5225 /* confdefs.h. */ 5226 _ACEOF 5227 cat confdefs.h >>conftest.$ac_ext 5228 cat >>conftest.$ac_ext <<_ACEOF 5229 /* end confdefs.h. */ 5230 #include <stdlib.h> 5231 5232 _ACEOF 5233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5234 $EGREP "free" >/dev/null 2>&1; then 5235 : 5236 else 5237 ac_cv_header_stdc=no 5238 fi 5239 rm -f conftest* 5240 5241 fi 5242 5243 if test $ac_cv_header_stdc = yes; then 5244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5245 if test "$cross_compiling" = yes; then 5246 : 5247 else 5248 cat >conftest.$ac_ext <<_ACEOF 5249 /* confdefs.h. */ 5250 _ACEOF 5251 cat confdefs.h >>conftest.$ac_ext 5252 cat >>conftest.$ac_ext <<_ACEOF 5253 /* end confdefs.h. */ 5254 #include <ctype.h> 5255 #include <stdlib.h> 5256 #if ((' ' & 0x0FF) == 0x020) 5257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5259 #else 5260 # define ISLOWER(c) \ 5261 (('a' <= (c) && (c) <= 'i') \ 5262 || ('j' <= (c) && (c) <= 'r') \ 5263 || ('s' <= (c) && (c) <= 'z')) 5264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5265 #endif 5266 5267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5268 int 5269 main () 5270 { 5271 int i; 5272 for (i = 0; i < 256; i++) 5273 if (XOR (islower (i), ISLOWER (i)) 5274 || toupper (i) != TOUPPER (i)) 5275 return 2; 5276 return 0; 5277 } 5278 _ACEOF 5279 rm -f conftest$ac_exeext 5280 if { (ac_try="$ac_link" 5281 case "(($ac_try" in 5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5283 *) ac_try_echo=$ac_try;; 5284 esac 5285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5286 (eval "$ac_link") 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5290 { (case "(($ac_try" in 5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5292 *) ac_try_echo=$ac_try;; 5293 esac 5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5295 (eval "$ac_try") 2>&5 5296 ac_status=$? 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); }; }; then 5299 : 5300 else 5301 echo "$as_me: program exited with status $ac_status" >&5 5302 echo "$as_me: failed program was:" >&5 5303 sed 's/^/| /' conftest.$ac_ext >&5 5304 5305 ( exit $ac_status ) 5306 ac_cv_header_stdc=no 5307 fi 5308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5309 fi 5310 5311 5312 fi 5313 fi 5314 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5315 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5316 if test $ac_cv_header_stdc = yes; then 5317 5318 cat >>confdefs.h <<\_ACEOF 5319 #define STDC_HEADERS 1 5320 _ACEOF 5321 5322 fi 5323 5324 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5335 inttypes.h stdint.h unistd.h 5336 do 5337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5338 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5341 echo $ECHO_N "(cached) $ECHO_C" >&6 5342 else 5343 cat >conftest.$ac_ext <<_ACEOF 5344 /* confdefs.h. */ 5345 _ACEOF 5346 cat confdefs.h >>conftest.$ac_ext 5347 cat >>conftest.$ac_ext <<_ACEOF 5348 /* end confdefs.h. */ 5349 $ac_includes_default 5350 5351 #include <$ac_header> 5352 _ACEOF 5353 rm -f conftest.$ac_objext 5354 if { (ac_try="$ac_compile" 5355 case "(($ac_try" in 5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5357 *) ac_try_echo=$ac_try;; 5358 esac 5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5360 (eval "$ac_compile") 2>conftest.er1 5361 ac_status=$? 5362 grep -v '^ *+' conftest.er1 >conftest.err 5363 rm -f conftest.er1 5364 cat conftest.err >&5 5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); } && { 5367 test -z "$ac_c_werror_flag" || 5368 test ! -s conftest.err 5369 } && test -s conftest.$ac_objext; then 5370 eval "$as_ac_Header=yes" 5371 else 5372 echo "$as_me: failed program was:" >&5 5373 sed 's/^/| /' conftest.$ac_ext >&5 5374 5375 eval "$as_ac_Header=no" 5376 fi 5377 5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5379 fi 5380 ac_res=`eval echo '${'$as_ac_Header'}'` 5381 { echo "$as_me:$LINENO: result: $ac_res" >&5 5382 echo "${ECHO_T}$ac_res" >&6; } 5383 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5384 cat >>confdefs.h <<_ACEOF 5385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5386 _ACEOF 5387 5388 fi 5389 5390 done 5391 5392 5393 5394 for ac_header in dlfcn.h 5395 do 5396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5398 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5401 echo $ECHO_N "(cached) $ECHO_C" >&6 5402 fi 5403 ac_res=`eval echo '${'$as_ac_Header'}'` 5404 { echo "$as_me:$LINENO: result: $ac_res" >&5 5405 echo "${ECHO_T}$ac_res" >&6; } 5406 else 5407 # Is the header compilable? 5408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 5409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5410 cat >conftest.$ac_ext <<_ACEOF 5411 /* confdefs.h. */ 5412 _ACEOF 5413 cat confdefs.h >>conftest.$ac_ext 5414 cat >>conftest.$ac_ext <<_ACEOF 5415 /* end confdefs.h. */ 5416 $ac_includes_default 5417 #include <$ac_header> 5418 _ACEOF 5419 rm -f conftest.$ac_objext 5420 if { (ac_try="$ac_compile" 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_compile") 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); } && { 5433 test -z "$ac_c_werror_flag" || 5434 test ! -s conftest.err 5435 } && test -s conftest.$ac_objext; then 5436 ac_header_compiler=yes 5437 else 5438 echo "$as_me: failed program was:" >&5 5439 sed 's/^/| /' conftest.$ac_ext >&5 5440 5441 ac_header_compiler=no 5442 fi 5443 5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5446 echo "${ECHO_T}$ac_header_compiler" >&6; } 5447 5448 # Is the header present? 5449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 5450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5451 cat >conftest.$ac_ext <<_ACEOF 5452 /* confdefs.h. */ 5453 _ACEOF 5454 cat confdefs.h >>conftest.$ac_ext 5455 cat >>conftest.$ac_ext <<_ACEOF 5456 /* end confdefs.h. */ 5457 #include <$ac_header> 5458 _ACEOF 5459 if { (ac_try="$ac_cpp conftest.$ac_ext" 5460 case "(($ac_try" in 5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5462 *) ac_try_echo=$ac_try;; 5463 esac 5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5466 ac_status=$? 5467 grep -v '^ *+' conftest.er1 >conftest.err 5468 rm -f conftest.er1 5469 cat conftest.err >&5 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5471 (exit $ac_status); } >/dev/null && { 5472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5473 test ! -s conftest.err 5474 }; then 5475 ac_header_preproc=yes 5476 else 5477 echo "$as_me: failed program was:" >&5 5478 sed 's/^/| /' conftest.$ac_ext >&5 5479 5480 ac_header_preproc=no 5481 fi 5482 5483 rm -f conftest.err conftest.$ac_ext 5484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5485 echo "${ECHO_T}$ac_header_preproc" >&6; } 5486 5487 # So? What about this header? 5488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5489 yes:no: ) 5490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5494 ac_header_preproc=yes 5495 ;; 5496 no:yes:* ) 5497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5509 5510 ;; 5511 esac 5512 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5515 echo $ECHO_N "(cached) $ECHO_C" >&6 5516 else 5517 eval "$as_ac_Header=\$ac_header_preproc" 5518 fi 5519 ac_res=`eval echo '${'$as_ac_Header'}'` 5520 { echo "$as_me:$LINENO: result: $ac_res" >&5 5521 echo "${ECHO_T}$ac_res" >&6; } 5522 5523 fi 5524 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5525 cat >>confdefs.h <<_ACEOF 5526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5527 _ACEOF 5528 5529 fi 5530 5531 done 5532 5533 ac_ext=cpp 5534 ac_cpp='$CXXCPP $CPPFLAGS' 5535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5538 if test -z "$CXX"; then 5539 if test -n "$CCC"; then 5540 CXX=$CCC 5541 else 5542 if test -n "$ac_tool_prefix"; then 5543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5544 do 5545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5547 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5549 if test "${ac_cv_prog_CXX+set}" = set; then 5550 echo $ECHO_N "(cached) $ECHO_C" >&6 5551 else 5552 if test -n "$CXX"; then 5553 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5554 else 5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5556 for as_dir in $PATH 5557 do 5558 IFS=$as_save_IFS 5559 test -z "$as_dir" && as_dir=. 5560 for ac_exec_ext in '' $ac_executable_extensions; do 5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5562 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5564 break 2 5565 fi 5566 done 5567 done 5568 IFS=$as_save_IFS 5569 5570 fi 5571 fi 5572 CXX=$ac_cv_prog_CXX 5573 if test -n "$CXX"; then 5574 { echo "$as_me:$LINENO: result: $CXX" >&5 5575 echo "${ECHO_T}$CXX" >&6; } 5576 else 5577 { echo "$as_me:$LINENO: result: no" >&5 5578 echo "${ECHO_T}no" >&6; } 5579 fi 5580 5581 5582 test -n "$CXX" && break 5583 done 5584 fi 5585 if test -z "$CXX"; then 5586 ac_ct_CXX=$CXX 5587 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5588 do 5589 # Extract the first word of "$ac_prog", so it can be a program name with args. 5590 set dummy $ac_prog; ac_word=$2 5591 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5593 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5594 echo $ECHO_N "(cached) $ECHO_C" >&6 5595 else 5596 if test -n "$ac_ct_CXX"; then 5597 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5598 else 5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5600 for as_dir in $PATH 5601 do 5602 IFS=$as_save_IFS 5603 test -z "$as_dir" && as_dir=. 5604 for ac_exec_ext in '' $ac_executable_extensions; do 5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5606 ac_cv_prog_ac_ct_CXX="$ac_prog" 5607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5608 break 2 5609 fi 5610 done 5611 done 5612 IFS=$as_save_IFS 5613 5614 fi 5615 fi 5616 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5617 if test -n "$ac_ct_CXX"; then 5618 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5619 echo "${ECHO_T}$ac_ct_CXX" >&6; } 5620 else 5621 { echo "$as_me:$LINENO: result: no" >&5 5622 echo "${ECHO_T}no" >&6; } 5623 fi 5624 5625 5626 test -n "$ac_ct_CXX" && break 5627 done 5628 5629 if test "x$ac_ct_CXX" = x; then 5630 CXX="g++" 5631 else 5632 case $cross_compiling:$ac_tool_warned in 5633 yes:) 5634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5635 whose name does not start with the host triplet. If you think this 5636 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 5637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5638 whose name does not start with the host triplet. If you think this 5639 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 5640 ac_tool_warned=yes ;; 5641 esac 5642 CXX=$ac_ct_CXX 5643 fi 5644 fi 5645 5646 fi 5647 fi 5648 # Provide some information about the compiler. 5649 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5650 ac_compiler=`set X $ac_compile; echo $2` 5651 { (ac_try="$ac_compiler --version >&5" 5652 case "(($ac_try" in 5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5654 *) ac_try_echo=$ac_try;; 5655 esac 5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5657 (eval "$ac_compiler --version >&5") 2>&5 5658 ac_status=$? 5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5660 (exit $ac_status); } 5661 { (ac_try="$ac_compiler -v >&5" 5662 case "(($ac_try" in 5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5664 *) ac_try_echo=$ac_try;; 5665 esac 5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5667 (eval "$ac_compiler -v >&5") 2>&5 5668 ac_status=$? 5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5670 (exit $ac_status); } 5671 { (ac_try="$ac_compiler -V >&5" 5672 case "(($ac_try" in 5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5674 *) ac_try_echo=$ac_try;; 5675 esac 5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5677 (eval "$ac_compiler -V >&5") 2>&5 5678 ac_status=$? 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } 5681 5682 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5685 echo $ECHO_N "(cached) $ECHO_C" >&6 5686 else 5687 cat >conftest.$ac_ext <<_ACEOF 5688 /* confdefs.h. */ 5689 _ACEOF 5690 cat confdefs.h >>conftest.$ac_ext 5691 cat >>conftest.$ac_ext <<_ACEOF 5692 /* end confdefs.h. */ 5693 5694 int 5695 main () 5696 { 5697 #ifndef __GNUC__ 5698 choke me 5699 #endif 5700 5701 ; 5702 return 0; 5703 } 5704 _ACEOF 5705 rm -f conftest.$ac_objext 5706 if { (ac_try="$ac_compile" 5707 case "(($ac_try" in 5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5709 *) ac_try_echo=$ac_try;; 5710 esac 5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5712 (eval "$ac_compile") 2>conftest.er1 5713 ac_status=$? 5714 grep -v '^ *+' conftest.er1 >conftest.err 5715 rm -f conftest.er1 5716 cat conftest.err >&5 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } && { 5719 test -z "$ac_cxx_werror_flag" || 5720 test ! -s conftest.err 5721 } && test -s conftest.$ac_objext; then 5722 ac_compiler_gnu=yes 5723 else 5724 echo "$as_me: failed program was:" >&5 5725 sed 's/^/| /' conftest.$ac_ext >&5 5726 5727 ac_compiler_gnu=no 5728 fi 5729 5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5732 5733 fi 5734 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5735 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5736 GXX=`test $ac_compiler_gnu = yes && echo yes` 5737 ac_test_CXXFLAGS=${CXXFLAGS+set} 5738 ac_save_CXXFLAGS=$CXXFLAGS 5739 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5740 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5741 if test "${ac_cv_prog_cxx_g+set}" = set; then 5742 echo $ECHO_N "(cached) $ECHO_C" >&6 5743 else 5744 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5745 ac_cxx_werror_flag=yes 5746 ac_cv_prog_cxx_g=no 5747 CXXFLAGS="-g" 5748 cat >conftest.$ac_ext <<_ACEOF 5749 /* confdefs.h. */ 5750 _ACEOF 5751 cat confdefs.h >>conftest.$ac_ext 5752 cat >>conftest.$ac_ext <<_ACEOF 5753 /* end confdefs.h. */ 5754 5755 int 5756 main () 5757 { 5758 5759 ; 5760 return 0; 5761 } 5762 _ACEOF 5763 rm -f conftest.$ac_objext 5764 if { (ac_try="$ac_compile" 5765 case "(($ac_try" in 5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5767 *) ac_try_echo=$ac_try;; 5768 esac 5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5770 (eval "$ac_compile") 2>conftest.er1 5771 ac_status=$? 5772 grep -v '^ *+' conftest.er1 >conftest.err 5773 rm -f conftest.er1 5774 cat conftest.err >&5 5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5776 (exit $ac_status); } && { 5777 test -z "$ac_cxx_werror_flag" || 5778 test ! -s conftest.err 5779 } && test -s conftest.$ac_objext; then 5780 ac_cv_prog_cxx_g=yes 5781 else 5782 echo "$as_me: failed program was:" >&5 5783 sed 's/^/| /' conftest.$ac_ext >&5 5784 5785 CXXFLAGS="" 5786 cat >conftest.$ac_ext <<_ACEOF 5787 /* confdefs.h. */ 5788 _ACEOF 5789 cat confdefs.h >>conftest.$ac_ext 5790 cat >>conftest.$ac_ext <<_ACEOF 5791 /* end confdefs.h. */ 5792 5793 int 5794 main () 5795 { 5796 5797 ; 5798 return 0; 5799 } 5800 _ACEOF 5801 rm -f conftest.$ac_objext 5802 if { (ac_try="$ac_compile" 5803 case "(($ac_try" in 5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5805 *) ac_try_echo=$ac_try;; 5806 esac 5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5808 (eval "$ac_compile") 2>conftest.er1 5809 ac_status=$? 5810 grep -v '^ *+' conftest.er1 >conftest.err 5811 rm -f conftest.er1 5812 cat conftest.err >&5 5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5814 (exit $ac_status); } && { 5815 test -z "$ac_cxx_werror_flag" || 5816 test ! -s conftest.err 5817 } && test -s conftest.$ac_objext; then 5818 : 5819 else 5820 echo "$as_me: failed program was:" >&5 5821 sed 's/^/| /' conftest.$ac_ext >&5 5822 5823 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5824 CXXFLAGS="-g" 5825 cat >conftest.$ac_ext <<_ACEOF 5826 /* confdefs.h. */ 5827 _ACEOF 5828 cat confdefs.h >>conftest.$ac_ext 5829 cat >>conftest.$ac_ext <<_ACEOF 5830 /* end confdefs.h. */ 5831 5832 int 5833 main () 5834 { 5835 5836 ; 5837 return 0; 5838 } 5839 _ACEOF 5840 rm -f conftest.$ac_objext 5841 if { (ac_try="$ac_compile" 5842 case "(($ac_try" in 5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5844 *) ac_try_echo=$ac_try;; 5845 esac 5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5847 (eval "$ac_compile") 2>conftest.er1 5848 ac_status=$? 5849 grep -v '^ *+' conftest.er1 >conftest.err 5850 rm -f conftest.er1 5851 cat conftest.err >&5 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); } && { 5854 test -z "$ac_cxx_werror_flag" || 5855 test ! -s conftest.err 5856 } && test -s conftest.$ac_objext; then 5857 ac_cv_prog_cxx_g=yes 5858 else 5859 echo "$as_me: failed program was:" >&5 5860 sed 's/^/| /' conftest.$ac_ext >&5 5861 5862 5863 fi 5864 5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5866 fi 5867 5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5869 fi 5870 5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5873 fi 5874 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5875 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5876 if test "$ac_test_CXXFLAGS" = set; then 5877 CXXFLAGS=$ac_save_CXXFLAGS 5878 elif test $ac_cv_prog_cxx_g = yes; then 5879 if test "$GXX" = yes; then 5880 CXXFLAGS="-g -O2" 5881 else 5882 CXXFLAGS="-g" 5883 fi 5884 else 5885 if test "$GXX" = yes; then 5886 CXXFLAGS="-O2" 5887 else 5888 CXXFLAGS= 5889 fi 5890 fi 5891 ac_ext=cpp 5892 ac_cpp='$CXXCPP $CPPFLAGS' 5893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5896 5897 depcc="$CXX" am_compiler_list= 5898 5899 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5900 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5901 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5902 echo $ECHO_N "(cached) $ECHO_C" >&6 5903 else 5904 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5905 # We make a subdir and do the tests there. Otherwise we can end up 5906 # making bogus files that we don't know about and never remove. For 5907 # instance it was reported that on HP-UX the gcc test will end up 5908 # making a dummy file named `D' -- because `-MD' means `put the output 5909 # in D'. 5910 mkdir conftest.dir 5911 # Copy depcomp to subdir because otherwise we won't find it if we're 5912 # using a relative directory. 5913 cp "$am_depcomp" conftest.dir 5914 cd conftest.dir 5915 # We will build objects and dependencies in a subdirectory because 5916 # it helps to detect inapplicable dependency modes. For instance 5917 # both Tru64's cc and ICC support -MD to output dependencies as a 5918 # side effect of compilation, but ICC will put the dependencies in 5919 # the current directory while Tru64 will put them in the object 5920 # directory. 5921 mkdir sub 5922 5923 am_cv_CXX_dependencies_compiler_type=none 5924 if test "$am_compiler_list" = ""; then 5925 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5926 fi 5927 for depmode in $am_compiler_list; do 5928 # Setup a source with many dependencies, because some compilers 5929 # like to wrap large dependency lists on column 80 (with \), and 5930 # we should not choose a depcomp mode which is confused by this. 5931 # 5932 # We need to recreate these files for each test, as the compiler may 5933 # overwrite some of them when testing with obscure command lines. 5934 # This happens at least with the AIX C compiler. 5935 : > sub/conftest.c 5936 for i in 1 2 3 4 5 6; do 5937 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5938 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5939 # Solaris 8's {/usr,}/bin/sh. 5940 touch sub/conftst$i.h 5941 done 5942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5943 5944 case $depmode in 5945 nosideeffect) 5946 # after this tag, mechanisms are not by side-effect, so they'll 5947 # only be used when explicitly requested 5948 if test "x$enable_dependency_tracking" = xyes; then 5949 continue 5950 else 5951 break 5952 fi 5953 ;; 5954 none) break ;; 5955 esac 5956 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5957 # mode. It turns out that the SunPro C++ compiler does not properly 5958 # handle `-M -o', and we need to detect this. 5959 if depmode=$depmode \ 5960 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5961 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5962 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5963 >/dev/null 2>conftest.err && 5964 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5965 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5966 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5967 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5968 # icc doesn't choke on unknown options, it will just issue warnings 5969 # or remarks (even with -Werror). So we grep stderr for any message 5970 # that says an option was ignored or not supported. 5971 # When given -MP, icc 7.0 and 7.1 complain thusly: 5972 # icc: Command line warning: ignoring option '-M'; no argument required 5973 # The diagnosis changed in icc 8.0: 5974 # icc: Command line remark: option '-MP' not supported 5975 if (grep 'ignoring option' conftest.err || 5976 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5977 am_cv_CXX_dependencies_compiler_type=$depmode 5978 break 5979 fi 5980 fi 5981 done 5982 5983 cd .. 5984 rm -rf conftest.dir 5985 else 5986 am_cv_CXX_dependencies_compiler_type=none 5987 fi 5988 5989 fi 5990 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5991 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5992 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5993 5994 if 5995 test "x$enable_dependency_tracking" != xno \ 5996 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5997 am__fastdepCXX_TRUE= 5998 am__fastdepCXX_FALSE='#' 5999 else 6000 am__fastdepCXX_TRUE='#' 6001 am__fastdepCXX_FALSE= 6002 fi 6003 6004 6005 6006 6007 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6008 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6009 (test "X$CXX" != "Xg++"))) ; then 6010 ac_ext=cpp 6011 ac_cpp='$CXXCPP $CPPFLAGS' 6012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6015 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6016 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6017 if test -z "$CXXCPP"; then 6018 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6019 echo $ECHO_N "(cached) $ECHO_C" >&6 6020 else 6021 # Double quotes because CXXCPP needs to be expanded 6022 for CXXCPP in "$CXX -E" "/lib/cpp" 6023 do 6024 ac_preproc_ok=false 6025 for ac_cxx_preproc_warn_flag in '' yes 6026 do 6027 # Use a header file that comes with gcc, so configuring glibc 6028 # with a fresh cross-compiler works. 6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6030 # <limits.h> exists even on freestanding compilers. 6031 # On the NeXT, cc -E runs the code through the compiler's parser, 6032 # not just through cpp. "Syntax error" is here to catch this case. 6033 cat >conftest.$ac_ext <<_ACEOF 6034 /* confdefs.h. */ 6035 _ACEOF 6036 cat confdefs.h >>conftest.$ac_ext 6037 cat >>conftest.$ac_ext <<_ACEOF 6038 /* end confdefs.h. */ 6039 #ifdef __STDC__ 6040 # include <limits.h> 6041 #else 6042 # include <assert.h> 6043 #endif 6044 Syntax error 6045 _ACEOF 6046 if { (ac_try="$ac_cpp conftest.$ac_ext" 6047 case "(($ac_try" in 6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6049 *) ac_try_echo=$ac_try;; 6050 esac 6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6053 ac_status=$? 6054 grep -v '^ *+' conftest.er1 >conftest.err 6055 rm -f conftest.er1 6056 cat conftest.err >&5 6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6058 (exit $ac_status); } >/dev/null && { 6059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6060 test ! -s conftest.err 6061 }; then 6062 : 6063 else 6064 echo "$as_me: failed program was:" >&5 6065 sed 's/^/| /' conftest.$ac_ext >&5 6066 6067 # Broken: fails on valid input. 6068 continue 6069 fi 6070 6071 rm -f conftest.err conftest.$ac_ext 6072 6073 # OK, works on sane cases. Now check whether nonexistent headers 6074 # can be detected and how. 6075 cat >conftest.$ac_ext <<_ACEOF 6076 /* confdefs.h. */ 6077 _ACEOF 6078 cat confdefs.h >>conftest.$ac_ext 6079 cat >>conftest.$ac_ext <<_ACEOF 6080 /* end confdefs.h. */ 6081 #include <ac_nonexistent.h> 6082 _ACEOF 6083 if { (ac_try="$ac_cpp conftest.$ac_ext" 6084 case "(($ac_try" in 6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6086 *) ac_try_echo=$ac_try;; 6087 esac 6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6090 ac_status=$? 6091 grep -v '^ *+' conftest.er1 >conftest.err 6092 rm -f conftest.er1 6093 cat conftest.err >&5 6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6095 (exit $ac_status); } >/dev/null && { 6096 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6097 test ! -s conftest.err 6098 }; then 6099 # Broken: success on invalid input. 6100 continue 6101 else 6102 echo "$as_me: failed program was:" >&5 6103 sed 's/^/| /' conftest.$ac_ext >&5 6104 6105 # Passes both tests. 6106 ac_preproc_ok=: 6107 break 6108 fi 6109 6110 rm -f conftest.err conftest.$ac_ext 6111 6112 done 6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6114 rm -f conftest.err conftest.$ac_ext 6115 if $ac_preproc_ok; then 6116 break 6117 fi 6118 6119 done 6120 ac_cv_prog_CXXCPP=$CXXCPP 6121 6122 fi 6123 CXXCPP=$ac_cv_prog_CXXCPP 6124 else 6125 ac_cv_prog_CXXCPP=$CXXCPP 6126 fi 6127 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 6128 echo "${ECHO_T}$CXXCPP" >&6; } 6129 ac_preproc_ok=false 6130 for ac_cxx_preproc_warn_flag in '' yes 6131 do 6132 # Use a header file that comes with gcc, so configuring glibc 6133 # with a fresh cross-compiler works. 6134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6135 # <limits.h> exists even on freestanding compilers. 6136 # On the NeXT, cc -E runs the code through the compiler's parser, 6137 # not just through cpp. "Syntax error" is here to catch this case. 6138 cat >conftest.$ac_ext <<_ACEOF 6139 /* confdefs.h. */ 6140 _ACEOF 6141 cat confdefs.h >>conftest.$ac_ext 6142 cat >>conftest.$ac_ext <<_ACEOF 6143 /* end confdefs.h. */ 6144 #ifdef __STDC__ 6145 # include <limits.h> 6146 #else 6147 # include <assert.h> 6148 #endif 6149 Syntax error 6150 _ACEOF 6151 if { (ac_try="$ac_cpp conftest.$ac_ext" 6152 case "(($ac_try" in 6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6154 *) ac_try_echo=$ac_try;; 6155 esac 6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6158 ac_status=$? 6159 grep -v '^ *+' conftest.er1 >conftest.err 6160 rm -f conftest.er1 6161 cat conftest.err >&5 6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6163 (exit $ac_status); } >/dev/null && { 6164 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6165 test ! -s conftest.err 6166 }; then 6167 : 6168 else 6169 echo "$as_me: failed program was:" >&5 6170 sed 's/^/| /' conftest.$ac_ext >&5 6171 6172 # Broken: fails on valid input. 6173 continue 6174 fi 6175 6176 rm -f conftest.err conftest.$ac_ext 6177 6178 # OK, works on sane cases. Now check whether nonexistent headers 6179 # can be detected and how. 6180 cat >conftest.$ac_ext <<_ACEOF 6181 /* confdefs.h. */ 6182 _ACEOF 6183 cat confdefs.h >>conftest.$ac_ext 6184 cat >>conftest.$ac_ext <<_ACEOF 6185 /* end confdefs.h. */ 6186 #include <ac_nonexistent.h> 6187 _ACEOF 6188 if { (ac_try="$ac_cpp conftest.$ac_ext" 6189 case "(($ac_try" in 6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6191 *) ac_try_echo=$ac_try;; 6192 esac 6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6195 ac_status=$? 6196 grep -v '^ *+' conftest.er1 >conftest.err 6197 rm -f conftest.er1 6198 cat conftest.err >&5 6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6200 (exit $ac_status); } >/dev/null && { 6201 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6202 test ! -s conftest.err 6203 }; then 6204 # Broken: success on invalid input. 6205 continue 6206 else 6207 echo "$as_me: failed program was:" >&5 6208 sed 's/^/| /' conftest.$ac_ext >&5 6209 6210 # Passes both tests. 6211 ac_preproc_ok=: 6212 break 6213 fi 6214 6215 rm -f conftest.err conftest.$ac_ext 6216 6217 done 6218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6219 rm -f conftest.err conftest.$ac_ext 6220 if $ac_preproc_ok; then 6221 : 6222 else 6223 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6224 See \`config.log' for more details." >&5 6225 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6226 See \`config.log' for more details." >&2;} 6227 { (exit 1); exit 1; }; } 6228 fi 6229 6230 ac_ext=cpp 6231 ac_cpp='$CXXCPP $CPPFLAGS' 6232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6235 6236 fi 6237 6238 6239 ac_ext=f 6240 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6241 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6242 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6243 if test -n "$ac_tool_prefix"; then 6244 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 6245 do 6246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6250 if test "${ac_cv_prog_F77+set}" = set; then 6251 echo $ECHO_N "(cached) $ECHO_C" >&6 6252 else 6253 if test -n "$F77"; then 6254 ac_cv_prog_F77="$F77" # Let the user override the test. 6255 else 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257 for as_dir in $PATH 6258 do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6263 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267 done 6268 done 6269 IFS=$as_save_IFS 6270 6271 fi 6272 fi 6273 F77=$ac_cv_prog_F77 6274 if test -n "$F77"; then 6275 { echo "$as_me:$LINENO: result: $F77" >&5 6276 echo "${ECHO_T}$F77" >&6; } 6277 else 6278 { echo "$as_me:$LINENO: result: no" >&5 6279 echo "${ECHO_T}no" >&6; } 6280 fi 6281 6282 6283 test -n "$F77" && break 6284 done 6285 fi 6286 if test -z "$F77"; then 6287 ac_ct_F77=$F77 6288 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 6289 do 6290 # Extract the first word of "$ac_prog", so it can be a program name with args. 6291 set dummy $ac_prog; ac_word=$2 6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6294 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6295 echo $ECHO_N "(cached) $ECHO_C" >&6 6296 else 6297 if test -n "$ac_ct_F77"; then 6298 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6299 else 6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301 for as_dir in $PATH 6302 do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6307 ac_cv_prog_ac_ct_F77="$ac_prog" 6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311 done 6312 done 6313 IFS=$as_save_IFS 6314 6315 fi 6316 fi 6317 ac_ct_F77=$ac_cv_prog_ac_ct_F77 6318 if test -n "$ac_ct_F77"; then 6319 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6320 echo "${ECHO_T}$ac_ct_F77" >&6; } 6321 else 6322 { echo "$as_me:$LINENO: result: no" >&5 6323 echo "${ECHO_T}no" >&6; } 6324 fi 6325 6326 6327 test -n "$ac_ct_F77" && break 6328 done 6329 6330 if test "x$ac_ct_F77" = x; then 6331 F77="" 6332 else 6333 case $cross_compiling:$ac_tool_warned in 6334 yes:) 6335 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6336 whose name does not start with the host triplet. If you think this 6337 configuration is useful to you, please write to autoconf@gnu.org." >&5 6338 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6339 whose name does not start with the host triplet. If you think this 6340 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6341 ac_tool_warned=yes ;; 6342 esac 6343 F77=$ac_ct_F77 6344 fi 6345 fi 6346 6347 6348 # Provide some information about the compiler. 6349 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6350 ac_compiler=`set X $ac_compile; echo $2` 6351 { (ac_try="$ac_compiler --version >&5" 6352 case "(($ac_try" in 6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6354 *) ac_try_echo=$ac_try;; 6355 esac 6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6357 (eval "$ac_compiler --version >&5") 2>&5 6358 ac_status=$? 6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6360 (exit $ac_status); } 6361 { (ac_try="$ac_compiler -v >&5" 6362 case "(($ac_try" in 6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6364 *) ac_try_echo=$ac_try;; 6365 esac 6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6367 (eval "$ac_compiler -v >&5") 2>&5 6368 ac_status=$? 6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6370 (exit $ac_status); } 6371 { (ac_try="$ac_compiler -V >&5" 6372 case "(($ac_try" in 6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6374 *) ac_try_echo=$ac_try;; 6375 esac 6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6377 (eval "$ac_compiler -V >&5") 2>&5 6378 ac_status=$? 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } 6381 rm -f a.out 6382 6383 # If we don't use `.F' as extension, the preprocessor is not run on the 6384 # input file. (Note that this only needs to work for GNU compilers.) 6385 ac_save_ext=$ac_ext 6386 ac_ext=F 6387 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6388 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6389 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6390 echo $ECHO_N "(cached) $ECHO_C" >&6 6391 else 6392 cat >conftest.$ac_ext <<_ACEOF 6393 program main 6394 #ifndef __GNUC__ 6395 choke me 6396 #endif 6397 6398 end 6399 _ACEOF 6400 rm -f conftest.$ac_objext 6401 if { (ac_try="$ac_compile" 6402 case "(($ac_try" in 6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6404 *) ac_try_echo=$ac_try;; 6405 esac 6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6407 (eval "$ac_compile") 2>conftest.er1 6408 ac_status=$? 6409 grep -v '^ *+' conftest.er1 >conftest.err 6410 rm -f conftest.er1 6411 cat conftest.err >&5 6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6413 (exit $ac_status); } && { 6414 test -z "$ac_f77_werror_flag" || 6415 test ! -s conftest.err 6416 } && test -s conftest.$ac_objext; then 6417 ac_compiler_gnu=yes 6418 else 6419 echo "$as_me: failed program was:" >&5 6420 sed 's/^/| /' conftest.$ac_ext >&5 6421 6422 ac_compiler_gnu=no 6423 fi 6424 6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6426 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6427 6428 fi 6429 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6430 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6431 ac_ext=$ac_save_ext 6432 ac_test_FFLAGS=${FFLAGS+set} 6433 ac_save_FFLAGS=$FFLAGS 6434 FFLAGS= 6435 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6436 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6437 if test "${ac_cv_prog_f77_g+set}" = set; then 6438 echo $ECHO_N "(cached) $ECHO_C" >&6 6439 else 6440 FFLAGS=-g 6441 cat >conftest.$ac_ext <<_ACEOF 6442 program main 6443 6444 end 6445 _ACEOF 6446 rm -f conftest.$ac_objext 6447 if { (ac_try="$ac_compile" 6448 case "(($ac_try" in 6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6450 *) ac_try_echo=$ac_try;; 6451 esac 6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6453 (eval "$ac_compile") 2>conftest.er1 6454 ac_status=$? 6455 grep -v '^ *+' conftest.er1 >conftest.err 6456 rm -f conftest.er1 6457 cat conftest.err >&5 6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6459 (exit $ac_status); } && { 6460 test -z "$ac_f77_werror_flag" || 6461 test ! -s conftest.err 6462 } && test -s conftest.$ac_objext; then 6463 ac_cv_prog_f77_g=yes 6464 else 6465 echo "$as_me: failed program was:" >&5 6466 sed 's/^/| /' conftest.$ac_ext >&5 6467 6468 ac_cv_prog_f77_g=no 6469 fi 6470 6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6472 6473 fi 6474 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6475 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6476 if test "$ac_test_FFLAGS" = set; then 6477 FFLAGS=$ac_save_FFLAGS 6478 elif test $ac_cv_prog_f77_g = yes; then 6479 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6480 FFLAGS="-g -O2" 6481 else 6482 FFLAGS="-g" 6483 fi 6484 else 6485 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6486 FFLAGS="-O2" 6487 else 6488 FFLAGS= 6489 fi 6490 fi 6491 6492 G77=`test $ac_compiler_gnu = yes && echo yes` 6493 ac_ext=c 6494 ac_cpp='$CPP $CPPFLAGS' 6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6498 6499 6500 6501 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6502 6503 # find the maximum length of command line arguments 6504 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6505 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6506 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6507 echo $ECHO_N "(cached) $ECHO_C" >&6 6508 else 6509 i=0 6510 teststring="ABCD" 6511 6512 case $build_os in 6513 msdosdjgpp*) 6514 # On DJGPP, this test can blow up pretty badly due to problems in libc 6515 # (any single argument exceeding 2000 bytes causes a buffer overrun 6516 # during glob expansion). Even if it were fixed, the result of this 6517 # check would be larger than it should be. 6518 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6519 ;; 6520 6521 gnu*) 6522 # Under GNU Hurd, this test is not required because there is 6523 # no limit to the length of command line arguments. 6524 # Libtool will interpret -1 as no limit whatsoever 6525 lt_cv_sys_max_cmd_len=-1; 6526 ;; 6527 6528 cygwin* | mingw*) 6529 # On Win9x/ME, this test blows up -- it succeeds, but takes 6530 # about 5 minutes as the teststring grows exponentially. 6531 # Worse, since 9x/ME are not pre-emptively multitasking, 6532 # you end up with a "frozen" computer, even though with patience 6533 # the test eventually succeeds (with a max line length of 256k). 6534 # Instead, let's just punt: use the minimum linelength reported by 6535 # all of the supported platforms: 8192 (on NT/2K/XP). 6536 lt_cv_sys_max_cmd_len=8192; 6537 ;; 6538 6539 amigaos*) 6540 # On AmigaOS with pdksh, this test takes hours, literally. 6541 # So we just punt and use a minimum line length of 8192. 6542 lt_cv_sys_max_cmd_len=8192; 6543 ;; 6544 6545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6546 # This has been around since 386BSD, at least. Likely further. 6547 if test -x /sbin/sysctl; then 6548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6549 elif test -x /usr/sbin/sysctl; then 6550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6551 else 6552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6553 fi 6554 # And add a safety zone 6555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6557 ;; 6558 6559 interix*) 6560 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6561 lt_cv_sys_max_cmd_len=196608 6562 ;; 6563 6564 osf*) 6565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6567 # nice to cause kernel panics so lets avoid the loop below. 6568 # First set a reasonable default. 6569 lt_cv_sys_max_cmd_len=16384 6570 # 6571 if test -x /sbin/sysconfig; then 6572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6573 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6574 esac 6575 fi 6576 ;; 6577 sco3.2v5*) 6578 lt_cv_sys_max_cmd_len=102400 6579 ;; 6580 sysv5* | sco5v6* | sysv4.2uw2*) 6581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6582 if test -n "$kargmax"; then 6583 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6584 else 6585 lt_cv_sys_max_cmd_len=32768 6586 fi 6587 ;; 6588 *) 6589 # If test is not a shell built-in, we'll probably end up computing a 6590 # maximum length that is only half of the actual maximum length, but 6591 # we can't tell. 6592 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6593 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6594 = "XX$teststring") >/dev/null 2>&1 && 6595 new_result=`expr "X$teststring" : ".*" 2>&1` && 6596 lt_cv_sys_max_cmd_len=$new_result && 6597 test $i != 17 # 1/2 MB should be enough 6598 do 6599 i=`expr $i + 1` 6600 teststring=$teststring$teststring 6601 done 6602 teststring= 6603 # Add a significant safety factor because C++ compilers can tack on massive 6604 # amounts of additional arguments before passing them to the linker. 6605 # It appears as though 1/2 is a usable value. 6606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6607 ;; 6608 esac 6609 6610 fi 6611 6612 if test -n $lt_cv_sys_max_cmd_len ; then 6613 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6614 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6615 else 6616 { echo "$as_me:$LINENO: result: none" >&5 6617 echo "${ECHO_T}none" >&6; } 6618 fi 6619 6620 6621 6622 6623 # Check for command to grab the raw symbol name followed by C symbol from nm. 6624 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6625 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6626 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6627 echo $ECHO_N "(cached) $ECHO_C" >&6 6628 else 6629 6630 # These are sane defaults that work on at least a few old systems. 6631 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6632 6633 # Character class describing NM global symbol codes. 6634 symcode='[BCDEGRST]' 6635 6636 # Regexp to match symbols that can be accessed directly from C. 6637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6638 6639 # Transform an extracted symbol line into a proper C declaration 6640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6641 6642 # Transform an extracted symbol line into symbol name and symbol address 6643 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'" 6644 6645 # Define system-specific variables. 6646 case $host_os in 6647 aix*) 6648 symcode='[BCDT]' 6649 ;; 6650 cygwin* | mingw* | pw32*) 6651 symcode='[ABCDGISTW]' 6652 ;; 6653 hpux*) # Its linker distinguishes data from code symbols 6654 if test "$host_cpu" = ia64; then 6655 symcode='[ABCDEGRST]' 6656 fi 6657 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6658 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'" 6659 ;; 6660 linux*) 6661 if test "$host_cpu" = ia64; then 6662 symcode='[ABCDGIRSTW]' 6663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6664 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'" 6665 fi 6666 ;; 6667 irix* | nonstopux*) 6668 symcode='[BCDEGRST]' 6669 ;; 6670 osf*) 6671 symcode='[BCDEGQRST]' 6672 ;; 6673 solaris*) 6674 symcode='[BDRT]' 6675 ;; 6676 sco3.2v5*) 6677 symcode='[DT]' 6678 ;; 6679 sysv4.2uw2*) 6680 symcode='[DT]' 6681 ;; 6682 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6683 symcode='[ABDT]' 6684 ;; 6685 sysv4) 6686 symcode='[DFNSTU]' 6687 ;; 6688 esac 6689 6690 # Handle CRLF in mingw tool chain 6691 opt_cr= 6692 case $build_os in 6693 mingw*) 6694 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6695 ;; 6696 esac 6697 6698 # If we're using GNU nm, then use its standard symbol codes. 6699 case `$NM -V 2>&1` in 6700 *GNU* | *'with BFD'*) 6701 symcode='[ABCDGIRSTW]' ;; 6702 esac 6703 6704 # Try without a prefix undercore, then with it. 6705 for ac_symprfx in "" "_"; do 6706 6707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6708 symxfrm="\\1 $ac_symprfx\\2 \\2" 6709 6710 # Write the raw and C identifiers. 6711 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6712 6713 # Check to see that the pipe works correctly. 6714 pipe_works=no 6715 6716 rm -f conftest* 6717 cat > conftest.$ac_ext <<EOF 6718 #ifdef __cplusplus 6719 extern "C" { 6720 #endif 6721 char nm_test_var; 6722 void nm_test_func(){} 6723 #ifdef __cplusplus 6724 } 6725 #endif 6726 int main(){nm_test_var='a';nm_test_func();return(0);} 6727 EOF 6728 6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6730 (eval $ac_compile) 2>&5 6731 ac_status=$? 6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6733 (exit $ac_status); }; then 6734 # Now try to grab the symbols. 6735 nlist=conftest.nm 6736 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6737 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6738 ac_status=$? 6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6740 (exit $ac_status); } && test -s "$nlist"; then 6741 # Try sorting and uniquifying the output. 6742 if sort "$nlist" | uniq > "$nlist"T; then 6743 mv -f "$nlist"T "$nlist" 6744 else 6745 rm -f "$nlist"T 6746 fi 6747 6748 # Make sure that we snagged all the symbols we need. 6749 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6750 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6751 cat <<EOF > conftest.$ac_ext 6752 #ifdef __cplusplus 6753 extern "C" { 6754 #endif 6755 6756 EOF 6757 # Now generate the symbol file. 6758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6759 6760 cat <<EOF >> conftest.$ac_ext 6761 #if defined (__STDC__) && __STDC__ 6762 # define lt_ptr_t void * 6763 #else 6764 # define lt_ptr_t char * 6765 # define const 6766 #endif 6767 6768 /* The mapping between symbol names and symbols. */ 6769 const struct { 6770 const char *name; 6771 lt_ptr_t address; 6772 } 6773 lt_preloaded_symbols[] = 6774 { 6775 EOF 6776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6777 cat <<\EOF >> conftest.$ac_ext 6778 {0, (lt_ptr_t) 0} 6779 }; 6780 6781 #ifdef __cplusplus 6782 } 6783 #endif 6784 EOF 6785 # Now try linking the two files. 6786 mv conftest.$ac_objext conftstm.$ac_objext 6787 lt_save_LIBS="$LIBS" 6788 lt_save_CFLAGS="$CFLAGS" 6789 LIBS="conftstm.$ac_objext" 6790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6792 (eval $ac_link) 2>&5 6793 ac_status=$? 6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6795 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6796 pipe_works=yes 6797 fi 6798 LIBS="$lt_save_LIBS" 6799 CFLAGS="$lt_save_CFLAGS" 6800 else 6801 echo "cannot find nm_test_func in $nlist" >&5 6802 fi 6803 else 6804 echo "cannot find nm_test_var in $nlist" >&5 6805 fi 6806 else 6807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6808 fi 6809 else 6810 echo "$progname: failed program was:" >&5 6811 cat conftest.$ac_ext >&5 6812 fi 6813 rm -f conftest* conftst* 6814 6815 # Do not use the global_symbol_pipe unless it works. 6816 if test "$pipe_works" = yes; then 6817 break 6818 else 6819 lt_cv_sys_global_symbol_pipe= 6820 fi 6821 done 6822 6823 fi 6824 6825 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6826 lt_cv_sys_global_symbol_to_cdecl= 6827 fi 6828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6829 { echo "$as_me:$LINENO: result: failed" >&5 6830 echo "${ECHO_T}failed" >&6; } 6831 else 6832 { echo "$as_me:$LINENO: result: ok" >&5 6833 echo "${ECHO_T}ok" >&6; } 6834 fi 6835 6836 { echo "$as_me:$LINENO: checking for objdir" >&5 6837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6838 if test "${lt_cv_objdir+set}" = set; then 6839 echo $ECHO_N "(cached) $ECHO_C" >&6 6840 else 6841 rm -f .libs 2>/dev/null 6842 mkdir .libs 2>/dev/null 6843 if test -d .libs; then 6844 lt_cv_objdir=.libs 6845 else 6846 # MS-DOS does not allow filenames that begin with a dot. 6847 lt_cv_objdir=_libs 6848 fi 6849 rmdir .libs 2>/dev/null 6850 fi 6851 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6852 echo "${ECHO_T}$lt_cv_objdir" >&6; } 6853 objdir=$lt_cv_objdir 6854 6855 6856 6857 6858 6859 case $host_os in 6860 aix3*) 6861 # AIX sometimes has problems with the GCC collect2 program. For some 6862 # reason, if we set the COLLECT_NAMES environment variable, the problems 6863 # vanish in a puff of smoke. 6864 if test "X${COLLECT_NAMES+set}" != Xset; then 6865 COLLECT_NAMES= 6866 export COLLECT_NAMES 6867 fi 6868 ;; 6869 esac 6870 6871 # Sed substitution that helps us do robust quoting. It backslashifies 6872 # metacharacters that are still active within double-quoted strings. 6873 Xsed='sed -e 1s/^X//' 6874 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6875 6876 # Same as above, but do not quote variable references. 6877 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6878 6879 # Sed substitution to delay expansion of an escaped shell variable in a 6880 # double_quote_subst'ed string. 6881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6882 6883 # Sed substitution to avoid accidental globbing in evaled expressions 6884 no_glob_subst='s/\*/\\\*/g' 6885 6886 # Constants: 6887 rm="rm -f" 6888 6889 # Global variables: 6890 default_ofile=libtool 6891 can_build_shared=yes 6892 6893 # All known linkers require a `.a' archive for static linking (except MSVC, 6894 # which needs '.lib'). 6895 libext=a 6896 ltmain="$ac_aux_dir/ltmain.sh" 6897 ofile="$default_ofile" 6898 with_gnu_ld="$lt_cv_prog_gnu_ld" 6899 6900 if test -n "$ac_tool_prefix"; then 6901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6902 set dummy ${ac_tool_prefix}ar; ac_word=$2 6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6905 if test "${ac_cv_prog_AR+set}" = set; then 6906 echo $ECHO_N "(cached) $ECHO_C" >&6 6907 else 6908 if test -n "$AR"; then 6909 ac_cv_prog_AR="$AR" # Let the user override the test. 6910 else 6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6912 for as_dir in $PATH 6913 do 6914 IFS=$as_save_IFS 6915 test -z "$as_dir" && as_dir=. 6916 for ac_exec_ext in '' $ac_executable_extensions; do 6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6918 ac_cv_prog_AR="${ac_tool_prefix}ar" 6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6920 break 2 6921 fi 6922 done 6923 done 6924 IFS=$as_save_IFS 6925 6926 fi 6927 fi 6928 AR=$ac_cv_prog_AR 6929 if test -n "$AR"; then 6930 { echo "$as_me:$LINENO: result: $AR" >&5 6931 echo "${ECHO_T}$AR" >&6; } 6932 else 6933 { echo "$as_me:$LINENO: result: no" >&5 6934 echo "${ECHO_T}no" >&6; } 6935 fi 6936 6937 6938 fi 6939 if test -z "$ac_cv_prog_AR"; then 6940 ac_ct_AR=$AR 6941 # Extract the first word of "ar", so it can be a program name with args. 6942 set dummy ar; ac_word=$2 6943 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6946 echo $ECHO_N "(cached) $ECHO_C" >&6 6947 else 6948 if test -n "$ac_ct_AR"; then 6949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6950 else 6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6952 for as_dir in $PATH 6953 do 6954 IFS=$as_save_IFS 6955 test -z "$as_dir" && as_dir=. 6956 for ac_exec_ext in '' $ac_executable_extensions; do 6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6958 ac_cv_prog_ac_ct_AR="ar" 6959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6960 break 2 6961 fi 6962 done 6963 done 6964 IFS=$as_save_IFS 6965 6966 fi 6967 fi 6968 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6969 if test -n "$ac_ct_AR"; then 6970 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6971 echo "${ECHO_T}$ac_ct_AR" >&6; } 6972 else 6973 { echo "$as_me:$LINENO: result: no" >&5 6974 echo "${ECHO_T}no" >&6; } 6975 fi 6976 6977 if test "x$ac_ct_AR" = x; then 6978 AR="false" 6979 else 6980 case $cross_compiling:$ac_tool_warned in 6981 yes:) 6982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6983 whose name does not start with the host triplet. If you think this 6984 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6986 whose name does not start with the host triplet. If you think this 6987 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6988 ac_tool_warned=yes ;; 6989 esac 6990 AR=$ac_ct_AR 6991 fi 6992 else 6993 AR="$ac_cv_prog_AR" 6994 fi 6995 6996 if test -n "$ac_tool_prefix"; then 6997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7001 if test "${ac_cv_prog_RANLIB+set}" = set; then 7002 echo $ECHO_N "(cached) $ECHO_C" >&6 7003 else 7004 if test -n "$RANLIB"; then 7005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7006 else 7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008 for as_dir in $PATH 7009 do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018 done 7019 done 7020 IFS=$as_save_IFS 7021 7022 fi 7023 fi 7024 RANLIB=$ac_cv_prog_RANLIB 7025 if test -n "$RANLIB"; then 7026 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7027 echo "${ECHO_T}$RANLIB" >&6; } 7028 else 7029 { echo "$as_me:$LINENO: result: no" >&5 7030 echo "${ECHO_T}no" >&6; } 7031 fi 7032 7033 7034 fi 7035 if test -z "$ac_cv_prog_RANLIB"; then 7036 ac_ct_RANLIB=$RANLIB 7037 # Extract the first word of "ranlib", so it can be a program name with args. 7038 set dummy ranlib; ac_word=$2 7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7042 echo $ECHO_N "(cached) $ECHO_C" >&6 7043 else 7044 if test -n "$ac_ct_RANLIB"; then 7045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7046 else 7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048 for as_dir in $PATH 7049 do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7054 ac_cv_prog_ac_ct_RANLIB="ranlib" 7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058 done 7059 done 7060 IFS=$as_save_IFS 7061 7062 fi 7063 fi 7064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7065 if test -n "$ac_ct_RANLIB"; then 7066 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7067 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7068 else 7069 { echo "$as_me:$LINENO: result: no" >&5 7070 echo "${ECHO_T}no" >&6; } 7071 fi 7072 7073 if test "x$ac_ct_RANLIB" = x; then 7074 RANLIB=":" 7075 else 7076 case $cross_compiling:$ac_tool_warned in 7077 yes:) 7078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7079 whose name does not start with the host triplet. If you think this 7080 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 7081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7082 whose name does not start with the host triplet. If you think this 7083 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 7084 ac_tool_warned=yes ;; 7085 esac 7086 RANLIB=$ac_ct_RANLIB 7087 fi 7088 else 7089 RANLIB="$ac_cv_prog_RANLIB" 7090 fi 7091 7092 if test -n "$ac_tool_prefix"; then 7093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7094 set dummy ${ac_tool_prefix}strip; ac_word=$2 7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7097 if test "${ac_cv_prog_STRIP+set}" = set; then 7098 echo $ECHO_N "(cached) $ECHO_C" >&6 7099 else 7100 if test -n "$STRIP"; then 7101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7102 else 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104 for as_dir in $PATH 7105 do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7110 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114 done 7115 done 7116 IFS=$as_save_IFS 7117 7118 fi 7119 fi 7120 STRIP=$ac_cv_prog_STRIP 7121 if test -n "$STRIP"; then 7122 { echo "$as_me:$LINENO: result: $STRIP" >&5 7123 echo "${ECHO_T}$STRIP" >&6; } 7124 else 7125 { echo "$as_me:$LINENO: result: no" >&5 7126 echo "${ECHO_T}no" >&6; } 7127 fi 7128 7129 7130 fi 7131 if test -z "$ac_cv_prog_STRIP"; then 7132 ac_ct_STRIP=$STRIP 7133 # Extract the first word of "strip", so it can be a program name with args. 7134 set dummy strip; ac_word=$2 7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7138 echo $ECHO_N "(cached) $ECHO_C" >&6 7139 else 7140 if test -n "$ac_ct_STRIP"; then 7141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7142 else 7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7144 for as_dir in $PATH 7145 do 7146 IFS=$as_save_IFS 7147 test -z "$as_dir" && as_dir=. 7148 for ac_exec_ext in '' $ac_executable_extensions; do 7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7150 ac_cv_prog_ac_ct_STRIP="strip" 7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7152 break 2 7153 fi 7154 done 7155 done 7156 IFS=$as_save_IFS 7157 7158 fi 7159 fi 7160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7161 if test -n "$ac_ct_STRIP"; then 7162 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7163 echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7164 else 7165 { echo "$as_me:$LINENO: result: no" >&5 7166 echo "${ECHO_T}no" >&6; } 7167 fi 7168 7169 if test "x$ac_ct_STRIP" = x; then 7170 STRIP=":" 7171 else 7172 case $cross_compiling:$ac_tool_warned in 7173 yes:) 7174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7175 whose name does not start with the host triplet. If you think this 7176 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 7177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7178 whose name does not start with the host triplet. If you think this 7179 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 7180 ac_tool_warned=yes ;; 7181 esac 7182 STRIP=$ac_ct_STRIP 7183 fi 7184 else 7185 STRIP="$ac_cv_prog_STRIP" 7186 fi 7187 7188 7189 old_CC="$CC" 7190 old_CFLAGS="$CFLAGS" 7191 7192 # Set sane defaults for various variables 7193 test -z "$AR" && AR=ar 7194 test -z "$AR_FLAGS" && AR_FLAGS=cru 7195 test -z "$AS" && AS=as 7196 test -z "$CC" && CC=cc 7197 test -z "$LTCC" && LTCC=$CC 7198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7199 test -z "$DLLTOOL" && DLLTOOL=dlltool 7200 test -z "$LD" && LD=ld 7201 test -z "$LN_S" && LN_S="ln -s" 7202 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7203 test -z "$NM" && NM=nm 7204 test -z "$SED" && SED=sed 7205 test -z "$OBJDUMP" && OBJDUMP=objdump 7206 test -z "$RANLIB" && RANLIB=: 7207 test -z "$STRIP" && STRIP=: 7208 test -z "$ac_objext" && ac_objext=o 7209 7210 # Determine commands to create old-style static archives. 7211 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7212 old_postinstall_cmds='chmod 644 $oldlib' 7213 old_postuninstall_cmds= 7214 7215 if test -n "$RANLIB"; then 7216 case $host_os in 7217 openbsd*) 7218 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7219 ;; 7220 *) 7221 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7222 ;; 7223 esac 7224 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7225 fi 7226 7227 for cc_temp in $compiler""; do 7228 case $cc_temp in 7229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7231 \-*) ;; 7232 *) break;; 7233 esac 7234 done 7235 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7236 7237 7238 # Only perform the check for file, if the check method requires it 7239 case $deplibs_check_method in 7240 file_magic*) 7241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7242 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7243 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7245 echo $ECHO_N "(cached) $ECHO_C" >&6 7246 else 7247 case $MAGIC_CMD in 7248 [\\/*] | ?:[\\/]*) 7249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7250 ;; 7251 *) 7252 lt_save_MAGIC_CMD="$MAGIC_CMD" 7253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7255 for ac_dir in $ac_dummy; do 7256 IFS="$lt_save_ifs" 7257 test -z "$ac_dir" && ac_dir=. 7258 if test -f $ac_dir/${ac_tool_prefix}file; then 7259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7260 if test -n "$file_magic_test_file"; then 7261 case $deplibs_check_method in 7262 "file_magic "*) 7263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7266 $EGREP "$file_magic_regex" > /dev/null; then 7267 : 7268 else 7269 cat <<EOF 1>&2 7270 7271 *** Warning: the command libtool uses to detect shared libraries, 7272 *** $file_magic_cmd, produces output that libtool cannot recognize. 7273 *** The result is that libtool may fail to recognize shared libraries 7274 *** as such. This will affect the creation of libtool libraries that 7275 *** depend on shared libraries, but programs linked with such libtool 7276 *** libraries will work regardless of this problem. Nevertheless, you 7277 *** may want to report the problem to your system manager and/or to 7278 *** bug-libtool@gnu.org 7279 7280 EOF 7281 fi ;; 7282 esac 7283 fi 7284 break 7285 fi 7286 done 7287 IFS="$lt_save_ifs" 7288 MAGIC_CMD="$lt_save_MAGIC_CMD" 7289 ;; 7290 esac 7291 fi 7292 7293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7294 if test -n "$MAGIC_CMD"; then 7295 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7296 echo "${ECHO_T}$MAGIC_CMD" >&6; } 7297 else 7298 { echo "$as_me:$LINENO: result: no" >&5 7299 echo "${ECHO_T}no" >&6; } 7300 fi 7301 7302 if test -z "$lt_cv_path_MAGIC_CMD"; then 7303 if test -n "$ac_tool_prefix"; then 7304 { echo "$as_me:$LINENO: checking for file" >&5 7305 echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7307 echo $ECHO_N "(cached) $ECHO_C" >&6 7308 else 7309 case $MAGIC_CMD in 7310 [\\/*] | ?:[\\/]*) 7311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7312 ;; 7313 *) 7314 lt_save_MAGIC_CMD="$MAGIC_CMD" 7315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7317 for ac_dir in $ac_dummy; do 7318 IFS="$lt_save_ifs" 7319 test -z "$ac_dir" && ac_dir=. 7320 if test -f $ac_dir/file; then 7321 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7322 if test -n "$file_magic_test_file"; then 7323 case $deplibs_check_method in 7324 "file_magic "*) 7325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7328 $EGREP "$file_magic_regex" > /dev/null; then 7329 : 7330 else 7331 cat <<EOF 1>&2 7332 7333 *** Warning: the command libtool uses to detect shared libraries, 7334 *** $file_magic_cmd, produces output that libtool cannot recognize. 7335 *** The result is that libtool may fail to recognize shared libraries 7336 *** as such. This will affect the creation of libtool libraries that 7337 *** depend on shared libraries, but programs linked with such libtool 7338 *** libraries will work regardless of this problem. Nevertheless, you 7339 *** may want to report the problem to your system manager and/or to 7340 *** bug-libtool@gnu.org 7341 7342 EOF 7343 fi ;; 7344 esac 7345 fi 7346 break 7347 fi 7348 done 7349 IFS="$lt_save_ifs" 7350 MAGIC_CMD="$lt_save_MAGIC_CMD" 7351 ;; 7352 esac 7353 fi 7354 7355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7356 if test -n "$MAGIC_CMD"; then 7357 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7358 echo "${ECHO_T}$MAGIC_CMD" >&6; } 7359 else 7360 { echo "$as_me:$LINENO: result: no" >&5 7361 echo "${ECHO_T}no" >&6; } 7362 fi 7363 7364 else 7365 MAGIC_CMD=: 7366 fi 7367 fi 7368 7369 fi 7370 ;; 7371 esac 7372 7373 enable_dlopen=no 7374 enable_win32_dll=yes 7375 7376 # Check whether --enable-libtool-lock was given. 7377 if test "${enable_libtool_lock+set}" = set; then 7378 enableval=$enable_libtool_lock; 7379 fi 7380 7381 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7382 7383 7384 # Check whether --with-pic was given. 7385 if test "${with_pic+set}" = set; then 7386 withval=$with_pic; pic_mode="$withval" 7387 else 7388 pic_mode=default 7389 fi 7390 7391 test -z "$pic_mode" && pic_mode=default 7392 7393 # Use C for the default configuration in the libtool script 7394 tagname= 7395 lt_save_CC="$CC" 7396 ac_ext=c 7397 ac_cpp='$CPP $CPPFLAGS' 7398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7400 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7401 7402 7403 # Source file extension for C test sources. 7404 ac_ext=c 7405 7406 # Object file extension for compiled C test sources. 7407 objext=o 7408 objext=$objext 7409 7410 # Code to be used in simple compile tests 7411 lt_simple_compile_test_code="int some_variable = 0;\n" 7412 7413 # Code to be used in simple link tests 7414 lt_simple_link_test_code='int main(){return(0);}\n' 7415 7416 7417 # If no C compiler was specified, use CC. 7418 LTCC=${LTCC-"$CC"} 7419 7420 # If no C compiler flags were specified, use CFLAGS. 7421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7422 7423 # Allow CC to be a program name with arguments. 7424 compiler=$CC 7425 7426 7427 # save warnings/boilerplate of simple test code 7428 ac_outfile=conftest.$ac_objext 7429 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7431 _lt_compiler_boilerplate=`cat conftest.err` 7432 $rm conftest* 7433 7434 ac_outfile=conftest.$ac_objext 7435 printf "$lt_simple_link_test_code" >conftest.$ac_ext 7436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7437 _lt_linker_boilerplate=`cat conftest.err` 7438 $rm conftest* 7439 7440 7441 ## CAVEAT EMPTOR: 7442 ## There is no encapsulation within the following macros, do not change 7443 ## the running order or otherwise move them around unless you know exactly 7444 ## what you are doing... 7445 7446 lt_prog_compiler_no_builtin_flag= 7447 7448 if test "$GCC" = yes; then 7449 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7450 7451 7452 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7453 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7454 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7455 echo $ECHO_N "(cached) $ECHO_C" >&6 7456 else 7457 lt_cv_prog_compiler_rtti_exceptions=no 7458 ac_outfile=conftest.$ac_objext 7459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7460 lt_compiler_flag="-fno-rtti -fno-exceptions" 7461 # Insert the option either (1) after the last *FLAGS variable, or 7462 # (2) before a word containing "conftest.", or (3) at the end. 7463 # Note that $ac_compile itself does not contain backslashes and begins 7464 # with a dollar sign (not a hyphen), so the echo should work correctly. 7465 # The option is referenced via a variable to avoid confusing sed. 7466 lt_compile=`echo "$ac_compile" | $SED \ 7467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7469 -e 's:$: $lt_compiler_flag:'` 7470 (eval echo "\"\$as_me:7470: $lt_compile\"" >&5) 7471 (eval "$lt_compile" 2>conftest.err) 7472 ac_status=$? 7473 cat conftest.err >&5 7474 echo "$as_me:7474: \$? = $ac_status" >&5 7475 if (exit $ac_status) && test -s "$ac_outfile"; then 7476 # The compiler can only warn and ignore the option if not recognized 7477 # So say no if there are warnings other than the usual output. 7478 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7481 lt_cv_prog_compiler_rtti_exceptions=yes 7482 fi 7483 fi 7484 $rm conftest* 7485 7486 fi 7487 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7488 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7489 7490 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7491 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7492 else 7493 : 7494 fi 7495 7496 fi 7497 7498 lt_prog_compiler_wl= 7499 lt_prog_compiler_pic= 7500 lt_prog_compiler_static= 7501 7502 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7503 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7504 7505 if test "$GCC" = yes; then 7506 lt_prog_compiler_wl='-Wl,' 7507 lt_prog_compiler_static='-static' 7508 7509 case $host_os in 7510 aix*) 7511 # All AIX code is PIC. 7512 if test "$host_cpu" = ia64; then 7513 # AIX 5 now supports IA64 processor 7514 lt_prog_compiler_static='-Bstatic' 7515 fi 7516 ;; 7517 7518 amigaos*) 7519 # FIXME: we need at least 68020 code to build shared libraries, but 7520 # adding the `-m68020' flag to GCC prevents building anything better, 7521 # like `-m68040'. 7522 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7523 ;; 7524 7525 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7526 # PIC is the default for these OSes. 7527 ;; 7528 7529 mingw* | cygwin* | pw32* | os2*) 7530 # This hack is so that the source file can tell whether it is being 7531 # built for inclusion in a dll (and should export symbols for example). 7532 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7533 # (--disable-auto-import) libraries 7534 lt_prog_compiler_pic='-DDLL_EXPORT' 7535 ;; 7536 7537 darwin* | rhapsody*) 7538 # PIC is the default on this platform 7539 # Common symbols not allowed in MH_DYLIB files 7540 lt_prog_compiler_pic='-fno-common' 7541 ;; 7542 7543 interix3*) 7544 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7545 # Instead, we relocate shared libraries at runtime. 7546 ;; 7547 7548 msdosdjgpp*) 7549 # Just because we use GCC doesn't mean we suddenly get shared libraries 7550 # on systems that don't support them. 7551 lt_prog_compiler_can_build_shared=no 7552 enable_shared=no 7553 ;; 7554 7555 sysv4*MP*) 7556 if test -d /usr/nec; then 7557 lt_prog_compiler_pic=-Kconform_pic 7558 fi 7559 ;; 7560 7561 hpux*) 7562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7563 # not for PA HP-UX. 7564 case $host_cpu in 7565 hppa*64*|ia64*) 7566 # +Z the default 7567 ;; 7568 *) 7569 lt_prog_compiler_pic='-fPIC' 7570 ;; 7571 esac 7572 ;; 7573 7574 *) 7575 lt_prog_compiler_pic='-fPIC' 7576 ;; 7577 esac 7578 else 7579 # PORTME Check for flag to pass linker flags through the system compiler. 7580 case $host_os in 7581 aix*) 7582 lt_prog_compiler_wl='-Wl,' 7583 if test "$host_cpu" = ia64; then 7584 # AIX 5 now supports IA64 processor 7585 lt_prog_compiler_static='-Bstatic' 7586 else 7587 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7588 fi 7589 ;; 7590 darwin*) 7591 # PIC is the default on this platform 7592 # Common symbols not allowed in MH_DYLIB files 7593 case $cc_basename in 7594 xlc*) 7595 lt_prog_compiler_pic='-qnocommon' 7596 lt_prog_compiler_wl='-Wl,' 7597 ;; 7598 esac 7599 ;; 7600 7601 mingw* | cygwin* | pw32* | os2*) 7602 # This hack is so that the source file can tell whether it is being 7603 # built for inclusion in a dll (and should export symbols for example). 7604 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7605 # (--disable-auto-import) libraries 7606 lt_prog_compiler_pic='-DDLL_EXPORT' 7607 ;; 7608 7609 hpux9* | hpux10* | hpux11*) 7610 lt_prog_compiler_wl='-Wl,' 7611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7612 # not for PA HP-UX. 7613 case $host_cpu in 7614 hppa*64*|ia64*) 7615 # +Z the default 7616 ;; 7617 *) 7618 lt_prog_compiler_pic='+Z' 7619 ;; 7620 esac 7621 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7622 lt_prog_compiler_static='${wl}-a ${wl}archive' 7623 ;; 7624 7625 irix5* | irix6* | nonstopux*) 7626 lt_prog_compiler_wl='-Wl,' 7627 # PIC (with -KPIC) is the default. 7628 lt_prog_compiler_static='-non_shared' 7629 ;; 7630 7631 newsos6) 7632 lt_prog_compiler_pic='-KPIC' 7633 lt_prog_compiler_static='-Bstatic' 7634 ;; 7635 7636 linux*) 7637 case $cc_basename in 7638 icc* | ecc*) 7639 lt_prog_compiler_wl='-Wl,' 7640 lt_prog_compiler_pic='-KPIC' 7641 lt_prog_compiler_static='-static' 7642 ;; 7643 pgcc* | pgf77* | pgf90* | pgf95*) 7644 # Portland Group compilers (*not* the Pentium gcc compiler, 7645 # which looks to be a dead project) 7646 lt_prog_compiler_wl='-Wl,' 7647 lt_prog_compiler_pic='-fpic' 7648 lt_prog_compiler_static='-Bstatic' 7649 ;; 7650 ccc*) 7651 lt_prog_compiler_wl='-Wl,' 7652 # All Alpha code is PIC. 7653 lt_prog_compiler_static='-non_shared' 7654 ;; 7655 como) 7656 lt_prog_compiler_wl='-lopt=' 7657 ;; 7658 *) 7659 case `$CC -V 2>&1 | sed 5q` in 7660 *Sun\ C*) 7661 # Sun C 5.9 7662 lt_prog_compiler_pic='-KPIC' 7663 lt_prog_compiler_static='-Bstatic' 7664 lt_prog_compiler_wl='-Wl,' 7665 ;; 7666 *Sun\ F*) 7667 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7668 lt_prog_compiler_pic='-KPIC' 7669 lt_prog_compiler_static='-Bstatic' 7670 lt_prog_compiler_wl='' 7671 ;; 7672 esac 7673 ;; 7674 esac 7675 ;; 7676 7677 osf3* | osf4* | osf5*) 7678 lt_prog_compiler_wl='-Wl,' 7679 # All OSF/1 code is PIC. 7680 lt_prog_compiler_static='-non_shared' 7681 ;; 7682 7683 solaris*) 7684 lt_prog_compiler_pic='-KPIC' 7685 lt_prog_compiler_static='-Bstatic' 7686 case $cc_basename in 7687 f77* | f90* | f95*) 7688 lt_prog_compiler_wl='-Qoption ld ';; 7689 *) 7690 lt_prog_compiler_wl='-Wl,';; 7691 esac 7692 ;; 7693 7694 sunos4*) 7695 lt_prog_compiler_wl='-Qoption ld ' 7696 lt_prog_compiler_pic='-PIC' 7697 lt_prog_compiler_static='-Bstatic' 7698 ;; 7699 7700 sysv4 | sysv4.2uw2* | sysv4.3*) 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_pic='-KPIC' 7703 lt_prog_compiler_static='-Bstatic' 7704 ;; 7705 7706 sysv4*MP*) 7707 if test -d /usr/nec ;then 7708 lt_prog_compiler_pic='-Kconform_pic' 7709 lt_prog_compiler_static='-Bstatic' 7710 fi 7711 ;; 7712 7713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7714 lt_prog_compiler_wl='-Wl,' 7715 lt_prog_compiler_pic='-KPIC' 7716 lt_prog_compiler_static='-Bstatic' 7717 ;; 7718 7719 unicos*) 7720 lt_prog_compiler_wl='-Wl,' 7721 lt_prog_compiler_can_build_shared=no 7722 ;; 7723 7724 uts4*) 7725 lt_prog_compiler_pic='-pic' 7726 lt_prog_compiler_static='-Bstatic' 7727 ;; 7728 7729 *) 7730 lt_prog_compiler_can_build_shared=no 7731 ;; 7732 esac 7733 fi 7734 7735 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7736 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7737 7738 # 7739 # Check to make sure the PIC flag actually works. 7740 # 7741 if test -n "$lt_prog_compiler_pic"; then 7742 7743 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7744 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7745 if test "${lt_prog_compiler_pic_works+set}" = set; then 7746 echo $ECHO_N "(cached) $ECHO_C" >&6 7747 else 7748 lt_prog_compiler_pic_works=no 7749 ac_outfile=conftest.$ac_objext 7750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7752 # Insert the option either (1) after the last *FLAGS variable, or 7753 # (2) before a word containing "conftest.", or (3) at the end. 7754 # Note that $ac_compile itself does not contain backslashes and begins 7755 # with a dollar sign (not a hyphen), so the echo should work correctly. 7756 # The option is referenced via a variable to avoid confusing sed. 7757 lt_compile=`echo "$ac_compile" | $SED \ 7758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7760 -e 's:$: $lt_compiler_flag:'` 7761 (eval echo "\"\$as_me:7761: $lt_compile\"" >&5) 7762 (eval "$lt_compile" 2>conftest.err) 7763 ac_status=$? 7764 cat conftest.err >&5 7765 echo "$as_me:7765: \$? = $ac_status" >&5 7766 if (exit $ac_status) && test -s "$ac_outfile"; then 7767 # The compiler can only warn and ignore the option if not recognized 7768 # So say no if there are warnings other than the usual output. 7769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7772 lt_prog_compiler_pic_works=yes 7773 fi 7774 fi 7775 $rm conftest* 7776 7777 fi 7778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7779 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7780 7781 if test x"$lt_prog_compiler_pic_works" = xyes; then 7782 case $lt_prog_compiler_pic in 7783 "" | " "*) ;; 7784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7785 esac 7786 else 7787 lt_prog_compiler_pic= 7788 lt_prog_compiler_can_build_shared=no 7789 fi 7790 7791 fi 7792 case $host_os in 7793 # For platforms which do not support PIC, -DPIC is meaningless: 7794 *djgpp*) 7795 lt_prog_compiler_pic= 7796 ;; 7797 *) 7798 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7799 ;; 7800 esac 7801 7802 # 7803 # Check to make sure the static flag actually works. 7804 # 7805 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7806 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7807 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7808 if test "${lt_prog_compiler_static_works+set}" = set; then 7809 echo $ECHO_N "(cached) $ECHO_C" >&6 7810 else 7811 lt_prog_compiler_static_works=no 7812 save_LDFLAGS="$LDFLAGS" 7813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7814 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7816 # The linker can only warn and ignore the option if not recognized 7817 # So say no if there are warnings 7818 if test -s conftest.err; then 7819 # Append any errors to the config.log. 7820 cat conftest.err 1>&5 7821 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7823 if diff conftest.exp conftest.er2 >/dev/null; then 7824 lt_prog_compiler_static_works=yes 7825 fi 7826 else 7827 lt_prog_compiler_static_works=yes 7828 fi 7829 fi 7830 $rm conftest* 7831 LDFLAGS="$save_LDFLAGS" 7832 7833 fi 7834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7835 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7836 7837 if test x"$lt_prog_compiler_static_works" = xyes; then 7838 : 7839 else 7840 lt_prog_compiler_static= 7841 fi 7842 7843 7844 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7845 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7847 echo $ECHO_N "(cached) $ECHO_C" >&6 7848 else 7849 lt_cv_prog_compiler_c_o=no 7850 $rm -r conftest 2>/dev/null 7851 mkdir conftest 7852 cd conftest 7853 mkdir out 7854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7855 7856 lt_compiler_flag="-o out/conftest2.$ac_objext" 7857 # Insert the option either (1) after the last *FLAGS variable, or 7858 # (2) before a word containing "conftest.", or (3) at the end. 7859 # Note that $ac_compile itself does not contain backslashes and begins 7860 # with a dollar sign (not a hyphen), so the echo should work correctly. 7861 lt_compile=`echo "$ac_compile" | $SED \ 7862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7864 -e 's:$: $lt_compiler_flag:'` 7865 (eval echo "\"\$as_me:7865: $lt_compile\"" >&5) 7866 (eval "$lt_compile" 2>out/conftest.err) 7867 ac_status=$? 7868 cat out/conftest.err >&5 7869 echo "$as_me:7869: \$? = $ac_status" >&5 7870 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7871 then 7872 # The compiler can only warn and ignore the option if not recognized 7873 # So say no if there are warnings 7874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7877 lt_cv_prog_compiler_c_o=yes 7878 fi 7879 fi 7880 chmod u+w . 2>&5 7881 $rm conftest* 7882 # SGI C++ compiler will create directory out/ii_files/ for 7883 # template instantiation 7884 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7885 $rm out/* && rmdir out 7886 cd .. 7887 rmdir conftest 7888 $rm conftest* 7889 7890 fi 7891 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7892 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7893 7894 7895 hard_links="nottested" 7896 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7897 # do not overwrite the value of need_locks provided by the user 7898 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7899 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7900 hard_links=yes 7901 $rm conftest* 7902 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7903 touch conftest.a 7904 ln conftest.a conftest.b 2>&5 || hard_links=no 7905 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7906 { echo "$as_me:$LINENO: result: $hard_links" >&5 7907 echo "${ECHO_T}$hard_links" >&6; } 7908 if test "$hard_links" = no; then 7909 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7910 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7911 need_locks=warn 7912 fi 7913 else 7914 need_locks=no 7915 fi 7916 7917 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7918 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7919 7920 runpath_var= 7921 allow_undefined_flag= 7922 enable_shared_with_static_runtimes=no 7923 archive_cmds= 7924 archive_expsym_cmds= 7925 old_archive_From_new_cmds= 7926 old_archive_from_expsyms_cmds= 7927 export_dynamic_flag_spec= 7928 whole_archive_flag_spec= 7929 thread_safe_flag_spec= 7930 hardcode_libdir_flag_spec= 7931 hardcode_libdir_flag_spec_ld= 7932 hardcode_libdir_separator= 7933 hardcode_direct=no 7934 hardcode_minus_L=no 7935 hardcode_shlibpath_var=unsupported 7936 link_all_deplibs=unknown 7937 hardcode_automatic=no 7938 module_cmds= 7939 module_expsym_cmds= 7940 always_export_symbols=no 7941 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7942 # include_expsyms should be a list of space-separated symbols to be *always* 7943 # included in the symbol list 7944 include_expsyms= 7945 # exclude_expsyms can be an extended regexp of symbols to exclude 7946 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7947 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7948 # as well as any symbol that contains `d'. 7949 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7950 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7951 # platforms (ab)use it in PIC code, but their linkers get confused if 7952 # the symbol is explicitly referenced. Since portable code cannot 7953 # rely on this symbol name, it's probably fine to never include it in 7954 # preloaded symbol tables. 7955 extract_expsyms_cmds= 7956 # Just being paranoid about ensuring that cc_basename is set. 7957 for cc_temp in $compiler""; do 7958 case $cc_temp in 7959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7961 \-*) ;; 7962 *) break;; 7963 esac 7964 done 7965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7966 7967 case $host_os in 7968 cygwin* | mingw* | pw32*) 7969 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7970 # When not using gcc, we currently assume that we are using 7971 # Microsoft Visual C++. 7972 if test "$GCC" != yes; then 7973 with_gnu_ld=no 7974 fi 7975 ;; 7976 interix*) 7977 # we just hope/assume this is gcc and not c89 (= MSVC++) 7978 with_gnu_ld=yes 7979 ;; 7980 openbsd*) 7981 with_gnu_ld=no 7982 ;; 7983 esac 7984 7985 ld_shlibs=yes 7986 if test "$with_gnu_ld" = yes; then 7987 # If archive_cmds runs LD, not CC, wlarc should be empty 7988 wlarc='${wl}' 7989 7990 # Set some defaults for GNU ld with shared library support. These 7991 # are reset later if shared libraries are not supported. Putting them 7992 # here allows them to be overridden if necessary. 7993 runpath_var=LD_RUN_PATH 7994 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7995 export_dynamic_flag_spec='${wl}--export-dynamic' 7996 # ancient GNU ld didn't support --whole-archive et. al. 7997 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7998 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7999 else 8000 whole_archive_flag_spec= 8001 fi 8002 supports_anon_versioning=no 8003 case `$LD -v 2>/dev/null` in 8004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8007 *\ 2.11.*) ;; # other 2.11 versions 8008 *) supports_anon_versioning=yes ;; 8009 esac 8010 8011 # See if GNU ld supports shared libraries. 8012 case $host_os in 8013 aix3* | aix4* | aix5*) 8014 # On AIX/PPC, the GNU linker is very broken 8015 if test "$host_cpu" != ia64; then 8016 ld_shlibs=no 8017 cat <<EOF 1>&2 8018 8019 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 8020 *** to be unable to reliably create shared libraries on AIX. 8021 *** Therefore, libtool is disabling shared libraries support. If you 8022 *** really care for shared libraries, you may want to modify your PATH 8023 *** so that a non-GNU linker is found, and then restart. 8024 8025 EOF 8026 fi 8027 ;; 8028 8029 amigaos*) 8030 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)' 8031 hardcode_libdir_flag_spec='-L$libdir' 8032 hardcode_minus_L=yes 8033 8034 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 8035 # that the semantics of dynamic libraries on AmigaOS, at least up 8036 # to version 4, is to share data among multiple programs linked 8037 # with the same dynamic library. Since this doesn't match the 8038 # behavior of shared libraries on other platforms, we can't use 8039 # them. 8040 ld_shlibs=no 8041 ;; 8042 8043 beos*) 8044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8045 allow_undefined_flag=unsupported 8046 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8047 # support --undefined. This deserves some investigation. FIXME 8048 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8049 else 8050 ld_shlibs=no 8051 fi 8052 ;; 8053 8054 cygwin* | mingw* | pw32*) 8055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8056 # as there is no search path for DLLs. 8057 hardcode_libdir_flag_spec='-L$libdir' 8058 allow_undefined_flag=unsupported 8059 always_export_symbols=no 8060 enable_shared_with_static_runtimes=yes 8061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8062 8063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8065 # If the export-symbols file already is a .def file (1st line 8066 # is EXPORTS), use it as is; otherwise, prepend... 8067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8068 cp $export_symbols $output_objdir/$soname.def; 8069 else 8070 echo EXPORTS > $output_objdir/$soname.def; 8071 cat $export_symbols >> $output_objdir/$soname.def; 8072 fi~ 8073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8074 else 8075 ld_shlibs=no 8076 fi 8077 ;; 8078 8079 interix3*) 8080 hardcode_direct=no 8081 hardcode_shlibpath_var=no 8082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8083 export_dynamic_flag_spec='${wl}-E' 8084 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8085 # Instead, shared libraries are loaded at an image base (0x10000000 by 8086 # default) and relocated if they conflict, which is a slow very memory 8087 # consuming and fragmenting process. To avoid this, we pick a random, 8088 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8089 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8090 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8091 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' 8092 ;; 8093 8094 linux*) 8095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8096 tmp_addflag= 8097 case $cc_basename,$host_cpu in 8098 pgcc*) # Portland Group C compiler 8099 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' 8100 tmp_addflag=' $pic_flag' 8101 ;; 8102 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8103 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' 8104 tmp_addflag=' $pic_flag -Mnomain' ;; 8105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8106 tmp_addflag=' -i_dynamic' ;; 8107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8108 tmp_addflag=' -i_dynamic -nofor_main' ;; 8109 ifc* | ifort*) # Intel Fortran compiler 8110 tmp_addflag=' -nofor_main' ;; 8111 esac 8112 case `$CC -V 2>&1 | sed 5q` in 8113 *Sun\ C*) # Sun C 5.9 8114 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 /dev/null' 8115 tmp_sharedflag='-G' ;; 8116 *Sun\ F*) # Sun Fortran 8.3 8117 tmp_sharedflag='-G' ;; 8118 *) 8119 tmp_sharedflag='-shared' ;; 8120 esac 8121 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8122 8123 if test $supports_anon_versioning = yes; then 8124 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8125 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8126 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8127 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8128 fi 8129 else 8130 ld_shlibs=no 8131 fi 8132 ;; 8133 8134 netbsd*) 8135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8136 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8137 wlarc= 8138 else 8139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8141 fi 8142 ;; 8143 8144 solaris*) 8145 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8146 ld_shlibs=no 8147 cat <<EOF 1>&2 8148 8149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8150 *** create shared libraries on Solaris systems. Therefore, libtool 8151 *** is disabling shared libraries support. We urge you to upgrade GNU 8152 *** binutils to release 2.9.1 or newer. Another option is to modify 8153 *** your PATH or compiler configuration so that the native linker is 8154 *** used, and then restart. 8155 8156 EOF 8157 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8160 else 8161 ld_shlibs=no 8162 fi 8163 ;; 8164 8165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8166 case `$LD -v 2>&1` in 8167 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8168 ld_shlibs=no 8169 cat <<_LT_EOF 1>&2 8170 8171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8172 *** reliably create shared libraries on SCO systems. Therefore, libtool 8173 *** is disabling shared libraries support. We urge you to upgrade GNU 8174 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8175 *** your PATH or compiler configuration so that the native linker is 8176 *** used, and then restart. 8177 8178 _LT_EOF 8179 ;; 8180 *) 8181 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8182 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8185 else 8186 ld_shlibs=no 8187 fi 8188 ;; 8189 esac 8190 ;; 8191 8192 sunos4*) 8193 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8194 wlarc= 8195 hardcode_direct=yes 8196 hardcode_shlibpath_var=no 8197 ;; 8198 8199 *) 8200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8203 else 8204 ld_shlibs=no 8205 fi 8206 ;; 8207 esac 8208 8209 if test "$ld_shlibs" = no; then 8210 runpath_var= 8211 hardcode_libdir_flag_spec= 8212 export_dynamic_flag_spec= 8213 whole_archive_flag_spec= 8214 fi 8215 else 8216 # PORTME fill in a description of your system's linker (not GNU ld) 8217 case $host_os in 8218 aix3*) 8219 allow_undefined_flag=unsupported 8220 always_export_symbols=yes 8221 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' 8222 # Note: this linker hardcodes the directories in LIBPATH if there 8223 # are no directories specified by -L. 8224 hardcode_minus_L=yes 8225 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8226 # Neither direct hardcoding nor static linking is supported with a 8227 # broken collect2. 8228 hardcode_direct=unsupported 8229 fi 8230 ;; 8231 8232 aix4* | aix5*) 8233 if test "$host_cpu" = ia64; then 8234 # On IA64, the linker does run time linking by default, so we don't 8235 # have to do anything special. 8236 aix_use_runtimelinking=no 8237 exp_sym_flag='-Bexport' 8238 no_entry_flag="" 8239 else 8240 # If we're using GNU nm, then we don't want the "-C" option. 8241 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8242 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8243 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' 8244 else 8245 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' 8246 fi 8247 aix_use_runtimelinking=no 8248 8249 # Test if we are trying to use run time linking or normal 8250 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8251 # need to do runtime linking. 8252 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8253 for ld_flag in $LDFLAGS; do 8254 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8255 aix_use_runtimelinking=yes 8256 break 8257 fi 8258 done 8259 ;; 8260 esac 8261 8262 exp_sym_flag='-bexport' 8263 no_entry_flag='-bnoentry' 8264 fi 8265 8266 # When large executables or shared objects are built, AIX ld can 8267 # have problems creating the table of contents. If linking a library 8268 # or program results in "error TOC overflow" add -mminimal-toc to 8269 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8270 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8271 8272 archive_cmds='' 8273 hardcode_direct=yes 8274 hardcode_libdir_separator=':' 8275 link_all_deplibs=yes 8276 8277 if test "$GCC" = yes; then 8278 case $host_os in aix4.[012]|aix4.[012].*) 8279 # We only want to do this on AIX 4.2 and lower, the check 8280 # below for broken collect2 doesn't work under 4.3+ 8281 collect2name=`${CC} -print-prog-name=collect2` 8282 if test -f "$collect2name" && \ 8283 strings "$collect2name" | grep resolve_lib_name >/dev/null 8284 then 8285 # We have reworked collect2 8286 hardcode_direct=yes 8287 else 8288 # We have old collect2 8289 hardcode_direct=unsupported 8290 # It fails to find uninstalled libraries when the uninstalled 8291 # path is not listed in the libpath. Setting hardcode_minus_L 8292 # to unsupported forces relinking 8293 hardcode_minus_L=yes 8294 hardcode_libdir_flag_spec='-L$libdir' 8295 hardcode_libdir_separator= 8296 fi 8297 ;; 8298 esac 8299 shared_flag='-shared' 8300 if test "$aix_use_runtimelinking" = yes; then 8301 shared_flag="$shared_flag "'${wl}-G' 8302 fi 8303 else 8304 # not using gcc 8305 if test "$host_cpu" = ia64; then 8306 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8307 # chokes on -Wl,-G. The following line is correct: 8308 shared_flag='-G' 8309 else 8310 if test "$aix_use_runtimelinking" = yes; then 8311 shared_flag='${wl}-G' 8312 else 8313 shared_flag='${wl}-bM:SRE' 8314 fi 8315 fi 8316 fi 8317 8318 # It seems that -bexpall does not export symbols beginning with 8319 # underscore (_), so it is better to generate a list of symbols to export. 8320 always_export_symbols=yes 8321 if test "$aix_use_runtimelinking" = yes; then 8322 # Warning - without using the other runtime loading flags (-brtl), 8323 # -berok will link without error, but may produce a broken library. 8324 allow_undefined_flag='-berok' 8325 # Determine the default libpath from the value encoded in an empty executable. 8326 cat >conftest.$ac_ext <<_ACEOF 8327 /* confdefs.h. */ 8328 _ACEOF 8329 cat confdefs.h >>conftest.$ac_ext 8330 cat >>conftest.$ac_ext <<_ACEOF 8331 /* end confdefs.h. */ 8332 8333 int 8334 main () 8335 { 8336 8337 ; 8338 return 0; 8339 } 8340 _ACEOF 8341 rm -f conftest.$ac_objext conftest$ac_exeext 8342 if { (ac_try="$ac_link" 8343 case "(($ac_try" in 8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8345 *) ac_try_echo=$ac_try;; 8346 esac 8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8348 (eval "$ac_link") 2>conftest.er1 8349 ac_status=$? 8350 grep -v '^ *+' conftest.er1 >conftest.err 8351 rm -f conftest.er1 8352 cat conftest.err >&5 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 (exit $ac_status); } && { 8355 test -z "$ac_c_werror_flag" || 8356 test ! -s conftest.err 8357 } && test -s conftest$ac_exeext && 8358 $as_test_x conftest$ac_exeext; then 8359 8360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8361 }'` 8362 # Check for a 64-bit object if we didn't find anything. 8363 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8364 }'`; fi 8365 else 8366 echo "$as_me: failed program was:" >&5 8367 sed 's/^/| /' conftest.$ac_ext >&5 8368 8369 8370 fi 8371 8372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8373 conftest$ac_exeext conftest.$ac_ext 8374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8375 8376 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8377 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" 8378 else 8379 if test "$host_cpu" = ia64; then 8380 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8381 allow_undefined_flag="-z nodefs" 8382 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" 8383 else 8384 # Determine the default libpath from the value encoded in an empty executable. 8385 cat >conftest.$ac_ext <<_ACEOF 8386 /* confdefs.h. */ 8387 _ACEOF 8388 cat confdefs.h >>conftest.$ac_ext 8389 cat >>conftest.$ac_ext <<_ACEOF 8390 /* end confdefs.h. */ 8391 8392 int 8393 main () 8394 { 8395 8396 ; 8397 return 0; 8398 } 8399 _ACEOF 8400 rm -f conftest.$ac_objext conftest$ac_exeext 8401 if { (ac_try="$ac_link" 8402 case "(($ac_try" in 8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8404 *) ac_try_echo=$ac_try;; 8405 esac 8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8407 (eval "$ac_link") 2>conftest.er1 8408 ac_status=$? 8409 grep -v '^ *+' conftest.er1 >conftest.err 8410 rm -f conftest.er1 8411 cat conftest.err >&5 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 (exit $ac_status); } && { 8414 test -z "$ac_c_werror_flag" || 8415 test ! -s conftest.err 8416 } && test -s conftest$ac_exeext && 8417 $as_test_x conftest$ac_exeext; then 8418 8419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8420 }'` 8421 # Check for a 64-bit object if we didn't find anything. 8422 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8423 }'`; fi 8424 else 8425 echo "$as_me: failed program was:" >&5 8426 sed 's/^/| /' conftest.$ac_ext >&5 8427 8428 8429 fi 8430 8431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8432 conftest$ac_exeext conftest.$ac_ext 8433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8434 8435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8436 # Warning - without using the other run time loading flags, 8437 # -berok will link without error, but may produce a broken library. 8438 no_undefined_flag=' ${wl}-bernotok' 8439 allow_undefined_flag=' ${wl}-berok' 8440 # Exported symbols can be pulled into shared objects from archives 8441 whole_archive_flag_spec='$convenience' 8442 archive_cmds_need_lc=yes 8443 # This is similar to how AIX traditionally builds its shared libraries. 8444 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' 8445 fi 8446 fi 8447 ;; 8448 8449 amigaos*) 8450 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)' 8451 hardcode_libdir_flag_spec='-L$libdir' 8452 hardcode_minus_L=yes 8453 # see comment about different semantics on the GNU ld section 8454 ld_shlibs=no 8455 ;; 8456 8457 bsdi[45]*) 8458 export_dynamic_flag_spec=-rdynamic 8459 ;; 8460 8461 cygwin* | mingw* | pw32*) 8462 # When not using gcc, we currently assume that we are using 8463 # Microsoft Visual C++. 8464 # hardcode_libdir_flag_spec is actually meaningless, as there is 8465 # no search path for DLLs. 8466 hardcode_libdir_flag_spec=' ' 8467 allow_undefined_flag=unsupported 8468 # Tell ltmain to make .lib files, not .a files. 8469 libext=lib 8470 # Tell ltmain to make .dll files, not .so files. 8471 shrext_cmds=".dll" 8472 # FIXME: Setting linknames here is a bad hack. 8473 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8474 # The linker will automatically build a .lib file if we build a DLL. 8475 old_archive_From_new_cmds='true' 8476 # FIXME: Should let the user specify the lib program. 8477 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8478 fix_srcfile_path='`cygpath -w "$srcfile"`' 8479 enable_shared_with_static_runtimes=yes 8480 ;; 8481 8482 darwin* | rhapsody*) 8483 case $host_os in 8484 rhapsody* | darwin1.[012]) 8485 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8486 ;; 8487 *) # Darwin 1.3 on 8488 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8490 else 8491 case ${MACOSX_DEPLOYMENT_TARGET} in 8492 10.[012]) 8493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8494 ;; 8495 10.*) 8496 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8497 ;; 8498 esac 8499 fi 8500 ;; 8501 esac 8502 archive_cmds_need_lc=no 8503 hardcode_direct=no 8504 hardcode_automatic=yes 8505 hardcode_shlibpath_var=unsupported 8506 whole_archive_flag_spec='' 8507 link_all_deplibs=yes 8508 if test "$GCC" = yes ; then 8509 output_verbose_link_cmd='echo' 8510 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8511 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8512 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8513 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}' 8514 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}' 8515 else 8516 case $cc_basename in 8517 xlc*) 8518 output_verbose_link_cmd='echo' 8519 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8520 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8522 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8523 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}' 8524 ;; 8525 *) 8526 ld_shlibs=no 8527 ;; 8528 esac 8529 fi 8530 ;; 8531 8532 dgux*) 8533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8534 hardcode_libdir_flag_spec='-L$libdir' 8535 hardcode_shlibpath_var=no 8536 ;; 8537 8538 freebsd1*) 8539 ld_shlibs=no 8540 ;; 8541 8542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8543 # support. Future versions do this automatically, but an explicit c++rt0.o 8544 # does not break anything, and helps significantly (at the cost of a little 8545 # extra space). 8546 freebsd2.2*) 8547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8548 hardcode_libdir_flag_spec='-R$libdir' 8549 hardcode_direct=yes 8550 hardcode_shlibpath_var=no 8551 ;; 8552 8553 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8554 freebsd2*) 8555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8556 hardcode_direct=yes 8557 hardcode_minus_L=yes 8558 hardcode_shlibpath_var=no 8559 ;; 8560 8561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8562 freebsd* | kfreebsd*-gnu | dragonfly*) 8563 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8564 hardcode_libdir_flag_spec='-R$libdir' 8565 hardcode_direct=yes 8566 hardcode_shlibpath_var=no 8567 ;; 8568 8569 hpux9*) 8570 if test "$GCC" = yes; then 8571 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' 8572 else 8573 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' 8574 fi 8575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8576 hardcode_libdir_separator=: 8577 hardcode_direct=yes 8578 8579 # hardcode_minus_L: Not really in the search PATH, 8580 # but as the default location of the library. 8581 hardcode_minus_L=yes 8582 export_dynamic_flag_spec='${wl}-E' 8583 ;; 8584 8585 hpux10*) 8586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8588 else 8589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8590 fi 8591 if test "$with_gnu_ld" = no; then 8592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8593 hardcode_libdir_separator=: 8594 8595 hardcode_direct=yes 8596 export_dynamic_flag_spec='${wl}-E' 8597 8598 # hardcode_minus_L: Not really in the search PATH, 8599 # but as the default location of the library. 8600 hardcode_minus_L=yes 8601 fi 8602 ;; 8603 8604 hpux11*) 8605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8606 case $host_cpu in 8607 hppa*64*) 8608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8609 ;; 8610 ia64*) 8611 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8612 ;; 8613 *) 8614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8615 ;; 8616 esac 8617 else 8618 case $host_cpu in 8619 hppa*64*) 8620 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8621 ;; 8622 ia64*) 8623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8624 ;; 8625 *) 8626 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8627 ;; 8628 esac 8629 fi 8630 if test "$with_gnu_ld" = no; then 8631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8632 hardcode_libdir_separator=: 8633 8634 case $host_cpu in 8635 hppa*64*|ia64*) 8636 hardcode_libdir_flag_spec_ld='+b $libdir' 8637 hardcode_direct=no 8638 hardcode_shlibpath_var=no 8639 ;; 8640 *) 8641 hardcode_direct=yes 8642 export_dynamic_flag_spec='${wl}-E' 8643 8644 # hardcode_minus_L: Not really in the search PATH, 8645 # but as the default location of the library. 8646 hardcode_minus_L=yes 8647 ;; 8648 esac 8649 fi 8650 ;; 8651 8652 irix5* | irix6* | nonstopux*) 8653 if test "$GCC" = yes; then 8654 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' 8655 else 8656 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' 8657 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8658 fi 8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8660 hardcode_libdir_separator=: 8661 link_all_deplibs=yes 8662 ;; 8663 8664 netbsd*) 8665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8667 else 8668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8669 fi 8670 hardcode_libdir_flag_spec='-R$libdir' 8671 hardcode_direct=yes 8672 hardcode_shlibpath_var=no 8673 ;; 8674 8675 newsos6) 8676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8677 hardcode_direct=yes 8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8679 hardcode_libdir_separator=: 8680 hardcode_shlibpath_var=no 8681 ;; 8682 8683 openbsd*) 8684 hardcode_direct=yes 8685 hardcode_shlibpath_var=no 8686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8688 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8690 export_dynamic_flag_spec='${wl}-E' 8691 else 8692 case $host_os in 8693 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8695 hardcode_libdir_flag_spec='-R$libdir' 8696 ;; 8697 *) 8698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8700 ;; 8701 esac 8702 fi 8703 ;; 8704 8705 os2*) 8706 hardcode_libdir_flag_spec='-L$libdir' 8707 hardcode_minus_L=yes 8708 allow_undefined_flag=unsupported 8709 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' 8710 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8711 ;; 8712 8713 osf3*) 8714 if test "$GCC" = yes; then 8715 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8716 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' 8717 else 8718 allow_undefined_flag=' -expect_unresolved \*' 8719 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' 8720 fi 8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8722 hardcode_libdir_separator=: 8723 ;; 8724 8725 osf4* | osf5*) # as osf3* with the addition of -msym flag 8726 if test "$GCC" = yes; then 8727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8728 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' 8729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8730 else 8731 allow_undefined_flag=' -expect_unresolved \*' 8732 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' 8733 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8734 $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' 8735 8736 # Both c and cxx compiler support -rpath directly 8737 hardcode_libdir_flag_spec='-rpath $libdir' 8738 fi 8739 hardcode_libdir_separator=: 8740 ;; 8741 8742 solaris*) 8743 no_undefined_flag=' -z text' 8744 if test "$GCC" = yes; then 8745 wlarc='${wl}' 8746 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8747 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8748 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8749 else 8750 wlarc='' 8751 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8752 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8754 fi 8755 hardcode_libdir_flag_spec='-R$libdir' 8756 hardcode_shlibpath_var=no 8757 case $host_os in 8758 solaris2.[0-5] | solaris2.[0-5].*) ;; 8759 *) 8760 # The compiler driver will combine linker options so we 8761 # cannot just pass the convience library names through 8762 # without $wl, iff we do not link with $LD. 8763 # Luckily, gcc supports the same syntax we need for Sun Studio. 8764 # Supported since Solaris 2.6 (maybe 2.5.1?) 8765 case $wlarc in 8766 '') 8767 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8768 *) 8769 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8770 esac ;; 8771 esac 8772 link_all_deplibs=yes 8773 ;; 8774 8775 sunos4*) 8776 if test "x$host_vendor" = xsequent; then 8777 # Use $CC to link under sequent, because it throws in some extra .o 8778 # files that make .init and .fini sections work. 8779 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8780 else 8781 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8782 fi 8783 hardcode_libdir_flag_spec='-L$libdir' 8784 hardcode_direct=yes 8785 hardcode_minus_L=yes 8786 hardcode_shlibpath_var=no 8787 ;; 8788 8789 sysv4) 8790 case $host_vendor in 8791 sni) 8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8793 hardcode_direct=yes # is this really true??? 8794 ;; 8795 siemens) 8796 ## LD is ld it makes a PLAMLIB 8797 ## CC just makes a GrossModule. 8798 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8799 reload_cmds='$CC -r -o $output$reload_objs' 8800 hardcode_direct=no 8801 ;; 8802 motorola) 8803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8804 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8805 ;; 8806 esac 8807 runpath_var='LD_RUN_PATH' 8808 hardcode_shlibpath_var=no 8809 ;; 8810 8811 sysv4.3*) 8812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8813 hardcode_shlibpath_var=no 8814 export_dynamic_flag_spec='-Bexport' 8815 ;; 8816 8817 sysv4*MP*) 8818 if test -d /usr/nec; then 8819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8820 hardcode_shlibpath_var=no 8821 runpath_var=LD_RUN_PATH 8822 hardcode_runpath_var=yes 8823 ld_shlibs=yes 8824 fi 8825 ;; 8826 8827 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8828 no_undefined_flag='${wl}-z,text' 8829 archive_cmds_need_lc=no 8830 hardcode_shlibpath_var=no 8831 runpath_var='LD_RUN_PATH' 8832 8833 if test "$GCC" = yes; then 8834 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8835 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8836 else 8837 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8838 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8839 fi 8840 ;; 8841 8842 sysv5* | sco3.2v5* | sco5v6*) 8843 # Note: We can NOT use -z defs as we might desire, because we do not 8844 # link with -lc, and that would cause any symbols used from libc to 8845 # always be unresolved, which means just about no library would 8846 # ever link correctly. If we're not using GNU ld we use -z text 8847 # though, which does catch some bad symbols but isn't as heavy-handed 8848 # as -z defs. 8849 no_undefined_flag='${wl}-z,text' 8850 allow_undefined_flag='${wl}-z,nodefs' 8851 archive_cmds_need_lc=no 8852 hardcode_shlibpath_var=no 8853 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8854 hardcode_libdir_separator=':' 8855 link_all_deplibs=yes 8856 export_dynamic_flag_spec='${wl}-Bexport' 8857 runpath_var='LD_RUN_PATH' 8858 8859 if test "$GCC" = yes; then 8860 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8861 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8862 else 8863 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8864 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8865 fi 8866 ;; 8867 8868 uts4*) 8869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8870 hardcode_libdir_flag_spec='-L$libdir' 8871 hardcode_shlibpath_var=no 8872 ;; 8873 8874 *) 8875 ld_shlibs=no 8876 ;; 8877 esac 8878 fi 8879 8880 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8881 echo "${ECHO_T}$ld_shlibs" >&6; } 8882 test "$ld_shlibs" = no && can_build_shared=no 8883 8884 # 8885 # Do we need to explicitly link libc? 8886 # 8887 case "x$archive_cmds_need_lc" in 8888 x|xyes) 8889 # Assume -lc should be added 8890 archive_cmds_need_lc=yes 8891 8892 if test "$enable_shared" = yes && test "$GCC" = yes; then 8893 case $archive_cmds in 8894 *'~'*) 8895 # FIXME: we may have to deal with multi-command sequences. 8896 ;; 8897 '$CC '*) 8898 # Test whether the compiler implicitly links with -lc since on some 8899 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8900 # to ld, don't add -lc before -lgcc. 8901 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8902 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8903 $rm conftest* 8904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8905 8906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8907 (eval $ac_compile) 2>&5 8908 ac_status=$? 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8910 (exit $ac_status); } 2>conftest.err; then 8911 soname=conftest 8912 lib=conftest 8913 libobjs=conftest.$ac_objext 8914 deplibs= 8915 wl=$lt_prog_compiler_wl 8916 pic_flag=$lt_prog_compiler_pic 8917 compiler_flags=-v 8918 linker_flags=-v 8919 verstring= 8920 output_objdir=. 8921 libname=conftest 8922 lt_save_allow_undefined_flag=$allow_undefined_flag 8923 allow_undefined_flag= 8924 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8925 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8926 ac_status=$? 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); } 8929 then 8930 archive_cmds_need_lc=no 8931 else 8932 archive_cmds_need_lc=yes 8933 fi 8934 allow_undefined_flag=$lt_save_allow_undefined_flag 8935 else 8936 cat conftest.err 1>&5 8937 fi 8938 $rm conftest* 8939 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8940 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8941 ;; 8942 esac 8943 fi 8944 ;; 8945 esac 8946 8947 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8948 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8949 library_names_spec= 8950 libname_spec='lib$name' 8951 soname_spec= 8952 shrext_cmds=".so" 8953 postinstall_cmds= 8954 postuninstall_cmds= 8955 finish_cmds= 8956 finish_eval= 8957 shlibpath_var= 8958 shlibpath_overrides_runpath=unknown 8959 version_type=none 8960 dynamic_linker="$host_os ld.so" 8961 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8962 if test "$GCC" = yes; then 8963 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8964 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8965 # if the path contains ";" then we assume it to be the separator 8966 # otherwise default to the standard path separator (i.e. ":") - it is 8967 # assumed that no part of a normal pathname contains ";" but that should 8968 # okay in the real world where ";" in dirpaths is itself problematic. 8969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8970 else 8971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8972 fi 8973 else 8974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8975 fi 8976 need_lib_prefix=unknown 8977 hardcode_into_libs=no 8978 8979 # when you set need_version to no, make sure it does not cause -set_version 8980 # flags to be left without arguments 8981 need_version=unknown 8982 8983 case $host_os in 8984 aix3*) 8985 version_type=linux 8986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8987 shlibpath_var=LIBPATH 8988 8989 # AIX 3 has no versioning support, so we append a major version to the name. 8990 soname_spec='${libname}${release}${shared_ext}$major' 8991 ;; 8992 8993 aix4* | aix5*) 8994 version_type=linux 8995 need_lib_prefix=no 8996 need_version=no 8997 hardcode_into_libs=yes 8998 if test "$host_cpu" = ia64; then 8999 # AIX 5 supports IA64 9000 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9001 shlibpath_var=LD_LIBRARY_PATH 9002 else 9003 # With GCC up to 2.95.x, collect2 would create an import file 9004 # for dependence libraries. The import file would start with 9005 # the line `#! .'. This would cause the generated library to 9006 # depend on `.', always an invalid library. This was fixed in 9007 # development snapshots of GCC prior to 3.0. 9008 case $host_os in 9009 aix4 | aix4.[01] | aix4.[01].*) 9010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9011 echo ' yes ' 9012 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9013 : 9014 else 9015 can_build_shared=no 9016 fi 9017 ;; 9018 esac 9019 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9020 # soname into executable. Probably we can add versioning support to 9021 # collect2, so additional links can be useful in future. 9022 if test "$aix_use_runtimelinking" = yes; then 9023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9024 # instead of lib<name>.a to let people know that these are not 9025 # typical AIX shared libraries. 9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9027 else 9028 # We preserve .a as extension for shared libraries through AIX4.2 9029 # and later when we are not doing run time linking. 9030 library_names_spec='${libname}${release}.a $libname.a' 9031 soname_spec='${libname}${release}${shared_ext}$major' 9032 fi 9033 shlibpath_var=LIBPATH 9034 fi 9035 ;; 9036 9037 amigaos*) 9038 library_names_spec='$libname.ixlibrary $libname.a' 9039 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9040 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' 9041 ;; 9042 9043 beos*) 9044 library_names_spec='${libname}${shared_ext}' 9045 dynamic_linker="$host_os ld.so" 9046 shlibpath_var=LIBRARY_PATH 9047 ;; 9048 9049 bsdi[45]*) 9050 version_type=linux 9051 need_version=no 9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9053 soname_spec='${libname}${release}${shared_ext}$major' 9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9055 shlibpath_var=LD_LIBRARY_PATH 9056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9058 # the default ld.so.conf also contains /usr/contrib/lib and 9059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9060 # libtool to hard-code these into programs 9061 ;; 9062 9063 cygwin* | mingw* | pw32*) 9064 version_type=windows 9065 shrext_cmds=".dll" 9066 need_version=no 9067 need_lib_prefix=no 9068 9069 case $GCC,$host_os in 9070 yes,cygwin* | yes,mingw* | yes,pw32*) 9071 library_names_spec='$libname.dll.a' 9072 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9073 postinstall_cmds='base_file=`basename \${file}`~ 9074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9075 dldir=$destdir/`dirname \$dlpath`~ 9076 test -d \$dldir || mkdir -p \$dldir~ 9077 $install_prog $dir/$dlname \$dldir/$dlname~ 9078 chmod a+x \$dldir/$dlname' 9079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9080 dlpath=$dir/\$dldll~ 9081 $rm \$dlpath' 9082 shlibpath_overrides_runpath=yes 9083 9084 case $host_os in 9085 cygwin*) 9086 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9087 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9088 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9089 ;; 9090 mingw*) 9091 # MinGW DLLs use traditional 'lib' prefix 9092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9094 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9095 # It is most probably a Windows format PATH printed by 9096 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9097 # path with ; separators, and with drive letters. We can handle the 9098 # drive letters (cygwin fileutils understands them), so leave them, 9099 # especially as we might pass files found there to a mingw objdump, 9100 # which wouldn't understand a cygwinified path. Ahh. 9101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9102 else 9103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9104 fi 9105 ;; 9106 pw32*) 9107 # pw32 DLLs use 'pw' prefix rather than 'lib' 9108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9109 ;; 9110 esac 9111 ;; 9112 9113 *) 9114 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9115 ;; 9116 esac 9117 dynamic_linker='Win32 ld.exe' 9118 # FIXME: first we should search . and the directory the executable is in 9119 shlibpath_var=PATH 9120 ;; 9121 9122 darwin* | rhapsody*) 9123 dynamic_linker="$host_os dyld" 9124 version_type=darwin 9125 need_lib_prefix=no 9126 need_version=no 9127 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9128 soname_spec='${libname}${release}${major}$shared_ext' 9129 shlibpath_overrides_runpath=yes 9130 shlibpath_var=DYLD_LIBRARY_PATH 9131 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9132 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9133 if test "$GCC" = yes; then 9134 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9135 else 9136 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9137 fi 9138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9139 ;; 9140 9141 dgux*) 9142 version_type=linux 9143 need_lib_prefix=no 9144 need_version=no 9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9146 soname_spec='${libname}${release}${shared_ext}$major' 9147 shlibpath_var=LD_LIBRARY_PATH 9148 ;; 9149 9150 freebsd1*) 9151 dynamic_linker=no 9152 ;; 9153 9154 kfreebsd*-gnu) 9155 version_type=linux 9156 need_lib_prefix=no 9157 need_version=no 9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9159 soname_spec='${libname}${release}${shared_ext}$major' 9160 shlibpath_var=LD_LIBRARY_PATH 9161 shlibpath_overrides_runpath=no 9162 hardcode_into_libs=yes 9163 dynamic_linker='GNU ld.so' 9164 ;; 9165 9166 freebsd* | dragonfly*) 9167 # DragonFly does not have aout. When/if they implement a new 9168 # versioning mechanism, adjust this. 9169 if test -x /usr/bin/objformat; then 9170 objformat=`/usr/bin/objformat` 9171 else 9172 case $host_os in 9173 freebsd[123]*) objformat=aout ;; 9174 *) objformat=elf ;; 9175 esac 9176 fi 9177 version_type=freebsd-$objformat 9178 case $version_type in 9179 freebsd-elf*) 9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9181 need_version=no 9182 need_lib_prefix=no 9183 ;; 9184 freebsd-*) 9185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9186 need_version=yes 9187 ;; 9188 esac 9189 shlibpath_var=LD_LIBRARY_PATH 9190 case $host_os in 9191 freebsd2*) 9192 shlibpath_overrides_runpath=yes 9193 ;; 9194 freebsd3.[01]* | freebsdelf3.[01]*) 9195 shlibpath_overrides_runpath=yes 9196 hardcode_into_libs=yes 9197 ;; 9198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9200 shlibpath_overrides_runpath=no 9201 hardcode_into_libs=yes 9202 ;; 9203 freebsd*) # from 4.6 on 9204 shlibpath_overrides_runpath=yes 9205 hardcode_into_libs=yes 9206 ;; 9207 esac 9208 ;; 9209 9210 gnu*) 9211 version_type=linux 9212 need_lib_prefix=no 9213 need_version=no 9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9215 soname_spec='${libname}${release}${shared_ext}$major' 9216 shlibpath_var=LD_LIBRARY_PATH 9217 hardcode_into_libs=yes 9218 ;; 9219 9220 hpux9* | hpux10* | hpux11*) 9221 # Give a soname corresponding to the major version so that dld.sl refuses to 9222 # link against other versions. 9223 version_type=sunos 9224 need_lib_prefix=no 9225 need_version=no 9226 case $host_cpu in 9227 ia64*) 9228 shrext_cmds='.so' 9229 hardcode_into_libs=yes 9230 dynamic_linker="$host_os dld.so" 9231 shlibpath_var=LD_LIBRARY_PATH 9232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9234 soname_spec='${libname}${release}${shared_ext}$major' 9235 if test "X$HPUX_IA64_MODE" = X32; then 9236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9237 else 9238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9239 fi 9240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9241 ;; 9242 hppa*64*) 9243 shrext_cmds='.sl' 9244 hardcode_into_libs=yes 9245 dynamic_linker="$host_os dld.sl" 9246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9249 soname_spec='${libname}${release}${shared_ext}$major' 9250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9252 ;; 9253 *) 9254 shrext_cmds='.sl' 9255 dynamic_linker="$host_os dld.sl" 9256 shlibpath_var=SHLIB_PATH 9257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9259 soname_spec='${libname}${release}${shared_ext}$major' 9260 ;; 9261 esac 9262 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9263 postinstall_cmds='chmod 555 $lib' 9264 ;; 9265 9266 interix3*) 9267 version_type=linux 9268 need_lib_prefix=no 9269 need_version=no 9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9271 soname_spec='${libname}${release}${shared_ext}$major' 9272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9273 shlibpath_var=LD_LIBRARY_PATH 9274 shlibpath_overrides_runpath=no 9275 hardcode_into_libs=yes 9276 ;; 9277 9278 irix5* | irix6* | nonstopux*) 9279 case $host_os in 9280 nonstopux*) version_type=nonstopux ;; 9281 *) 9282 if test "$lt_cv_prog_gnu_ld" = yes; then 9283 version_type=linux 9284 else 9285 version_type=irix 9286 fi ;; 9287 esac 9288 need_lib_prefix=no 9289 need_version=no 9290 soname_spec='${libname}${release}${shared_ext}$major' 9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9292 case $host_os in 9293 irix5* | nonstopux*) 9294 libsuff= shlibsuff= 9295 ;; 9296 *) 9297 case $LD in # libtool.m4 will add one of these switches to LD 9298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9299 libsuff= shlibsuff= libmagic=32-bit;; 9300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9301 libsuff=32 shlibsuff=N32 libmagic=N32;; 9302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9303 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9304 *) libsuff= shlibsuff= libmagic=never-match;; 9305 esac 9306 ;; 9307 esac 9308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9309 shlibpath_overrides_runpath=no 9310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9312 hardcode_into_libs=yes 9313 ;; 9314 9315 # No shared lib support for Linux oldld, aout, or coff. 9316 linux*oldld* | linux*aout* | linux*coff*) 9317 dynamic_linker=no 9318 ;; 9319 9320 # This must be Linux ELF. 9321 linux*) 9322 version_type=linux 9323 need_lib_prefix=no 9324 need_version=no 9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9326 soname_spec='${libname}${release}${shared_ext}$major' 9327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9328 shlibpath_var=LD_LIBRARY_PATH 9329 shlibpath_overrides_runpath=no 9330 # This implies no fast_install, which is unacceptable. 9331 # Some rework will be needed to allow for fast_install 9332 # before this can be enabled. 9333 hardcode_into_libs=yes 9334 9335 # Append ld.so.conf contents to the search path 9336 if test -f /etc/ld.so.conf; then 9337 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9339 fi 9340 9341 # We used to test for /lib/ld.so.1 and disable shared libraries on 9342 # powerpc, because MkLinux only supported shared libraries with the 9343 # GNU dynamic linker. Since this was broken with cross compilers, 9344 # most powerpc-linux boxes support dynamic linking these days and 9345 # people can always --disable-shared, the test was removed, and we 9346 # assume the GNU/Linux dynamic linker is in use. 9347 dynamic_linker='GNU/Linux ld.so' 9348 ;; 9349 9350 knetbsd*-gnu) 9351 version_type=linux 9352 need_lib_prefix=no 9353 need_version=no 9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9355 soname_spec='${libname}${release}${shared_ext}$major' 9356 shlibpath_var=LD_LIBRARY_PATH 9357 shlibpath_overrides_runpath=no 9358 hardcode_into_libs=yes 9359 dynamic_linker='GNU ld.so' 9360 ;; 9361 9362 netbsd*) 9363 version_type=sunos 9364 need_lib_prefix=no 9365 need_version=no 9366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9369 dynamic_linker='NetBSD (a.out) ld.so' 9370 else 9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9372 soname_spec='${libname}${release}${shared_ext}$major' 9373 dynamic_linker='NetBSD ld.elf_so' 9374 fi 9375 shlibpath_var=LD_LIBRARY_PATH 9376 shlibpath_overrides_runpath=yes 9377 hardcode_into_libs=yes 9378 ;; 9379 9380 newsos6) 9381 version_type=linux 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9383 shlibpath_var=LD_LIBRARY_PATH 9384 shlibpath_overrides_runpath=yes 9385 ;; 9386 9387 nto-qnx*) 9388 version_type=linux 9389 need_lib_prefix=no 9390 need_version=no 9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9392 soname_spec='${libname}${release}${shared_ext}$major' 9393 shlibpath_var=LD_LIBRARY_PATH 9394 shlibpath_overrides_runpath=yes 9395 ;; 9396 9397 openbsd*) 9398 version_type=sunos 9399 sys_lib_dlsearch_path_spec="/usr/lib" 9400 need_lib_prefix=no 9401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9402 case $host_os in 9403 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9404 *) need_version=no ;; 9405 esac 9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9408 shlibpath_var=LD_LIBRARY_PATH 9409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9410 case $host_os in 9411 openbsd2.[89] | openbsd2.[89].*) 9412 shlibpath_overrides_runpath=no 9413 ;; 9414 *) 9415 shlibpath_overrides_runpath=yes 9416 ;; 9417 esac 9418 else 9419 shlibpath_overrides_runpath=yes 9420 fi 9421 ;; 9422 9423 os2*) 9424 libname_spec='$name' 9425 shrext_cmds=".dll" 9426 need_lib_prefix=no 9427 library_names_spec='$libname${shared_ext} $libname.a' 9428 dynamic_linker='OS/2 ld.exe' 9429 shlibpath_var=LIBPATH 9430 ;; 9431 9432 osf3* | osf4* | osf5*) 9433 version_type=osf 9434 need_lib_prefix=no 9435 need_version=no 9436 soname_spec='${libname}${release}${shared_ext}$major' 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9438 shlibpath_var=LD_LIBRARY_PATH 9439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9441 ;; 9442 9443 solaris*) 9444 version_type=linux 9445 need_lib_prefix=no 9446 need_version=no 9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9448 soname_spec='${libname}${release}${shared_ext}$major' 9449 shlibpath_var=LD_LIBRARY_PATH 9450 shlibpath_overrides_runpath=yes 9451 hardcode_into_libs=yes 9452 # ldd complains unless libraries are executable 9453 postinstall_cmds='chmod +x $lib' 9454 ;; 9455 9456 sunos4*) 9457 version_type=sunos 9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9460 shlibpath_var=LD_LIBRARY_PATH 9461 shlibpath_overrides_runpath=yes 9462 if test "$with_gnu_ld" = yes; then 9463 need_lib_prefix=no 9464 fi 9465 need_version=yes 9466 ;; 9467 9468 sysv4 | sysv4.3*) 9469 version_type=linux 9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9471 soname_spec='${libname}${release}${shared_ext}$major' 9472 shlibpath_var=LD_LIBRARY_PATH 9473 case $host_vendor in 9474 sni) 9475 shlibpath_overrides_runpath=no 9476 need_lib_prefix=no 9477 export_dynamic_flag_spec='${wl}-Blargedynsym' 9478 runpath_var=LD_RUN_PATH 9479 ;; 9480 siemens) 9481 need_lib_prefix=no 9482 ;; 9483 motorola) 9484 need_lib_prefix=no 9485 need_version=no 9486 shlibpath_overrides_runpath=no 9487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9488 ;; 9489 esac 9490 ;; 9491 9492 sysv4*MP*) 9493 if test -d /usr/nec ;then 9494 version_type=linux 9495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9496 soname_spec='$libname${shared_ext}.$major' 9497 shlibpath_var=LD_LIBRARY_PATH 9498 fi 9499 ;; 9500 9501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9502 version_type=freebsd-elf 9503 need_lib_prefix=no 9504 need_version=no 9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9506 soname_spec='${libname}${release}${shared_ext}$major' 9507 shlibpath_var=LD_LIBRARY_PATH 9508 hardcode_into_libs=yes 9509 if test "$with_gnu_ld" = yes; then 9510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9511 shlibpath_overrides_runpath=no 9512 else 9513 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9514 shlibpath_overrides_runpath=yes 9515 case $host_os in 9516 sco3.2v5*) 9517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9518 ;; 9519 esac 9520 fi 9521 sys_lib_dlsearch_path_spec='/usr/lib' 9522 ;; 9523 9524 uts4*) 9525 version_type=linux 9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9527 soname_spec='${libname}${release}${shared_ext}$major' 9528 shlibpath_var=LD_LIBRARY_PATH 9529 ;; 9530 9531 *) 9532 dynamic_linker=no 9533 ;; 9534 esac 9535 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9536 echo "${ECHO_T}$dynamic_linker" >&6; } 9537 test "$dynamic_linker" = no && can_build_shared=no 9538 9539 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9540 if test "$GCC" = yes; then 9541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9542 fi 9543 9544 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9545 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9546 hardcode_action= 9547 if test -n "$hardcode_libdir_flag_spec" || \ 9548 test -n "$runpath_var" || \ 9549 test "X$hardcode_automatic" = "Xyes" ; then 9550 9551 # We can hardcode non-existant directories. 9552 if test "$hardcode_direct" != no && 9553 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9554 # have to relink, otherwise we might link with an installed library 9555 # when we should be linking with a yet-to-be-installed one 9556 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9557 test "$hardcode_minus_L" != no; then 9558 # Linking always hardcodes the temporary library directory. 9559 hardcode_action=relink 9560 else 9561 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9562 hardcode_action=immediate 9563 fi 9564 else 9565 # We cannot hardcode anything, or else we can only hardcode existing 9566 # directories. 9567 hardcode_action=unsupported 9568 fi 9569 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 9570 echo "${ECHO_T}$hardcode_action" >&6; } 9571 9572 if test "$hardcode_action" = relink; then 9573 # Fast installation is not supported 9574 enable_fast_install=no 9575 elif test "$shlibpath_overrides_runpath" = yes || 9576 test "$enable_shared" = no; then 9577 # Fast installation is not necessary 9578 enable_fast_install=needless 9579 fi 9580 9581 striplib= 9582 old_striplib= 9583 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9584 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9585 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9586 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9587 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9588 { echo "$as_me:$LINENO: result: yes" >&5 9589 echo "${ECHO_T}yes" >&6; } 9590 else 9591 # FIXME - insert some real tests, host_os isn't really good enough 9592 case $host_os in 9593 darwin*) 9594 if test -n "$STRIP" ; then 9595 striplib="$STRIP -x" 9596 { echo "$as_me:$LINENO: result: yes" >&5 9597 echo "${ECHO_T}yes" >&6; } 9598 else 9599 { echo "$as_me:$LINENO: result: no" >&5 9600 echo "${ECHO_T}no" >&6; } 9601 fi 9602 ;; 9603 *) 9604 { echo "$as_me:$LINENO: result: no" >&5 9605 echo "${ECHO_T}no" >&6; } 9606 ;; 9607 esac 9608 fi 9609 9610 if test "x$enable_dlopen" != xyes; then 9611 enable_dlopen=unknown 9612 enable_dlopen_self=unknown 9613 enable_dlopen_self_static=unknown 9614 else 9615 lt_cv_dlopen=no 9616 lt_cv_dlopen_libs= 9617 9618 case $host_os in 9619 beos*) 9620 lt_cv_dlopen="load_add_on" 9621 lt_cv_dlopen_libs= 9622 lt_cv_dlopen_self=yes 9623 ;; 9624 9625 mingw* | pw32*) 9626 lt_cv_dlopen="LoadLibrary" 9627 lt_cv_dlopen_libs= 9628 ;; 9629 9630 cygwin*) 9631 lt_cv_dlopen="dlopen" 9632 lt_cv_dlopen_libs= 9633 ;; 9634 9635 darwin*) 9636 # if libdl is installed we need to link against it 9637 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9638 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9639 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9640 echo $ECHO_N "(cached) $ECHO_C" >&6 9641 else 9642 ac_check_lib_save_LIBS=$LIBS 9643 LIBS="-ldl $LIBS" 9644 cat >conftest.$ac_ext <<_ACEOF 9645 /* confdefs.h. */ 9646 _ACEOF 9647 cat confdefs.h >>conftest.$ac_ext 9648 cat >>conftest.$ac_ext <<_ACEOF 9649 /* end confdefs.h. */ 9650 9651 /* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654 #ifdef __cplusplus 9655 extern "C" 9656 #endif 9657 char dlopen (); 9658 int 9659 main () 9660 { 9661 return dlopen (); 9662 ; 9663 return 0; 9664 } 9665 _ACEOF 9666 rm -f conftest.$ac_objext conftest$ac_exeext 9667 if { (ac_try="$ac_link" 9668 case "(($ac_try" in 9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9670 *) ac_try_echo=$ac_try;; 9671 esac 9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9673 (eval "$ac_link") 2>conftest.er1 9674 ac_status=$? 9675 grep -v '^ *+' conftest.er1 >conftest.err 9676 rm -f conftest.er1 9677 cat conftest.err >&5 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 (exit $ac_status); } && { 9680 test -z "$ac_c_werror_flag" || 9681 test ! -s conftest.err 9682 } && test -s conftest$ac_exeext && 9683 $as_test_x conftest$ac_exeext; then 9684 ac_cv_lib_dl_dlopen=yes 9685 else 9686 echo "$as_me: failed program was:" >&5 9687 sed 's/^/| /' conftest.$ac_ext >&5 9688 9689 ac_cv_lib_dl_dlopen=no 9690 fi 9691 9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9693 conftest$ac_exeext conftest.$ac_ext 9694 LIBS=$ac_check_lib_save_LIBS 9695 fi 9696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9698 if test $ac_cv_lib_dl_dlopen = yes; then 9699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9700 else 9701 9702 lt_cv_dlopen="dyld" 9703 lt_cv_dlopen_libs= 9704 lt_cv_dlopen_self=yes 9705 9706 fi 9707 9708 ;; 9709 9710 *) 9711 { echo "$as_me:$LINENO: checking for shl_load" >&5 9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9713 if test "${ac_cv_func_shl_load+set}" = set; then 9714 echo $ECHO_N "(cached) $ECHO_C" >&6 9715 else 9716 cat >conftest.$ac_ext <<_ACEOF 9717 /* confdefs.h. */ 9718 _ACEOF 9719 cat confdefs.h >>conftest.$ac_ext 9720 cat >>conftest.$ac_ext <<_ACEOF 9721 /* end confdefs.h. */ 9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9724 #define shl_load innocuous_shl_load 9725 9726 /* System header to define __stub macros and hopefully few prototypes, 9727 which can conflict with char shl_load (); below. 9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9729 <limits.h> exists even on freestanding compilers. */ 9730 9731 #ifdef __STDC__ 9732 # include <limits.h> 9733 #else 9734 # include <assert.h> 9735 #endif 9736 9737 #undef shl_load 9738 9739 /* Override any GCC internal prototype to avoid an error. 9740 Use char because int might match the return type of a GCC 9741 builtin and then its argument prototype would still apply. */ 9742 #ifdef __cplusplus 9743 extern "C" 9744 #endif 9745 char shl_load (); 9746 /* The GNU C library defines this for functions which it implements 9747 to always fail with ENOSYS. Some functions are actually named 9748 something starting with __ and the normal name is an alias. */ 9749 #if defined __stub_shl_load || defined __stub___shl_load 9750 choke me 9751 #endif 9752 9753 int 9754 main () 9755 { 9756 return shl_load (); 9757 ; 9758 return 0; 9759 } 9760 _ACEOF 9761 rm -f conftest.$ac_objext conftest$ac_exeext 9762 if { (ac_try="$ac_link" 9763 case "(($ac_try" in 9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9765 *) ac_try_echo=$ac_try;; 9766 esac 9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9768 (eval "$ac_link") 2>conftest.er1 9769 ac_status=$? 9770 grep -v '^ *+' conftest.er1 >conftest.err 9771 rm -f conftest.er1 9772 cat conftest.err >&5 9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9774 (exit $ac_status); } && { 9775 test -z "$ac_c_werror_flag" || 9776 test ! -s conftest.err 9777 } && test -s conftest$ac_exeext && 9778 $as_test_x conftest$ac_exeext; then 9779 ac_cv_func_shl_load=yes 9780 else 9781 echo "$as_me: failed program was:" >&5 9782 sed 's/^/| /' conftest.$ac_ext >&5 9783 9784 ac_cv_func_shl_load=no 9785 fi 9786 9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9788 conftest$ac_exeext conftest.$ac_ext 9789 fi 9790 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9791 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9792 if test $ac_cv_func_shl_load = yes; then 9793 lt_cv_dlopen="shl_load" 9794 else 9795 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9796 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9797 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9798 echo $ECHO_N "(cached) $ECHO_C" >&6 9799 else 9800 ac_check_lib_save_LIBS=$LIBS 9801 LIBS="-ldld $LIBS" 9802 cat >conftest.$ac_ext <<_ACEOF 9803 /* confdefs.h. */ 9804 _ACEOF 9805 cat confdefs.h >>conftest.$ac_ext 9806 cat >>conftest.$ac_ext <<_ACEOF 9807 /* end confdefs.h. */ 9808 9809 /* Override any GCC internal prototype to avoid an error. 9810 Use char because int might match the return type of a GCC 9811 builtin and then its argument prototype would still apply. */ 9812 #ifdef __cplusplus 9813 extern "C" 9814 #endif 9815 char shl_load (); 9816 int 9817 main () 9818 { 9819 return shl_load (); 9820 ; 9821 return 0; 9822 } 9823 _ACEOF 9824 rm -f conftest.$ac_objext conftest$ac_exeext 9825 if { (ac_try="$ac_link" 9826 case "(($ac_try" in 9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9828 *) ac_try_echo=$ac_try;; 9829 esac 9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9831 (eval "$ac_link") 2>conftest.er1 9832 ac_status=$? 9833 grep -v '^ *+' conftest.er1 >conftest.err 9834 rm -f conftest.er1 9835 cat conftest.err >&5 9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9837 (exit $ac_status); } && { 9838 test -z "$ac_c_werror_flag" || 9839 test ! -s conftest.err 9840 } && test -s conftest$ac_exeext && 9841 $as_test_x conftest$ac_exeext; then 9842 ac_cv_lib_dld_shl_load=yes 9843 else 9844 echo "$as_me: failed program was:" >&5 9845 sed 's/^/| /' conftest.$ac_ext >&5 9846 9847 ac_cv_lib_dld_shl_load=no 9848 fi 9849 9850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9851 conftest$ac_exeext conftest.$ac_ext 9852 LIBS=$ac_check_lib_save_LIBS 9853 fi 9854 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9855 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9856 if test $ac_cv_lib_dld_shl_load = yes; then 9857 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9858 else 9859 { echo "$as_me:$LINENO: checking for dlopen" >&5 9860 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9861 if test "${ac_cv_func_dlopen+set}" = set; then 9862 echo $ECHO_N "(cached) $ECHO_C" >&6 9863 else 9864 cat >conftest.$ac_ext <<_ACEOF 9865 /* confdefs.h. */ 9866 _ACEOF 9867 cat confdefs.h >>conftest.$ac_ext 9868 cat >>conftest.$ac_ext <<_ACEOF 9869 /* end confdefs.h. */ 9870 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9871 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9872 #define dlopen innocuous_dlopen 9873 9874 /* System header to define __stub macros and hopefully few prototypes, 9875 which can conflict with char dlopen (); below. 9876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9877 <limits.h> exists even on freestanding compilers. */ 9878 9879 #ifdef __STDC__ 9880 # include <limits.h> 9881 #else 9882 # include <assert.h> 9883 #endif 9884 9885 #undef dlopen 9886 9887 /* Override any GCC internal prototype to avoid an error. 9888 Use char because int might match the return type of a GCC 9889 builtin and then its argument prototype would still apply. */ 9890 #ifdef __cplusplus 9891 extern "C" 9892 #endif 9893 char dlopen (); 9894 /* The GNU C library defines this for functions which it implements 9895 to always fail with ENOSYS. Some functions are actually named 9896 something starting with __ and the normal name is an alias. */ 9897 #if defined __stub_dlopen || defined __stub___dlopen 9898 choke me 9899 #endif 9900 9901 int 9902 main () 9903 { 9904 return dlopen (); 9905 ; 9906 return 0; 9907 } 9908 _ACEOF 9909 rm -f conftest.$ac_objext conftest$ac_exeext 9910 if { (ac_try="$ac_link" 9911 case "(($ac_try" in 9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9913 *) ac_try_echo=$ac_try;; 9914 esac 9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9916 (eval "$ac_link") 2>conftest.er1 9917 ac_status=$? 9918 grep -v '^ *+' conftest.er1 >conftest.err 9919 rm -f conftest.er1 9920 cat conftest.err >&5 9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9922 (exit $ac_status); } && { 9923 test -z "$ac_c_werror_flag" || 9924 test ! -s conftest.err 9925 } && test -s conftest$ac_exeext && 9926 $as_test_x conftest$ac_exeext; then 9927 ac_cv_func_dlopen=yes 9928 else 9929 echo "$as_me: failed program was:" >&5 9930 sed 's/^/| /' conftest.$ac_ext >&5 9931 9932 ac_cv_func_dlopen=no 9933 fi 9934 9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9936 conftest$ac_exeext conftest.$ac_ext 9937 fi 9938 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9939 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9940 if test $ac_cv_func_dlopen = yes; then 9941 lt_cv_dlopen="dlopen" 9942 else 9943 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9944 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9946 echo $ECHO_N "(cached) $ECHO_C" >&6 9947 else 9948 ac_check_lib_save_LIBS=$LIBS 9949 LIBS="-ldl $LIBS" 9950 cat >conftest.$ac_ext <<_ACEOF 9951 /* confdefs.h. */ 9952 _ACEOF 9953 cat confdefs.h >>conftest.$ac_ext 9954 cat >>conftest.$ac_ext <<_ACEOF 9955 /* end confdefs.h. */ 9956 9957 /* Override any GCC internal prototype to avoid an error. 9958 Use char because int might match the return type of a GCC 9959 builtin and then its argument prototype would still apply. */ 9960 #ifdef __cplusplus 9961 extern "C" 9962 #endif 9963 char dlopen (); 9964 int 9965 main () 9966 { 9967 return dlopen (); 9968 ; 9969 return 0; 9970 } 9971 _ACEOF 9972 rm -f conftest.$ac_objext conftest$ac_exeext 9973 if { (ac_try="$ac_link" 9974 case "(($ac_try" in 9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9976 *) ac_try_echo=$ac_try;; 9977 esac 9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9979 (eval "$ac_link") 2>conftest.er1 9980 ac_status=$? 9981 grep -v '^ *+' conftest.er1 >conftest.err 9982 rm -f conftest.er1 9983 cat conftest.err >&5 9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9985 (exit $ac_status); } && { 9986 test -z "$ac_c_werror_flag" || 9987 test ! -s conftest.err 9988 } && test -s conftest$ac_exeext && 9989 $as_test_x conftest$ac_exeext; then 9990 ac_cv_lib_dl_dlopen=yes 9991 else 9992 echo "$as_me: failed program was:" >&5 9993 sed 's/^/| /' conftest.$ac_ext >&5 9994 9995 ac_cv_lib_dl_dlopen=no 9996 fi 9997 9998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9999 conftest$ac_exeext conftest.$ac_ext 10000 LIBS=$ac_check_lib_save_LIBS 10001 fi 10002 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10003 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10004 if test $ac_cv_lib_dl_dlopen = yes; then 10005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10006 else 10007 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10008 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10010 echo $ECHO_N "(cached) $ECHO_C" >&6 10011 else 10012 ac_check_lib_save_LIBS=$LIBS 10013 LIBS="-lsvld $LIBS" 10014 cat >conftest.$ac_ext <<_ACEOF 10015 /* confdefs.h. */ 10016 _ACEOF 10017 cat confdefs.h >>conftest.$ac_ext 10018 cat >>conftest.$ac_ext <<_ACEOF 10019 /* end confdefs.h. */ 10020 10021 /* Override any GCC internal prototype to avoid an error. 10022 Use char because int might match the return type of a GCC 10023 builtin and then its argument prototype would still apply. */ 10024 #ifdef __cplusplus 10025 extern "C" 10026 #endif 10027 char dlopen (); 10028 int 10029 main () 10030 { 10031 return dlopen (); 10032 ; 10033 return 0; 10034 } 10035 _ACEOF 10036 rm -f conftest.$ac_objext conftest$ac_exeext 10037 if { (ac_try="$ac_link" 10038 case "(($ac_try" in 10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10040 *) ac_try_echo=$ac_try;; 10041 esac 10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10043 (eval "$ac_link") 2>conftest.er1 10044 ac_status=$? 10045 grep -v '^ *+' conftest.er1 >conftest.err 10046 rm -f conftest.er1 10047 cat conftest.err >&5 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && { 10050 test -z "$ac_c_werror_flag" || 10051 test ! -s conftest.err 10052 } && test -s conftest$ac_exeext && 10053 $as_test_x conftest$ac_exeext; then 10054 ac_cv_lib_svld_dlopen=yes 10055 else 10056 echo "$as_me: failed program was:" >&5 10057 sed 's/^/| /' conftest.$ac_ext >&5 10058 10059 ac_cv_lib_svld_dlopen=no 10060 fi 10061 10062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10063 conftest$ac_exeext conftest.$ac_ext 10064 LIBS=$ac_check_lib_save_LIBS 10065 fi 10066 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10067 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10068 if test $ac_cv_lib_svld_dlopen = yes; then 10069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10070 else 10071 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10072 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10073 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10074 echo $ECHO_N "(cached) $ECHO_C" >&6 10075 else 10076 ac_check_lib_save_LIBS=$LIBS 10077 LIBS="-ldld $LIBS" 10078 cat >conftest.$ac_ext <<_ACEOF 10079 /* confdefs.h. */ 10080 _ACEOF 10081 cat confdefs.h >>conftest.$ac_ext 10082 cat >>conftest.$ac_ext <<_ACEOF 10083 /* end confdefs.h. */ 10084 10085 /* Override any GCC internal prototype to avoid an error. 10086 Use char because int might match the return type of a GCC 10087 builtin and then its argument prototype would still apply. */ 10088 #ifdef __cplusplus 10089 extern "C" 10090 #endif 10091 char dld_link (); 10092 int 10093 main () 10094 { 10095 return dld_link (); 10096 ; 10097 return 0; 10098 } 10099 _ACEOF 10100 rm -f conftest.$ac_objext conftest$ac_exeext 10101 if { (ac_try="$ac_link" 10102 case "(($ac_try" in 10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10104 *) ac_try_echo=$ac_try;; 10105 esac 10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10107 (eval "$ac_link") 2>conftest.er1 10108 ac_status=$? 10109 grep -v '^ *+' conftest.er1 >conftest.err 10110 rm -f conftest.er1 10111 cat conftest.err >&5 10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10113 (exit $ac_status); } && { 10114 test -z "$ac_c_werror_flag" || 10115 test ! -s conftest.err 10116 } && test -s conftest$ac_exeext && 10117 $as_test_x conftest$ac_exeext; then 10118 ac_cv_lib_dld_dld_link=yes 10119 else 10120 echo "$as_me: failed program was:" >&5 10121 sed 's/^/| /' conftest.$ac_ext >&5 10122 10123 ac_cv_lib_dld_dld_link=no 10124 fi 10125 10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10127 conftest$ac_exeext conftest.$ac_ext 10128 LIBS=$ac_check_lib_save_LIBS 10129 fi 10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10131 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10132 if test $ac_cv_lib_dld_dld_link = yes; then 10133 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10134 fi 10135 10136 10137 fi 10138 10139 10140 fi 10141 10142 10143 fi 10144 10145 10146 fi 10147 10148 10149 fi 10150 10151 ;; 10152 esac 10153 10154 if test "x$lt_cv_dlopen" != xno; then 10155 enable_dlopen=yes 10156 else 10157 enable_dlopen=no 10158 fi 10159 10160 case $lt_cv_dlopen in 10161 dlopen) 10162 save_CPPFLAGS="$CPPFLAGS" 10163 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10164 10165 save_LDFLAGS="$LDFLAGS" 10166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10167 10168 save_LIBS="$LIBS" 10169 LIBS="$lt_cv_dlopen_libs $LIBS" 10170 10171 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10172 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10173 if test "${lt_cv_dlopen_self+set}" = set; then 10174 echo $ECHO_N "(cached) $ECHO_C" >&6 10175 else 10176 if test "$cross_compiling" = yes; then : 10177 lt_cv_dlopen_self=cross 10178 else 10179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10180 lt_status=$lt_dlunknown 10181 cat > conftest.$ac_ext <<EOF 10182 #line 10182 "configure" 10183 #include "confdefs.h" 10184 10185 #if HAVE_DLFCN_H 10186 #include <dlfcn.h> 10187 #endif 10188 10189 #include <stdio.h> 10190 10191 #ifdef RTLD_GLOBAL 10192 # define LT_DLGLOBAL RTLD_GLOBAL 10193 #else 10194 # ifdef DL_GLOBAL 10195 # define LT_DLGLOBAL DL_GLOBAL 10196 # else 10197 # define LT_DLGLOBAL 0 10198 # endif 10199 #endif 10200 10201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10202 find out it does not work in some platform. */ 10203 #ifndef LT_DLLAZY_OR_NOW 10204 # ifdef RTLD_LAZY 10205 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10206 # else 10207 # ifdef DL_LAZY 10208 # define LT_DLLAZY_OR_NOW DL_LAZY 10209 # else 10210 # ifdef RTLD_NOW 10211 # define LT_DLLAZY_OR_NOW RTLD_NOW 10212 # else 10213 # ifdef DL_NOW 10214 # define LT_DLLAZY_OR_NOW DL_NOW 10215 # else 10216 # define LT_DLLAZY_OR_NOW 0 10217 # endif 10218 # endif 10219 # endif 10220 # endif 10221 #endif 10222 10223 #ifdef __cplusplus 10224 extern "C" void exit (int); 10225 #endif 10226 10227 void fnord() { int i=42;} 10228 int main () 10229 { 10230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10231 int status = $lt_dlunknown; 10232 10233 if (self) 10234 { 10235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10236 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10237 /* dlclose (self); */ 10238 } 10239 else 10240 puts (dlerror ()); 10241 10242 exit (status); 10243 } 10244 EOF 10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10246 (eval $ac_link) 2>&5 10247 ac_status=$? 10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10249 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10250 (./conftest; exit; ) >&5 2>/dev/null 10251 lt_status=$? 10252 case x$lt_status in 10253 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10254 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10255 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10256 esac 10257 else : 10258 # compilation failed 10259 lt_cv_dlopen_self=no 10260 fi 10261 fi 10262 rm -fr conftest* 10263 10264 10265 fi 10266 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10267 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10268 10269 if test "x$lt_cv_dlopen_self" = xyes; then 10270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10271 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10272 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10273 if test "${lt_cv_dlopen_self_static+set}" = set; then 10274 echo $ECHO_N "(cached) $ECHO_C" >&6 10275 else 10276 if test "$cross_compiling" = yes; then : 10277 lt_cv_dlopen_self_static=cross 10278 else 10279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10280 lt_status=$lt_dlunknown 10281 cat > conftest.$ac_ext <<EOF 10282 #line 10282 "configure" 10283 #include "confdefs.h" 10284 10285 #if HAVE_DLFCN_H 10286 #include <dlfcn.h> 10287 #endif 10288 10289 #include <stdio.h> 10290 10291 #ifdef RTLD_GLOBAL 10292 # define LT_DLGLOBAL RTLD_GLOBAL 10293 #else 10294 # ifdef DL_GLOBAL 10295 # define LT_DLGLOBAL DL_GLOBAL 10296 # else 10297 # define LT_DLGLOBAL 0 10298 # endif 10299 #endif 10300 10301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10302 find out it does not work in some platform. */ 10303 #ifndef LT_DLLAZY_OR_NOW 10304 # ifdef RTLD_LAZY 10305 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10306 # else 10307 # ifdef DL_LAZY 10308 # define LT_DLLAZY_OR_NOW DL_LAZY 10309 # else 10310 # ifdef RTLD_NOW 10311 # define LT_DLLAZY_OR_NOW RTLD_NOW 10312 # else 10313 # ifdef DL_NOW 10314 # define LT_DLLAZY_OR_NOW DL_NOW 10315 # else 10316 # define LT_DLLAZY_OR_NOW 0 10317 # endif 10318 # endif 10319 # endif 10320 # endif 10321 #endif 10322 10323 #ifdef __cplusplus 10324 extern "C" void exit (int); 10325 #endif 10326 10327 void fnord() { int i=42;} 10328 int main () 10329 { 10330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10331 int status = $lt_dlunknown; 10332 10333 if (self) 10334 { 10335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10337 /* dlclose (self); */ 10338 } 10339 else 10340 puts (dlerror ()); 10341 10342 exit (status); 10343 } 10344 EOF 10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10346 (eval $ac_link) 2>&5 10347 ac_status=$? 10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10350 (./conftest; exit; ) >&5 2>/dev/null 10351 lt_status=$? 10352 case x$lt_status in 10353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10356 esac 10357 else : 10358 # compilation failed 10359 lt_cv_dlopen_self_static=no 10360 fi 10361 fi 10362 rm -fr conftest* 10363 10364 10365 fi 10366 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10367 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10368 fi 10369 10370 CPPFLAGS="$save_CPPFLAGS" 10371 LDFLAGS="$save_LDFLAGS" 10372 LIBS="$save_LIBS" 10373 ;; 10374 esac 10375 10376 case $lt_cv_dlopen_self in 10377 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10378 *) enable_dlopen_self=unknown ;; 10379 esac 10380 10381 case $lt_cv_dlopen_self_static in 10382 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10383 *) enable_dlopen_self_static=unknown ;; 10384 esac 10385 fi 10386 10387 10388 # Report which library types will actually be built 10389 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10390 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10391 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 10392 echo "${ECHO_T}$can_build_shared" >&6; } 10393 10394 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10395 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10396 test "$can_build_shared" = "no" && enable_shared=no 10397 10398 # On AIX, shared libraries and static libraries use the same namespace, and 10399 # are all built from PIC. 10400 case $host_os in 10401 aix3*) 10402 test "$enable_shared" = yes && enable_static=no 10403 if test -n "$RANLIB"; then 10404 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10405 postinstall_cmds='$RANLIB $lib' 10406 fi 10407 ;; 10408 10409 aix4* | aix5*) 10410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10411 test "$enable_shared" = yes && enable_static=no 10412 fi 10413 ;; 10414 esac 10415 { echo "$as_me:$LINENO: result: $enable_shared" >&5 10416 echo "${ECHO_T}$enable_shared" >&6; } 10417 10418 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10419 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10420 # Make sure either enable_shared or enable_static is yes. 10421 test "$enable_shared" = yes || enable_static=yes 10422 { echo "$as_me:$LINENO: result: $enable_static" >&5 10423 echo "${ECHO_T}$enable_static" >&6; } 10424 10425 # The else clause should only fire when bootstrapping the 10426 # libtool distribution, otherwise you forgot to ship ltmain.sh 10427 # with your package, and you will get complaints that there are 10428 # no rules to generate ltmain.sh. 10429 if test -f "$ltmain"; then 10430 # See if we are running on zsh, and set the options which allow our commands through 10431 # without removal of \ escapes. 10432 if test -n "${ZSH_VERSION+set}" ; then 10433 setopt NO_GLOB_SUBST 10434 fi 10435 # Now quote all the things that may contain metacharacters while being 10436 # careful not to overquote the AC_SUBSTed values. We take copies of the 10437 # variables and quote the copies for generation of the libtool script. 10438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10439 SED SHELL STRIP \ 10440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10442 deplibs_check_method reload_flag reload_cmds need_locks \ 10443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10444 lt_cv_sys_global_symbol_to_c_name_address \ 10445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10446 old_postinstall_cmds old_postuninstall_cmds \ 10447 compiler \ 10448 CC \ 10449 LD \ 10450 lt_prog_compiler_wl \ 10451 lt_prog_compiler_pic \ 10452 lt_prog_compiler_static \ 10453 lt_prog_compiler_no_builtin_flag \ 10454 export_dynamic_flag_spec \ 10455 thread_safe_flag_spec \ 10456 whole_archive_flag_spec \ 10457 enable_shared_with_static_runtimes \ 10458 old_archive_cmds \ 10459 old_archive_from_new_cmds \ 10460 predep_objects \ 10461 postdep_objects \ 10462 predeps \ 10463 postdeps \ 10464 compiler_lib_search_path \ 10465 archive_cmds \ 10466 archive_expsym_cmds \ 10467 postinstall_cmds \ 10468 postuninstall_cmds \ 10469 old_archive_from_expsyms_cmds \ 10470 allow_undefined_flag \ 10471 no_undefined_flag \ 10472 export_symbols_cmds \ 10473 hardcode_libdir_flag_spec \ 10474 hardcode_libdir_flag_spec_ld \ 10475 hardcode_libdir_separator \ 10476 hardcode_automatic \ 10477 module_cmds \ 10478 module_expsym_cmds \ 10479 lt_cv_prog_compiler_c_o \ 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 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="$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;\n" 11018 11019 # Code to be used in simple link tests 11020 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 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 printf "$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 printf "$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 hardcode_direct_CXX=yes 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 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11376 }'` 11377 # Check for a 64-bit object if we didn't find anything. 11378 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11379 }'`; fi 11380 else 11381 echo "$as_me: failed program was:" >&5 11382 sed 's/^/| /' conftest.$ac_ext >&5 11383 11384 11385 fi 11386 11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11388 conftest$ac_exeext conftest.$ac_ext 11389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11390 11391 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11392 11393 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" 11394 else 11395 if test "$host_cpu" = ia64; then 11396 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11397 allow_undefined_flag_CXX="-z nodefs" 11398 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" 11399 else 11400 # Determine the default libpath from the value encoded in an empty executable. 11401 cat >conftest.$ac_ext <<_ACEOF 11402 /* confdefs.h. */ 11403 _ACEOF 11404 cat confdefs.h >>conftest.$ac_ext 11405 cat >>conftest.$ac_ext <<_ACEOF 11406 /* end confdefs.h. */ 11407 11408 int 11409 main () 11410 { 11411 11412 ; 11413 return 0; 11414 } 11415 _ACEOF 11416 rm -f conftest.$ac_objext conftest$ac_exeext 11417 if { (ac_try="$ac_link" 11418 case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421 esac 11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11423 (eval "$ac_link") 2>conftest.er1 11424 ac_status=$? 11425 grep -v '^ *+' conftest.er1 >conftest.err 11426 rm -f conftest.er1 11427 cat conftest.err >&5 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); } && { 11430 test -z "$ac_cxx_werror_flag" || 11431 test ! -s conftest.err 11432 } && test -s conftest$ac_exeext && 11433 $as_test_x conftest$ac_exeext; then 11434 11435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11436 }'` 11437 # Check for a 64-bit object if we didn't find anything. 11438 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11439 }'`; fi 11440 else 11441 echo "$as_me: failed program was:" >&5 11442 sed 's/^/| /' conftest.$ac_ext >&5 11443 11444 11445 fi 11446 11447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11448 conftest$ac_exeext conftest.$ac_ext 11449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11450 11451 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11452 # Warning - without using the other run time loading flags, 11453 # -berok will link without error, but may produce a broken library. 11454 no_undefined_flag_CXX=' ${wl}-bernotok' 11455 allow_undefined_flag_CXX=' ${wl}-berok' 11456 # Exported symbols can be pulled into shared objects from archives 11457 whole_archive_flag_spec_CXX='$convenience' 11458 archive_cmds_need_lc_CXX=yes 11459 # This is similar to how AIX traditionally builds its shared libraries. 11460 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' 11461 fi 11462 fi 11463 ;; 11464 11465 beos*) 11466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11467 allow_undefined_flag_CXX=unsupported 11468 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11469 # support --undefined. This deserves some investigation. FIXME 11470 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11471 else 11472 ld_shlibs_CXX=no 11473 fi 11474 ;; 11475 11476 chorus*) 11477 case $cc_basename in 11478 *) 11479 # FIXME: insert proper C++ library support 11480 ld_shlibs_CXX=no 11481 ;; 11482 esac 11483 ;; 11484 11485 cygwin* | mingw* | pw32*) 11486 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11487 # as there is no search path for DLLs. 11488 hardcode_libdir_flag_spec_CXX='-L$libdir' 11489 allow_undefined_flag_CXX=unsupported 11490 always_export_symbols_CXX=no 11491 enable_shared_with_static_runtimes_CXX=yes 11492 11493 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11494 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' 11495 # If the export-symbols file already is a .def file (1st line 11496 # is EXPORTS), use it as is; otherwise, prepend... 11497 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11498 cp $export_symbols $output_objdir/$soname.def; 11499 else 11500 echo EXPORTS > $output_objdir/$soname.def; 11501 cat $export_symbols >> $output_objdir/$soname.def; 11502 fi~ 11503 $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' 11504 else 11505 ld_shlibs_CXX=no 11506 fi 11507 ;; 11508 darwin* | rhapsody*) 11509 case $host_os in 11510 rhapsody* | darwin1.[012]) 11511 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11512 ;; 11513 *) # Darwin 1.3 on 11514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11515 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11516 else 11517 case ${MACOSX_DEPLOYMENT_TARGET} in 11518 10.[012]) 11519 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11520 ;; 11521 10.*) 11522 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11523 ;; 11524 esac 11525 fi 11526 ;; 11527 esac 11528 archive_cmds_need_lc_CXX=no 11529 hardcode_direct_CXX=no 11530 hardcode_automatic_CXX=yes 11531 hardcode_shlibpath_var_CXX=unsupported 11532 whole_archive_flag_spec_CXX='' 11533 link_all_deplibs_CXX=yes 11534 11535 if test "$GXX" = yes ; then 11536 lt_int_apple_cc_single_mod=no 11537 output_verbose_link_cmd='echo' 11538 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11539 lt_int_apple_cc_single_mod=yes 11540 fi 11541 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11542 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11543 else 11544 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' 11545 fi 11546 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11548 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11549 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}' 11550 else 11551 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}' 11552 fi 11553 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}' 11554 else 11555 case $cc_basename in 11556 xlc*) 11557 output_verbose_link_cmd='echo' 11558 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11559 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11560 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11561 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11562 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}' 11563 ;; 11564 *) 11565 ld_shlibs_CXX=no 11566 ;; 11567 esac 11568 fi 11569 ;; 11570 11571 dgux*) 11572 case $cc_basename in 11573 ec++*) 11574 # FIXME: insert proper C++ library support 11575 ld_shlibs_CXX=no 11576 ;; 11577 ghcx*) 11578 # Green Hills C++ Compiler 11579 # FIXME: insert proper C++ library support 11580 ld_shlibs_CXX=no 11581 ;; 11582 *) 11583 # FIXME: insert proper C++ library support 11584 ld_shlibs_CXX=no 11585 ;; 11586 esac 11587 ;; 11588 freebsd[12]*) 11589 # C++ shared libraries reported to be fairly broken before switch to ELF 11590 ld_shlibs_CXX=no 11591 ;; 11592 freebsd-elf*) 11593 archive_cmds_need_lc_CXX=no 11594 ;; 11595 freebsd* | kfreebsd*-gnu | dragonfly*) 11596 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11597 # conventions 11598 ld_shlibs_CXX=yes 11599 ;; 11600 gnu*) 11601 ;; 11602 hpux9*) 11603 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11604 hardcode_libdir_separator_CXX=: 11605 export_dynamic_flag_spec_CXX='${wl}-E' 11606 hardcode_direct_CXX=yes 11607 hardcode_minus_L_CXX=yes # Not in the search PATH, 11608 # but as the default 11609 # location of the library. 11610 11611 case $cc_basename in 11612 CC*) 11613 # FIXME: insert proper C++ library support 11614 ld_shlibs_CXX=no 11615 ;; 11616 aCC*) 11617 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' 11618 # Commands to make compiler produce verbose output that lists 11619 # what "hidden" libraries, object files and flags are used when 11620 # linking a shared library. 11621 # 11622 # There doesn't appear to be a way to prevent this compiler from 11623 # explicitly linking system object files so we need to strip them 11624 # from the output so that they don't get included in the library 11625 # dependencies. 11626 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' 11627 ;; 11628 *) 11629 if test "$GXX" = yes; then 11630 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' 11631 else 11632 # FIXME: insert proper C++ library support 11633 ld_shlibs_CXX=no 11634 fi 11635 ;; 11636 esac 11637 ;; 11638 hpux10*|hpux11*) 11639 if test $with_gnu_ld = no; then 11640 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11641 hardcode_libdir_separator_CXX=: 11642 11643 case $host_cpu in 11644 hppa*64*|ia64*) 11645 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11646 ;; 11647 *) 11648 export_dynamic_flag_spec_CXX='${wl}-E' 11649 ;; 11650 esac 11651 fi 11652 case $host_cpu in 11653 hppa*64*|ia64*) 11654 hardcode_direct_CXX=no 11655 hardcode_shlibpath_var_CXX=no 11656 ;; 11657 *) 11658 hardcode_direct_CXX=yes 11659 hardcode_minus_L_CXX=yes # Not in the search PATH, 11660 # but as the default 11661 # location of the library. 11662 ;; 11663 esac 11664 11665 case $cc_basename in 11666 CC*) 11667 # FIXME: insert proper C++ library support 11668 ld_shlibs_CXX=no 11669 ;; 11670 aCC*) 11671 case $host_cpu in 11672 hppa*64*) 11673 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11674 ;; 11675 ia64*) 11676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11677 ;; 11678 *) 11679 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11680 ;; 11681 esac 11682 # Commands to make compiler produce verbose output that lists 11683 # what "hidden" libraries, object files and flags are used when 11684 # linking a shared library. 11685 # 11686 # There doesn't appear to be a way to prevent this compiler from 11687 # explicitly linking system object files so we need to strip them 11688 # from the output so that they don't get included in the library 11689 # dependencies. 11690 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' 11691 ;; 11692 *) 11693 if test "$GXX" = yes; then 11694 if test $with_gnu_ld = no; then 11695 case $host_cpu in 11696 hppa*64*) 11697 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11698 ;; 11699 ia64*) 11700 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11701 ;; 11702 *) 11703 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' 11704 ;; 11705 esac 11706 fi 11707 else 11708 # FIXME: insert proper C++ library support 11709 ld_shlibs_CXX=no 11710 fi 11711 ;; 11712 esac 11713 ;; 11714 interix3*) 11715 hardcode_direct_CXX=no 11716 hardcode_shlibpath_var_CXX=no 11717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11718 export_dynamic_flag_spec_CXX='${wl}-E' 11719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11720 # Instead, shared libraries are loaded at an image base (0x10000000 by 11721 # default) and relocated if they conflict, which is a slow very memory 11722 # consuming and fragmenting process. To avoid this, we pick a random, 11723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11724 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11725 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' 11726 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' 11727 ;; 11728 irix5* | irix6*) 11729 case $cc_basename in 11730 CC*) 11731 # SGI C++ 11732 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' 11733 11734 # Archives containing C++ object files must be created using 11735 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11736 # necessary to make sure instantiated templates are included 11737 # in the archive. 11738 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11739 ;; 11740 *) 11741 if test "$GXX" = yes; then 11742 if test "$with_gnu_ld" = no; then 11743 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' 11744 else 11745 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' 11746 fi 11747 fi 11748 link_all_deplibs_CXX=yes 11749 ;; 11750 esac 11751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11752 hardcode_libdir_separator_CXX=: 11753 ;; 11754 linux*) 11755 case $cc_basename in 11756 KCC*) 11757 # Kuck and Associates, Inc. (KAI) C++ Compiler 11758 11759 # KCC will only create a shared library if the output file 11760 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11761 # to its proper name (with version) after linking. 11762 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' 11763 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' 11764 # Commands to make compiler produce verbose output that lists 11765 # what "hidden" libraries, object files and flags are used when 11766 # linking a shared library. 11767 # 11768 # There doesn't appear to be a way to prevent this compiler from 11769 # explicitly linking system object files so we need to strip them 11770 # from the output so that they don't get included in the library 11771 # dependencies. 11772 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' 11773 11774 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11776 11777 # Archives containing C++ object files must be created using 11778 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11780 ;; 11781 icpc*) 11782 # Intel C++ 11783 with_gnu_ld=yes 11784 # version 8.0 and above of icpc choke on multiply defined symbols 11785 # if we add $predep_objects and $postdep_objects, however 7.1 and 11786 # earlier do not add the objects themselves. 11787 case `$CC -V 2>&1` in 11788 *"Version 7."*) 11789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11790 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' 11791 ;; 11792 *) # Version 8.0 or newer 11793 tmp_idyn= 11794 case $host_cpu in 11795 ia64*) tmp_idyn=' -i_dynamic';; 11796 esac 11797 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11798 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' 11799 ;; 11800 esac 11801 archive_cmds_need_lc_CXX=no 11802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11803 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11804 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11805 ;; 11806 pgCC*) 11807 # Portland Group C++ compiler 11808 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11809 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' 11810 11811 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11813 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' 11814 ;; 11815 cxx*) 11816 # Compaq C++ 11817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11818 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' 11819 11820 runpath_var=LD_RUN_PATH 11821 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11822 hardcode_libdir_separator_CXX=: 11823 11824 # Commands to make compiler produce verbose output that lists 11825 # what "hidden" libraries, object files and flags are used when 11826 # linking a shared library. 11827 # 11828 # There doesn't appear to be a way to prevent this compiler from 11829 # explicitly linking system object files so we need to strip them 11830 # from the output so that they don't get included in the library 11831 # dependencies. 11832 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' 11833 ;; 11834 *) 11835 case `$CC -V 2>&1 | sed 5q` in 11836 *Sun\ C*) 11837 # Sun C++ 5.9 11838 no_undefined_flag_CXX=' -zdefs' 11839 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11840 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' 11841 hardcode_libdir_flag_spec_CXX='-R$libdir' 11842 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' 11843 11844 # Not sure whether something based on 11845 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11846 # would be better. 11847 output_verbose_link_cmd='echo' 11848 11849 # Archives containing C++ object files must be created using 11850 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11851 # necessary to make sure instantiated templates are included 11852 # in the archive. 11853 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11854 ;; 11855 esac 11856 ;; 11857 esac 11858 ;; 11859 lynxos*) 11860 # FIXME: insert proper C++ library support 11861 ld_shlibs_CXX=no 11862 ;; 11863 m88k*) 11864 # FIXME: insert proper C++ library support 11865 ld_shlibs_CXX=no 11866 ;; 11867 mvs*) 11868 case $cc_basename in 11869 cxx*) 11870 # FIXME: insert proper C++ library support 11871 ld_shlibs_CXX=no 11872 ;; 11873 *) 11874 # FIXME: insert proper C++ library support 11875 ld_shlibs_CXX=no 11876 ;; 11877 esac 11878 ;; 11879 netbsd*) 11880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11881 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11882 wlarc= 11883 hardcode_libdir_flag_spec_CXX='-R$libdir' 11884 hardcode_direct_CXX=yes 11885 hardcode_shlibpath_var_CXX=no 11886 fi 11887 # Workaround some broken pre-1.5 toolchains 11888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11889 ;; 11890 openbsd2*) 11891 # C++ shared libraries are fairly broken 11892 ld_shlibs_CXX=no 11893 ;; 11894 openbsd*) 11895 hardcode_direct_CXX=yes 11896 hardcode_shlibpath_var_CXX=no 11897 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11898 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11900 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11901 export_dynamic_flag_spec_CXX='${wl}-E' 11902 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11903 fi 11904 output_verbose_link_cmd='echo' 11905 ;; 11906 osf3*) 11907 case $cc_basename in 11908 KCC*) 11909 # Kuck and Associates, Inc. (KAI) C++ Compiler 11910 11911 # KCC will only create a shared library if the output file 11912 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11913 # to its proper name (with version) after linking. 11914 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' 11915 11916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11917 hardcode_libdir_separator_CXX=: 11918 11919 # Archives containing C++ object files must be created using 11920 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11921 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11922 11923 ;; 11924 RCC*) 11925 # Rational C++ 2.4.1 11926 # FIXME: insert proper C++ library support 11927 ld_shlibs_CXX=no 11928 ;; 11929 cxx*) 11930 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11931 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' 11932 11933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11934 hardcode_libdir_separator_CXX=: 11935 11936 # Commands to make compiler produce verbose output that lists 11937 # what "hidden" libraries, object files and flags are used when 11938 # linking a shared library. 11939 # 11940 # There doesn't appear to be a way to prevent this compiler from 11941 # explicitly linking system object files so we need to strip them 11942 # from the output so that they don't get included in the library 11943 # dependencies. 11944 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' 11945 ;; 11946 *) 11947 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11948 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11949 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' 11950 11951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11952 hardcode_libdir_separator_CXX=: 11953 11954 # Commands to make compiler produce verbose output that lists 11955 # what "hidden" libraries, object files and flags are used when 11956 # linking a shared library. 11957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11958 11959 else 11960 # FIXME: insert proper C++ library support 11961 ld_shlibs_CXX=no 11962 fi 11963 ;; 11964 esac 11965 ;; 11966 osf4* | osf5*) 11967 case $cc_basename in 11968 KCC*) 11969 # Kuck and Associates, Inc. (KAI) C++ Compiler 11970 11971 # KCC will only create a shared library if the output file 11972 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11973 # to its proper name (with version) after linking. 11974 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' 11975 11976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11977 hardcode_libdir_separator_CXX=: 11978 11979 # Archives containing C++ object files must be created using 11980 # the KAI C++ compiler. 11981 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11982 ;; 11983 RCC*) 11984 # Rational C++ 2.4.1 11985 # FIXME: insert proper C++ library support 11986 ld_shlibs_CXX=no 11987 ;; 11988 cxx*) 11989 allow_undefined_flag_CXX=' -expect_unresolved \*' 11990 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' 11991 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11992 echo "-hidden">> $lib.exp~ 11993 $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~ 11994 $rm $lib.exp' 11995 11996 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11997 hardcode_libdir_separator_CXX=: 11998 11999 # Commands to make compiler produce verbose output that lists 12000 # what "hidden" libraries, object files and flags are used when 12001 # linking a shared library. 12002 # 12003 # There doesn't appear to be a way to prevent this compiler from 12004 # explicitly linking system object files so we need to strip them 12005 # from the output so that they don't get included in the library 12006 # dependencies. 12007 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' 12008 ;; 12009 *) 12010 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12011 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12012 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' 12013 12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12015 hardcode_libdir_separator_CXX=: 12016 12017 # Commands to make compiler produce verbose output that lists 12018 # what "hidden" libraries, object files and flags are used when 12019 # linking a shared library. 12020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12021 12022 else 12023 # FIXME: insert proper C++ library support 12024 ld_shlibs_CXX=no 12025 fi 12026 ;; 12027 esac 12028 ;; 12029 psos*) 12030 # FIXME: insert proper C++ library support 12031 ld_shlibs_CXX=no 12032 ;; 12033 sunos4*) 12034 case $cc_basename in 12035 CC*) 12036 # Sun C++ 4.x 12037 # FIXME: insert proper C++ library support 12038 ld_shlibs_CXX=no 12039 ;; 12040 lcc*) 12041 # Lucid 12042 # FIXME: insert proper C++ library support 12043 ld_shlibs_CXX=no 12044 ;; 12045 *) 12046 # FIXME: insert proper C++ library support 12047 ld_shlibs_CXX=no 12048 ;; 12049 esac 12050 ;; 12051 solaris*) 12052 case $cc_basename in 12053 CC*) 12054 # Sun C++ 4.2, 5.x and Centerline C++ 12055 archive_cmds_need_lc_CXX=yes 12056 no_undefined_flag_CXX=' -zdefs' 12057 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12058 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12059 $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' 12060 12061 hardcode_libdir_flag_spec_CXX='-R$libdir' 12062 hardcode_shlibpath_var_CXX=no 12063 case $host_os in 12064 solaris2.[0-5] | solaris2.[0-5].*) ;; 12065 *) 12066 # The C++ compiler is used as linker so we must use $wl 12067 # flag to pass the commands to the underlying system 12068 # linker. We must also pass each convience library through 12069 # to the system linker between allextract/defaultextract. 12070 # The C++ compiler will combine linker options so we 12071 # cannot just pass the convience library names through 12072 # without $wl. 12073 # Supported since Solaris 2.6 (maybe 2.5.1?) 12074 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12075 ;; 12076 esac 12077 link_all_deplibs_CXX=yes 12078 12079 output_verbose_link_cmd='echo' 12080 12081 # Archives containing C++ object files must be created using 12082 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12083 # necessary to make sure instantiated templates are included 12084 # in the archive. 12085 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12086 ;; 12087 gcx*) 12088 # Green Hills C++ Compiler 12089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12090 12091 # The C++ compiler must be used to create the archive. 12092 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12093 ;; 12094 *) 12095 # GNU C++ compiler with Solaris linker 12096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12097 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12098 if $CC --version | grep -v '^2\.7' > /dev/null; then 12099 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12100 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12101 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12102 12103 # Commands to make compiler produce verbose output that lists 12104 # what "hidden" libraries, object files and flags are used when 12105 # linking a shared library. 12106 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12107 else 12108 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12109 # platform. 12110 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12118 fi 12119 12120 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12121 fi 12122 ;; 12123 esac 12124 ;; 12125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12126 no_undefined_flag_CXX='${wl}-z,text' 12127 archive_cmds_need_lc_CXX=no 12128 hardcode_shlibpath_var_CXX=no 12129 runpath_var='LD_RUN_PATH' 12130 12131 case $cc_basename in 12132 CC*) 12133 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12134 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12135 ;; 12136 *) 12137 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12138 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12139 ;; 12140 esac 12141 ;; 12142 sysv5* | sco3.2v5* | sco5v6*) 12143 # Note: We can NOT use -z defs as we might desire, because we do not 12144 # link with -lc, and that would cause any symbols used from libc to 12145 # always be unresolved, which means just about no library would 12146 # ever link correctly. If we're not using GNU ld we use -z text 12147 # though, which does catch some bad symbols but isn't as heavy-handed 12148 # as -z defs. 12149 # For security reasons, it is highly recommended that you always 12150 # use absolute paths for naming shared libraries, and exclude the 12151 # DT_RUNPATH tag from executables and libraries. But doing so 12152 # requires that you compile everything twice, which is a pain. 12153 # So that behaviour is only enabled if SCOABSPATH is set to a 12154 # non-empty value in the environment. Most likely only useful for 12155 # creating official distributions of packages. 12156 # This is a hack until libtool officially supports absolute path 12157 # names for shared libraries. 12158 no_undefined_flag_CXX='${wl}-z,text' 12159 allow_undefined_flag_CXX='${wl}-z,nodefs' 12160 archive_cmds_need_lc_CXX=no 12161 hardcode_shlibpath_var_CXX=no 12162 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12163 hardcode_libdir_separator_CXX=':' 12164 link_all_deplibs_CXX=yes 12165 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12166 runpath_var='LD_RUN_PATH' 12167 12168 case $cc_basename in 12169 CC*) 12170 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12171 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12172 ;; 12173 *) 12174 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12175 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12176 ;; 12177 esac 12178 ;; 12179 tandem*) 12180 case $cc_basename in 12181 NCC*) 12182 # NonStop-UX NCC 3.20 12183 # FIXME: insert proper C++ library support 12184 ld_shlibs_CXX=no 12185 ;; 12186 *) 12187 # FIXME: insert proper C++ library support 12188 ld_shlibs_CXX=no 12189 ;; 12190 esac 12191 ;; 12192 vxworks*) 12193 # FIXME: insert proper C++ library support 12194 ld_shlibs_CXX=no 12195 ;; 12196 *) 12197 # FIXME: insert proper C++ library support 12198 ld_shlibs_CXX=no 12199 ;; 12200 esac 12201 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12202 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12203 test "$ld_shlibs_CXX" = no && can_build_shared=no 12204 12205 GCC_CXX="$GXX" 12206 LD_CXX="$LD" 12207 12208 ## CAVEAT EMPTOR: 12209 ## There is no encapsulation within the following macros, do not change 12210 ## the running order or otherwise move them around unless you know exactly 12211 ## what you are doing... 12212 12213 cat > conftest.$ac_ext <<EOF 12214 class Foo 12215 { 12216 public: 12217 Foo (void) { a = 0; } 12218 private: 12219 int a; 12220 }; 12221 EOF 12222 12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12224 (eval $ac_compile) 2>&5 12225 ac_status=$? 12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12227 (exit $ac_status); }; then 12228 # Parse the compiler output and extract the necessary 12229 # objects, libraries and library flags. 12230 12231 # Sentinel used to keep track of whether or not we are before 12232 # the conftest object file. 12233 pre_test_object_deps_done=no 12234 12235 # The `*' in the case matches for architectures that use `case' in 12236 # $output_verbose_cmd can trigger glob expansion during the loop 12237 # eval without this substitution. 12238 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12239 12240 for p in `eval $output_verbose_link_cmd`; do 12241 case $p in 12242 12243 -L* | -R* | -l*) 12244 # Some compilers place space between "-{L,R}" and the path. 12245 # Remove the space. 12246 if test $p = "-L" \ 12247 || test $p = "-R"; then 12248 prev=$p 12249 continue 12250 else 12251 prev= 12252 fi 12253 12254 if test "$pre_test_object_deps_done" = no; then 12255 case $p in 12256 -L* | -R*) 12257 # Internal compiler library paths should come after those 12258 # provided the user. The postdeps already come after the 12259 # user supplied libs so there is no need to process them. 12260 if test -z "$compiler_lib_search_path_CXX"; then 12261 compiler_lib_search_path_CXX="${prev}${p}" 12262 else 12263 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12264 fi 12265 ;; 12266 # The "-l" case would never come before the object being 12267 # linked, so don't bother handling this case. 12268 esac 12269 else 12270 if test -z "$postdeps_CXX"; then 12271 postdeps_CXX="${prev}${p}" 12272 else 12273 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12274 fi 12275 fi 12276 ;; 12277 12278 *.$objext) 12279 # This assumes that the test object file only shows up 12280 # once in the compiler output. 12281 if test "$p" = "conftest.$objext"; then 12282 pre_test_object_deps_done=yes 12283 continue 12284 fi 12285 12286 if test "$pre_test_object_deps_done" = no; then 12287 if test -z "$predep_objects_CXX"; then 12288 predep_objects_CXX="$p" 12289 else 12290 predep_objects_CXX="$predep_objects_CXX $p" 12291 fi 12292 else 12293 if test -z "$postdep_objects_CXX"; then 12294 postdep_objects_CXX="$p" 12295 else 12296 postdep_objects_CXX="$postdep_objects_CXX $p" 12297 fi 12298 fi 12299 ;; 12300 12301 *) ;; # Ignore the rest. 12302 12303 esac 12304 done 12305 12306 # Clean up. 12307 rm -f a.out a.exe 12308 else 12309 echo "libtool.m4: error: problem compiling CXX test program" 12310 fi 12311 12312 $rm -f confest.$objext 12313 12314 # PORTME: override above test on systems where it is broken 12315 case $host_os in 12316 interix3*) 12317 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12318 # hack all around it, let's just trust "g++" to DTRT. 12319 predep_objects_CXX= 12320 postdep_objects_CXX= 12321 postdeps_CXX= 12322 ;; 12323 12324 linux*) 12325 case `$CC -V 2>&1 | sed 5q` in 12326 *Sun\ C*) 12327 # Sun C++ 5.9 12328 postdeps_CXX='-lCstd -lCrun' 12329 ;; 12330 esac 12331 ;; 12332 12333 solaris*) 12334 case $cc_basename in 12335 CC*) 12336 # Adding this requires a known-good setup of shared libraries for 12337 # Sun compiler versions before 5.6, else PIC objects from an old 12338 # archive will be linked into the output, leading to subtle bugs. 12339 postdeps_CXX='-lCstd -lCrun' 12340 ;; 12341 esac 12342 ;; 12343 esac 12344 12345 12346 case " $postdeps_CXX " in 12347 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 12348 esac 12349 12350 lt_prog_compiler_wl_CXX= 12351 lt_prog_compiler_pic_CXX= 12352 lt_prog_compiler_static_CXX= 12353 12354 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12355 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12356 12357 # C++ specific cases for pic, static, wl, etc. 12358 if test "$GXX" = yes; then 12359 lt_prog_compiler_wl_CXX='-Wl,' 12360 lt_prog_compiler_static_CXX='-static' 12361 12362 case $host_os in 12363 aix*) 12364 # All AIX code is PIC. 12365 if test "$host_cpu" = ia64; then 12366 # AIX 5 now supports IA64 processor 12367 lt_prog_compiler_static_CXX='-Bstatic' 12368 fi 12369 ;; 12370 amigaos*) 12371 # FIXME: we need at least 68020 code to build shared libraries, but 12372 # adding the `-m68020' flag to GCC prevents building anything better, 12373 # like `-m68040'. 12374 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12375 ;; 12376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12377 # PIC is the default for these OSes. 12378 ;; 12379 mingw* | cygwin* | os2* | pw32*) 12380 # This hack is so that the source file can tell whether it is being 12381 # built for inclusion in a dll (and should export symbols for example). 12382 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12383 # (--disable-auto-import) libraries 12384 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12385 ;; 12386 darwin* | rhapsody*) 12387 # PIC is the default on this platform 12388 # Common symbols not allowed in MH_DYLIB files 12389 lt_prog_compiler_pic_CXX='-fno-common' 12390 ;; 12391 *djgpp*) 12392 # DJGPP does not support shared libraries at all 12393 lt_prog_compiler_pic_CXX= 12394 ;; 12395 interix3*) 12396 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12397 # Instead, we relocate shared libraries at runtime. 12398 ;; 12399 sysv4*MP*) 12400 if test -d /usr/nec; then 12401 lt_prog_compiler_pic_CXX=-Kconform_pic 12402 fi 12403 ;; 12404 hpux*) 12405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12406 # not for PA HP-UX. 12407 case $host_cpu in 12408 hppa*64*|ia64*) 12409 ;; 12410 *) 12411 lt_prog_compiler_pic_CXX='-fPIC' 12412 ;; 12413 esac 12414 ;; 12415 *) 12416 lt_prog_compiler_pic_CXX='-fPIC' 12417 ;; 12418 esac 12419 else 12420 case $host_os in 12421 aix4* | aix5*) 12422 # All AIX code is PIC. 12423 if test "$host_cpu" = ia64; then 12424 # AIX 5 now supports IA64 processor 12425 lt_prog_compiler_static_CXX='-Bstatic' 12426 else 12427 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12428 fi 12429 ;; 12430 chorus*) 12431 case $cc_basename in 12432 cxch68*) 12433 # Green Hills C++ Compiler 12434 # _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" 12435 ;; 12436 esac 12437 ;; 12438 darwin*) 12439 # PIC is the default on this platform 12440 # Common symbols not allowed in MH_DYLIB files 12441 case $cc_basename in 12442 xlc*) 12443 lt_prog_compiler_pic_CXX='-qnocommon' 12444 lt_prog_compiler_wl_CXX='-Wl,' 12445 ;; 12446 esac 12447 ;; 12448 dgux*) 12449 case $cc_basename in 12450 ec++*) 12451 lt_prog_compiler_pic_CXX='-KPIC' 12452 ;; 12453 ghcx*) 12454 # Green Hills C++ Compiler 12455 lt_prog_compiler_pic_CXX='-pic' 12456 ;; 12457 *) 12458 ;; 12459 esac 12460 ;; 12461 freebsd* | kfreebsd*-gnu | dragonfly*) 12462 # FreeBSD uses GNU C++ 12463 ;; 12464 hpux9* | hpux10* | hpux11*) 12465 case $cc_basename in 12466 CC*) 12467 lt_prog_compiler_wl_CXX='-Wl,' 12468 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12469 if test "$host_cpu" != ia64; then 12470 lt_prog_compiler_pic_CXX='+Z' 12471 fi 12472 ;; 12473 aCC*) 12474 lt_prog_compiler_wl_CXX='-Wl,' 12475 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12476 case $host_cpu in 12477 hppa*64*|ia64*) 12478 # +Z the default 12479 ;; 12480 *) 12481 lt_prog_compiler_pic_CXX='+Z' 12482 ;; 12483 esac 12484 ;; 12485 *) 12486 ;; 12487 esac 12488 ;; 12489 interix*) 12490 # This is c89, which is MS Visual C++ (no shared libs) 12491 # Anyone wants to do a port? 12492 ;; 12493 irix5* | irix6* | nonstopux*) 12494 case $cc_basename in 12495 CC*) 12496 lt_prog_compiler_wl_CXX='-Wl,' 12497 lt_prog_compiler_static_CXX='-non_shared' 12498 # CC pic flag -KPIC is the default. 12499 ;; 12500 *) 12501 ;; 12502 esac 12503 ;; 12504 linux*) 12505 case $cc_basename in 12506 KCC*) 12507 # KAI C++ Compiler 12508 lt_prog_compiler_wl_CXX='--backend -Wl,' 12509 lt_prog_compiler_pic_CXX='-fPIC' 12510 ;; 12511 icpc* | ecpc*) 12512 # Intel C++ 12513 lt_prog_compiler_wl_CXX='-Wl,' 12514 lt_prog_compiler_pic_CXX='-KPIC' 12515 lt_prog_compiler_static_CXX='-static' 12516 ;; 12517 pgCC*) 12518 # Portland Group C++ compiler. 12519 lt_prog_compiler_wl_CXX='-Wl,' 12520 lt_prog_compiler_pic_CXX='-fpic' 12521 lt_prog_compiler_static_CXX='-Bstatic' 12522 ;; 12523 cxx*) 12524 # Compaq C++ 12525 # Make sure the PIC flag is empty. It appears that all Alpha 12526 # Linux and Compaq Tru64 Unix objects are PIC. 12527 lt_prog_compiler_pic_CXX= 12528 lt_prog_compiler_static_CXX='-non_shared' 12529 ;; 12530 *) 12531 case `$CC -V 2>&1 | sed 5q` in 12532 *Sun\ C*) 12533 # Sun C++ 5.9 12534 lt_prog_compiler_pic_CXX='-KPIC' 12535 lt_prog_compiler_static_CXX='-Bstatic' 12536 lt_prog_compiler_wl_CXX='-Qoption ld ' 12537 ;; 12538 esac 12539 ;; 12540 esac 12541 ;; 12542 lynxos*) 12543 ;; 12544 m88k*) 12545 ;; 12546 mvs*) 12547 case $cc_basename in 12548 cxx*) 12549 lt_prog_compiler_pic_CXX='-W c,exportall' 12550 ;; 12551 *) 12552 ;; 12553 esac 12554 ;; 12555 netbsd*) 12556 ;; 12557 osf3* | osf4* | osf5*) 12558 case $cc_basename in 12559 KCC*) 12560 lt_prog_compiler_wl_CXX='--backend -Wl,' 12561 ;; 12562 RCC*) 12563 # Rational C++ 2.4.1 12564 lt_prog_compiler_pic_CXX='-pic' 12565 ;; 12566 cxx*) 12567 # Digital/Compaq C++ 12568 lt_prog_compiler_wl_CXX='-Wl,' 12569 # Make sure the PIC flag is empty. It appears that all Alpha 12570 # Linux and Compaq Tru64 Unix objects are PIC. 12571 lt_prog_compiler_pic_CXX= 12572 lt_prog_compiler_static_CXX='-non_shared' 12573 ;; 12574 *) 12575 ;; 12576 esac 12577 ;; 12578 psos*) 12579 ;; 12580 solaris*) 12581 case $cc_basename in 12582 CC*) 12583 # Sun C++ 4.2, 5.x and Centerline C++ 12584 lt_prog_compiler_pic_CXX='-KPIC' 12585 lt_prog_compiler_static_CXX='-Bstatic' 12586 lt_prog_compiler_wl_CXX='-Qoption ld ' 12587 ;; 12588 gcx*) 12589 # Green Hills C++ Compiler 12590 lt_prog_compiler_pic_CXX='-PIC' 12591 ;; 12592 *) 12593 ;; 12594 esac 12595 ;; 12596 sunos4*) 12597 case $cc_basename in 12598 CC*) 12599 # Sun C++ 4.x 12600 lt_prog_compiler_pic_CXX='-pic' 12601 lt_prog_compiler_static_CXX='-Bstatic' 12602 ;; 12603 lcc*) 12604 # Lucid 12605 lt_prog_compiler_pic_CXX='-pic' 12606 ;; 12607 *) 12608 ;; 12609 esac 12610 ;; 12611 tandem*) 12612 case $cc_basename in 12613 NCC*) 12614 # NonStop-UX NCC 3.20 12615 lt_prog_compiler_pic_CXX='-KPIC' 12616 ;; 12617 *) 12618 ;; 12619 esac 12620 ;; 12621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12622 case $cc_basename in 12623 CC*) 12624 lt_prog_compiler_wl_CXX='-Wl,' 12625 lt_prog_compiler_pic_CXX='-KPIC' 12626 lt_prog_compiler_static_CXX='-Bstatic' 12627 ;; 12628 esac 12629 ;; 12630 vxworks*) 12631 ;; 12632 *) 12633 lt_prog_compiler_can_build_shared_CXX=no 12634 ;; 12635 esac 12636 fi 12637 12638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12639 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12640 12641 # 12642 # Check to make sure the PIC flag actually works. 12643 # 12644 if test -n "$lt_prog_compiler_pic_CXX"; then 12645 12646 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12647 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12648 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12649 echo $ECHO_N "(cached) $ECHO_C" >&6 12650 else 12651 lt_prog_compiler_pic_works_CXX=no 12652 ac_outfile=conftest.$ac_objext 12653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12654 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12655 # Insert the option either (1) after the last *FLAGS variable, or 12656 # (2) before a word containing "conftest.", or (3) at the end. 12657 # Note that $ac_compile itself does not contain backslashes and begins 12658 # with a dollar sign (not a hyphen), so the echo should work correctly. 12659 # The option is referenced via a variable to avoid confusing sed. 12660 lt_compile=`echo "$ac_compile" | $SED \ 12661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12663 -e 's:$: $lt_compiler_flag:'` 12664 (eval echo "\"\$as_me:12664: $lt_compile\"" >&5) 12665 (eval "$lt_compile" 2>conftest.err) 12666 ac_status=$? 12667 cat conftest.err >&5 12668 echo "$as_me:12668: \$? = $ac_status" >&5 12669 if (exit $ac_status) && test -s "$ac_outfile"; then 12670 # The compiler can only warn and ignore the option if not recognized 12671 # So say no if there are warnings other than the usual output. 12672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12675 lt_prog_compiler_pic_works_CXX=yes 12676 fi 12677 fi 12678 $rm conftest* 12679 12680 fi 12681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12682 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12683 12684 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12685 case $lt_prog_compiler_pic_CXX in 12686 "" | " "*) ;; 12687 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12688 esac 12689 else 12690 lt_prog_compiler_pic_CXX= 12691 lt_prog_compiler_can_build_shared_CXX=no 12692 fi 12693 12694 fi 12695 case $host_os in 12696 # For platforms which do not support PIC, -DPIC is meaningless: 12697 *djgpp*) 12698 lt_prog_compiler_pic_CXX= 12699 ;; 12700 *) 12701 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12702 ;; 12703 esac 12704 12705 # 12706 # Check to make sure the static flag actually works. 12707 # 12708 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12709 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12710 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12711 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12712 echo $ECHO_N "(cached) $ECHO_C" >&6 12713 else 12714 lt_prog_compiler_static_works_CXX=no 12715 save_LDFLAGS="$LDFLAGS" 12716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12717 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12719 # The linker can only warn and ignore the option if not recognized 12720 # So say no if there are warnings 12721 if test -s conftest.err; then 12722 # Append any errors to the config.log. 12723 cat conftest.err 1>&5 12724 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12726 if diff conftest.exp conftest.er2 >/dev/null; then 12727 lt_prog_compiler_static_works_CXX=yes 12728 fi 12729 else 12730 lt_prog_compiler_static_works_CXX=yes 12731 fi 12732 fi 12733 $rm conftest* 12734 LDFLAGS="$save_LDFLAGS" 12735 12736 fi 12737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12738 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12739 12740 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12741 : 12742 else 12743 lt_prog_compiler_static_CXX= 12744 fi 12745 12746 12747 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12748 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12749 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12750 echo $ECHO_N "(cached) $ECHO_C" >&6 12751 else 12752 lt_cv_prog_compiler_c_o_CXX=no 12753 $rm -r conftest 2>/dev/null 12754 mkdir conftest 12755 cd conftest 12756 mkdir out 12757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12758 12759 lt_compiler_flag="-o out/conftest2.$ac_objext" 12760 # Insert the option either (1) after the last *FLAGS variable, or 12761 # (2) before a word containing "conftest.", or (3) at the end. 12762 # Note that $ac_compile itself does not contain backslashes and begins 12763 # with a dollar sign (not a hyphen), so the echo should work correctly. 12764 lt_compile=`echo "$ac_compile" | $SED \ 12765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12767 -e 's:$: $lt_compiler_flag:'` 12768 (eval echo "\"\$as_me:12768: $lt_compile\"" >&5) 12769 (eval "$lt_compile" 2>out/conftest.err) 12770 ac_status=$? 12771 cat out/conftest.err >&5 12772 echo "$as_me:12772: \$? = $ac_status" >&5 12773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12774 then 12775 # The compiler can only warn and ignore the option if not recognized 12776 # So say no if there are warnings 12777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12780 lt_cv_prog_compiler_c_o_CXX=yes 12781 fi 12782 fi 12783 chmod u+w . 2>&5 12784 $rm conftest* 12785 # SGI C++ compiler will create directory out/ii_files/ for 12786 # template instantiation 12787 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12788 $rm out/* && rmdir out 12789 cd .. 12790 rmdir conftest 12791 $rm conftest* 12792 12793 fi 12794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12795 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12796 12797 12798 hard_links="nottested" 12799 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12800 # do not overwrite the value of need_locks provided by the user 12801 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12802 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12803 hard_links=yes 12804 $rm conftest* 12805 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12806 touch conftest.a 12807 ln conftest.a conftest.b 2>&5 || hard_links=no 12808 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12809 { echo "$as_me:$LINENO: result: $hard_links" >&5 12810 echo "${ECHO_T}$hard_links" >&6; } 12811 if test "$hard_links" = no; then 12812 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12813 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12814 need_locks=warn 12815 fi 12816 else 12817 need_locks=no 12818 fi 12819 12820 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12821 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12822 12823 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12824 case $host_os in 12825 aix4* | aix5*) 12826 # If we're using GNU nm, then we don't want the "-C" option. 12827 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12829 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' 12830 else 12831 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' 12832 fi 12833 ;; 12834 pw32*) 12835 export_symbols_cmds_CXX="$ltdll_cmds" 12836 ;; 12837 cygwin* | mingw*) 12838 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' 12839 ;; 12840 *) 12841 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12842 ;; 12843 esac 12844 12845 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12846 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12847 test "$ld_shlibs_CXX" = no && can_build_shared=no 12848 12849 # 12850 # Do we need to explicitly link libc? 12851 # 12852 case "x$archive_cmds_need_lc_CXX" in 12853 x|xyes) 12854 # Assume -lc should be added 12855 archive_cmds_need_lc_CXX=yes 12856 12857 if test "$enable_shared" = yes && test "$GCC" = yes; then 12858 case $archive_cmds_CXX in 12859 *'~'*) 12860 # FIXME: we may have to deal with multi-command sequences. 12861 ;; 12862 '$CC '*) 12863 # Test whether the compiler implicitly links with -lc since on some 12864 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12865 # to ld, don't add -lc before -lgcc. 12866 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12867 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12868 $rm conftest* 12869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12870 12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12872 (eval $ac_compile) 2>&5 12873 ac_status=$? 12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12875 (exit $ac_status); } 2>conftest.err; then 12876 soname=conftest 12877 lib=conftest 12878 libobjs=conftest.$ac_objext 12879 deplibs= 12880 wl=$lt_prog_compiler_wl_CXX 12881 pic_flag=$lt_prog_compiler_pic_CXX 12882 compiler_flags=-v 12883 linker_flags=-v 12884 verstring= 12885 output_objdir=. 12886 libname=conftest 12887 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12888 allow_undefined_flag_CXX= 12889 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12890 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12891 ac_status=$? 12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12893 (exit $ac_status); } 12894 then 12895 archive_cmds_need_lc_CXX=no 12896 else 12897 archive_cmds_need_lc_CXX=yes 12898 fi 12899 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12900 else 12901 cat conftest.err 1>&5 12902 fi 12903 $rm conftest* 12904 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12905 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12906 ;; 12907 esac 12908 fi 12909 ;; 12910 esac 12911 12912 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12913 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12914 library_names_spec= 12915 libname_spec='lib$name' 12916 soname_spec= 12917 shrext_cmds=".so" 12918 postinstall_cmds= 12919 postuninstall_cmds= 12920 finish_cmds= 12921 finish_eval= 12922 shlibpath_var= 12923 shlibpath_overrides_runpath=unknown 12924 version_type=none 12925 dynamic_linker="$host_os ld.so" 12926 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12927 if test "$GCC" = yes; then 12928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12929 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12930 # if the path contains ";" then we assume it to be the separator 12931 # otherwise default to the standard path separator (i.e. ":") - it is 12932 # assumed that no part of a normal pathname contains ";" but that should 12933 # okay in the real world where ";" in dirpaths is itself problematic. 12934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12935 else 12936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12937 fi 12938 else 12939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12940 fi 12941 need_lib_prefix=unknown 12942 hardcode_into_libs=no 12943 12944 # when you set need_version to no, make sure it does not cause -set_version 12945 # flags to be left without arguments 12946 need_version=unknown 12947 12948 case $host_os in 12949 aix3*) 12950 version_type=linux 12951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12952 shlibpath_var=LIBPATH 12953 12954 # AIX 3 has no versioning support, so we append a major version to the name. 12955 soname_spec='${libname}${release}${shared_ext}$major' 12956 ;; 12957 12958 aix4* | aix5*) 12959 version_type=linux 12960 need_lib_prefix=no 12961 need_version=no 12962 hardcode_into_libs=yes 12963 if test "$host_cpu" = ia64; then 12964 # AIX 5 supports IA64 12965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12966 shlibpath_var=LD_LIBRARY_PATH 12967 else 12968 # With GCC up to 2.95.x, collect2 would create an import file 12969 # for dependence libraries. The import file would start with 12970 # the line `#! .'. This would cause the generated library to 12971 # depend on `.', always an invalid library. This was fixed in 12972 # development snapshots of GCC prior to 3.0. 12973 case $host_os in 12974 aix4 | aix4.[01] | aix4.[01].*) 12975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12976 echo ' yes ' 12977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12978 : 12979 else 12980 can_build_shared=no 12981 fi 12982 ;; 12983 esac 12984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12985 # soname into executable. Probably we can add versioning support to 12986 # collect2, so additional links can be useful in future. 12987 if test "$aix_use_runtimelinking" = yes; then 12988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12989 # instead of lib<name>.a to let people know that these are not 12990 # typical AIX shared libraries. 12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12992 else 12993 # We preserve .a as extension for shared libraries through AIX4.2 12994 # and later when we are not doing run time linking. 12995 library_names_spec='${libname}${release}.a $libname.a' 12996 soname_spec='${libname}${release}${shared_ext}$major' 12997 fi 12998 shlibpath_var=LIBPATH 12999 fi 13000 ;; 13001 13002 amigaos*) 13003 library_names_spec='$libname.ixlibrary $libname.a' 13004 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13005 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' 13006 ;; 13007 13008 beos*) 13009 library_names_spec='${libname}${shared_ext}' 13010 dynamic_linker="$host_os ld.so" 13011 shlibpath_var=LIBRARY_PATH 13012 ;; 13013 13014 bsdi[45]*) 13015 version_type=linux 13016 need_version=no 13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13018 soname_spec='${libname}${release}${shared_ext}$major' 13019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13020 shlibpath_var=LD_LIBRARY_PATH 13021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13023 # the default ld.so.conf also contains /usr/contrib/lib and 13024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13025 # libtool to hard-code these into programs 13026 ;; 13027 13028 cygwin* | mingw* | pw32*) 13029 version_type=windows 13030 shrext_cmds=".dll" 13031 need_version=no 13032 need_lib_prefix=no 13033 13034 case $GCC,$host_os in 13035 yes,cygwin* | yes,mingw* | yes,pw32*) 13036 library_names_spec='$libname.dll.a' 13037 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13038 postinstall_cmds='base_file=`basename \${file}`~ 13039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13040 dldir=$destdir/`dirname \$dlpath`~ 13041 test -d \$dldir || mkdir -p \$dldir~ 13042 $install_prog $dir/$dlname \$dldir/$dlname~ 13043 chmod a+x \$dldir/$dlname' 13044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13045 dlpath=$dir/\$dldll~ 13046 $rm \$dlpath' 13047 shlibpath_overrides_runpath=yes 13048 13049 case $host_os in 13050 cygwin*) 13051 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13054 ;; 13055 mingw*) 13056 # MinGW DLLs use traditional 'lib' prefix 13057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13060 # It is most probably a Windows format PATH printed by 13061 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13062 # path with ; separators, and with drive letters. We can handle the 13063 # drive letters (cygwin fileutils understands them), so leave them, 13064 # especially as we might pass files found there to a mingw objdump, 13065 # which wouldn't understand a cygwinified path. Ahh. 13066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13067 else 13068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13069 fi 13070 ;; 13071 pw32*) 13072 # pw32 DLLs use 'pw' prefix rather than 'lib' 13073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13074 ;; 13075 esac 13076 ;; 13077 13078 *) 13079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13080 ;; 13081 esac 13082 dynamic_linker='Win32 ld.exe' 13083 # FIXME: first we should search . and the directory the executable is in 13084 shlibpath_var=PATH 13085 ;; 13086 13087 darwin* | rhapsody*) 13088 dynamic_linker="$host_os dyld" 13089 version_type=darwin 13090 need_lib_prefix=no 13091 need_version=no 13092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13093 soname_spec='${libname}${release}${major}$shared_ext' 13094 shlibpath_overrides_runpath=yes 13095 shlibpath_var=DYLD_LIBRARY_PATH 13096 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13098 if test "$GCC" = yes; then 13099 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13100 else 13101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13102 fi 13103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13104 ;; 13105 13106 dgux*) 13107 version_type=linux 13108 need_lib_prefix=no 13109 need_version=no 13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13111 soname_spec='${libname}${release}${shared_ext}$major' 13112 shlibpath_var=LD_LIBRARY_PATH 13113 ;; 13114 13115 freebsd1*) 13116 dynamic_linker=no 13117 ;; 13118 13119 kfreebsd*-gnu) 13120 version_type=linux 13121 need_lib_prefix=no 13122 need_version=no 13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13124 soname_spec='${libname}${release}${shared_ext}$major' 13125 shlibpath_var=LD_LIBRARY_PATH 13126 shlibpath_overrides_runpath=no 13127 hardcode_into_libs=yes 13128 dynamic_linker='GNU ld.so' 13129 ;; 13130 13131 freebsd* | dragonfly*) 13132 # DragonFly does not have aout. When/if they implement a new 13133 # versioning mechanism, adjust this. 13134 if test -x /usr/bin/objformat; then 13135 objformat=`/usr/bin/objformat` 13136 else 13137 case $host_os in 13138 freebsd[123]*) objformat=aout ;; 13139 *) objformat=elf ;; 13140 esac 13141 fi 13142 version_type=freebsd-$objformat 13143 case $version_type in 13144 freebsd-elf*) 13145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13146 need_version=no 13147 need_lib_prefix=no 13148 ;; 13149 freebsd-*) 13150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13151 need_version=yes 13152 ;; 13153 esac 13154 shlibpath_var=LD_LIBRARY_PATH 13155 case $host_os in 13156 freebsd2*) 13157 shlibpath_overrides_runpath=yes 13158 ;; 13159 freebsd3.[01]* | freebsdelf3.[01]*) 13160 shlibpath_overrides_runpath=yes 13161 hardcode_into_libs=yes 13162 ;; 13163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13165 shlibpath_overrides_runpath=no 13166 hardcode_into_libs=yes 13167 ;; 13168 freebsd*) # from 4.6 on 13169 shlibpath_overrides_runpath=yes 13170 hardcode_into_libs=yes 13171 ;; 13172 esac 13173 ;; 13174 13175 gnu*) 13176 version_type=linux 13177 need_lib_prefix=no 13178 need_version=no 13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13180 soname_spec='${libname}${release}${shared_ext}$major' 13181 shlibpath_var=LD_LIBRARY_PATH 13182 hardcode_into_libs=yes 13183 ;; 13184 13185 hpux9* | hpux10* | hpux11*) 13186 # Give a soname corresponding to the major version so that dld.sl refuses to 13187 # link against other versions. 13188 version_type=sunos 13189 need_lib_prefix=no 13190 need_version=no 13191 case $host_cpu in 13192 ia64*) 13193 shrext_cmds='.so' 13194 hardcode_into_libs=yes 13195 dynamic_linker="$host_os dld.so" 13196 shlibpath_var=LD_LIBRARY_PATH 13197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13199 soname_spec='${libname}${release}${shared_ext}$major' 13200 if test "X$HPUX_IA64_MODE" = X32; then 13201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13202 else 13203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13204 fi 13205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13206 ;; 13207 hppa*64*) 13208 shrext_cmds='.sl' 13209 hardcode_into_libs=yes 13210 dynamic_linker="$host_os dld.sl" 13211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13214 soname_spec='${libname}${release}${shared_ext}$major' 13215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13217 ;; 13218 *) 13219 shrext_cmds='.sl' 13220 dynamic_linker="$host_os dld.sl" 13221 shlibpath_var=SHLIB_PATH 13222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13224 soname_spec='${libname}${release}${shared_ext}$major' 13225 ;; 13226 esac 13227 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13228 postinstall_cmds='chmod 555 $lib' 13229 ;; 13230 13231 interix3*) 13232 version_type=linux 13233 need_lib_prefix=no 13234 need_version=no 13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13236 soname_spec='${libname}${release}${shared_ext}$major' 13237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13238 shlibpath_var=LD_LIBRARY_PATH 13239 shlibpath_overrides_runpath=no 13240 hardcode_into_libs=yes 13241 ;; 13242 13243 irix5* | irix6* | nonstopux*) 13244 case $host_os in 13245 nonstopux*) version_type=nonstopux ;; 13246 *) 13247 if test "$lt_cv_prog_gnu_ld" = yes; then 13248 version_type=linux 13249 else 13250 version_type=irix 13251 fi ;; 13252 esac 13253 need_lib_prefix=no 13254 need_version=no 13255 soname_spec='${libname}${release}${shared_ext}$major' 13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13257 case $host_os in 13258 irix5* | nonstopux*) 13259 libsuff= shlibsuff= 13260 ;; 13261 *) 13262 case $LD in # libtool.m4 will add one of these switches to LD 13263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13264 libsuff= shlibsuff= libmagic=32-bit;; 13265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13266 libsuff=32 shlibsuff=N32 libmagic=N32;; 13267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13268 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13269 *) libsuff= shlibsuff= libmagic=never-match;; 13270 esac 13271 ;; 13272 esac 13273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13274 shlibpath_overrides_runpath=no 13275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13277 hardcode_into_libs=yes 13278 ;; 13279 13280 # No shared lib support for Linux oldld, aout, or coff. 13281 linux*oldld* | linux*aout* | linux*coff*) 13282 dynamic_linker=no 13283 ;; 13284 13285 # This must be Linux ELF. 13286 linux*) 13287 version_type=linux 13288 need_lib_prefix=no 13289 need_version=no 13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13291 soname_spec='${libname}${release}${shared_ext}$major' 13292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13293 shlibpath_var=LD_LIBRARY_PATH 13294 shlibpath_overrides_runpath=no 13295 # This implies no fast_install, which is unacceptable. 13296 # Some rework will be needed to allow for fast_install 13297 # before this can be enabled. 13298 hardcode_into_libs=yes 13299 13300 # Append ld.so.conf contents to the search path 13301 if test -f /etc/ld.so.conf; then 13302 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13304 fi 13305 13306 # We used to test for /lib/ld.so.1 and disable shared libraries on 13307 # powerpc, because MkLinux only supported shared libraries with the 13308 # GNU dynamic linker. Since this was broken with cross compilers, 13309 # most powerpc-linux boxes support dynamic linking these days and 13310 # people can always --disable-shared, the test was removed, and we 13311 # assume the GNU/Linux dynamic linker is in use. 13312 dynamic_linker='GNU/Linux ld.so' 13313 ;; 13314 13315 knetbsd*-gnu) 13316 version_type=linux 13317 need_lib_prefix=no 13318 need_version=no 13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13320 soname_spec='${libname}${release}${shared_ext}$major' 13321 shlibpath_var=LD_LIBRARY_PATH 13322 shlibpath_overrides_runpath=no 13323 hardcode_into_libs=yes 13324 dynamic_linker='GNU ld.so' 13325 ;; 13326 13327 netbsd*) 13328 version_type=sunos 13329 need_lib_prefix=no 13330 need_version=no 13331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13334 dynamic_linker='NetBSD (a.out) ld.so' 13335 else 13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13337 soname_spec='${libname}${release}${shared_ext}$major' 13338 dynamic_linker='NetBSD ld.elf_so' 13339 fi 13340 shlibpath_var=LD_LIBRARY_PATH 13341 shlibpath_overrides_runpath=yes 13342 hardcode_into_libs=yes 13343 ;; 13344 13345 newsos6) 13346 version_type=linux 13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13348 shlibpath_var=LD_LIBRARY_PATH 13349 shlibpath_overrides_runpath=yes 13350 ;; 13351 13352 nto-qnx*) 13353 version_type=linux 13354 need_lib_prefix=no 13355 need_version=no 13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13357 soname_spec='${libname}${release}${shared_ext}$major' 13358 shlibpath_var=LD_LIBRARY_PATH 13359 shlibpath_overrides_runpath=yes 13360 ;; 13361 13362 openbsd*) 13363 version_type=sunos 13364 sys_lib_dlsearch_path_spec="/usr/lib" 13365 need_lib_prefix=no 13366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13367 case $host_os in 13368 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13369 *) need_version=no ;; 13370 esac 13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13373 shlibpath_var=LD_LIBRARY_PATH 13374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13375 case $host_os in 13376 openbsd2.[89] | openbsd2.[89].*) 13377 shlibpath_overrides_runpath=no 13378 ;; 13379 *) 13380 shlibpath_overrides_runpath=yes 13381 ;; 13382 esac 13383 else 13384 shlibpath_overrides_runpath=yes 13385 fi 13386 ;; 13387 13388 os2*) 13389 libname_spec='$name' 13390 shrext_cmds=".dll" 13391 need_lib_prefix=no 13392 library_names_spec='$libname${shared_ext} $libname.a' 13393 dynamic_linker='OS/2 ld.exe' 13394 shlibpath_var=LIBPATH 13395 ;; 13396 13397 osf3* | osf4* | osf5*) 13398 version_type=osf 13399 need_lib_prefix=no 13400 need_version=no 13401 soname_spec='${libname}${release}${shared_ext}$major' 13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13403 shlibpath_var=LD_LIBRARY_PATH 13404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13406 ;; 13407 13408 solaris*) 13409 version_type=linux 13410 need_lib_prefix=no 13411 need_version=no 13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13413 soname_spec='${libname}${release}${shared_ext}$major' 13414 shlibpath_var=LD_LIBRARY_PATH 13415 shlibpath_overrides_runpath=yes 13416 hardcode_into_libs=yes 13417 # ldd complains unless libraries are executable 13418 postinstall_cmds='chmod +x $lib' 13419 ;; 13420 13421 sunos4*) 13422 version_type=sunos 13423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13425 shlibpath_var=LD_LIBRARY_PATH 13426 shlibpath_overrides_runpath=yes 13427 if test "$with_gnu_ld" = yes; then 13428 need_lib_prefix=no 13429 fi 13430 need_version=yes 13431 ;; 13432 13433 sysv4 | sysv4.3*) 13434 version_type=linux 13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13436 soname_spec='${libname}${release}${shared_ext}$major' 13437 shlibpath_var=LD_LIBRARY_PATH 13438 case $host_vendor in 13439 sni) 13440 shlibpath_overrides_runpath=no 13441 need_lib_prefix=no 13442 export_dynamic_flag_spec='${wl}-Blargedynsym' 13443 runpath_var=LD_RUN_PATH 13444 ;; 13445 siemens) 13446 need_lib_prefix=no 13447 ;; 13448 motorola) 13449 need_lib_prefix=no 13450 need_version=no 13451 shlibpath_overrides_runpath=no 13452 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13453 ;; 13454 esac 13455 ;; 13456 13457 sysv4*MP*) 13458 if test -d /usr/nec ;then 13459 version_type=linux 13460 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13461 soname_spec='$libname${shared_ext}.$major' 13462 shlibpath_var=LD_LIBRARY_PATH 13463 fi 13464 ;; 13465 13466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13467 version_type=freebsd-elf 13468 need_lib_prefix=no 13469 need_version=no 13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13471 soname_spec='${libname}${release}${shared_ext}$major' 13472 shlibpath_var=LD_LIBRARY_PATH 13473 hardcode_into_libs=yes 13474 if test "$with_gnu_ld" = yes; then 13475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13476 shlibpath_overrides_runpath=no 13477 else 13478 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13479 shlibpath_overrides_runpath=yes 13480 case $host_os in 13481 sco3.2v5*) 13482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13483 ;; 13484 esac 13485 fi 13486 sys_lib_dlsearch_path_spec='/usr/lib' 13487 ;; 13488 13489 uts4*) 13490 version_type=linux 13491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13492 soname_spec='${libname}${release}${shared_ext}$major' 13493 shlibpath_var=LD_LIBRARY_PATH 13494 ;; 13495 13496 *) 13497 dynamic_linker=no 13498 ;; 13499 esac 13500 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13501 echo "${ECHO_T}$dynamic_linker" >&6; } 13502 test "$dynamic_linker" = no && can_build_shared=no 13503 13504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13505 if test "$GCC" = yes; then 13506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13507 fi 13508 13509 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13511 hardcode_action_CXX= 13512 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13513 test -n "$runpath_var_CXX" || \ 13514 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13515 13516 # We can hardcode non-existant directories. 13517 if test "$hardcode_direct_CXX" != no && 13518 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13519 # have to relink, otherwise we might link with an installed library 13520 # when we should be linking with a yet-to-be-installed one 13521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13522 test "$hardcode_minus_L_CXX" != no; then 13523 # Linking always hardcodes the temporary library directory. 13524 hardcode_action_CXX=relink 13525 else 13526 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13527 hardcode_action_CXX=immediate 13528 fi 13529 else 13530 # We cannot hardcode anything, or else we can only hardcode existing 13531 # directories. 13532 hardcode_action_CXX=unsupported 13533 fi 13534 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13535 echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13536 13537 if test "$hardcode_action_CXX" = relink; then 13538 # Fast installation is not supported 13539 enable_fast_install=no 13540 elif test "$shlibpath_overrides_runpath" = yes || 13541 test "$enable_shared" = no; then 13542 # Fast installation is not necessary 13543 enable_fast_install=needless 13544 fi 13545 13546 13547 # The else clause should only fire when bootstrapping the 13548 # libtool distribution, otherwise you forgot to ship ltmain.sh 13549 # with your package, and you will get complaints that there are 13550 # no rules to generate ltmain.sh. 13551 if test -f "$ltmain"; then 13552 # See if we are running on zsh, and set the options which allow our commands through 13553 # without removal of \ escapes. 13554 if test -n "${ZSH_VERSION+set}" ; then 13555 setopt NO_GLOB_SUBST 13556 fi 13557 # Now quote all the things that may contain metacharacters while being 13558 # careful not to overquote the AC_SUBSTed values. We take copies of the 13559 # variables and quote the copies for generation of the libtool script. 13560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13561 SED SHELL STRIP \ 13562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13564 deplibs_check_method reload_flag reload_cmds need_locks \ 13565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13566 lt_cv_sys_global_symbol_to_c_name_address \ 13567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13568 old_postinstall_cmds old_postuninstall_cmds \ 13569 compiler_CXX \ 13570 CC_CXX \ 13571 LD_CXX \ 13572 lt_prog_compiler_wl_CXX \ 13573 lt_prog_compiler_pic_CXX \ 13574 lt_prog_compiler_static_CXX \ 13575 lt_prog_compiler_no_builtin_flag_CXX \ 13576 export_dynamic_flag_spec_CXX \ 13577 thread_safe_flag_spec_CXX \ 13578 whole_archive_flag_spec_CXX \ 13579 enable_shared_with_static_runtimes_CXX \ 13580 old_archive_cmds_CXX \ 13581 old_archive_from_new_cmds_CXX \ 13582 predep_objects_CXX \ 13583 postdep_objects_CXX \ 13584 predeps_CXX \ 13585 postdeps_CXX \ 13586 compiler_lib_search_path_CXX \ 13587 archive_cmds_CXX \ 13588 archive_expsym_cmds_CXX \ 13589 postinstall_cmds_CXX \ 13590 postuninstall_cmds_CXX \ 13591 old_archive_from_expsyms_cmds_CXX \ 13592 allow_undefined_flag_CXX \ 13593 no_undefined_flag_CXX \ 13594 export_symbols_cmds_CXX \ 13595 hardcode_libdir_flag_spec_CXX \ 13596 hardcode_libdir_flag_spec_ld_CXX \ 13597 hardcode_libdir_separator_CXX \ 13598 hardcode_automatic_CXX \ 13599 module_cmds_CXX \ 13600 module_expsym_cmds_CXX \ 13601 lt_cv_prog_compiler_c_o_CXX \ 13602 exclude_expsyms_CXX \ 13603 include_expsyms_CXX; do 13604 13605 case $var in 13606 old_archive_cmds_CXX | \ 13607 old_archive_from_new_cmds_CXX | \ 13608 archive_cmds_CXX | \ 13609 archive_expsym_cmds_CXX | \ 13610 module_cmds_CXX | \ 13611 module_expsym_cmds_CXX | \ 13612 old_archive_from_expsyms_cmds_CXX | \ 13613 export_symbols_cmds_CXX | \ 13614 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13615 postinstall_cmds | postuninstall_cmds | \ 13616 old_postinstall_cmds | old_postuninstall_cmds | \ 13617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13618 # Double-quote double-evaled strings. 13619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13620 ;; 13621 *) 13622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13623 ;; 13624 esac 13625 done 13626 13627 case $lt_echo in 13628 *'\$0 --fallback-echo"') 13629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13630 ;; 13631 esac 13632 13633 cfgfile="$ofile" 13634 13635 cat <<__EOF__ >> "$cfgfile" 13636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 13637 13638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13639 13640 # Shell to use when invoking shell scripts. 13641 SHELL=$lt_SHELL 13642 13643 # Whether or not to build shared libraries. 13644 build_libtool_libs=$enable_shared 13645 13646 # Whether or not to build static libraries. 13647 build_old_libs=$enable_static 13648 13649 # Whether or not to add -lc for building shared libraries. 13650 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13651 13652 # Whether or not to disallow shared libs when runtime libs are static 13653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13654 13655 # Whether or not to optimize for fast installation. 13656 fast_install=$enable_fast_install 13657 13658 # The host system. 13659 host_alias=$host_alias 13660 host=$host 13661 host_os=$host_os 13662 13663 # The build system. 13664 build_alias=$build_alias 13665 build=$build 13666 build_os=$build_os 13667 13668 # An echo program that does not interpret backslashes. 13669 echo=$lt_echo 13670 13671 # The archiver. 13672 AR=$lt_AR 13673 AR_FLAGS=$lt_AR_FLAGS 13674 13675 # A C compiler. 13676 LTCC=$lt_LTCC 13677 13678 # LTCC compiler flags. 13679 LTCFLAGS=$lt_LTCFLAGS 13680 13681 # A language-specific compiler. 13682 CC=$lt_compiler_CXX 13683 13684 # Is the compiler the GNU C compiler? 13685 with_gcc=$GCC_CXX 13686 13687 # An ERE matcher. 13688 EGREP=$lt_EGREP 13689 13690 # The linker used to build libraries. 13691 LD=$lt_LD_CXX 13692 13693 # Whether we need hard or soft links. 13694 LN_S=$lt_LN_S 13695 13696 # A BSD-compatible nm program. 13697 NM=$lt_NM 13698 13699 # A symbol stripping program 13700 STRIP=$lt_STRIP 13701 13702 # Used to examine libraries when file_magic_cmd begins "file" 13703 MAGIC_CMD=$MAGIC_CMD 13704 13705 # Used on cygwin: DLL creation program. 13706 DLLTOOL="$DLLTOOL" 13707 13708 # Used on cygwin: object dumper. 13709 OBJDUMP="$OBJDUMP" 13710 13711 # Used on cygwin: assembler. 13712 AS="$AS" 13713 13714 # The name of the directory that contains temporary libtool files. 13715 objdir=$objdir 13716 13717 # How to create reloadable object files. 13718 reload_flag=$lt_reload_flag 13719 reload_cmds=$lt_reload_cmds 13720 13721 # How to pass a linker flag through the compiler. 13722 wl=$lt_lt_prog_compiler_wl_CXX 13723 13724 # Object file suffix (normally "o"). 13725 objext="$ac_objext" 13726 13727 # Old archive suffix (normally "a"). 13728 libext="$libext" 13729 13730 # Shared library suffix (normally ".so"). 13731 shrext_cmds='$shrext_cmds' 13732 13733 # Executable file suffix (normally ""). 13734 exeext="$exeext" 13735 13736 # Additional compiler flags for building library objects. 13737 pic_flag=$lt_lt_prog_compiler_pic_CXX 13738 pic_mode=$pic_mode 13739 13740 # What is the maximum length of a command? 13741 max_cmd_len=$lt_cv_sys_max_cmd_len 13742 13743 # Does compiler simultaneously support -c and -o options? 13744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13745 13746 # Must we lock files when doing compilation? 13747 need_locks=$lt_need_locks 13748 13749 # Do we need the lib prefix for modules? 13750 need_lib_prefix=$need_lib_prefix 13751 13752 # Do we need a version for libraries? 13753 need_version=$need_version 13754 13755 # Whether dlopen is supported. 13756 dlopen_support=$enable_dlopen 13757 13758 # Whether dlopen of programs is supported. 13759 dlopen_self=$enable_dlopen_self 13760 13761 # Whether dlopen of statically linked programs is supported. 13762 dlopen_self_static=$enable_dlopen_self_static 13763 13764 # Compiler flag to prevent dynamic linking. 13765 link_static_flag=$lt_lt_prog_compiler_static_CXX 13766 13767 # Compiler flag to turn off builtin functions. 13768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13769 13770 # Compiler flag to allow reflexive dlopens. 13771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13772 13773 # Compiler flag to generate shared objects directly from archives. 13774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13775 13776 # Compiler flag to generate thread-safe objects. 13777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13778 13779 # Library versioning type. 13780 version_type=$version_type 13781 13782 # Format of library name prefix. 13783 libname_spec=$lt_libname_spec 13784 13785 # List of archive names. First name is the real one, the rest are links. 13786 # The last name is the one that the linker finds with -lNAME. 13787 library_names_spec=$lt_library_names_spec 13788 13789 # The coded name of the library, if different from the real name. 13790 soname_spec=$lt_soname_spec 13791 13792 # Commands used to build and install an old-style archive. 13793 RANLIB=$lt_RANLIB 13794 old_archive_cmds=$lt_old_archive_cmds_CXX 13795 old_postinstall_cmds=$lt_old_postinstall_cmds 13796 old_postuninstall_cmds=$lt_old_postuninstall_cmds 13797 13798 # Create an old-style archive from a shared archive. 13799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13800 13801 # Create a temporary old-style archive to link instead of a shared archive. 13802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13803 13804 # Commands used to build and install a shared archive. 13805 archive_cmds=$lt_archive_cmds_CXX 13806 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13807 postinstall_cmds=$lt_postinstall_cmds 13808 postuninstall_cmds=$lt_postuninstall_cmds 13809 13810 # Commands used to build a loadable module (assumed same as above if empty) 13811 module_cmds=$lt_module_cmds_CXX 13812 module_expsym_cmds=$lt_module_expsym_cmds_CXX 13813 13814 # Commands to strip libraries. 13815 old_striplib=$lt_old_striplib 13816 striplib=$lt_striplib 13817 13818 # Dependencies to place before the objects being linked to create a 13819 # shared library. 13820 predep_objects=$lt_predep_objects_CXX 13821 13822 # Dependencies to place after the objects being linked to create a 13823 # shared library. 13824 postdep_objects=$lt_postdep_objects_CXX 13825 13826 # Dependencies to place before the objects being linked to create a 13827 # shared library. 13828 predeps=$lt_predeps_CXX 13829 13830 # Dependencies to place after the objects being linked to create a 13831 # shared library. 13832 postdeps=$lt_postdeps_CXX 13833 13834 # The library search path used internally by the compiler when linking 13835 # a shared library. 13836 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13837 13838 # Method to check whether dependent libraries are shared objects. 13839 deplibs_check_method=$lt_deplibs_check_method 13840 13841 # Command to use when deplibs_check_method == file_magic. 13842 file_magic_cmd=$lt_file_magic_cmd 13843 13844 # Flag that allows shared libraries with undefined symbols to be built. 13845 allow_undefined_flag=$lt_allow_undefined_flag_CXX 13846 13847 # Flag that forces no undefined symbols. 13848 no_undefined_flag=$lt_no_undefined_flag_CXX 13849 13850 # Commands used to finish a libtool library installation in a directory. 13851 finish_cmds=$lt_finish_cmds 13852 13853 # Same as above, but a single script fragment to be evaled but not shown. 13854 finish_eval=$lt_finish_eval 13855 13856 # Take the output of nm and produce a listing of raw symbols and C names. 13857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13858 13859 # Transform the output of nm in a proper C declaration 13860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13861 13862 # Transform the output of nm in a C name address pair 13863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13864 13865 # This is the shared library runtime path variable. 13866 runpath_var=$runpath_var 13867 13868 # This is the shared library path variable. 13869 shlibpath_var=$shlibpath_var 13870 13871 # Is shlibpath searched before the hard-coded library search path? 13872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13873 13874 # How to hardcode a shared library path into an executable. 13875 hardcode_action=$hardcode_action_CXX 13876 13877 # Whether we should hardcode library paths into libraries. 13878 hardcode_into_libs=$hardcode_into_libs 13879 13880 # Flag to hardcode \$libdir into a binary during linking. 13881 # This must work even if \$libdir does not exist. 13882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13883 13884 # If ld is used when linking, flag to hardcode \$libdir into 13885 # a binary during linking. This must work even if \$libdir does 13886 # not exist. 13887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13888 13889 # Whether we need a single -rpath flag with a separated argument. 13890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13891 13892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13893 # resulting binary. 13894 hardcode_direct=$hardcode_direct_CXX 13895 13896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13897 # resulting binary. 13898 hardcode_minus_L=$hardcode_minus_L_CXX 13899 13900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13901 # the resulting binary. 13902 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13903 13904 # Set to yes if building a shared library automatically hardcodes DIR into the library 13905 # and all subsequent libraries and executables linked against it. 13906 hardcode_automatic=$hardcode_automatic_CXX 13907 13908 # Variables whose values should be saved in libtool wrapper scripts and 13909 # restored at relink time. 13910 variables_saved_for_relink="$variables_saved_for_relink" 13911 13912 # Whether libtool must link a program against all its dependency libraries. 13913 link_all_deplibs=$link_all_deplibs_CXX 13914 13915 # Compile-time system search path for libraries 13916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13917 13918 # Run-time system search path for libraries 13919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13920 13921 # Fix the shell variable \$srcfile for the compiler. 13922 fix_srcfile_path="$fix_srcfile_path_CXX" 13923 13924 # Set to yes if exported symbols are required. 13925 always_export_symbols=$always_export_symbols_CXX 13926 13927 # The commands to list exported symbols. 13928 export_symbols_cmds=$lt_export_symbols_cmds_CXX 13929 13930 # The commands to extract the exported symbol list from a shared archive. 13931 extract_expsyms_cmds=$lt_extract_expsyms_cmds 13932 13933 # Symbols that should not be listed in the preloaded symbols. 13934 exclude_expsyms=$lt_exclude_expsyms_CXX 13935 13936 # Symbols that must always be exported. 13937 include_expsyms=$lt_include_expsyms_CXX 13938 13939 # ### END LIBTOOL TAG CONFIG: $tagname 13940 13941 __EOF__ 13942 13943 13944 else 13945 # If there is no Makefile yet, we rely on a make rule to execute 13946 # `config.status --recheck' to rerun these tests and create the 13947 # libtool script then. 13948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13949 if test -f "$ltmain_in"; then 13950 test -f Makefile && make "$ltmain" 13951 fi 13952 fi 13953 13954 13955 ac_ext=c 13956 ac_cpp='$CPP $CPPFLAGS' 13957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13959 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13960 13961 CC=$lt_save_CC 13962 LDCXX=$LD 13963 LD=$lt_save_LD 13964 GCC=$lt_save_GCC 13965 with_gnu_ldcxx=$with_gnu_ld 13966 with_gnu_ld=$lt_save_with_gnu_ld 13967 lt_cv_path_LDCXX=$lt_cv_path_LD 13968 lt_cv_path_LD=$lt_save_path_LD 13969 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13970 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13971 13972 else 13973 tagname="" 13974 fi 13975 ;; 13976 13977 F77) 13978 if test -n "$F77" && test "X$F77" != "Xno"; then 13979 13980 ac_ext=f 13981 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13982 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13983 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13984 13985 13986 archive_cmds_need_lc_F77=no 13987 allow_undefined_flag_F77= 13988 always_export_symbols_F77=no 13989 archive_expsym_cmds_F77= 13990 export_dynamic_flag_spec_F77= 13991 hardcode_direct_F77=no 13992 hardcode_libdir_flag_spec_F77= 13993 hardcode_libdir_flag_spec_ld_F77= 13994 hardcode_libdir_separator_F77= 13995 hardcode_minus_L_F77=no 13996 hardcode_automatic_F77=no 13997 module_cmds_F77= 13998 module_expsym_cmds_F77= 13999 link_all_deplibs_F77=unknown 14000 old_archive_cmds_F77=$old_archive_cmds 14001 no_undefined_flag_F77= 14002 whole_archive_flag_spec_F77= 14003 enable_shared_with_static_runtimes_F77=no 14004 14005 # Source file extension for f77 test sources. 14006 ac_ext=f 14007 14008 # Object file extension for compiled f77 test sources. 14009 objext=o 14010 objext_F77=$objext 14011 14012 # Code to be used in simple compile tests 14013 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14014 14015 # Code to be used in simple link tests 14016 lt_simple_link_test_code=" program t\n end\n" 14017 14018 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14019 14020 # If no C compiler was specified, use CC. 14021 LTCC=${LTCC-"$CC"} 14022 14023 # If no C compiler flags were specified, use CFLAGS. 14024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14025 14026 # Allow CC to be a program name with arguments. 14027 compiler=$CC 14028 14029 14030 # save warnings/boilerplate of simple test code 14031 ac_outfile=conftest.$ac_objext 14032 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14033 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14034 _lt_compiler_boilerplate=`cat conftest.err` 14035 $rm conftest* 14036 14037 ac_outfile=conftest.$ac_objext 14038 printf "$lt_simple_link_test_code" >conftest.$ac_ext 14039 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14040 _lt_linker_boilerplate=`cat conftest.err` 14041 $rm conftest* 14042 14043 14044 # Allow CC to be a program name with arguments. 14045 lt_save_CC="$CC" 14046 CC=${F77-"f77"} 14047 compiler=$CC 14048 compiler_F77=$CC 14049 for cc_temp in $compiler""; do 14050 case $cc_temp in 14051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14053 \-*) ;; 14054 *) break;; 14055 esac 14056 done 14057 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14058 14059 14060 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14061 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14062 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 14063 echo "${ECHO_T}$can_build_shared" >&6; } 14064 14065 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14066 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14067 test "$can_build_shared" = "no" && enable_shared=no 14068 14069 # On AIX, shared libraries and static libraries use the same namespace, and 14070 # are all built from PIC. 14071 case $host_os in 14072 aix3*) 14073 test "$enable_shared" = yes && enable_static=no 14074 if test -n "$RANLIB"; then 14075 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14076 postinstall_cmds='$RANLIB $lib' 14077 fi 14078 ;; 14079 aix4* | aix5*) 14080 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14081 test "$enable_shared" = yes && enable_static=no 14082 fi 14083 ;; 14084 esac 14085 { echo "$as_me:$LINENO: result: $enable_shared" >&5 14086 echo "${ECHO_T}$enable_shared" >&6; } 14087 14088 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14089 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14090 # Make sure either enable_shared or enable_static is yes. 14091 test "$enable_shared" = yes || enable_static=yes 14092 { echo "$as_me:$LINENO: result: $enable_static" >&5 14093 echo "${ECHO_T}$enable_static" >&6; } 14094 14095 GCC_F77="$G77" 14096 LD_F77="$LD" 14097 14098 lt_prog_compiler_wl_F77= 14099 lt_prog_compiler_pic_F77= 14100 lt_prog_compiler_static_F77= 14101 14102 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14103 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14104 14105 if test "$GCC" = yes; then 14106 lt_prog_compiler_wl_F77='-Wl,' 14107 lt_prog_compiler_static_F77='-static' 14108 14109 case $host_os in 14110 aix*) 14111 # All AIX code is PIC. 14112 if test "$host_cpu" = ia64; then 14113 # AIX 5 now supports IA64 processor 14114 lt_prog_compiler_static_F77='-Bstatic' 14115 fi 14116 ;; 14117 14118 amigaos*) 14119 # FIXME: we need at least 68020 code to build shared libraries, but 14120 # adding the `-m68020' flag to GCC prevents building anything better, 14121 # like `-m68040'. 14122 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14123 ;; 14124 14125 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14126 # PIC is the default for these OSes. 14127 ;; 14128 14129 mingw* | cygwin* | pw32* | os2*) 14130 # This hack is so that the source file can tell whether it is being 14131 # built for inclusion in a dll (and should export symbols for example). 14132 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14133 # (--disable-auto-import) libraries 14134 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14135 ;; 14136 14137 darwin* | rhapsody*) 14138 # PIC is the default on this platform 14139 # Common symbols not allowed in MH_DYLIB files 14140 lt_prog_compiler_pic_F77='-fno-common' 14141 ;; 14142 14143 interix3*) 14144 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14145 # Instead, we relocate shared libraries at runtime. 14146 ;; 14147 14148 msdosdjgpp*) 14149 # Just because we use GCC doesn't mean we suddenly get shared libraries 14150 # on systems that don't support them. 14151 lt_prog_compiler_can_build_shared_F77=no 14152 enable_shared=no 14153 ;; 14154 14155 sysv4*MP*) 14156 if test -d /usr/nec; then 14157 lt_prog_compiler_pic_F77=-Kconform_pic 14158 fi 14159 ;; 14160 14161 hpux*) 14162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14163 # not for PA HP-UX. 14164 case $host_cpu in 14165 hppa*64*|ia64*) 14166 # +Z the default 14167 ;; 14168 *) 14169 lt_prog_compiler_pic_F77='-fPIC' 14170 ;; 14171 esac 14172 ;; 14173 14174 *) 14175 lt_prog_compiler_pic_F77='-fPIC' 14176 ;; 14177 esac 14178 else 14179 # PORTME Check for flag to pass linker flags through the system compiler. 14180 case $host_os in 14181 aix*) 14182 lt_prog_compiler_wl_F77='-Wl,' 14183 if test "$host_cpu" = ia64; then 14184 # AIX 5 now supports IA64 processor 14185 lt_prog_compiler_static_F77='-Bstatic' 14186 else 14187 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14188 fi 14189 ;; 14190 darwin*) 14191 # PIC is the default on this platform 14192 # Common symbols not allowed in MH_DYLIB files 14193 case $cc_basename in 14194 xlc*) 14195 lt_prog_compiler_pic_F77='-qnocommon' 14196 lt_prog_compiler_wl_F77='-Wl,' 14197 ;; 14198 esac 14199 ;; 14200 14201 mingw* | cygwin* | pw32* | os2*) 14202 # This hack is so that the source file can tell whether it is being 14203 # built for inclusion in a dll (and should export symbols for example). 14204 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14205 # (--disable-auto-import) libraries 14206 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14207 ;; 14208 14209 hpux9* | hpux10* | hpux11*) 14210 lt_prog_compiler_wl_F77='-Wl,' 14211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14212 # not for PA HP-UX. 14213 case $host_cpu in 14214 hppa*64*|ia64*) 14215 # +Z the default 14216 ;; 14217 *) 14218 lt_prog_compiler_pic_F77='+Z' 14219 ;; 14220 esac 14221 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14222 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14223 ;; 14224 14225 irix5* | irix6* | nonstopux*) 14226 lt_prog_compiler_wl_F77='-Wl,' 14227 # PIC (with -KPIC) is the default. 14228 lt_prog_compiler_static_F77='-non_shared' 14229 ;; 14230 14231 newsos6) 14232 lt_prog_compiler_pic_F77='-KPIC' 14233 lt_prog_compiler_static_F77='-Bstatic' 14234 ;; 14235 14236 linux*) 14237 case $cc_basename in 14238 icc* | ecc*) 14239 lt_prog_compiler_wl_F77='-Wl,' 14240 lt_prog_compiler_pic_F77='-KPIC' 14241 lt_prog_compiler_static_F77='-static' 14242 ;; 14243 pgcc* | pgf77* | pgf90* | pgf95*) 14244 # Portland Group compilers (*not* the Pentium gcc compiler, 14245 # which looks to be a dead project) 14246 lt_prog_compiler_wl_F77='-Wl,' 14247 lt_prog_compiler_pic_F77='-fpic' 14248 lt_prog_compiler_static_F77='-Bstatic' 14249 ;; 14250 ccc*) 14251 lt_prog_compiler_wl_F77='-Wl,' 14252 # All Alpha code is PIC. 14253 lt_prog_compiler_static_F77='-non_shared' 14254 ;; 14255 como) 14256 lt_prog_compiler_wl_F77='-lopt=' 14257 ;; 14258 *) 14259 case `$CC -V 2>&1 | sed 5q` in 14260 *Sun\ C*) 14261 # Sun C 5.9 14262 lt_prog_compiler_pic_F77='-KPIC' 14263 lt_prog_compiler_static_F77='-Bstatic' 14264 lt_prog_compiler_wl_F77='-Wl,' 14265 ;; 14266 *Sun\ F*) 14267 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14268 lt_prog_compiler_pic_F77='-KPIC' 14269 lt_prog_compiler_static_F77='-Bstatic' 14270 lt_prog_compiler_wl_F77='' 14271 ;; 14272 esac 14273 ;; 14274 esac 14275 ;; 14276 14277 osf3* | osf4* | osf5*) 14278 lt_prog_compiler_wl_F77='-Wl,' 14279 # All OSF/1 code is PIC. 14280 lt_prog_compiler_static_F77='-non_shared' 14281 ;; 14282 14283 solaris*) 14284 lt_prog_compiler_pic_F77='-KPIC' 14285 lt_prog_compiler_static_F77='-Bstatic' 14286 case $cc_basename in 14287 f77* | f90* | f95*) 14288 lt_prog_compiler_wl_F77='-Qoption ld ';; 14289 *) 14290 lt_prog_compiler_wl_F77='-Wl,';; 14291 esac 14292 ;; 14293 14294 sunos4*) 14295 lt_prog_compiler_wl_F77='-Qoption ld ' 14296 lt_prog_compiler_pic_F77='-PIC' 14297 lt_prog_compiler_static_F77='-Bstatic' 14298 ;; 14299 14300 sysv4 | sysv4.2uw2* | sysv4.3*) 14301 lt_prog_compiler_wl_F77='-Wl,' 14302 lt_prog_compiler_pic_F77='-KPIC' 14303 lt_prog_compiler_static_F77='-Bstatic' 14304 ;; 14305 14306 sysv4*MP*) 14307 if test -d /usr/nec ;then 14308 lt_prog_compiler_pic_F77='-Kconform_pic' 14309 lt_prog_compiler_static_F77='-Bstatic' 14310 fi 14311 ;; 14312 14313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14314 lt_prog_compiler_wl_F77='-Wl,' 14315 lt_prog_compiler_pic_F77='-KPIC' 14316 lt_prog_compiler_static_F77='-Bstatic' 14317 ;; 14318 14319 unicos*) 14320 lt_prog_compiler_wl_F77='-Wl,' 14321 lt_prog_compiler_can_build_shared_F77=no 14322 ;; 14323 14324 uts4*) 14325 lt_prog_compiler_pic_F77='-pic' 14326 lt_prog_compiler_static_F77='-Bstatic' 14327 ;; 14328 14329 *) 14330 lt_prog_compiler_can_build_shared_F77=no 14331 ;; 14332 esac 14333 fi 14334 14335 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14336 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14337 14338 # 14339 # Check to make sure the PIC flag actually works. 14340 # 14341 if test -n "$lt_prog_compiler_pic_F77"; then 14342 14343 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14345 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14346 echo $ECHO_N "(cached) $ECHO_C" >&6 14347 else 14348 lt_prog_compiler_pic_works_F77=no 14349 ac_outfile=conftest.$ac_objext 14350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14351 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14352 # Insert the option either (1) after the last *FLAGS variable, or 14353 # (2) before a word containing "conftest.", or (3) at the end. 14354 # Note that $ac_compile itself does not contain backslashes and begins 14355 # with a dollar sign (not a hyphen), so the echo should work correctly. 14356 # The option is referenced via a variable to avoid confusing sed. 14357 lt_compile=`echo "$ac_compile" | $SED \ 14358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14360 -e 's:$: $lt_compiler_flag:'` 14361 (eval echo "\"\$as_me:14361: $lt_compile\"" >&5) 14362 (eval "$lt_compile" 2>conftest.err) 14363 ac_status=$? 14364 cat conftest.err >&5 14365 echo "$as_me:14365: \$? = $ac_status" >&5 14366 if (exit $ac_status) && test -s "$ac_outfile"; then 14367 # The compiler can only warn and ignore the option if not recognized 14368 # So say no if there are warnings other than the usual output. 14369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14372 lt_prog_compiler_pic_works_F77=yes 14373 fi 14374 fi 14375 $rm conftest* 14376 14377 fi 14378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14379 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14380 14381 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14382 case $lt_prog_compiler_pic_F77 in 14383 "" | " "*) ;; 14384 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14385 esac 14386 else 14387 lt_prog_compiler_pic_F77= 14388 lt_prog_compiler_can_build_shared_F77=no 14389 fi 14390 14391 fi 14392 case $host_os in 14393 # For platforms which do not support PIC, -DPIC is meaningless: 14394 *djgpp*) 14395 lt_prog_compiler_pic_F77= 14396 ;; 14397 *) 14398 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14399 ;; 14400 esac 14401 14402 # 14403 # Check to make sure the static flag actually works. 14404 # 14405 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14406 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14407 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14408 if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14409 echo $ECHO_N "(cached) $ECHO_C" >&6 14410 else 14411 lt_prog_compiler_static_works_F77=no 14412 save_LDFLAGS="$LDFLAGS" 14413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14414 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14416 # The linker can only warn and ignore the option if not recognized 14417 # So say no if there are warnings 14418 if test -s conftest.err; then 14419 # Append any errors to the config.log. 14420 cat conftest.err 1>&5 14421 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14423 if diff conftest.exp conftest.er2 >/dev/null; then 14424 lt_prog_compiler_static_works_F77=yes 14425 fi 14426 else 14427 lt_prog_compiler_static_works_F77=yes 14428 fi 14429 fi 14430 $rm conftest* 14431 LDFLAGS="$save_LDFLAGS" 14432 14433 fi 14434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14435 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14436 14437 if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14438 : 14439 else 14440 lt_prog_compiler_static_F77= 14441 fi 14442 14443 14444 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14446 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14447 echo $ECHO_N "(cached) $ECHO_C" >&6 14448 else 14449 lt_cv_prog_compiler_c_o_F77=no 14450 $rm -r conftest 2>/dev/null 14451 mkdir conftest 14452 cd conftest 14453 mkdir out 14454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14455 14456 lt_compiler_flag="-o out/conftest2.$ac_objext" 14457 # Insert the option either (1) after the last *FLAGS variable, or 14458 # (2) before a word containing "conftest.", or (3) at the end. 14459 # Note that $ac_compile itself does not contain backslashes and begins 14460 # with a dollar sign (not a hyphen), so the echo should work correctly. 14461 lt_compile=`echo "$ac_compile" | $SED \ 14462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14464 -e 's:$: $lt_compiler_flag:'` 14465 (eval echo "\"\$as_me:14465: $lt_compile\"" >&5) 14466 (eval "$lt_compile" 2>out/conftest.err) 14467 ac_status=$? 14468 cat out/conftest.err >&5 14469 echo "$as_me:14469: \$? = $ac_status" >&5 14470 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14471 then 14472 # The compiler can only warn and ignore the option if not recognized 14473 # So say no if there are warnings 14474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14477 lt_cv_prog_compiler_c_o_F77=yes 14478 fi 14479 fi 14480 chmod u+w . 2>&5 14481 $rm conftest* 14482 # SGI C++ compiler will create directory out/ii_files/ for 14483 # template instantiation 14484 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14485 $rm out/* && rmdir out 14486 cd .. 14487 rmdir conftest 14488 $rm conftest* 14489 14490 fi 14491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14493 14494 14495 hard_links="nottested" 14496 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14497 # do not overwrite the value of need_locks provided by the user 14498 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14500 hard_links=yes 14501 $rm conftest* 14502 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14503 touch conftest.a 14504 ln conftest.a conftest.b 2>&5 || hard_links=no 14505 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14506 { echo "$as_me:$LINENO: result: $hard_links" >&5 14507 echo "${ECHO_T}$hard_links" >&6; } 14508 if test "$hard_links" = no; then 14509 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14511 need_locks=warn 14512 fi 14513 else 14514 need_locks=no 14515 fi 14516 14517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14519 14520 runpath_var= 14521 allow_undefined_flag_F77= 14522 enable_shared_with_static_runtimes_F77=no 14523 archive_cmds_F77= 14524 archive_expsym_cmds_F77= 14525 old_archive_From_new_cmds_F77= 14526 old_archive_from_expsyms_cmds_F77= 14527 export_dynamic_flag_spec_F77= 14528 whole_archive_flag_spec_F77= 14529 thread_safe_flag_spec_F77= 14530 hardcode_libdir_flag_spec_F77= 14531 hardcode_libdir_flag_spec_ld_F77= 14532 hardcode_libdir_separator_F77= 14533 hardcode_direct_F77=no 14534 hardcode_minus_L_F77=no 14535 hardcode_shlibpath_var_F77=unsupported 14536 link_all_deplibs_F77=unknown 14537 hardcode_automatic_F77=no 14538 module_cmds_F77= 14539 module_expsym_cmds_F77= 14540 always_export_symbols_F77=no 14541 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14542 # include_expsyms should be a list of space-separated symbols to be *always* 14543 # included in the symbol list 14544 include_expsyms_F77= 14545 # exclude_expsyms can be an extended regexp of symbols to exclude 14546 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14548 # as well as any symbol that contains `d'. 14549 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14551 # platforms (ab)use it in PIC code, but their linkers get confused if 14552 # the symbol is explicitly referenced. Since portable code cannot 14553 # rely on this symbol name, it's probably fine to never include it in 14554 # preloaded symbol tables. 14555 extract_expsyms_cmds= 14556 # Just being paranoid about ensuring that cc_basename is set. 14557 for cc_temp in $compiler""; do 14558 case $cc_temp in 14559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14561 \-*) ;; 14562 *) break;; 14563 esac 14564 done 14565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14566 14567 case $host_os in 14568 cygwin* | mingw* | pw32*) 14569 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14570 # When not using gcc, we currently assume that we are using 14571 # Microsoft Visual C++. 14572 if test "$GCC" != yes; then 14573 with_gnu_ld=no 14574 fi 14575 ;; 14576 interix*) 14577 # we just hope/assume this is gcc and not c89 (= MSVC++) 14578 with_gnu_ld=yes 14579 ;; 14580 openbsd*) 14581 with_gnu_ld=no 14582 ;; 14583 esac 14584 14585 ld_shlibs_F77=yes 14586 if test "$with_gnu_ld" = yes; then 14587 # If archive_cmds runs LD, not CC, wlarc should be empty 14588 wlarc='${wl}' 14589 14590 # Set some defaults for GNU ld with shared library support. These 14591 # are reset later if shared libraries are not supported. Putting them 14592 # here allows them to be overridden if necessary. 14593 runpath_var=LD_RUN_PATH 14594 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14595 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14596 # ancient GNU ld didn't support --whole-archive et. al. 14597 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14598 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14599 else 14600 whole_archive_flag_spec_F77= 14601 fi 14602 supports_anon_versioning=no 14603 case `$LD -v 2>/dev/null` in 14604 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14605 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14606 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14607 *\ 2.11.*) ;; # other 2.11 versions 14608 *) supports_anon_versioning=yes ;; 14609 esac 14610 14611 # See if GNU ld supports shared libraries. 14612 case $host_os in 14613 aix3* | aix4* | aix5*) 14614 # On AIX/PPC, the GNU linker is very broken 14615 if test "$host_cpu" != ia64; then 14616 ld_shlibs_F77=no 14617 cat <<EOF 1>&2 14618 14619 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 14620 *** to be unable to reliably create shared libraries on AIX. 14621 *** Therefore, libtool is disabling shared libraries support. If you 14622 *** really care for shared libraries, you may want to modify your PATH 14623 *** so that a non-GNU linker is found, and then restart. 14624 14625 EOF 14626 fi 14627 ;; 14628 14629 amigaos*) 14630 archive_cmds_F77='$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)' 14631 hardcode_libdir_flag_spec_F77='-L$libdir' 14632 hardcode_minus_L_F77=yes 14633 14634 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 14635 # that the semantics of dynamic libraries on AmigaOS, at least up 14636 # to version 4, is to share data among multiple programs linked 14637 # with the same dynamic library. Since this doesn't match the 14638 # behavior of shared libraries on other platforms, we can't use 14639 # them. 14640 ld_shlibs_F77=no 14641 ;; 14642 14643 beos*) 14644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14645 allow_undefined_flag_F77=unsupported 14646 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14647 # support --undefined. This deserves some investigation. FIXME 14648 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14649 else 14650 ld_shlibs_F77=no 14651 fi 14652 ;; 14653 14654 cygwin* | mingw* | pw32*) 14655 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14656 # as there is no search path for DLLs. 14657 hardcode_libdir_flag_spec_F77='-L$libdir' 14658 allow_undefined_flag_F77=unsupported 14659 always_export_symbols_F77=no 14660 enable_shared_with_static_runtimes_F77=yes 14661 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14662 14663 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14664 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14665 # If the export-symbols file already is a .def file (1st line 14666 # is EXPORTS), use it as is; otherwise, prepend... 14667 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14668 cp $export_symbols $output_objdir/$soname.def; 14669 else 14670 echo EXPORTS > $output_objdir/$soname.def; 14671 cat $export_symbols >> $output_objdir/$soname.def; 14672 fi~ 14673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14674 else 14675 ld_shlibs_F77=no 14676 fi 14677 ;; 14678 14679 interix3*) 14680 hardcode_direct_F77=no 14681 hardcode_shlibpath_var_F77=no 14682 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14683 export_dynamic_flag_spec_F77='${wl}-E' 14684 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14685 # Instead, shared libraries are loaded at an image base (0x10000000 by 14686 # default) and relocated if they conflict, which is a slow very memory 14687 # consuming and fragmenting process. To avoid this, we pick a random, 14688 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14689 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14690 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14691 archive_expsym_cmds_F77='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' 14692 ;; 14693 14694 linux*) 14695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14696 tmp_addflag= 14697 case $cc_basename,$host_cpu in 14698 pgcc*) # Portland Group C compiler 14699 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14700 tmp_addflag=' $pic_flag' 14701 ;; 14702 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14703 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14704 tmp_addflag=' $pic_flag -Mnomain' ;; 14705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14706 tmp_addflag=' -i_dynamic' ;; 14707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14708 tmp_addflag=' -i_dynamic -nofor_main' ;; 14709 ifc* | ifort*) # Intel Fortran compiler 14710 tmp_addflag=' -nofor_main' ;; 14711 esac 14712 case `$CC -V 2>&1 | sed 5q` in 14713 *Sun\ C*) # Sun C 5.9 14714 whole_archive_flag_spec_F77='${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 /dev/null' 14715 tmp_sharedflag='-G' ;; 14716 *Sun\ F*) # Sun Fortran 8.3 14717 tmp_sharedflag='-G' ;; 14718 *) 14719 tmp_sharedflag='-shared' ;; 14720 esac 14721 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14722 14723 if test $supports_anon_versioning = yes; then 14724 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14726 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14728 fi 14729 else 14730 ld_shlibs_F77=no 14731 fi 14732 ;; 14733 14734 netbsd*) 14735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14736 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14737 wlarc= 14738 else 14739 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14740 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14741 fi 14742 ;; 14743 14744 solaris*) 14745 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14746 ld_shlibs_F77=no 14747 cat <<EOF 1>&2 14748 14749 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 14750 *** create shared libraries on Solaris systems. Therefore, libtool 14751 *** is disabling shared libraries support. We urge you to upgrade GNU 14752 *** binutils to release 2.9.1 or newer. Another option is to modify 14753 *** your PATH or compiler configuration so that the native linker is 14754 *** used, and then restart. 14755 14756 EOF 14757 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14758 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14759 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14760 else 14761 ld_shlibs_F77=no 14762 fi 14763 ;; 14764 14765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14766 case `$LD -v 2>&1` in 14767 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14768 ld_shlibs_F77=no 14769 cat <<_LT_EOF 1>&2 14770 14771 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14772 *** reliably create shared libraries on SCO systems. Therefore, libtool 14773 *** is disabling shared libraries support. We urge you to upgrade GNU 14774 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14775 *** your PATH or compiler configuration so that the native linker is 14776 *** used, and then restart. 14777 14778 _LT_EOF 14779 ;; 14780 *) 14781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14782 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14783 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14784 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14785 else 14786 ld_shlibs_F77=no 14787 fi 14788 ;; 14789 esac 14790 ;; 14791 14792 sunos4*) 14793 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14794 wlarc= 14795 hardcode_direct_F77=yes 14796 hardcode_shlibpath_var_F77=no 14797 ;; 14798 14799 *) 14800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14801 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14802 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14803 else 14804 ld_shlibs_F77=no 14805 fi 14806 ;; 14807 esac 14808 14809 if test "$ld_shlibs_F77" = no; then 14810 runpath_var= 14811 hardcode_libdir_flag_spec_F77= 14812 export_dynamic_flag_spec_F77= 14813 whole_archive_flag_spec_F77= 14814 fi 14815 else 14816 # PORTME fill in a description of your system's linker (not GNU ld) 14817 case $host_os in 14818 aix3*) 14819 allow_undefined_flag_F77=unsupported 14820 always_export_symbols_F77=yes 14821 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14822 # Note: this linker hardcodes the directories in LIBPATH if there 14823 # are no directories specified by -L. 14824 hardcode_minus_L_F77=yes 14825 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14826 # Neither direct hardcoding nor static linking is supported with a 14827 # broken collect2. 14828 hardcode_direct_F77=unsupported 14829 fi 14830 ;; 14831 14832 aix4* | aix5*) 14833 if test "$host_cpu" = ia64; then 14834 # On IA64, the linker does run time linking by default, so we don't 14835 # have to do anything special. 14836 aix_use_runtimelinking=no 14837 exp_sym_flag='-Bexport' 14838 no_entry_flag="" 14839 else 14840 # If we're using GNU nm, then we don't want the "-C" option. 14841 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14842 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14843 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14844 else 14845 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14846 fi 14847 aix_use_runtimelinking=no 14848 14849 # Test if we are trying to use run time linking or normal 14850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14851 # need to do runtime linking. 14852 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14853 for ld_flag in $LDFLAGS; do 14854 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14855 aix_use_runtimelinking=yes 14856 break 14857 fi 14858 done 14859 ;; 14860 esac 14861 14862 exp_sym_flag='-bexport' 14863 no_entry_flag='-bnoentry' 14864 fi 14865 14866 # When large executables or shared objects are built, AIX ld can 14867 # have problems creating the table of contents. If linking a library 14868 # or program results in "error TOC overflow" add -mminimal-toc to 14869 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14870 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14871 14872 archive_cmds_F77='' 14873 hardcode_direct_F77=yes 14874 hardcode_libdir_separator_F77=':' 14875 link_all_deplibs_F77=yes 14876 14877 if test "$GCC" = yes; then 14878 case $host_os in aix4.[012]|aix4.[012].*) 14879 # We only want to do this on AIX 4.2 and lower, the check 14880 # below for broken collect2 doesn't work under 4.3+ 14881 collect2name=`${CC} -print-prog-name=collect2` 14882 if test -f "$collect2name" && \ 14883 strings "$collect2name" | grep resolve_lib_name >/dev/null 14884 then 14885 # We have reworked collect2 14886 hardcode_direct_F77=yes 14887 else 14888 # We have old collect2 14889 hardcode_direct_F77=unsupported 14890 # It fails to find uninstalled libraries when the uninstalled 14891 # path is not listed in the libpath. Setting hardcode_minus_L 14892 # to unsupported forces relinking 14893 hardcode_minus_L_F77=yes 14894 hardcode_libdir_flag_spec_F77='-L$libdir' 14895 hardcode_libdir_separator_F77= 14896 fi 14897 ;; 14898 esac 14899 shared_flag='-shared' 14900 if test "$aix_use_runtimelinking" = yes; then 14901 shared_flag="$shared_flag "'${wl}-G' 14902 fi 14903 else 14904 # not using gcc 14905 if test "$host_cpu" = ia64; then 14906 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14907 # chokes on -Wl,-G. The following line is correct: 14908 shared_flag='-G' 14909 else 14910 if test "$aix_use_runtimelinking" = yes; then 14911 shared_flag='${wl}-G' 14912 else 14913 shared_flag='${wl}-bM:SRE' 14914 fi 14915 fi 14916 fi 14917 14918 # It seems that -bexpall does not export symbols beginning with 14919 # underscore (_), so it is better to generate a list of symbols to export. 14920 always_export_symbols_F77=yes 14921 if test "$aix_use_runtimelinking" = yes; then 14922 # Warning - without using the other runtime loading flags (-brtl), 14923 # -berok will link without error, but may produce a broken library. 14924 allow_undefined_flag_F77='-berok' 14925 # Determine the default libpath from the value encoded in an empty executable. 14926 cat >conftest.$ac_ext <<_ACEOF 14927 program main 14928 14929 end 14930 _ACEOF 14931 rm -f conftest.$ac_objext conftest$ac_exeext 14932 if { (ac_try="$ac_link" 14933 case "(($ac_try" in 14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14935 *) ac_try_echo=$ac_try;; 14936 esac 14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14938 (eval "$ac_link") 2>conftest.er1 14939 ac_status=$? 14940 grep -v '^ *+' conftest.er1 >conftest.err 14941 rm -f conftest.er1 14942 cat conftest.err >&5 14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14944 (exit $ac_status); } && { 14945 test -z "$ac_f77_werror_flag" || 14946 test ! -s conftest.err 14947 } && test -s conftest$ac_exeext && 14948 $as_test_x conftest$ac_exeext; then 14949 14950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14951 }'` 14952 # Check for a 64-bit object if we didn't find anything. 14953 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14954 }'`; fi 14955 else 14956 echo "$as_me: failed program was:" >&5 14957 sed 's/^/| /' conftest.$ac_ext >&5 14958 14959 14960 fi 14961 14962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14963 conftest$ac_exeext conftest.$ac_ext 14964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14965 14966 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14967 archive_expsym_cmds_F77="\$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" 14968 else 14969 if test "$host_cpu" = ia64; then 14970 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14971 allow_undefined_flag_F77="-z nodefs" 14972 archive_expsym_cmds_F77="\$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" 14973 else 14974 # Determine the default libpath from the value encoded in an empty executable. 14975 cat >conftest.$ac_ext <<_ACEOF 14976 program main 14977 14978 end 14979 _ACEOF 14980 rm -f conftest.$ac_objext conftest$ac_exeext 14981 if { (ac_try="$ac_link" 14982 case "(($ac_try" in 14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14984 *) ac_try_echo=$ac_try;; 14985 esac 14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14987 (eval "$ac_link") 2>conftest.er1 14988 ac_status=$? 14989 grep -v '^ *+' conftest.er1 >conftest.err 14990 rm -f conftest.er1 14991 cat conftest.err >&5 14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14993 (exit $ac_status); } && { 14994 test -z "$ac_f77_werror_flag" || 14995 test ! -s conftest.err 14996 } && test -s conftest$ac_exeext && 14997 $as_test_x conftest$ac_exeext; then 14998 14999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15000 }'` 15001 # Check for a 64-bit object if we didn't find anything. 15002 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15003 }'`; fi 15004 else 15005 echo "$as_me: failed program was:" >&5 15006 sed 's/^/| /' conftest.$ac_ext >&5 15007 15008 15009 fi 15010 15011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15012 conftest$ac_exeext conftest.$ac_ext 15013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15014 15015 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15016 # Warning - without using the other run time loading flags, 15017 # -berok will link without error, but may produce a broken library. 15018 no_undefined_flag_F77=' ${wl}-bernotok' 15019 allow_undefined_flag_F77=' ${wl}-berok' 15020 # Exported symbols can be pulled into shared objects from archives 15021 whole_archive_flag_spec_F77='$convenience' 15022 archive_cmds_need_lc_F77=yes 15023 # This is similar to how AIX traditionally builds its shared libraries. 15024 archive_expsym_cmds_F77="\$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' 15025 fi 15026 fi 15027 ;; 15028 15029 amigaos*) 15030 archive_cmds_F77='$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)' 15031 hardcode_libdir_flag_spec_F77='-L$libdir' 15032 hardcode_minus_L_F77=yes 15033 # see comment about different semantics on the GNU ld section 15034 ld_shlibs_F77=no 15035 ;; 15036 15037 bsdi[45]*) 15038 export_dynamic_flag_spec_F77=-rdynamic 15039 ;; 15040 15041 cygwin* | mingw* | pw32*) 15042 # When not using gcc, we currently assume that we are using 15043 # Microsoft Visual C++. 15044 # hardcode_libdir_flag_spec is actually meaningless, as there is 15045 # no search path for DLLs. 15046 hardcode_libdir_flag_spec_F77=' ' 15047 allow_undefined_flag_F77=unsupported 15048 # Tell ltmain to make .lib files, not .a files. 15049 libext=lib 15050 # Tell ltmain to make .dll files, not .so files. 15051 shrext_cmds=".dll" 15052 # FIXME: Setting linknames here is a bad hack. 15053 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15054 # The linker will automatically build a .lib file if we build a DLL. 15055 old_archive_From_new_cmds_F77='true' 15056 # FIXME: Should let the user specify the lib program. 15057 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15058 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15059 enable_shared_with_static_runtimes_F77=yes 15060 ;; 15061 15062 darwin* | rhapsody*) 15063 case $host_os in 15064 rhapsody* | darwin1.[012]) 15065 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15066 ;; 15067 *) # Darwin 1.3 on 15068 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15069 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15070 else 15071 case ${MACOSX_DEPLOYMENT_TARGET} in 15072 10.[012]) 15073 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15074 ;; 15075 10.*) 15076 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15077 ;; 15078 esac 15079 fi 15080 ;; 15081 esac 15082 archive_cmds_need_lc_F77=no 15083 hardcode_direct_F77=no 15084 hardcode_automatic_F77=yes 15085 hardcode_shlibpath_var_F77=unsupported 15086 whole_archive_flag_spec_F77='' 15087 link_all_deplibs_F77=yes 15088 if test "$GCC" = yes ; then 15089 output_verbose_link_cmd='echo' 15090 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15091 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15092 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15093 archive_expsym_cmds_F77='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}' 15094 module_expsym_cmds_F77='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}' 15095 else 15096 case $cc_basename in 15097 xlc*) 15098 output_verbose_link_cmd='echo' 15099 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15100 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15101 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15102 archive_expsym_cmds_F77='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15103 module_expsym_cmds_F77='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}' 15104 ;; 15105 *) 15106 ld_shlibs_F77=no 15107 ;; 15108 esac 15109 fi 15110 ;; 15111 15112 dgux*) 15113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15114 hardcode_libdir_flag_spec_F77='-L$libdir' 15115 hardcode_shlibpath_var_F77=no 15116 ;; 15117 15118 freebsd1*) 15119 ld_shlibs_F77=no 15120 ;; 15121 15122 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15123 # support. Future versions do this automatically, but an explicit c++rt0.o 15124 # does not break anything, and helps significantly (at the cost of a little 15125 # extra space). 15126 freebsd2.2*) 15127 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15128 hardcode_libdir_flag_spec_F77='-R$libdir' 15129 hardcode_direct_F77=yes 15130 hardcode_shlibpath_var_F77=no 15131 ;; 15132 15133 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15134 freebsd2*) 15135 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15136 hardcode_direct_F77=yes 15137 hardcode_minus_L_F77=yes 15138 hardcode_shlibpath_var_F77=no 15139 ;; 15140 15141 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15142 freebsd* | kfreebsd*-gnu | dragonfly*) 15143 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15144 hardcode_libdir_flag_spec_F77='-R$libdir' 15145 hardcode_direct_F77=yes 15146 hardcode_shlibpath_var_F77=no 15147 ;; 15148 15149 hpux9*) 15150 if test "$GCC" = yes; then 15151 archive_cmds_F77='$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' 15152 else 15153 archive_cmds_F77='$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' 15154 fi 15155 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15156 hardcode_libdir_separator_F77=: 15157 hardcode_direct_F77=yes 15158 15159 # hardcode_minus_L: Not really in the search PATH, 15160 # but as the default location of the library. 15161 hardcode_minus_L_F77=yes 15162 export_dynamic_flag_spec_F77='${wl}-E' 15163 ;; 15164 15165 hpux10*) 15166 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15167 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15168 else 15169 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15170 fi 15171 if test "$with_gnu_ld" = no; then 15172 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15173 hardcode_libdir_separator_F77=: 15174 15175 hardcode_direct_F77=yes 15176 export_dynamic_flag_spec_F77='${wl}-E' 15177 15178 # hardcode_minus_L: Not really in the search PATH, 15179 # but as the default location of the library. 15180 hardcode_minus_L_F77=yes 15181 fi 15182 ;; 15183 15184 hpux11*) 15185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15186 case $host_cpu in 15187 hppa*64*) 15188 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15189 ;; 15190 ia64*) 15191 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15192 ;; 15193 *) 15194 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15195 ;; 15196 esac 15197 else 15198 case $host_cpu in 15199 hppa*64*) 15200 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15201 ;; 15202 ia64*) 15203 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15204 ;; 15205 *) 15206 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15207 ;; 15208 esac 15209 fi 15210 if test "$with_gnu_ld" = no; then 15211 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15212 hardcode_libdir_separator_F77=: 15213 15214 case $host_cpu in 15215 hppa*64*|ia64*) 15216 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15217 hardcode_direct_F77=no 15218 hardcode_shlibpath_var_F77=no 15219 ;; 15220 *) 15221 hardcode_direct_F77=yes 15222 export_dynamic_flag_spec_F77='${wl}-E' 15223 15224 # hardcode_minus_L: Not really in the search PATH, 15225 # but as the default location of the library. 15226 hardcode_minus_L_F77=yes 15227 ;; 15228 esac 15229 fi 15230 ;; 15231 15232 irix5* | irix6* | nonstopux*) 15233 if test "$GCC" = yes; then 15234 archive_cmds_F77='$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' 15235 else 15236 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15237 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15238 fi 15239 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15240 hardcode_libdir_separator_F77=: 15241 link_all_deplibs_F77=yes 15242 ;; 15243 15244 netbsd*) 15245 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15247 else 15248 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15249 fi 15250 hardcode_libdir_flag_spec_F77='-R$libdir' 15251 hardcode_direct_F77=yes 15252 hardcode_shlibpath_var_F77=no 15253 ;; 15254 15255 newsos6) 15256 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15257 hardcode_direct_F77=yes 15258 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15259 hardcode_libdir_separator_F77=: 15260 hardcode_shlibpath_var_F77=no 15261 ;; 15262 15263 openbsd*) 15264 hardcode_direct_F77=yes 15265 hardcode_shlibpath_var_F77=no 15266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15267 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15268 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15269 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15270 export_dynamic_flag_spec_F77='${wl}-E' 15271 else 15272 case $host_os in 15273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15274 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15275 hardcode_libdir_flag_spec_F77='-R$libdir' 15276 ;; 15277 *) 15278 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15279 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15280 ;; 15281 esac 15282 fi 15283 ;; 15284 15285 os2*) 15286 hardcode_libdir_flag_spec_F77='-L$libdir' 15287 hardcode_minus_L_F77=yes 15288 allow_undefined_flag_F77=unsupported 15289 archive_cmds_F77='$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' 15290 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15291 ;; 15292 15293 osf3*) 15294 if test "$GCC" = yes; then 15295 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15296 archive_cmds_F77='$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' 15297 else 15298 allow_undefined_flag_F77=' -expect_unresolved \*' 15299 archive_cmds_F77='$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' 15300 fi 15301 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15302 hardcode_libdir_separator_F77=: 15303 ;; 15304 15305 osf4* | osf5*) # as osf3* with the addition of -msym flag 15306 if test "$GCC" = yes; then 15307 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15308 archive_cmds_F77='$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' 15309 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15310 else 15311 allow_undefined_flag_F77=' -expect_unresolved \*' 15312 archive_cmds_F77='$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' 15313 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15314 $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' 15315 15316 # Both c and cxx compiler support -rpath directly 15317 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15318 fi 15319 hardcode_libdir_separator_F77=: 15320 ;; 15321 15322 solaris*) 15323 no_undefined_flag_F77=' -z text' 15324 if test "$GCC" = yes; then 15325 wlarc='${wl}' 15326 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15327 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15328 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15329 else 15330 wlarc='' 15331 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15332 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15334 fi 15335 hardcode_libdir_flag_spec_F77='-R$libdir' 15336 hardcode_shlibpath_var_F77=no 15337 case $host_os in 15338 solaris2.[0-5] | solaris2.[0-5].*) ;; 15339 *) 15340 # The compiler driver will combine linker options so we 15341 # cannot just pass the convience library names through 15342 # without $wl, iff we do not link with $LD. 15343 # Luckily, gcc supports the same syntax we need for Sun Studio. 15344 # Supported since Solaris 2.6 (maybe 2.5.1?) 15345 case $wlarc in 15346 '') 15347 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15348 *) 15349 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15350 esac ;; 15351 esac 15352 link_all_deplibs_F77=yes 15353 ;; 15354 15355 sunos4*) 15356 if test "x$host_vendor" = xsequent; then 15357 # Use $CC to link under sequent, because it throws in some extra .o 15358 # files that make .init and .fini sections work. 15359 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15360 else 15361 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15362 fi 15363 hardcode_libdir_flag_spec_F77='-L$libdir' 15364 hardcode_direct_F77=yes 15365 hardcode_minus_L_F77=yes 15366 hardcode_shlibpath_var_F77=no 15367 ;; 15368 15369 sysv4) 15370 case $host_vendor in 15371 sni) 15372 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15373 hardcode_direct_F77=yes # is this really true??? 15374 ;; 15375 siemens) 15376 ## LD is ld it makes a PLAMLIB 15377 ## CC just makes a GrossModule. 15378 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15379 reload_cmds_F77='$CC -r -o $output$reload_objs' 15380 hardcode_direct_F77=no 15381 ;; 15382 motorola) 15383 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15384 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15385 ;; 15386 esac 15387 runpath_var='LD_RUN_PATH' 15388 hardcode_shlibpath_var_F77=no 15389 ;; 15390 15391 sysv4.3*) 15392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15393 hardcode_shlibpath_var_F77=no 15394 export_dynamic_flag_spec_F77='-Bexport' 15395 ;; 15396 15397 sysv4*MP*) 15398 if test -d /usr/nec; then 15399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15400 hardcode_shlibpath_var_F77=no 15401 runpath_var=LD_RUN_PATH 15402 hardcode_runpath_var=yes 15403 ld_shlibs_F77=yes 15404 fi 15405 ;; 15406 15407 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15408 no_undefined_flag_F77='${wl}-z,text' 15409 archive_cmds_need_lc_F77=no 15410 hardcode_shlibpath_var_F77=no 15411 runpath_var='LD_RUN_PATH' 15412 15413 if test "$GCC" = yes; then 15414 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15415 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15416 else 15417 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15418 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15419 fi 15420 ;; 15421 15422 sysv5* | sco3.2v5* | sco5v6*) 15423 # Note: We can NOT use -z defs as we might desire, because we do not 15424 # link with -lc, and that would cause any symbols used from libc to 15425 # always be unresolved, which means just about no library would 15426 # ever link correctly. If we're not using GNU ld we use -z text 15427 # though, which does catch some bad symbols but isn't as heavy-handed 15428 # as -z defs. 15429 no_undefined_flag_F77='${wl}-z,text' 15430 allow_undefined_flag_F77='${wl}-z,nodefs' 15431 archive_cmds_need_lc_F77=no 15432 hardcode_shlibpath_var_F77=no 15433 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15434 hardcode_libdir_separator_F77=':' 15435 link_all_deplibs_F77=yes 15436 export_dynamic_flag_spec_F77='${wl}-Bexport' 15437 runpath_var='LD_RUN_PATH' 15438 15439 if test "$GCC" = yes; then 15440 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15441 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15442 else 15443 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15444 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15445 fi 15446 ;; 15447 15448 uts4*) 15449 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15450 hardcode_libdir_flag_spec_F77='-L$libdir' 15451 hardcode_shlibpath_var_F77=no 15452 ;; 15453 15454 *) 15455 ld_shlibs_F77=no 15456 ;; 15457 esac 15458 fi 15459 15460 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15461 echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15462 test "$ld_shlibs_F77" = no && can_build_shared=no 15463 15464 # 15465 # Do we need to explicitly link libc? 15466 # 15467 case "x$archive_cmds_need_lc_F77" in 15468 x|xyes) 15469 # Assume -lc should be added 15470 archive_cmds_need_lc_F77=yes 15471 15472 if test "$enable_shared" = yes && test "$GCC" = yes; then 15473 case $archive_cmds_F77 in 15474 *'~'*) 15475 # FIXME: we may have to deal with multi-command sequences. 15476 ;; 15477 '$CC '*) 15478 # Test whether the compiler implicitly links with -lc since on some 15479 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15480 # to ld, don't add -lc before -lgcc. 15481 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15482 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15483 $rm conftest* 15484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15485 15486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15487 (eval $ac_compile) 2>&5 15488 ac_status=$? 15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15490 (exit $ac_status); } 2>conftest.err; then 15491 soname=conftest 15492 lib=conftest 15493 libobjs=conftest.$ac_objext 15494 deplibs= 15495 wl=$lt_prog_compiler_wl_F77 15496 pic_flag=$lt_prog_compiler_pic_F77 15497 compiler_flags=-v 15498 linker_flags=-v 15499 verstring= 15500 output_objdir=. 15501 libname=conftest 15502 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15503 allow_undefined_flag_F77= 15504 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15505 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15506 ac_status=$? 15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15508 (exit $ac_status); } 15509 then 15510 archive_cmds_need_lc_F77=no 15511 else 15512 archive_cmds_need_lc_F77=yes 15513 fi 15514 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15515 else 15516 cat conftest.err 1>&5 15517 fi 15518 $rm conftest* 15519 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15520 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15521 ;; 15522 esac 15523 fi 15524 ;; 15525 esac 15526 15527 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15528 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15529 library_names_spec= 15530 libname_spec='lib$name' 15531 soname_spec= 15532 shrext_cmds=".so" 15533 postinstall_cmds= 15534 postuninstall_cmds= 15535 finish_cmds= 15536 finish_eval= 15537 shlibpath_var= 15538 shlibpath_overrides_runpath=unknown 15539 version_type=none 15540 dynamic_linker="$host_os ld.so" 15541 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15542 if test "$GCC" = yes; then 15543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15544 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15545 # if the path contains ";" then we assume it to be the separator 15546 # otherwise default to the standard path separator (i.e. ":") - it is 15547 # assumed that no part of a normal pathname contains ";" but that should 15548 # okay in the real world where ";" in dirpaths is itself problematic. 15549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15550 else 15551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15552 fi 15553 else 15554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15555 fi 15556 need_lib_prefix=unknown 15557 hardcode_into_libs=no 15558 15559 # when you set need_version to no, make sure it does not cause -set_version 15560 # flags to be left without arguments 15561 need_version=unknown 15562 15563 case $host_os in 15564 aix3*) 15565 version_type=linux 15566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15567 shlibpath_var=LIBPATH 15568 15569 # AIX 3 has no versioning support, so we append a major version to the name. 15570 soname_spec='${libname}${release}${shared_ext}$major' 15571 ;; 15572 15573 aix4* | aix5*) 15574 version_type=linux 15575 need_lib_prefix=no 15576 need_version=no 15577 hardcode_into_libs=yes 15578 if test "$host_cpu" = ia64; then 15579 # AIX 5 supports IA64 15580 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15581 shlibpath_var=LD_LIBRARY_PATH 15582 else 15583 # With GCC up to 2.95.x, collect2 would create an import file 15584 # for dependence libraries. The import file would start with 15585 # the line `#! .'. This would cause the generated library to 15586 # depend on `.', always an invalid library. This was fixed in 15587 # development snapshots of GCC prior to 3.0. 15588 case $host_os in 15589 aix4 | aix4.[01] | aix4.[01].*) 15590 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15591 echo ' yes ' 15592 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15593 : 15594 else 15595 can_build_shared=no 15596 fi 15597 ;; 15598 esac 15599 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15600 # soname into executable. Probably we can add versioning support to 15601 # collect2, so additional links can be useful in future. 15602 if test "$aix_use_runtimelinking" = yes; then 15603 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15604 # instead of lib<name>.a to let people know that these are not 15605 # typical AIX shared libraries. 15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15607 else 15608 # We preserve .a as extension for shared libraries through AIX4.2 15609 # and later when we are not doing run time linking. 15610 library_names_spec='${libname}${release}.a $libname.a' 15611 soname_spec='${libname}${release}${shared_ext}$major' 15612 fi 15613 shlibpath_var=LIBPATH 15614 fi 15615 ;; 15616 15617 amigaos*) 15618 library_names_spec='$libname.ixlibrary $libname.a' 15619 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15620 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' 15621 ;; 15622 15623 beos*) 15624 library_names_spec='${libname}${shared_ext}' 15625 dynamic_linker="$host_os ld.so" 15626 shlibpath_var=LIBRARY_PATH 15627 ;; 15628 15629 bsdi[45]*) 15630 version_type=linux 15631 need_version=no 15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15633 soname_spec='${libname}${release}${shared_ext}$major' 15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15635 shlibpath_var=LD_LIBRARY_PATH 15636 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15637 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15638 # the default ld.so.conf also contains /usr/contrib/lib and 15639 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15640 # libtool to hard-code these into programs 15641 ;; 15642 15643 cygwin* | mingw* | pw32*) 15644 version_type=windows 15645 shrext_cmds=".dll" 15646 need_version=no 15647 need_lib_prefix=no 15648 15649 case $GCC,$host_os in 15650 yes,cygwin* | yes,mingw* | yes,pw32*) 15651 library_names_spec='$libname.dll.a' 15652 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15653 postinstall_cmds='base_file=`basename \${file}`~ 15654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15655 dldir=$destdir/`dirname \$dlpath`~ 15656 test -d \$dldir || mkdir -p \$dldir~ 15657 $install_prog $dir/$dlname \$dldir/$dlname~ 15658 chmod a+x \$dldir/$dlname' 15659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15660 dlpath=$dir/\$dldll~ 15661 $rm \$dlpath' 15662 shlibpath_overrides_runpath=yes 15663 15664 case $host_os in 15665 cygwin*) 15666 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15668 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15669 ;; 15670 mingw*) 15671 # MinGW DLLs use traditional 'lib' prefix 15672 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15673 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15674 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15675 # It is most probably a Windows format PATH printed by 15676 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15677 # path with ; separators, and with drive letters. We can handle the 15678 # drive letters (cygwin fileutils understands them), so leave them, 15679 # especially as we might pass files found there to a mingw objdump, 15680 # which wouldn't understand a cygwinified path. Ahh. 15681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15682 else 15683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15684 fi 15685 ;; 15686 pw32*) 15687 # pw32 DLLs use 'pw' prefix rather than 'lib' 15688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15689 ;; 15690 esac 15691 ;; 15692 15693 *) 15694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15695 ;; 15696 esac 15697 dynamic_linker='Win32 ld.exe' 15698 # FIXME: first we should search . and the directory the executable is in 15699 shlibpath_var=PATH 15700 ;; 15701 15702 darwin* | rhapsody*) 15703 dynamic_linker="$host_os dyld" 15704 version_type=darwin 15705 need_lib_prefix=no 15706 need_version=no 15707 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15708 soname_spec='${libname}${release}${major}$shared_ext' 15709 shlibpath_overrides_runpath=yes 15710 shlibpath_var=DYLD_LIBRARY_PATH 15711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15712 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15713 if test "$GCC" = yes; then 15714 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15715 else 15716 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15717 fi 15718 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15719 ;; 15720 15721 dgux*) 15722 version_type=linux 15723 need_lib_prefix=no 15724 need_version=no 15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15726 soname_spec='${libname}${release}${shared_ext}$major' 15727 shlibpath_var=LD_LIBRARY_PATH 15728 ;; 15729 15730 freebsd1*) 15731 dynamic_linker=no 15732 ;; 15733 15734 kfreebsd*-gnu) 15735 version_type=linux 15736 need_lib_prefix=no 15737 need_version=no 15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15739 soname_spec='${libname}${release}${shared_ext}$major' 15740 shlibpath_var=LD_LIBRARY_PATH 15741 shlibpath_overrides_runpath=no 15742 hardcode_into_libs=yes 15743 dynamic_linker='GNU ld.so' 15744 ;; 15745 15746 freebsd* | dragonfly*) 15747 # DragonFly does not have aout. When/if they implement a new 15748 # versioning mechanism, adjust this. 15749 if test -x /usr/bin/objformat; then 15750 objformat=`/usr/bin/objformat` 15751 else 15752 case $host_os in 15753 freebsd[123]*) objformat=aout ;; 15754 *) objformat=elf ;; 15755 esac 15756 fi 15757 version_type=freebsd-$objformat 15758 case $version_type in 15759 freebsd-elf*) 15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15761 need_version=no 15762 need_lib_prefix=no 15763 ;; 15764 freebsd-*) 15765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15766 need_version=yes 15767 ;; 15768 esac 15769 shlibpath_var=LD_LIBRARY_PATH 15770 case $host_os in 15771 freebsd2*) 15772 shlibpath_overrides_runpath=yes 15773 ;; 15774 freebsd3.[01]* | freebsdelf3.[01]*) 15775 shlibpath_overrides_runpath=yes 15776 hardcode_into_libs=yes 15777 ;; 15778 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15779 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15780 shlibpath_overrides_runpath=no 15781 hardcode_into_libs=yes 15782 ;; 15783 freebsd*) # from 4.6 on 15784 shlibpath_overrides_runpath=yes 15785 hardcode_into_libs=yes 15786 ;; 15787 esac 15788 ;; 15789 15790 gnu*) 15791 version_type=linux 15792 need_lib_prefix=no 15793 need_version=no 15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15795 soname_spec='${libname}${release}${shared_ext}$major' 15796 shlibpath_var=LD_LIBRARY_PATH 15797 hardcode_into_libs=yes 15798 ;; 15799 15800 hpux9* | hpux10* | hpux11*) 15801 # Give a soname corresponding to the major version so that dld.sl refuses to 15802 # link against other versions. 15803 version_type=sunos 15804 need_lib_prefix=no 15805 need_version=no 15806 case $host_cpu in 15807 ia64*) 15808 shrext_cmds='.so' 15809 hardcode_into_libs=yes 15810 dynamic_linker="$host_os dld.so" 15811 shlibpath_var=LD_LIBRARY_PATH 15812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15814 soname_spec='${libname}${release}${shared_ext}$major' 15815 if test "X$HPUX_IA64_MODE" = X32; then 15816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15817 else 15818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15819 fi 15820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15821 ;; 15822 hppa*64*) 15823 shrext_cmds='.sl' 15824 hardcode_into_libs=yes 15825 dynamic_linker="$host_os dld.sl" 15826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15829 soname_spec='${libname}${release}${shared_ext}$major' 15830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15832 ;; 15833 *) 15834 shrext_cmds='.sl' 15835 dynamic_linker="$host_os dld.sl" 15836 shlibpath_var=SHLIB_PATH 15837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15839 soname_spec='${libname}${release}${shared_ext}$major' 15840 ;; 15841 esac 15842 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15843 postinstall_cmds='chmod 555 $lib' 15844 ;; 15845 15846 interix3*) 15847 version_type=linux 15848 need_lib_prefix=no 15849 need_version=no 15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15851 soname_spec='${libname}${release}${shared_ext}$major' 15852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15853 shlibpath_var=LD_LIBRARY_PATH 15854 shlibpath_overrides_runpath=no 15855 hardcode_into_libs=yes 15856 ;; 15857 15858 irix5* | irix6* | nonstopux*) 15859 case $host_os in 15860 nonstopux*) version_type=nonstopux ;; 15861 *) 15862 if test "$lt_cv_prog_gnu_ld" = yes; then 15863 version_type=linux 15864 else 15865 version_type=irix 15866 fi ;; 15867 esac 15868 need_lib_prefix=no 15869 need_version=no 15870 soname_spec='${libname}${release}${shared_ext}$major' 15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15872 case $host_os in 15873 irix5* | nonstopux*) 15874 libsuff= shlibsuff= 15875 ;; 15876 *) 15877 case $LD in # libtool.m4 will add one of these switches to LD 15878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15879 libsuff= shlibsuff= libmagic=32-bit;; 15880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15881 libsuff=32 shlibsuff=N32 libmagic=N32;; 15882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15883 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15884 *) libsuff= shlibsuff= libmagic=never-match;; 15885 esac 15886 ;; 15887 esac 15888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15889 shlibpath_overrides_runpath=no 15890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15892 hardcode_into_libs=yes 15893 ;; 15894 15895 # No shared lib support for Linux oldld, aout, or coff. 15896 linux*oldld* | linux*aout* | linux*coff*) 15897 dynamic_linker=no 15898 ;; 15899 15900 # This must be Linux ELF. 15901 linux*) 15902 version_type=linux 15903 need_lib_prefix=no 15904 need_version=no 15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15906 soname_spec='${libname}${release}${shared_ext}$major' 15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15908 shlibpath_var=LD_LIBRARY_PATH 15909 shlibpath_overrides_runpath=no 15910 # This implies no fast_install, which is unacceptable. 15911 # Some rework will be needed to allow for fast_install 15912 # before this can be enabled. 15913 hardcode_into_libs=yes 15914 15915 # Append ld.so.conf contents to the search path 15916 if test -f /etc/ld.so.conf; then 15917 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15918 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15919 fi 15920 15921 # We used to test for /lib/ld.so.1 and disable shared libraries on 15922 # powerpc, because MkLinux only supported shared libraries with the 15923 # GNU dynamic linker. Since this was broken with cross compilers, 15924 # most powerpc-linux boxes support dynamic linking these days and 15925 # people can always --disable-shared, the test was removed, and we 15926 # assume the GNU/Linux dynamic linker is in use. 15927 dynamic_linker='GNU/Linux ld.so' 15928 ;; 15929 15930 knetbsd*-gnu) 15931 version_type=linux 15932 need_lib_prefix=no 15933 need_version=no 15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15935 soname_spec='${libname}${release}${shared_ext}$major' 15936 shlibpath_var=LD_LIBRARY_PATH 15937 shlibpath_overrides_runpath=no 15938 hardcode_into_libs=yes 15939 dynamic_linker='GNU ld.so' 15940 ;; 15941 15942 netbsd*) 15943 version_type=sunos 15944 need_lib_prefix=no 15945 need_version=no 15946 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15949 dynamic_linker='NetBSD (a.out) ld.so' 15950 else 15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15952 soname_spec='${libname}${release}${shared_ext}$major' 15953 dynamic_linker='NetBSD ld.elf_so' 15954 fi 15955 shlibpath_var=LD_LIBRARY_PATH 15956 shlibpath_overrides_runpath=yes 15957 hardcode_into_libs=yes 15958 ;; 15959 15960 newsos6) 15961 version_type=linux 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15963 shlibpath_var=LD_LIBRARY_PATH 15964 shlibpath_overrides_runpath=yes 15965 ;; 15966 15967 nto-qnx*) 15968 version_type=linux 15969 need_lib_prefix=no 15970 need_version=no 15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15972 soname_spec='${libname}${release}${shared_ext}$major' 15973 shlibpath_var=LD_LIBRARY_PATH 15974 shlibpath_overrides_runpath=yes 15975 ;; 15976 15977 openbsd*) 15978 version_type=sunos 15979 sys_lib_dlsearch_path_spec="/usr/lib" 15980 need_lib_prefix=no 15981 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15982 case $host_os in 15983 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15984 *) need_version=no ;; 15985 esac 15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15988 shlibpath_var=LD_LIBRARY_PATH 15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15990 case $host_os in 15991 openbsd2.[89] | openbsd2.[89].*) 15992 shlibpath_overrides_runpath=no 15993 ;; 15994 *) 15995 shlibpath_overrides_runpath=yes 15996 ;; 15997 esac 15998 else 15999 shlibpath_overrides_runpath=yes 16000 fi 16001 ;; 16002 16003 os2*) 16004 libname_spec='$name' 16005 shrext_cmds=".dll" 16006 need_lib_prefix=no 16007 library_names_spec='$libname${shared_ext} $libname.a' 16008 dynamic_linker='OS/2 ld.exe' 16009 shlibpath_var=LIBPATH 16010 ;; 16011 16012 osf3* | osf4* | osf5*) 16013 version_type=osf 16014 need_lib_prefix=no 16015 need_version=no 16016 soname_spec='${libname}${release}${shared_ext}$major' 16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16018 shlibpath_var=LD_LIBRARY_PATH 16019 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16020 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16021 ;; 16022 16023 solaris*) 16024 version_type=linux 16025 need_lib_prefix=no 16026 need_version=no 16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16028 soname_spec='${libname}${release}${shared_ext}$major' 16029 shlibpath_var=LD_LIBRARY_PATH 16030 shlibpath_overrides_runpath=yes 16031 hardcode_into_libs=yes 16032 # ldd complains unless libraries are executable 16033 postinstall_cmds='chmod +x $lib' 16034 ;; 16035 16036 sunos4*) 16037 version_type=sunos 16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16040 shlibpath_var=LD_LIBRARY_PATH 16041 shlibpath_overrides_runpath=yes 16042 if test "$with_gnu_ld" = yes; then 16043 need_lib_prefix=no 16044 fi 16045 need_version=yes 16046 ;; 16047 16048 sysv4 | sysv4.3*) 16049 version_type=linux 16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16051 soname_spec='${libname}${release}${shared_ext}$major' 16052 shlibpath_var=LD_LIBRARY_PATH 16053 case $host_vendor in 16054 sni) 16055 shlibpath_overrides_runpath=no 16056 need_lib_prefix=no 16057 export_dynamic_flag_spec='${wl}-Blargedynsym' 16058 runpath_var=LD_RUN_PATH 16059 ;; 16060 siemens) 16061 need_lib_prefix=no 16062 ;; 16063 motorola) 16064 need_lib_prefix=no 16065 need_version=no 16066 shlibpath_overrides_runpath=no 16067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16068 ;; 16069 esac 16070 ;; 16071 16072 sysv4*MP*) 16073 if test -d /usr/nec ;then 16074 version_type=linux 16075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16076 soname_spec='$libname${shared_ext}.$major' 16077 shlibpath_var=LD_LIBRARY_PATH 16078 fi 16079 ;; 16080 16081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16082 version_type=freebsd-elf 16083 need_lib_prefix=no 16084 need_version=no 16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16086 soname_spec='${libname}${release}${shared_ext}$major' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 hardcode_into_libs=yes 16089 if test "$with_gnu_ld" = yes; then 16090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16091 shlibpath_overrides_runpath=no 16092 else 16093 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16094 shlibpath_overrides_runpath=yes 16095 case $host_os in 16096 sco3.2v5*) 16097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16098 ;; 16099 esac 16100 fi 16101 sys_lib_dlsearch_path_spec='/usr/lib' 16102 ;; 16103 16104 uts4*) 16105 version_type=linux 16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16107 soname_spec='${libname}${release}${shared_ext}$major' 16108 shlibpath_var=LD_LIBRARY_PATH 16109 ;; 16110 16111 *) 16112 dynamic_linker=no 16113 ;; 16114 esac 16115 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16116 echo "${ECHO_T}$dynamic_linker" >&6; } 16117 test "$dynamic_linker" = no && can_build_shared=no 16118 16119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16120 if test "$GCC" = yes; then 16121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16122 fi 16123 16124 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16125 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16126 hardcode_action_F77= 16127 if test -n "$hardcode_libdir_flag_spec_F77" || \ 16128 test -n "$runpath_var_F77" || \ 16129 test "X$hardcode_automatic_F77" = "Xyes" ; then 16130 16131 # We can hardcode non-existant directories. 16132 if test "$hardcode_direct_F77" != no && 16133 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16134 # have to relink, otherwise we might link with an installed library 16135 # when we should be linking with a yet-to-be-installed one 16136 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16137 test "$hardcode_minus_L_F77" != no; then 16138 # Linking always hardcodes the temporary library directory. 16139 hardcode_action_F77=relink 16140 else 16141 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16142 hardcode_action_F77=immediate 16143 fi 16144 else 16145 # We cannot hardcode anything, or else we can only hardcode existing 16146 # directories. 16147 hardcode_action_F77=unsupported 16148 fi 16149 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16150 echo "${ECHO_T}$hardcode_action_F77" >&6; } 16151 16152 if test "$hardcode_action_F77" = relink; then 16153 # Fast installation is not supported 16154 enable_fast_install=no 16155 elif test "$shlibpath_overrides_runpath" = yes || 16156 test "$enable_shared" = no; then 16157 # Fast installation is not necessary 16158 enable_fast_install=needless 16159 fi 16160 16161 16162 # The else clause should only fire when bootstrapping the 16163 # libtool distribution, otherwise you forgot to ship ltmain.sh 16164 # with your package, and you will get complaints that there are 16165 # no rules to generate ltmain.sh. 16166 if test -f "$ltmain"; then 16167 # See if we are running on zsh, and set the options which allow our commands through 16168 # without removal of \ escapes. 16169 if test -n "${ZSH_VERSION+set}" ; then 16170 setopt NO_GLOB_SUBST 16171 fi 16172 # Now quote all the things that may contain metacharacters while being 16173 # careful not to overquote the AC_SUBSTed values. We take copies of the 16174 # variables and quote the copies for generation of the libtool script. 16175 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16176 SED SHELL STRIP \ 16177 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16178 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16179 deplibs_check_method reload_flag reload_cmds need_locks \ 16180 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16181 lt_cv_sys_global_symbol_to_c_name_address \ 16182 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16183 old_postinstall_cmds old_postuninstall_cmds \ 16184 compiler_F77 \ 16185 CC_F77 \ 16186 LD_F77 \ 16187 lt_prog_compiler_wl_F77 \ 16188 lt_prog_compiler_pic_F77 \ 16189 lt_prog_compiler_static_F77 \ 16190 lt_prog_compiler_no_builtin_flag_F77 \ 16191 export_dynamic_flag_spec_F77 \ 16192 thread_safe_flag_spec_F77 \ 16193 whole_archive_flag_spec_F77 \ 16194 enable_shared_with_static_runtimes_F77 \ 16195 old_archive_cmds_F77 \ 16196 old_archive_from_new_cmds_F77 \ 16197 predep_objects_F77 \ 16198 postdep_objects_F77 \ 16199 predeps_F77 \ 16200 postdeps_F77 \ 16201 compiler_lib_search_path_F77 \ 16202 archive_cmds_F77 \ 16203 archive_expsym_cmds_F77 \ 16204 postinstall_cmds_F77 \ 16205 postuninstall_cmds_F77 \ 16206 old_archive_from_expsyms_cmds_F77 \ 16207 allow_undefined_flag_F77 \ 16208 no_undefined_flag_F77 \ 16209 export_symbols_cmds_F77 \ 16210 hardcode_libdir_flag_spec_F77 \ 16211 hardcode_libdir_flag_spec_ld_F77 \ 16212 hardcode_libdir_separator_F77 \ 16213 hardcode_automatic_F77 \ 16214 module_cmds_F77 \ 16215 module_expsym_cmds_F77 \ 16216 lt_cv_prog_compiler_c_o_F77 \ 16217 exclude_expsyms_F77 \ 16218 include_expsyms_F77; do 16219 16220 case $var in 16221 old_archive_cmds_F77 | \ 16222 old_archive_from_new_cmds_F77 | \ 16223 archive_cmds_F77 | \ 16224 archive_expsym_cmds_F77 | \ 16225 module_cmds_F77 | \ 16226 module_expsym_cmds_F77 | \ 16227 old_archive_from_expsyms_cmds_F77 | \ 16228 export_symbols_cmds_F77 | \ 16229 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16230 postinstall_cmds | postuninstall_cmds | \ 16231 old_postinstall_cmds | old_postuninstall_cmds | \ 16232 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16233 # Double-quote double-evaled strings. 16234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16235 ;; 16236 *) 16237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16238 ;; 16239 esac 16240 done 16241 16242 case $lt_echo in 16243 *'\$0 --fallback-echo"') 16244 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16245 ;; 16246 esac 16247 16248 cfgfile="$ofile" 16249 16250 cat <<__EOF__ >> "$cfgfile" 16251 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 16252 16253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16254 16255 # Shell to use when invoking shell scripts. 16256 SHELL=$lt_SHELL 16257 16258 # Whether or not to build shared libraries. 16259 build_libtool_libs=$enable_shared 16260 16261 # Whether or not to build static libraries. 16262 build_old_libs=$enable_static 16263 16264 # Whether or not to add -lc for building shared libraries. 16265 build_libtool_need_lc=$archive_cmds_need_lc_F77 16266 16267 # Whether or not to disallow shared libs when runtime libs are static 16268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16269 16270 # Whether or not to optimize for fast installation. 16271 fast_install=$enable_fast_install 16272 16273 # The host system. 16274 host_alias=$host_alias 16275 host=$host 16276 host_os=$host_os 16277 16278 # The build system. 16279 build_alias=$build_alias 16280 build=$build 16281 build_os=$build_os 16282 16283 # An echo program that does not interpret backslashes. 16284 echo=$lt_echo 16285 16286 # The archiver. 16287 AR=$lt_AR 16288 AR_FLAGS=$lt_AR_FLAGS 16289 16290 # A C compiler. 16291 LTCC=$lt_LTCC 16292 16293 # LTCC compiler flags. 16294 LTCFLAGS=$lt_LTCFLAGS 16295 16296 # A language-specific compiler. 16297 CC=$lt_compiler_F77 16298 16299 # Is the compiler the GNU C compiler? 16300 with_gcc=$GCC_F77 16301 16302 # An ERE matcher. 16303 EGREP=$lt_EGREP 16304 16305 # The linker used to build libraries. 16306 LD=$lt_LD_F77 16307 16308 # Whether we need hard or soft links. 16309 LN_S=$lt_LN_S 16310 16311 # A BSD-compatible nm program. 16312 NM=$lt_NM 16313 16314 # A symbol stripping program 16315 STRIP=$lt_STRIP 16316 16317 # Used to examine libraries when file_magic_cmd begins "file" 16318 MAGIC_CMD=$MAGIC_CMD 16319 16320 # Used on cygwin: DLL creation program. 16321 DLLTOOL="$DLLTOOL" 16322 16323 # Used on cygwin: object dumper. 16324 OBJDUMP="$OBJDUMP" 16325 16326 # Used on cygwin: assembler. 16327 AS="$AS" 16328 16329 # The name of the directory that contains temporary libtool files. 16330 objdir=$objdir 16331 16332 # How to create reloadable object files. 16333 reload_flag=$lt_reload_flag 16334 reload_cmds=$lt_reload_cmds 16335 16336 # How to pass a linker flag through the compiler. 16337 wl=$lt_lt_prog_compiler_wl_F77 16338 16339 # Object file suffix (normally "o"). 16340 objext="$ac_objext" 16341 16342 # Old archive suffix (normally "a"). 16343 libext="$libext" 16344 16345 # Shared library suffix (normally ".so"). 16346 shrext_cmds='$shrext_cmds' 16347 16348 # Executable file suffix (normally ""). 16349 exeext="$exeext" 16350 16351 # Additional compiler flags for building library objects. 16352 pic_flag=$lt_lt_prog_compiler_pic_F77 16353 pic_mode=$pic_mode 16354 16355 # What is the maximum length of a command? 16356 max_cmd_len=$lt_cv_sys_max_cmd_len 16357 16358 # Does compiler simultaneously support -c and -o options? 16359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16360 16361 # Must we lock files when doing compilation? 16362 need_locks=$lt_need_locks 16363 16364 # Do we need the lib prefix for modules? 16365 need_lib_prefix=$need_lib_prefix 16366 16367 # Do we need a version for libraries? 16368 need_version=$need_version 16369 16370 # Whether dlopen is supported. 16371 dlopen_support=$enable_dlopen 16372 16373 # Whether dlopen of programs is supported. 16374 dlopen_self=$enable_dlopen_self 16375 16376 # Whether dlopen of statically linked programs is supported. 16377 dlopen_self_static=$enable_dlopen_self_static 16378 16379 # Compiler flag to prevent dynamic linking. 16380 link_static_flag=$lt_lt_prog_compiler_static_F77 16381 16382 # Compiler flag to turn off builtin functions. 16383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16384 16385 # Compiler flag to allow reflexive dlopens. 16386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16387 16388 # Compiler flag to generate shared objects directly from archives. 16389 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16390 16391 # Compiler flag to generate thread-safe objects. 16392 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16393 16394 # Library versioning type. 16395 version_type=$version_type 16396 16397 # Format of library name prefix. 16398 libname_spec=$lt_libname_spec 16399 16400 # List of archive names. First name is the real one, the rest are links. 16401 # The last name is the one that the linker finds with -lNAME. 16402 library_names_spec=$lt_library_names_spec 16403 16404 # The coded name of the library, if different from the real name. 16405 soname_spec=$lt_soname_spec 16406 16407 # Commands used to build and install an old-style archive. 16408 RANLIB=$lt_RANLIB 16409 old_archive_cmds=$lt_old_archive_cmds_F77 16410 old_postinstall_cmds=$lt_old_postinstall_cmds 16411 old_postuninstall_cmds=$lt_old_postuninstall_cmds 16412 16413 # Create an old-style archive from a shared archive. 16414 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16415 16416 # Create a temporary old-style archive to link instead of a shared archive. 16417 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16418 16419 # Commands used to build and install a shared archive. 16420 archive_cmds=$lt_archive_cmds_F77 16421 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16422 postinstall_cmds=$lt_postinstall_cmds 16423 postuninstall_cmds=$lt_postuninstall_cmds 16424 16425 # Commands used to build a loadable module (assumed same as above if empty) 16426 module_cmds=$lt_module_cmds_F77 16427 module_expsym_cmds=$lt_module_expsym_cmds_F77 16428 16429 # Commands to strip libraries. 16430 old_striplib=$lt_old_striplib 16431 striplib=$lt_striplib 16432 16433 # Dependencies to place before the objects being linked to create a 16434 # shared library. 16435 predep_objects=$lt_predep_objects_F77 16436 16437 # Dependencies to place after the objects being linked to create a 16438 # shared library. 16439 postdep_objects=$lt_postdep_objects_F77 16440 16441 # Dependencies to place before the objects being linked to create a 16442 # shared library. 16443 predeps=$lt_predeps_F77 16444 16445 # Dependencies to place after the objects being linked to create a 16446 # shared library. 16447 postdeps=$lt_postdeps_F77 16448 16449 # The library search path used internally by the compiler when linking 16450 # a shared library. 16451 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16452 16453 # Method to check whether dependent libraries are shared objects. 16454 deplibs_check_method=$lt_deplibs_check_method 16455 16456 # Command to use when deplibs_check_method == file_magic. 16457 file_magic_cmd=$lt_file_magic_cmd 16458 16459 # Flag that allows shared libraries with undefined symbols to be built. 16460 allow_undefined_flag=$lt_allow_undefined_flag_F77 16461 16462 # Flag that forces no undefined symbols. 16463 no_undefined_flag=$lt_no_undefined_flag_F77 16464 16465 # Commands used to finish a libtool library installation in a directory. 16466 finish_cmds=$lt_finish_cmds 16467 16468 # Same as above, but a single script fragment to be evaled but not shown. 16469 finish_eval=$lt_finish_eval 16470 16471 # Take the output of nm and produce a listing of raw symbols and C names. 16472 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16473 16474 # Transform the output of nm in a proper C declaration 16475 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16476 16477 # Transform the output of nm in a C name address pair 16478 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16479 16480 # This is the shared library runtime path variable. 16481 runpath_var=$runpath_var 16482 16483 # This is the shared library path variable. 16484 shlibpath_var=$shlibpath_var 16485 16486 # Is shlibpath searched before the hard-coded library search path? 16487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16488 16489 # How to hardcode a shared library path into an executable. 16490 hardcode_action=$hardcode_action_F77 16491 16492 # Whether we should hardcode library paths into libraries. 16493 hardcode_into_libs=$hardcode_into_libs 16494 16495 # Flag to hardcode \$libdir into a binary during linking. 16496 # This must work even if \$libdir does not exist. 16497 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16498 16499 # If ld is used when linking, flag to hardcode \$libdir into 16500 # a binary during linking. This must work even if \$libdir does 16501 # not exist. 16502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16503 16504 # Whether we need a single -rpath flag with a separated argument. 16505 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16506 16507 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16508 # resulting binary. 16509 hardcode_direct=$hardcode_direct_F77 16510 16511 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16512 # resulting binary. 16513 hardcode_minus_L=$hardcode_minus_L_F77 16514 16515 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16516 # the resulting binary. 16517 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16518 16519 # Set to yes if building a shared library automatically hardcodes DIR into the library 16520 # and all subsequent libraries and executables linked against it. 16521 hardcode_automatic=$hardcode_automatic_F77 16522 16523 # Variables whose values should be saved in libtool wrapper scripts and 16524 # restored at relink time. 16525 variables_saved_for_relink="$variables_saved_for_relink" 16526 16527 # Whether libtool must link a program against all its dependency libraries. 16528 link_all_deplibs=$link_all_deplibs_F77 16529 16530 # Compile-time system search path for libraries 16531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16532 16533 # Run-time system search path for libraries 16534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16535 16536 # Fix the shell variable \$srcfile for the compiler. 16537 fix_srcfile_path="$fix_srcfile_path_F77" 16538 16539 # Set to yes if exported symbols are required. 16540 always_export_symbols=$always_export_symbols_F77 16541 16542 # The commands to list exported symbols. 16543 export_symbols_cmds=$lt_export_symbols_cmds_F77 16544 16545 # The commands to extract the exported symbol list from a shared archive. 16546 extract_expsyms_cmds=$lt_extract_expsyms_cmds 16547 16548 # Symbols that should not be listed in the preloaded symbols. 16549 exclude_expsyms=$lt_exclude_expsyms_F77 16550 16551 # Symbols that must always be exported. 16552 include_expsyms=$lt_include_expsyms_F77 16553 16554 # ### END LIBTOOL TAG CONFIG: $tagname 16555 16556 __EOF__ 16557 16558 16559 else 16560 # If there is no Makefile yet, we rely on a make rule to execute 16561 # `config.status --recheck' to rerun these tests and create the 16562 # libtool script then. 16563 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16564 if test -f "$ltmain_in"; then 16565 test -f Makefile && make "$ltmain" 16566 fi 16567 fi 16568 16569 16570 ac_ext=c 16571 ac_cpp='$CPP $CPPFLAGS' 16572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16574 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16575 16576 CC="$lt_save_CC" 16577 16578 else 16579 tagname="" 16580 fi 16581 ;; 16582 16583 GCJ) 16584 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16585 16586 16587 # Source file extension for Java test sources. 16588 ac_ext=java 16589 16590 # Object file extension for compiled Java test sources. 16591 objext=o 16592 objext_GCJ=$objext 16593 16594 # Code to be used in simple compile tests 16595 lt_simple_compile_test_code="class foo {}\n" 16596 16597 # Code to be used in simple link tests 16598 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16599 16600 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16601 16602 # If no C compiler was specified, use CC. 16603 LTCC=${LTCC-"$CC"} 16604 16605 # If no C compiler flags were specified, use CFLAGS. 16606 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16607 16608 # Allow CC to be a program name with arguments. 16609 compiler=$CC 16610 16611 16612 # save warnings/boilerplate of simple test code 16613 ac_outfile=conftest.$ac_objext 16614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16616 _lt_compiler_boilerplate=`cat conftest.err` 16617 $rm conftest* 16618 16619 ac_outfile=conftest.$ac_objext 16620 printf "$lt_simple_link_test_code" >conftest.$ac_ext 16621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16622 _lt_linker_boilerplate=`cat conftest.err` 16623 $rm conftest* 16624 16625 16626 # Allow CC to be a program name with arguments. 16627 lt_save_CC="$CC" 16628 CC=${GCJ-"gcj"} 16629 compiler=$CC 16630 compiler_GCJ=$CC 16631 for cc_temp in $compiler""; do 16632 case $cc_temp in 16633 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16634 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16635 \-*) ;; 16636 *) break;; 16637 esac 16638 done 16639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16640 16641 16642 # GCJ did not exist at the time GCC didn't implicitly link libc in. 16643 archive_cmds_need_lc_GCJ=no 16644 16645 old_archive_cmds_GCJ=$old_archive_cmds 16646 16647 ## CAVEAT EMPTOR: 16648 ## There is no encapsulation within the following macros, do not change 16649 ## the running order or otherwise move them around unless you know exactly 16650 ## what you are doing... 16651 16652 lt_prog_compiler_no_builtin_flag_GCJ= 16653 16654 if test "$GCC" = yes; then 16655 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16656 16657 16658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16661 echo $ECHO_N "(cached) $ECHO_C" >&6 16662 else 16663 lt_cv_prog_compiler_rtti_exceptions=no 16664 ac_outfile=conftest.$ac_objext 16665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16666 lt_compiler_flag="-fno-rtti -fno-exceptions" 16667 # Insert the option either (1) after the last *FLAGS variable, or 16668 # (2) before a word containing "conftest.", or (3) at the end. 16669 # Note that $ac_compile itself does not contain backslashes and begins 16670 # with a dollar sign (not a hyphen), so the echo should work correctly. 16671 # The option is referenced via a variable to avoid confusing sed. 16672 lt_compile=`echo "$ac_compile" | $SED \ 16673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16675 -e 's:$: $lt_compiler_flag:'` 16676 (eval echo "\"\$as_me:16676: $lt_compile\"" >&5) 16677 (eval "$lt_compile" 2>conftest.err) 16678 ac_status=$? 16679 cat conftest.err >&5 16680 echo "$as_me:16680: \$? = $ac_status" >&5 16681 if (exit $ac_status) && test -s "$ac_outfile"; then 16682 # The compiler can only warn and ignore the option if not recognized 16683 # So say no if there are warnings other than the usual output. 16684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16687 lt_cv_prog_compiler_rtti_exceptions=yes 16688 fi 16689 fi 16690 $rm conftest* 16691 16692 fi 16693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16695 16696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16697 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16698 else 16699 : 16700 fi 16701 16702 fi 16703 16704 lt_prog_compiler_wl_GCJ= 16705 lt_prog_compiler_pic_GCJ= 16706 lt_prog_compiler_static_GCJ= 16707 16708 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16709 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16710 16711 if test "$GCC" = yes; then 16712 lt_prog_compiler_wl_GCJ='-Wl,' 16713 lt_prog_compiler_static_GCJ='-static' 16714 16715 case $host_os in 16716 aix*) 16717 # All AIX code is PIC. 16718 if test "$host_cpu" = ia64; then 16719 # AIX 5 now supports IA64 processor 16720 lt_prog_compiler_static_GCJ='-Bstatic' 16721 fi 16722 ;; 16723 16724 amigaos*) 16725 # FIXME: we need at least 68020 code to build shared libraries, but 16726 # adding the `-m68020' flag to GCC prevents building anything better, 16727 # like `-m68040'. 16728 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16729 ;; 16730 16731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16732 # PIC is the default for these OSes. 16733 ;; 16734 16735 mingw* | cygwin* | pw32* | os2*) 16736 # This hack is so that the source file can tell whether it is being 16737 # built for inclusion in a dll (and should export symbols for example). 16738 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16739 # (--disable-auto-import) libraries 16740 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16741 ;; 16742 16743 darwin* | rhapsody*) 16744 # PIC is the default on this platform 16745 # Common symbols not allowed in MH_DYLIB files 16746 lt_prog_compiler_pic_GCJ='-fno-common' 16747 ;; 16748 16749 interix3*) 16750 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16751 # Instead, we relocate shared libraries at runtime. 16752 ;; 16753 16754 msdosdjgpp*) 16755 # Just because we use GCC doesn't mean we suddenly get shared libraries 16756 # on systems that don't support them. 16757 lt_prog_compiler_can_build_shared_GCJ=no 16758 enable_shared=no 16759 ;; 16760 16761 sysv4*MP*) 16762 if test -d /usr/nec; then 16763 lt_prog_compiler_pic_GCJ=-Kconform_pic 16764 fi 16765 ;; 16766 16767 hpux*) 16768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16769 # not for PA HP-UX. 16770 case $host_cpu in 16771 hppa*64*|ia64*) 16772 # +Z the default 16773 ;; 16774 *) 16775 lt_prog_compiler_pic_GCJ='-fPIC' 16776 ;; 16777 esac 16778 ;; 16779 16780 *) 16781 lt_prog_compiler_pic_GCJ='-fPIC' 16782 ;; 16783 esac 16784 else 16785 # PORTME Check for flag to pass linker flags through the system compiler. 16786 case $host_os in 16787 aix*) 16788 lt_prog_compiler_wl_GCJ='-Wl,' 16789 if test "$host_cpu" = ia64; then 16790 # AIX 5 now supports IA64 processor 16791 lt_prog_compiler_static_GCJ='-Bstatic' 16792 else 16793 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16794 fi 16795 ;; 16796 darwin*) 16797 # PIC is the default on this platform 16798 # Common symbols not allowed in MH_DYLIB files 16799 case $cc_basename in 16800 xlc*) 16801 lt_prog_compiler_pic_GCJ='-qnocommon' 16802 lt_prog_compiler_wl_GCJ='-Wl,' 16803 ;; 16804 esac 16805 ;; 16806 16807 mingw* | cygwin* | pw32* | os2*) 16808 # This hack is so that the source file can tell whether it is being 16809 # built for inclusion in a dll (and should export symbols for example). 16810 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16811 # (--disable-auto-import) libraries 16812 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16813 ;; 16814 16815 hpux9* | hpux10* | hpux11*) 16816 lt_prog_compiler_wl_GCJ='-Wl,' 16817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16818 # not for PA HP-UX. 16819 case $host_cpu in 16820 hppa*64*|ia64*) 16821 # +Z the default 16822 ;; 16823 *) 16824 lt_prog_compiler_pic_GCJ='+Z' 16825 ;; 16826 esac 16827 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16828 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16829 ;; 16830 16831 irix5* | irix6* | nonstopux*) 16832 lt_prog_compiler_wl_GCJ='-Wl,' 16833 # PIC (with -KPIC) is the default. 16834 lt_prog_compiler_static_GCJ='-non_shared' 16835 ;; 16836 16837 newsos6) 16838 lt_prog_compiler_pic_GCJ='-KPIC' 16839 lt_prog_compiler_static_GCJ='-Bstatic' 16840 ;; 16841 16842 linux*) 16843 case $cc_basename in 16844 icc* | ecc*) 16845 lt_prog_compiler_wl_GCJ='-Wl,' 16846 lt_prog_compiler_pic_GCJ='-KPIC' 16847 lt_prog_compiler_static_GCJ='-static' 16848 ;; 16849 pgcc* | pgf77* | pgf90* | pgf95*) 16850 # Portland Group compilers (*not* the Pentium gcc compiler, 16851 # which looks to be a dead project) 16852 lt_prog_compiler_wl_GCJ='-Wl,' 16853 lt_prog_compiler_pic_GCJ='-fpic' 16854 lt_prog_compiler_static_GCJ='-Bstatic' 16855 ;; 16856 ccc*) 16857 lt_prog_compiler_wl_GCJ='-Wl,' 16858 # All Alpha code is PIC. 16859 lt_prog_compiler_static_GCJ='-non_shared' 16860 ;; 16861 como) 16862 lt_prog_compiler_wl_GCJ='-lopt=' 16863 ;; 16864 *) 16865 case `$CC -V 2>&1 | sed 5q` in 16866 *Sun\ C*) 16867 # Sun C 5.9 16868 lt_prog_compiler_pic_GCJ='-KPIC' 16869 lt_prog_compiler_static_GCJ='-Bstatic' 16870 lt_prog_compiler_wl_GCJ='-Wl,' 16871 ;; 16872 *Sun\ F*) 16873 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16874 lt_prog_compiler_pic_GCJ='-KPIC' 16875 lt_prog_compiler_static_GCJ='-Bstatic' 16876 lt_prog_compiler_wl_GCJ='' 16877 ;; 16878 esac 16879 ;; 16880 esac 16881 ;; 16882 16883 osf3* | osf4* | osf5*) 16884 lt_prog_compiler_wl_GCJ='-Wl,' 16885 # All OSF/1 code is PIC. 16886 lt_prog_compiler_static_GCJ='-non_shared' 16887 ;; 16888 16889 solaris*) 16890 lt_prog_compiler_pic_GCJ='-KPIC' 16891 lt_prog_compiler_static_GCJ='-Bstatic' 16892 case $cc_basename in 16893 f77* | f90* | f95*) 16894 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16895 *) 16896 lt_prog_compiler_wl_GCJ='-Wl,';; 16897 esac 16898 ;; 16899 16900 sunos4*) 16901 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16902 lt_prog_compiler_pic_GCJ='-PIC' 16903 lt_prog_compiler_static_GCJ='-Bstatic' 16904 ;; 16905 16906 sysv4 | sysv4.2uw2* | sysv4.3*) 16907 lt_prog_compiler_wl_GCJ='-Wl,' 16908 lt_prog_compiler_pic_GCJ='-KPIC' 16909 lt_prog_compiler_static_GCJ='-Bstatic' 16910 ;; 16911 16912 sysv4*MP*) 16913 if test -d /usr/nec ;then 16914 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16915 lt_prog_compiler_static_GCJ='-Bstatic' 16916 fi 16917 ;; 16918 16919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16920 lt_prog_compiler_wl_GCJ='-Wl,' 16921 lt_prog_compiler_pic_GCJ='-KPIC' 16922 lt_prog_compiler_static_GCJ='-Bstatic' 16923 ;; 16924 16925 unicos*) 16926 lt_prog_compiler_wl_GCJ='-Wl,' 16927 lt_prog_compiler_can_build_shared_GCJ=no 16928 ;; 16929 16930 uts4*) 16931 lt_prog_compiler_pic_GCJ='-pic' 16932 lt_prog_compiler_static_GCJ='-Bstatic' 16933 ;; 16934 16935 *) 16936 lt_prog_compiler_can_build_shared_GCJ=no 16937 ;; 16938 esac 16939 fi 16940 16941 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16942 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16943 16944 # 16945 # Check to make sure the PIC flag actually works. 16946 # 16947 if test -n "$lt_prog_compiler_pic_GCJ"; then 16948 16949 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16950 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16951 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16952 echo $ECHO_N "(cached) $ECHO_C" >&6 16953 else 16954 lt_prog_compiler_pic_works_GCJ=no 16955 ac_outfile=conftest.$ac_objext 16956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16957 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16958 # Insert the option either (1) after the last *FLAGS variable, or 16959 # (2) before a word containing "conftest.", or (3) at the end. 16960 # Note that $ac_compile itself does not contain backslashes and begins 16961 # with a dollar sign (not a hyphen), so the echo should work correctly. 16962 # The option is referenced via a variable to avoid confusing sed. 16963 lt_compile=`echo "$ac_compile" | $SED \ 16964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16966 -e 's:$: $lt_compiler_flag:'` 16967 (eval echo "\"\$as_me:16967: $lt_compile\"" >&5) 16968 (eval "$lt_compile" 2>conftest.err) 16969 ac_status=$? 16970 cat conftest.err >&5 16971 echo "$as_me:16971: \$? = $ac_status" >&5 16972 if (exit $ac_status) && test -s "$ac_outfile"; then 16973 # The compiler can only warn and ignore the option if not recognized 16974 # So say no if there are warnings other than the usual output. 16975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16978 lt_prog_compiler_pic_works_GCJ=yes 16979 fi 16980 fi 16981 $rm conftest* 16982 16983 fi 16984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16985 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16986 16987 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16988 case $lt_prog_compiler_pic_GCJ in 16989 "" | " "*) ;; 16990 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16991 esac 16992 else 16993 lt_prog_compiler_pic_GCJ= 16994 lt_prog_compiler_can_build_shared_GCJ=no 16995 fi 16996 16997 fi 16998 case $host_os in 16999 # For platforms which do not support PIC, -DPIC is meaningless: 17000 *djgpp*) 17001 lt_prog_compiler_pic_GCJ= 17002 ;; 17003 *) 17004 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17005 ;; 17006 esac 17007 17008 # 17009 # Check to make sure the static flag actually works. 17010 # 17011 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17012 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17013 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17014 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17015 echo $ECHO_N "(cached) $ECHO_C" >&6 17016 else 17017 lt_prog_compiler_static_works_GCJ=no 17018 save_LDFLAGS="$LDFLAGS" 17019 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17020 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17022 # The linker can only warn and ignore the option if not recognized 17023 # So say no if there are warnings 17024 if test -s conftest.err; then 17025 # Append any errors to the config.log. 17026 cat conftest.err 1>&5 17027 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17029 if diff conftest.exp conftest.er2 >/dev/null; then 17030 lt_prog_compiler_static_works_GCJ=yes 17031 fi 17032 else 17033 lt_prog_compiler_static_works_GCJ=yes 17034 fi 17035 fi 17036 $rm conftest* 17037 LDFLAGS="$save_LDFLAGS" 17038 17039 fi 17040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17041 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17042 17043 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17044 : 17045 else 17046 lt_prog_compiler_static_GCJ= 17047 fi 17048 17049 17050 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17052 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17053 echo $ECHO_N "(cached) $ECHO_C" >&6 17054 else 17055 lt_cv_prog_compiler_c_o_GCJ=no 17056 $rm -r conftest 2>/dev/null 17057 mkdir conftest 17058 cd conftest 17059 mkdir out 17060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17061 17062 lt_compiler_flag="-o out/conftest2.$ac_objext" 17063 # Insert the option either (1) after the last *FLAGS variable, or 17064 # (2) before a word containing "conftest.", or (3) at the end. 17065 # Note that $ac_compile itself does not contain backslashes and begins 17066 # with a dollar sign (not a hyphen), so the echo should work correctly. 17067 lt_compile=`echo "$ac_compile" | $SED \ 17068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17070 -e 's:$: $lt_compiler_flag:'` 17071 (eval echo "\"\$as_me:17071: $lt_compile\"" >&5) 17072 (eval "$lt_compile" 2>out/conftest.err) 17073 ac_status=$? 17074 cat out/conftest.err >&5 17075 echo "$as_me:17075: \$? = $ac_status" >&5 17076 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17077 then 17078 # The compiler can only warn and ignore the option if not recognized 17079 # So say no if there are warnings 17080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17083 lt_cv_prog_compiler_c_o_GCJ=yes 17084 fi 17085 fi 17086 chmod u+w . 2>&5 17087 $rm conftest* 17088 # SGI C++ compiler will create directory out/ii_files/ for 17089 # template instantiation 17090 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17091 $rm out/* && rmdir out 17092 cd .. 17093 rmdir conftest 17094 $rm conftest* 17095 17096 fi 17097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17098 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17099 17100 17101 hard_links="nottested" 17102 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17103 # do not overwrite the value of need_locks provided by the user 17104 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17105 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17106 hard_links=yes 17107 $rm conftest* 17108 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17109 touch conftest.a 17110 ln conftest.a conftest.b 2>&5 || hard_links=no 17111 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17112 { echo "$as_me:$LINENO: result: $hard_links" >&5 17113 echo "${ECHO_T}$hard_links" >&6; } 17114 if test "$hard_links" = no; then 17115 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17116 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17117 need_locks=warn 17118 fi 17119 else 17120 need_locks=no 17121 fi 17122 17123 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17124 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17125 17126 runpath_var= 17127 allow_undefined_flag_GCJ= 17128 enable_shared_with_static_runtimes_GCJ=no 17129 archive_cmds_GCJ= 17130 archive_expsym_cmds_GCJ= 17131 old_archive_From_new_cmds_GCJ= 17132 old_archive_from_expsyms_cmds_GCJ= 17133 export_dynamic_flag_spec_GCJ= 17134 whole_archive_flag_spec_GCJ= 17135 thread_safe_flag_spec_GCJ= 17136 hardcode_libdir_flag_spec_GCJ= 17137 hardcode_libdir_flag_spec_ld_GCJ= 17138 hardcode_libdir_separator_GCJ= 17139 hardcode_direct_GCJ=no 17140 hardcode_minus_L_GCJ=no 17141 hardcode_shlibpath_var_GCJ=unsupported 17142 link_all_deplibs_GCJ=unknown 17143 hardcode_automatic_GCJ=no 17144 module_cmds_GCJ= 17145 module_expsym_cmds_GCJ= 17146 always_export_symbols_GCJ=no 17147 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17148 # include_expsyms should be a list of space-separated symbols to be *always* 17149 # included in the symbol list 17150 include_expsyms_GCJ= 17151 # exclude_expsyms can be an extended regexp of symbols to exclude 17152 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17154 # as well as any symbol that contains `d'. 17155 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17157 # platforms (ab)use it in PIC code, but their linkers get confused if 17158 # the symbol is explicitly referenced. Since portable code cannot 17159 # rely on this symbol name, it's probably fine to never include it in 17160 # preloaded symbol tables. 17161 extract_expsyms_cmds= 17162 # Just being paranoid about ensuring that cc_basename is set. 17163 for cc_temp in $compiler""; do 17164 case $cc_temp in 17165 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17166 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17167 \-*) ;; 17168 *) break;; 17169 esac 17170 done 17171 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17172 17173 case $host_os in 17174 cygwin* | mingw* | pw32*) 17175 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17176 # When not using gcc, we currently assume that we are using 17177 # Microsoft Visual C++. 17178 if test "$GCC" != yes; then 17179 with_gnu_ld=no 17180 fi 17181 ;; 17182 interix*) 17183 # we just hope/assume this is gcc and not c89 (= MSVC++) 17184 with_gnu_ld=yes 17185 ;; 17186 openbsd*) 17187 with_gnu_ld=no 17188 ;; 17189 esac 17190 17191 ld_shlibs_GCJ=yes 17192 if test "$with_gnu_ld" = yes; then 17193 # If archive_cmds runs LD, not CC, wlarc should be empty 17194 wlarc='${wl}' 17195 17196 # Set some defaults for GNU ld with shared library support. These 17197 # are reset later if shared libraries are not supported. Putting them 17198 # here allows them to be overridden if necessary. 17199 runpath_var=LD_RUN_PATH 17200 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17201 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17202 # ancient GNU ld didn't support --whole-archive et. al. 17203 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17204 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17205 else 17206 whole_archive_flag_spec_GCJ= 17207 fi 17208 supports_anon_versioning=no 17209 case `$LD -v 2>/dev/null` in 17210 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17211 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17212 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17213 *\ 2.11.*) ;; # other 2.11 versions 17214 *) supports_anon_versioning=yes ;; 17215 esac 17216 17217 # See if GNU ld supports shared libraries. 17218 case $host_os in 17219 aix3* | aix4* | aix5*) 17220 # On AIX/PPC, the GNU linker is very broken 17221 if test "$host_cpu" != ia64; then 17222 ld_shlibs_GCJ=no 17223 cat <<EOF 1>&2 17224 17225 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 17226 *** to be unable to reliably create shared libraries on AIX. 17227 *** Therefore, libtool is disabling shared libraries support. If you 17228 *** really care for shared libraries, you may want to modify your PATH 17229 *** so that a non-GNU linker is found, and then restart. 17230 17231 EOF 17232 fi 17233 ;; 17234 17235 amigaos*) 17236 archive_cmds_GCJ='$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)' 17237 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17238 hardcode_minus_L_GCJ=yes 17239 17240 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 17241 # that the semantics of dynamic libraries on AmigaOS, at least up 17242 # to version 4, is to share data among multiple programs linked 17243 # with the same dynamic library. Since this doesn't match the 17244 # behavior of shared libraries on other platforms, we can't use 17245 # them. 17246 ld_shlibs_GCJ=no 17247 ;; 17248 17249 beos*) 17250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17251 allow_undefined_flag_GCJ=unsupported 17252 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 17253 # support --undefined. This deserves some investigation. FIXME 17254 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17255 else 17256 ld_shlibs_GCJ=no 17257 fi 17258 ;; 17259 17260 cygwin* | mingw* | pw32*) 17261 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17262 # as there is no search path for DLLs. 17263 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17264 allow_undefined_flag_GCJ=unsupported 17265 always_export_symbols_GCJ=no 17266 enable_shared_with_static_runtimes_GCJ=yes 17267 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17268 17269 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17270 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17271 # If the export-symbols file already is a .def file (1st line 17272 # is EXPORTS), use it as is; otherwise, prepend... 17273 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17274 cp $export_symbols $output_objdir/$soname.def; 17275 else 17276 echo EXPORTS > $output_objdir/$soname.def; 17277 cat $export_symbols >> $output_objdir/$soname.def; 17278 fi~ 17279 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17280 else 17281 ld_shlibs_GCJ=no 17282 fi 17283 ;; 17284 17285 interix3*) 17286 hardcode_direct_GCJ=no 17287 hardcode_shlibpath_var_GCJ=no 17288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17289 export_dynamic_flag_spec_GCJ='${wl}-E' 17290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17291 # Instead, shared libraries are loaded at an image base (0x10000000 by 17292 # default) and relocated if they conflict, which is a slow very memory 17293 # consuming and fragmenting process. To avoid this, we pick a random, 17294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17295 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17296 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17297 archive_expsym_cmds_GCJ='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' 17298 ;; 17299 17300 linux*) 17301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17302 tmp_addflag= 17303 case $cc_basename,$host_cpu in 17304 pgcc*) # Portland Group C compiler 17305 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17306 tmp_addflag=' $pic_flag' 17307 ;; 17308 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17309 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17310 tmp_addflag=' $pic_flag -Mnomain' ;; 17311 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17312 tmp_addflag=' -i_dynamic' ;; 17313 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17314 tmp_addflag=' -i_dynamic -nofor_main' ;; 17315 ifc* | ifort*) # Intel Fortran compiler 17316 tmp_addflag=' -nofor_main' ;; 17317 esac 17318 case `$CC -V 2>&1 | sed 5q` in 17319 *Sun\ C*) # Sun C 5.9 17320 whole_archive_flag_spec_GCJ='${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 /dev/null' 17321 tmp_sharedflag='-G' ;; 17322 *Sun\ F*) # Sun Fortran 8.3 17323 tmp_sharedflag='-G' ;; 17324 *) 17325 tmp_sharedflag='-shared' ;; 17326 esac 17327 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17328 17329 if test $supports_anon_versioning = yes; then 17330 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17332 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17334 fi 17335 else 17336 ld_shlibs_GCJ=no 17337 fi 17338 ;; 17339 17340 netbsd*) 17341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17342 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17343 wlarc= 17344 else 17345 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17346 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17347 fi 17348 ;; 17349 17350 solaris*) 17351 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17352 ld_shlibs_GCJ=no 17353 cat <<EOF 1>&2 17354 17355 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 17356 *** create shared libraries on Solaris systems. Therefore, libtool 17357 *** is disabling shared libraries support. We urge you to upgrade GNU 17358 *** binutils to release 2.9.1 or newer. Another option is to modify 17359 *** your PATH or compiler configuration so that the native linker is 17360 *** used, and then restart. 17361 17362 EOF 17363 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17364 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17365 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17366 else 17367 ld_shlibs_GCJ=no 17368 fi 17369 ;; 17370 17371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17372 case `$LD -v 2>&1` in 17373 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17374 ld_shlibs_GCJ=no 17375 cat <<_LT_EOF 1>&2 17376 17377 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17378 *** reliably create shared libraries on SCO systems. Therefore, libtool 17379 *** is disabling shared libraries support. We urge you to upgrade GNU 17380 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17381 *** your PATH or compiler configuration so that the native linker is 17382 *** used, and then restart. 17383 17384 _LT_EOF 17385 ;; 17386 *) 17387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17388 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17389 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17390 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17391 else 17392 ld_shlibs_GCJ=no 17393 fi 17394 ;; 17395 esac 17396 ;; 17397 17398 sunos4*) 17399 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17400 wlarc= 17401 hardcode_direct_GCJ=yes 17402 hardcode_shlibpath_var_GCJ=no 17403 ;; 17404 17405 *) 17406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17407 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17408 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17409 else 17410 ld_shlibs_GCJ=no 17411 fi 17412 ;; 17413 esac 17414 17415 if test "$ld_shlibs_GCJ" = no; then 17416 runpath_var= 17417 hardcode_libdir_flag_spec_GCJ= 17418 export_dynamic_flag_spec_GCJ= 17419 whole_archive_flag_spec_GCJ= 17420 fi 17421 else 17422 # PORTME fill in a description of your system's linker (not GNU ld) 17423 case $host_os in 17424 aix3*) 17425 allow_undefined_flag_GCJ=unsupported 17426 always_export_symbols_GCJ=yes 17427 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17428 # Note: this linker hardcodes the directories in LIBPATH if there 17429 # are no directories specified by -L. 17430 hardcode_minus_L_GCJ=yes 17431 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17432 # Neither direct hardcoding nor static linking is supported with a 17433 # broken collect2. 17434 hardcode_direct_GCJ=unsupported 17435 fi 17436 ;; 17437 17438 aix4* | aix5*) 17439 if test "$host_cpu" = ia64; then 17440 # On IA64, the linker does run time linking by default, so we don't 17441 # have to do anything special. 17442 aix_use_runtimelinking=no 17443 exp_sym_flag='-Bexport' 17444 no_entry_flag="" 17445 else 17446 # If we're using GNU nm, then we don't want the "-C" option. 17447 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17448 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17449 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17450 else 17451 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17452 fi 17453 aix_use_runtimelinking=no 17454 17455 # Test if we are trying to use run time linking or normal 17456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17457 # need to do runtime linking. 17458 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17459 for ld_flag in $LDFLAGS; do 17460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17461 aix_use_runtimelinking=yes 17462 break 17463 fi 17464 done 17465 ;; 17466 esac 17467 17468 exp_sym_flag='-bexport' 17469 no_entry_flag='-bnoentry' 17470 fi 17471 17472 # When large executables or shared objects are built, AIX ld can 17473 # have problems creating the table of contents. If linking a library 17474 # or program results in "error TOC overflow" add -mminimal-toc to 17475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17477 17478 archive_cmds_GCJ='' 17479 hardcode_direct_GCJ=yes 17480 hardcode_libdir_separator_GCJ=':' 17481 link_all_deplibs_GCJ=yes 17482 17483 if test "$GCC" = yes; then 17484 case $host_os in aix4.[012]|aix4.[012].*) 17485 # We only want to do this on AIX 4.2 and lower, the check 17486 # below for broken collect2 doesn't work under 4.3+ 17487 collect2name=`${CC} -print-prog-name=collect2` 17488 if test -f "$collect2name" && \ 17489 strings "$collect2name" | grep resolve_lib_name >/dev/null 17490 then 17491 # We have reworked collect2 17492 hardcode_direct_GCJ=yes 17493 else 17494 # We have old collect2 17495 hardcode_direct_GCJ=unsupported 17496 # It fails to find uninstalled libraries when the uninstalled 17497 # path is not listed in the libpath. Setting hardcode_minus_L 17498 # to unsupported forces relinking 17499 hardcode_minus_L_GCJ=yes 17500 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17501 hardcode_libdir_separator_GCJ= 17502 fi 17503 ;; 17504 esac 17505 shared_flag='-shared' 17506 if test "$aix_use_runtimelinking" = yes; then 17507 shared_flag="$shared_flag "'${wl}-G' 17508 fi 17509 else 17510 # not using gcc 17511 if test "$host_cpu" = ia64; then 17512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17513 # chokes on -Wl,-G. The following line is correct: 17514 shared_flag='-G' 17515 else 17516 if test "$aix_use_runtimelinking" = yes; then 17517 shared_flag='${wl}-G' 17518 else 17519 shared_flag='${wl}-bM:SRE' 17520 fi 17521 fi 17522 fi 17523 17524 # It seems that -bexpall does not export symbols beginning with 17525 # underscore (_), so it is better to generate a list of symbols to export. 17526 always_export_symbols_GCJ=yes 17527 if test "$aix_use_runtimelinking" = yes; then 17528 # Warning - without using the other runtime loading flags (-brtl), 17529 # -berok will link without error, but may produce a broken library. 17530 allow_undefined_flag_GCJ='-berok' 17531 # Determine the default libpath from the value encoded in an empty executable. 17532 cat >conftest.$ac_ext <<_ACEOF 17533 /* confdefs.h. */ 17534 _ACEOF 17535 cat confdefs.h >>conftest.$ac_ext 17536 cat >>conftest.$ac_ext <<_ACEOF 17537 /* end confdefs.h. */ 17538 17539 int 17540 main () 17541 { 17542 17543 ; 17544 return 0; 17545 } 17546 _ACEOF 17547 rm -f conftest.$ac_objext conftest$ac_exeext 17548 if { (ac_try="$ac_link" 17549 case "(($ac_try" in 17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17551 *) ac_try_echo=$ac_try;; 17552 esac 17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17554 (eval "$ac_link") 2>conftest.er1 17555 ac_status=$? 17556 grep -v '^ *+' conftest.er1 >conftest.err 17557 rm -f conftest.er1 17558 cat conftest.err >&5 17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17560 (exit $ac_status); } && { 17561 test -z "$ac_c_werror_flag" || 17562 test ! -s conftest.err 17563 } && test -s conftest$ac_exeext && 17564 $as_test_x conftest$ac_exeext; then 17565 17566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17567 }'` 17568 # Check for a 64-bit object if we didn't find anything. 17569 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17570 }'`; fi 17571 else 17572 echo "$as_me: failed program was:" >&5 17573 sed 's/^/| /' conftest.$ac_ext >&5 17574 17575 17576 fi 17577 17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17579 conftest$ac_exeext conftest.$ac_ext 17580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17581 17582 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17583 archive_expsym_cmds_GCJ="\$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" 17584 else 17585 if test "$host_cpu" = ia64; then 17586 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17587 allow_undefined_flag_GCJ="-z nodefs" 17588 archive_expsym_cmds_GCJ="\$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" 17589 else 17590 # Determine the default libpath from the value encoded in an empty executable. 17591 cat >conftest.$ac_ext <<_ACEOF 17592 /* confdefs.h. */ 17593 _ACEOF 17594 cat confdefs.h >>conftest.$ac_ext 17595 cat >>conftest.$ac_ext <<_ACEOF 17596 /* end confdefs.h. */ 17597 17598 int 17599 main () 17600 { 17601 17602 ; 17603 return 0; 17604 } 17605 _ACEOF 17606 rm -f conftest.$ac_objext conftest$ac_exeext 17607 if { (ac_try="$ac_link" 17608 case "(($ac_try" in 17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17610 *) ac_try_echo=$ac_try;; 17611 esac 17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17613 (eval "$ac_link") 2>conftest.er1 17614 ac_status=$? 17615 grep -v '^ *+' conftest.er1 >conftest.err 17616 rm -f conftest.er1 17617 cat conftest.err >&5 17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17619 (exit $ac_status); } && { 17620 test -z "$ac_c_werror_flag" || 17621 test ! -s conftest.err 17622 } && test -s conftest$ac_exeext && 17623 $as_test_x conftest$ac_exeext; then 17624 17625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17626 }'` 17627 # Check for a 64-bit object if we didn't find anything. 17628 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17629 }'`; fi 17630 else 17631 echo "$as_me: failed program was:" >&5 17632 sed 's/^/| /' conftest.$ac_ext >&5 17633 17634 17635 fi 17636 17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17638 conftest$ac_exeext conftest.$ac_ext 17639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17640 17641 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17642 # Warning - without using the other run time loading flags, 17643 # -berok will link without error, but may produce a broken library. 17644 no_undefined_flag_GCJ=' ${wl}-bernotok' 17645 allow_undefined_flag_GCJ=' ${wl}-berok' 17646 # Exported symbols can be pulled into shared objects from archives 17647 whole_archive_flag_spec_GCJ='$convenience' 17648 archive_cmds_need_lc_GCJ=yes 17649 # This is similar to how AIX traditionally builds its shared libraries. 17650 archive_expsym_cmds_GCJ="\$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' 17651 fi 17652 fi 17653 ;; 17654 17655 amigaos*) 17656 archive_cmds_GCJ='$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)' 17657 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17658 hardcode_minus_L_GCJ=yes 17659 # see comment about different semantics on the GNU ld section 17660 ld_shlibs_GCJ=no 17661 ;; 17662 17663 bsdi[45]*) 17664 export_dynamic_flag_spec_GCJ=-rdynamic 17665 ;; 17666 17667 cygwin* | mingw* | pw32*) 17668 # When not using gcc, we currently assume that we are using 17669 # Microsoft Visual C++. 17670 # hardcode_libdir_flag_spec is actually meaningless, as there is 17671 # no search path for DLLs. 17672 hardcode_libdir_flag_spec_GCJ=' ' 17673 allow_undefined_flag_GCJ=unsupported 17674 # Tell ltmain to make .lib files, not .a files. 17675 libext=lib 17676 # Tell ltmain to make .dll files, not .so files. 17677 shrext_cmds=".dll" 17678 # FIXME: Setting linknames here is a bad hack. 17679 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17680 # The linker will automatically build a .lib file if we build a DLL. 17681 old_archive_From_new_cmds_GCJ='true' 17682 # FIXME: Should let the user specify the lib program. 17683 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17684 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17685 enable_shared_with_static_runtimes_GCJ=yes 17686 ;; 17687 17688 darwin* | rhapsody*) 17689 case $host_os in 17690 rhapsody* | darwin1.[012]) 17691 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17692 ;; 17693 *) # Darwin 1.3 on 17694 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17695 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17696 else 17697 case ${MACOSX_DEPLOYMENT_TARGET} in 17698 10.[012]) 17699 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17700 ;; 17701 10.*) 17702 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17703 ;; 17704 esac 17705 fi 17706 ;; 17707 esac 17708 archive_cmds_need_lc_GCJ=no 17709 hardcode_direct_GCJ=no 17710 hardcode_automatic_GCJ=yes 17711 hardcode_shlibpath_var_GCJ=unsupported 17712 whole_archive_flag_spec_GCJ='' 17713 link_all_deplibs_GCJ=yes 17714 if test "$GCC" = yes ; then 17715 output_verbose_link_cmd='echo' 17716 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17717 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17718 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17719 archive_expsym_cmds_GCJ='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}' 17720 module_expsym_cmds_GCJ='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}' 17721 else 17722 case $cc_basename in 17723 xlc*) 17724 output_verbose_link_cmd='echo' 17725 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17726 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17728 archive_expsym_cmds_GCJ='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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17729 module_expsym_cmds_GCJ='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}' 17730 ;; 17731 *) 17732 ld_shlibs_GCJ=no 17733 ;; 17734 esac 17735 fi 17736 ;; 17737 17738 dgux*) 17739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17740 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17741 hardcode_shlibpath_var_GCJ=no 17742 ;; 17743 17744 freebsd1*) 17745 ld_shlibs_GCJ=no 17746 ;; 17747 17748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17749 # support. Future versions do this automatically, but an explicit c++rt0.o 17750 # does not break anything, and helps significantly (at the cost of a little 17751 # extra space). 17752 freebsd2.2*) 17753 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17754 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17755 hardcode_direct_GCJ=yes 17756 hardcode_shlibpath_var_GCJ=no 17757 ;; 17758 17759 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17760 freebsd2*) 17761 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17762 hardcode_direct_GCJ=yes 17763 hardcode_minus_L_GCJ=yes 17764 hardcode_shlibpath_var_GCJ=no 17765 ;; 17766 17767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17768 freebsd* | kfreebsd*-gnu | dragonfly*) 17769 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17770 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17771 hardcode_direct_GCJ=yes 17772 hardcode_shlibpath_var_GCJ=no 17773 ;; 17774 17775 hpux9*) 17776 if test "$GCC" = yes; then 17777 archive_cmds_GCJ='$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' 17778 else 17779 archive_cmds_GCJ='$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' 17780 fi 17781 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17782 hardcode_libdir_separator_GCJ=: 17783 hardcode_direct_GCJ=yes 17784 17785 # hardcode_minus_L: Not really in the search PATH, 17786 # but as the default location of the library. 17787 hardcode_minus_L_GCJ=yes 17788 export_dynamic_flag_spec_GCJ='${wl}-E' 17789 ;; 17790 17791 hpux10*) 17792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17793 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17794 else 17795 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17796 fi 17797 if test "$with_gnu_ld" = no; then 17798 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17799 hardcode_libdir_separator_GCJ=: 17800 17801 hardcode_direct_GCJ=yes 17802 export_dynamic_flag_spec_GCJ='${wl}-E' 17803 17804 # hardcode_minus_L: Not really in the search PATH, 17805 # but as the default location of the library. 17806 hardcode_minus_L_GCJ=yes 17807 fi 17808 ;; 17809 17810 hpux11*) 17811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17812 case $host_cpu in 17813 hppa*64*) 17814 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17815 ;; 17816 ia64*) 17817 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17818 ;; 17819 *) 17820 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17821 ;; 17822 esac 17823 else 17824 case $host_cpu in 17825 hppa*64*) 17826 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17827 ;; 17828 ia64*) 17829 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17830 ;; 17831 *) 17832 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17833 ;; 17834 esac 17835 fi 17836 if test "$with_gnu_ld" = no; then 17837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17838 hardcode_libdir_separator_GCJ=: 17839 17840 case $host_cpu in 17841 hppa*64*|ia64*) 17842 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17843 hardcode_direct_GCJ=no 17844 hardcode_shlibpath_var_GCJ=no 17845 ;; 17846 *) 17847 hardcode_direct_GCJ=yes 17848 export_dynamic_flag_spec_GCJ='${wl}-E' 17849 17850 # hardcode_minus_L: Not really in the search PATH, 17851 # but as the default location of the library. 17852 hardcode_minus_L_GCJ=yes 17853 ;; 17854 esac 17855 fi 17856 ;; 17857 17858 irix5* | irix6* | nonstopux*) 17859 if test "$GCC" = yes; then 17860 archive_cmds_GCJ='$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' 17861 else 17862 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17863 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17864 fi 17865 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17866 hardcode_libdir_separator_GCJ=: 17867 link_all_deplibs_GCJ=yes 17868 ;; 17869 17870 netbsd*) 17871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17872 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17873 else 17874 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17875 fi 17876 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17877 hardcode_direct_GCJ=yes 17878 hardcode_shlibpath_var_GCJ=no 17879 ;; 17880 17881 newsos6) 17882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17883 hardcode_direct_GCJ=yes 17884 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17885 hardcode_libdir_separator_GCJ=: 17886 hardcode_shlibpath_var_GCJ=no 17887 ;; 17888 17889 openbsd*) 17890 hardcode_direct_GCJ=yes 17891 hardcode_shlibpath_var_GCJ=no 17892 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17893 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17894 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17896 export_dynamic_flag_spec_GCJ='${wl}-E' 17897 else 17898 case $host_os in 17899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17900 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17901 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17902 ;; 17903 *) 17904 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17906 ;; 17907 esac 17908 fi 17909 ;; 17910 17911 os2*) 17912 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17913 hardcode_minus_L_GCJ=yes 17914 allow_undefined_flag_GCJ=unsupported 17915 archive_cmds_GCJ='$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' 17916 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17917 ;; 17918 17919 osf3*) 17920 if test "$GCC" = yes; then 17921 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17922 archive_cmds_GCJ='$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' 17923 else 17924 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17925 archive_cmds_GCJ='$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' 17926 fi 17927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17928 hardcode_libdir_separator_GCJ=: 17929 ;; 17930 17931 osf4* | osf5*) # as osf3* with the addition of -msym flag 17932 if test "$GCC" = yes; then 17933 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17934 archive_cmds_GCJ='$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' 17935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17936 else 17937 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17938 archive_cmds_GCJ='$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' 17939 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17940 $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' 17941 17942 # Both c and cxx compiler support -rpath directly 17943 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17944 fi 17945 hardcode_libdir_separator_GCJ=: 17946 ;; 17947 17948 solaris*) 17949 no_undefined_flag_GCJ=' -z text' 17950 if test "$GCC" = yes; then 17951 wlarc='${wl}' 17952 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17953 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17954 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17955 else 17956 wlarc='' 17957 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17958 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17960 fi 17961 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17962 hardcode_shlibpath_var_GCJ=no 17963 case $host_os in 17964 solaris2.[0-5] | solaris2.[0-5].*) ;; 17965 *) 17966 # The compiler driver will combine linker options so we 17967 # cannot just pass the convience library names through 17968 # without $wl, iff we do not link with $LD. 17969 # Luckily, gcc supports the same syntax we need for Sun Studio. 17970 # Supported since Solaris 2.6 (maybe 2.5.1?) 17971 case $wlarc in 17972 '') 17973 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17974 *) 17975 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17976 esac ;; 17977 esac 17978 link_all_deplibs_GCJ=yes 17979 ;; 17980 17981 sunos4*) 17982 if test "x$host_vendor" = xsequent; then 17983 # Use $CC to link under sequent, because it throws in some extra .o 17984 # files that make .init and .fini sections work. 17985 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17986 else 17987 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17988 fi 17989 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17990 hardcode_direct_GCJ=yes 17991 hardcode_minus_L_GCJ=yes 17992 hardcode_shlibpath_var_GCJ=no 17993 ;; 17994 17995 sysv4) 17996 case $host_vendor in 17997 sni) 17998 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17999 hardcode_direct_GCJ=yes # is this really true??? 18000 ;; 18001 siemens) 18002 ## LD is ld it makes a PLAMLIB 18003 ## CC just makes a GrossModule. 18004 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18005 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18006 hardcode_direct_GCJ=no 18007 ;; 18008 motorola) 18009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18010 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18011 ;; 18012 esac 18013 runpath_var='LD_RUN_PATH' 18014 hardcode_shlibpath_var_GCJ=no 18015 ;; 18016 18017 sysv4.3*) 18018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18019 hardcode_shlibpath_var_GCJ=no 18020 export_dynamic_flag_spec_GCJ='-Bexport' 18021 ;; 18022 18023 sysv4*MP*) 18024 if test -d /usr/nec; then 18025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18026 hardcode_shlibpath_var_GCJ=no 18027 runpath_var=LD_RUN_PATH 18028 hardcode_runpath_var=yes 18029 ld_shlibs_GCJ=yes 18030 fi 18031 ;; 18032 18033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18034 no_undefined_flag_GCJ='${wl}-z,text' 18035 archive_cmds_need_lc_GCJ=no 18036 hardcode_shlibpath_var_GCJ=no 18037 runpath_var='LD_RUN_PATH' 18038 18039 if test "$GCC" = yes; then 18040 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18041 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18042 else 18043 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18044 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18045 fi 18046 ;; 18047 18048 sysv5* | sco3.2v5* | sco5v6*) 18049 # Note: We can NOT use -z defs as we might desire, because we do not 18050 # link with -lc, and that would cause any symbols used from libc to 18051 # always be unresolved, which means just about no library would 18052 # ever link correctly. If we're not using GNU ld we use -z text 18053 # though, which does catch some bad symbols but isn't as heavy-handed 18054 # as -z defs. 18055 no_undefined_flag_GCJ='${wl}-z,text' 18056 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18057 archive_cmds_need_lc_GCJ=no 18058 hardcode_shlibpath_var_GCJ=no 18059 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18060 hardcode_libdir_separator_GCJ=':' 18061 link_all_deplibs_GCJ=yes 18062 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18063 runpath_var='LD_RUN_PATH' 18064 18065 if test "$GCC" = yes; then 18066 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18067 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18068 else 18069 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18070 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18071 fi 18072 ;; 18073 18074 uts4*) 18075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18076 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18077 hardcode_shlibpath_var_GCJ=no 18078 ;; 18079 18080 *) 18081 ld_shlibs_GCJ=no 18082 ;; 18083 esac 18084 fi 18085 18086 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18087 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18088 test "$ld_shlibs_GCJ" = no && can_build_shared=no 18089 18090 # 18091 # Do we need to explicitly link libc? 18092 # 18093 case "x$archive_cmds_need_lc_GCJ" in 18094 x|xyes) 18095 # Assume -lc should be added 18096 archive_cmds_need_lc_GCJ=yes 18097 18098 if test "$enable_shared" = yes && test "$GCC" = yes; then 18099 case $archive_cmds_GCJ in 18100 *'~'*) 18101 # FIXME: we may have to deal with multi-command sequences. 18102 ;; 18103 '$CC '*) 18104 # Test whether the compiler implicitly links with -lc since on some 18105 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18106 # to ld, don't add -lc before -lgcc. 18107 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18109 $rm conftest* 18110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18111 18112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18113 (eval $ac_compile) 2>&5 18114 ac_status=$? 18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18116 (exit $ac_status); } 2>conftest.err; then 18117 soname=conftest 18118 lib=conftest 18119 libobjs=conftest.$ac_objext 18120 deplibs= 18121 wl=$lt_prog_compiler_wl_GCJ 18122 pic_flag=$lt_prog_compiler_pic_GCJ 18123 compiler_flags=-v 18124 linker_flags=-v 18125 verstring= 18126 output_objdir=. 18127 libname=conftest 18128 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18129 allow_undefined_flag_GCJ= 18130 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18131 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18132 ac_status=$? 18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18134 (exit $ac_status); } 18135 then 18136 archive_cmds_need_lc_GCJ=no 18137 else 18138 archive_cmds_need_lc_GCJ=yes 18139 fi 18140 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18141 else 18142 cat conftest.err 1>&5 18143 fi 18144 $rm conftest* 18145 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18146 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18147 ;; 18148 esac 18149 fi 18150 ;; 18151 esac 18152 18153 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18154 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18155 library_names_spec= 18156 libname_spec='lib$name' 18157 soname_spec= 18158 shrext_cmds=".so" 18159 postinstall_cmds= 18160 postuninstall_cmds= 18161 finish_cmds= 18162 finish_eval= 18163 shlibpath_var= 18164 shlibpath_overrides_runpath=unknown 18165 version_type=none 18166 dynamic_linker="$host_os ld.so" 18167 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18168 if test "$GCC" = yes; then 18169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18171 # if the path contains ";" then we assume it to be the separator 18172 # otherwise default to the standard path separator (i.e. ":") - it is 18173 # assumed that no part of a normal pathname contains ";" but that should 18174 # okay in the real world where ";" in dirpaths is itself problematic. 18175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18176 else 18177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18178 fi 18179 else 18180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18181 fi 18182 need_lib_prefix=unknown 18183 hardcode_into_libs=no 18184 18185 # when you set need_version to no, make sure it does not cause -set_version 18186 # flags to be left without arguments 18187 need_version=unknown 18188 18189 case $host_os in 18190 aix3*) 18191 version_type=linux 18192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18193 shlibpath_var=LIBPATH 18194 18195 # AIX 3 has no versioning support, so we append a major version to the name. 18196 soname_spec='${libname}${release}${shared_ext}$major' 18197 ;; 18198 18199 aix4* | aix5*) 18200 version_type=linux 18201 need_lib_prefix=no 18202 need_version=no 18203 hardcode_into_libs=yes 18204 if test "$host_cpu" = ia64; then 18205 # AIX 5 supports IA64 18206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18207 shlibpath_var=LD_LIBRARY_PATH 18208 else 18209 # With GCC up to 2.95.x, collect2 would create an import file 18210 # for dependence libraries. The import file would start with 18211 # the line `#! .'. This would cause the generated library to 18212 # depend on `.', always an invalid library. This was fixed in 18213 # development snapshots of GCC prior to 3.0. 18214 case $host_os in 18215 aix4 | aix4.[01] | aix4.[01].*) 18216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18217 echo ' yes ' 18218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18219 : 18220 else 18221 can_build_shared=no 18222 fi 18223 ;; 18224 esac 18225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18226 # soname into executable. Probably we can add versioning support to 18227 # collect2, so additional links can be useful in future. 18228 if test "$aix_use_runtimelinking" = yes; then 18229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18230 # instead of lib<name>.a to let people know that these are not 18231 # typical AIX shared libraries. 18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18233 else 18234 # We preserve .a as extension for shared libraries through AIX4.2 18235 # and later when we are not doing run time linking. 18236 library_names_spec='${libname}${release}.a $libname.a' 18237 soname_spec='${libname}${release}${shared_ext}$major' 18238 fi 18239 shlibpath_var=LIBPATH 18240 fi 18241 ;; 18242 18243 amigaos*) 18244 library_names_spec='$libname.ixlibrary $libname.a' 18245 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18246 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' 18247 ;; 18248 18249 beos*) 18250 library_names_spec='${libname}${shared_ext}' 18251 dynamic_linker="$host_os ld.so" 18252 shlibpath_var=LIBRARY_PATH 18253 ;; 18254 18255 bsdi[45]*) 18256 version_type=linux 18257 need_version=no 18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18259 soname_spec='${libname}${release}${shared_ext}$major' 18260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18261 shlibpath_var=LD_LIBRARY_PATH 18262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18264 # the default ld.so.conf also contains /usr/contrib/lib and 18265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18266 # libtool to hard-code these into programs 18267 ;; 18268 18269 cygwin* | mingw* | pw32*) 18270 version_type=windows 18271 shrext_cmds=".dll" 18272 need_version=no 18273 need_lib_prefix=no 18274 18275 case $GCC,$host_os in 18276 yes,cygwin* | yes,mingw* | yes,pw32*) 18277 library_names_spec='$libname.dll.a' 18278 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18279 postinstall_cmds='base_file=`basename \${file}`~ 18280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18281 dldir=$destdir/`dirname \$dlpath`~ 18282 test -d \$dldir || mkdir -p \$dldir~ 18283 $install_prog $dir/$dlname \$dldir/$dlname~ 18284 chmod a+x \$dldir/$dlname' 18285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18286 dlpath=$dir/\$dldll~ 18287 $rm \$dlpath' 18288 shlibpath_overrides_runpath=yes 18289 18290 case $host_os in 18291 cygwin*) 18292 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18294 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18295 ;; 18296 mingw*) 18297 # MinGW DLLs use traditional 'lib' prefix 18298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18300 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18301 # It is most probably a Windows format PATH printed by 18302 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18303 # path with ; separators, and with drive letters. We can handle the 18304 # drive letters (cygwin fileutils understands them), so leave them, 18305 # especially as we might pass files found there to a mingw objdump, 18306 # which wouldn't understand a cygwinified path. Ahh. 18307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18308 else 18309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18310 fi 18311 ;; 18312 pw32*) 18313 # pw32 DLLs use 'pw' prefix rather than 'lib' 18314 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18315 ;; 18316 esac 18317 ;; 18318 18319 *) 18320 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18321 ;; 18322 esac 18323 dynamic_linker='Win32 ld.exe' 18324 # FIXME: first we should search . and the directory the executable is in 18325 shlibpath_var=PATH 18326 ;; 18327 18328 darwin* | rhapsody*) 18329 dynamic_linker="$host_os dyld" 18330 version_type=darwin 18331 need_lib_prefix=no 18332 need_version=no 18333 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18334 soname_spec='${libname}${release}${major}$shared_ext' 18335 shlibpath_overrides_runpath=yes 18336 shlibpath_var=DYLD_LIBRARY_PATH 18337 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18339 if test "$GCC" = yes; then 18340 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18341 else 18342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18343 fi 18344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18345 ;; 18346 18347 dgux*) 18348 version_type=linux 18349 need_lib_prefix=no 18350 need_version=no 18351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18352 soname_spec='${libname}${release}${shared_ext}$major' 18353 shlibpath_var=LD_LIBRARY_PATH 18354 ;; 18355 18356 freebsd1*) 18357 dynamic_linker=no 18358 ;; 18359 18360 kfreebsd*-gnu) 18361 version_type=linux 18362 need_lib_prefix=no 18363 need_version=no 18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18365 soname_spec='${libname}${release}${shared_ext}$major' 18366 shlibpath_var=LD_LIBRARY_PATH 18367 shlibpath_overrides_runpath=no 18368 hardcode_into_libs=yes 18369 dynamic_linker='GNU ld.so' 18370 ;; 18371 18372 freebsd* | dragonfly*) 18373 # DragonFly does not have aout. When/if they implement a new 18374 # versioning mechanism, adjust this. 18375 if test -x /usr/bin/objformat; then 18376 objformat=`/usr/bin/objformat` 18377 else 18378 case $host_os in 18379 freebsd[123]*) objformat=aout ;; 18380 *) objformat=elf ;; 18381 esac 18382 fi 18383 version_type=freebsd-$objformat 18384 case $version_type in 18385 freebsd-elf*) 18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18387 need_version=no 18388 need_lib_prefix=no 18389 ;; 18390 freebsd-*) 18391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18392 need_version=yes 18393 ;; 18394 esac 18395 shlibpath_var=LD_LIBRARY_PATH 18396 case $host_os in 18397 freebsd2*) 18398 shlibpath_overrides_runpath=yes 18399 ;; 18400 freebsd3.[01]* | freebsdelf3.[01]*) 18401 shlibpath_overrides_runpath=yes 18402 hardcode_into_libs=yes 18403 ;; 18404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18406 shlibpath_overrides_runpath=no 18407 hardcode_into_libs=yes 18408 ;; 18409 freebsd*) # from 4.6 on 18410 shlibpath_overrides_runpath=yes 18411 hardcode_into_libs=yes 18412 ;; 18413 esac 18414 ;; 18415 18416 gnu*) 18417 version_type=linux 18418 need_lib_prefix=no 18419 need_version=no 18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18421 soname_spec='${libname}${release}${shared_ext}$major' 18422 shlibpath_var=LD_LIBRARY_PATH 18423 hardcode_into_libs=yes 18424 ;; 18425 18426 hpux9* | hpux10* | hpux11*) 18427 # Give a soname corresponding to the major version so that dld.sl refuses to 18428 # link against other versions. 18429 version_type=sunos 18430 need_lib_prefix=no 18431 need_version=no 18432 case $host_cpu in 18433 ia64*) 18434 shrext_cmds='.so' 18435 hardcode_into_libs=yes 18436 dynamic_linker="$host_os dld.so" 18437 shlibpath_var=LD_LIBRARY_PATH 18438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18440 soname_spec='${libname}${release}${shared_ext}$major' 18441 if test "X$HPUX_IA64_MODE" = X32; then 18442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18443 else 18444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18445 fi 18446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18447 ;; 18448 hppa*64*) 18449 shrext_cmds='.sl' 18450 hardcode_into_libs=yes 18451 dynamic_linker="$host_os dld.sl" 18452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18455 soname_spec='${libname}${release}${shared_ext}$major' 18456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18458 ;; 18459 *) 18460 shrext_cmds='.sl' 18461 dynamic_linker="$host_os dld.sl" 18462 shlibpath_var=SHLIB_PATH 18463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18465 soname_spec='${libname}${release}${shared_ext}$major' 18466 ;; 18467 esac 18468 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18469 postinstall_cmds='chmod 555 $lib' 18470 ;; 18471 18472 interix3*) 18473 version_type=linux 18474 need_lib_prefix=no 18475 need_version=no 18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18477 soname_spec='${libname}${release}${shared_ext}$major' 18478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18479 shlibpath_var=LD_LIBRARY_PATH 18480 shlibpath_overrides_runpath=no 18481 hardcode_into_libs=yes 18482 ;; 18483 18484 irix5* | irix6* | nonstopux*) 18485 case $host_os in 18486 nonstopux*) version_type=nonstopux ;; 18487 *) 18488 if test "$lt_cv_prog_gnu_ld" = yes; then 18489 version_type=linux 18490 else 18491 version_type=irix 18492 fi ;; 18493 esac 18494 need_lib_prefix=no 18495 need_version=no 18496 soname_spec='${libname}${release}${shared_ext}$major' 18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18498 case $host_os in 18499 irix5* | nonstopux*) 18500 libsuff= shlibsuff= 18501 ;; 18502 *) 18503 case $LD in # libtool.m4 will add one of these switches to LD 18504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18505 libsuff= shlibsuff= libmagic=32-bit;; 18506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18507 libsuff=32 shlibsuff=N32 libmagic=N32;; 18508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18509 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18510 *) libsuff= shlibsuff= libmagic=never-match;; 18511 esac 18512 ;; 18513 esac 18514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18515 shlibpath_overrides_runpath=no 18516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18518 hardcode_into_libs=yes 18519 ;; 18520 18521 # No shared lib support for Linux oldld, aout, or coff. 18522 linux*oldld* | linux*aout* | linux*coff*) 18523 dynamic_linker=no 18524 ;; 18525 18526 # This must be Linux ELF. 18527 linux*) 18528 version_type=linux 18529 need_lib_prefix=no 18530 need_version=no 18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18532 soname_spec='${libname}${release}${shared_ext}$major' 18533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18534 shlibpath_var=LD_LIBRARY_PATH 18535 shlibpath_overrides_runpath=no 18536 # This implies no fast_install, which is unacceptable. 18537 # Some rework will be needed to allow for fast_install 18538 # before this can be enabled. 18539 hardcode_into_libs=yes 18540 18541 # Append ld.so.conf contents to the search path 18542 if test -f /etc/ld.so.conf; then 18543 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18545 fi 18546 18547 # We used to test for /lib/ld.so.1 and disable shared libraries on 18548 # powerpc, because MkLinux only supported shared libraries with the 18549 # GNU dynamic linker. Since this was broken with cross compilers, 18550 # most powerpc-linux boxes support dynamic linking these days and 18551 # people can always --disable-shared, the test was removed, and we 18552 # assume the GNU/Linux dynamic linker is in use. 18553 dynamic_linker='GNU/Linux ld.so' 18554 ;; 18555 18556 knetbsd*-gnu) 18557 version_type=linux 18558 need_lib_prefix=no 18559 need_version=no 18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 shlibpath_var=LD_LIBRARY_PATH 18563 shlibpath_overrides_runpath=no 18564 hardcode_into_libs=yes 18565 dynamic_linker='GNU ld.so' 18566 ;; 18567 18568 netbsd*) 18569 version_type=sunos 18570 need_lib_prefix=no 18571 need_version=no 18572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18575 dynamic_linker='NetBSD (a.out) ld.so' 18576 else 18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18578 soname_spec='${libname}${release}${shared_ext}$major' 18579 dynamic_linker='NetBSD ld.elf_so' 18580 fi 18581 shlibpath_var=LD_LIBRARY_PATH 18582 shlibpath_overrides_runpath=yes 18583 hardcode_into_libs=yes 18584 ;; 18585 18586 newsos6) 18587 version_type=linux 18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18589 shlibpath_var=LD_LIBRARY_PATH 18590 shlibpath_overrides_runpath=yes 18591 ;; 18592 18593 nto-qnx*) 18594 version_type=linux 18595 need_lib_prefix=no 18596 need_version=no 18597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18598 soname_spec='${libname}${release}${shared_ext}$major' 18599 shlibpath_var=LD_LIBRARY_PATH 18600 shlibpath_overrides_runpath=yes 18601 ;; 18602 18603 openbsd*) 18604 version_type=sunos 18605 sys_lib_dlsearch_path_spec="/usr/lib" 18606 need_lib_prefix=no 18607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18608 case $host_os in 18609 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18610 *) need_version=no ;; 18611 esac 18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18614 shlibpath_var=LD_LIBRARY_PATH 18615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18616 case $host_os in 18617 openbsd2.[89] | openbsd2.[89].*) 18618 shlibpath_overrides_runpath=no 18619 ;; 18620 *) 18621 shlibpath_overrides_runpath=yes 18622 ;; 18623 esac 18624 else 18625 shlibpath_overrides_runpath=yes 18626 fi 18627 ;; 18628 18629 os2*) 18630 libname_spec='$name' 18631 shrext_cmds=".dll" 18632 need_lib_prefix=no 18633 library_names_spec='$libname${shared_ext} $libname.a' 18634 dynamic_linker='OS/2 ld.exe' 18635 shlibpath_var=LIBPATH 18636 ;; 18637 18638 osf3* | osf4* | osf5*) 18639 version_type=osf 18640 need_lib_prefix=no 18641 need_version=no 18642 soname_spec='${libname}${release}${shared_ext}$major' 18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18644 shlibpath_var=LD_LIBRARY_PATH 18645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18647 ;; 18648 18649 solaris*) 18650 version_type=linux 18651 need_lib_prefix=no 18652 need_version=no 18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18654 soname_spec='${libname}${release}${shared_ext}$major' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 shlibpath_overrides_runpath=yes 18657 hardcode_into_libs=yes 18658 # ldd complains unless libraries are executable 18659 postinstall_cmds='chmod +x $lib' 18660 ;; 18661 18662 sunos4*) 18663 version_type=sunos 18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18666 shlibpath_var=LD_LIBRARY_PATH 18667 shlibpath_overrides_runpath=yes 18668 if test "$with_gnu_ld" = yes; then 18669 need_lib_prefix=no 18670 fi 18671 need_version=yes 18672 ;; 18673 18674 sysv4 | sysv4.3*) 18675 version_type=linux 18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18677 soname_spec='${libname}${release}${shared_ext}$major' 18678 shlibpath_var=LD_LIBRARY_PATH 18679 case $host_vendor in 18680 sni) 18681 shlibpath_overrides_runpath=no 18682 need_lib_prefix=no 18683 export_dynamic_flag_spec='${wl}-Blargedynsym' 18684 runpath_var=LD_RUN_PATH 18685 ;; 18686 siemens) 18687 need_lib_prefix=no 18688 ;; 18689 motorola) 18690 need_lib_prefix=no 18691 need_version=no 18692 shlibpath_overrides_runpath=no 18693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18694 ;; 18695 esac 18696 ;; 18697 18698 sysv4*MP*) 18699 if test -d /usr/nec ;then 18700 version_type=linux 18701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18702 soname_spec='$libname${shared_ext}.$major' 18703 shlibpath_var=LD_LIBRARY_PATH 18704 fi 18705 ;; 18706 18707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18708 version_type=freebsd-elf 18709 need_lib_prefix=no 18710 need_version=no 18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18712 soname_spec='${libname}${release}${shared_ext}$major' 18713 shlibpath_var=LD_LIBRARY_PATH 18714 hardcode_into_libs=yes 18715 if test "$with_gnu_ld" = yes; then 18716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18717 shlibpath_overrides_runpath=no 18718 else 18719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18720 shlibpath_overrides_runpath=yes 18721 case $host_os in 18722 sco3.2v5*) 18723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18724 ;; 18725 esac 18726 fi 18727 sys_lib_dlsearch_path_spec='/usr/lib' 18728 ;; 18729 18730 uts4*) 18731 version_type=linux 18732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18733 soname_spec='${libname}${release}${shared_ext}$major' 18734 shlibpath_var=LD_LIBRARY_PATH 18735 ;; 18736 18737 *) 18738 dynamic_linker=no 18739 ;; 18740 esac 18741 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18742 echo "${ECHO_T}$dynamic_linker" >&6; } 18743 test "$dynamic_linker" = no && can_build_shared=no 18744 18745 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18746 if test "$GCC" = yes; then 18747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18748 fi 18749 18750 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18751 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18752 hardcode_action_GCJ= 18753 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18754 test -n "$runpath_var_GCJ" || \ 18755 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18756 18757 # We can hardcode non-existant directories. 18758 if test "$hardcode_direct_GCJ" != no && 18759 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18760 # have to relink, otherwise we might link with an installed library 18761 # when we should be linking with a yet-to-be-installed one 18762 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18763 test "$hardcode_minus_L_GCJ" != no; then 18764 # Linking always hardcodes the temporary library directory. 18765 hardcode_action_GCJ=relink 18766 else 18767 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18768 hardcode_action_GCJ=immediate 18769 fi 18770 else 18771 # We cannot hardcode anything, or else we can only hardcode existing 18772 # directories. 18773 hardcode_action_GCJ=unsupported 18774 fi 18775 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18776 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18777 18778 if test "$hardcode_action_GCJ" = relink; then 18779 # Fast installation is not supported 18780 enable_fast_install=no 18781 elif test "$shlibpath_overrides_runpath" = yes || 18782 test "$enable_shared" = no; then 18783 # Fast installation is not necessary 18784 enable_fast_install=needless 18785 fi 18786 18787 18788 # The else clause should only fire when bootstrapping the 18789 # libtool distribution, otherwise you forgot to ship ltmain.sh 18790 # with your package, and you will get complaints that there are 18791 # no rules to generate ltmain.sh. 18792 if test -f "$ltmain"; then 18793 # See if we are running on zsh, and set the options which allow our commands through 18794 # without removal of \ escapes. 18795 if test -n "${ZSH_VERSION+set}" ; then 18796 setopt NO_GLOB_SUBST 18797 fi 18798 # Now quote all the things that may contain metacharacters while being 18799 # careful not to overquote the AC_SUBSTed values. We take copies of the 18800 # variables and quote the copies for generation of the libtool script. 18801 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18802 SED SHELL STRIP \ 18803 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18804 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18805 deplibs_check_method reload_flag reload_cmds need_locks \ 18806 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18807 lt_cv_sys_global_symbol_to_c_name_address \ 18808 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18809 old_postinstall_cmds old_postuninstall_cmds \ 18810 compiler_GCJ \ 18811 CC_GCJ \ 18812 LD_GCJ \ 18813 lt_prog_compiler_wl_GCJ \ 18814 lt_prog_compiler_pic_GCJ \ 18815 lt_prog_compiler_static_GCJ \ 18816 lt_prog_compiler_no_builtin_flag_GCJ \ 18817 export_dynamic_flag_spec_GCJ \ 18818 thread_safe_flag_spec_GCJ \ 18819 whole_archive_flag_spec_GCJ \ 18820 enable_shared_with_static_runtimes_GCJ \ 18821 old_archive_cmds_GCJ \ 18822 old_archive_from_new_cmds_GCJ \ 18823 predep_objects_GCJ \ 18824 postdep_objects_GCJ \ 18825 predeps_GCJ \ 18826 postdeps_GCJ \ 18827 compiler_lib_search_path_GCJ \ 18828 archive_cmds_GCJ \ 18829 archive_expsym_cmds_GCJ \ 18830 postinstall_cmds_GCJ \ 18831 postuninstall_cmds_GCJ \ 18832 old_archive_from_expsyms_cmds_GCJ \ 18833 allow_undefined_flag_GCJ \ 18834 no_undefined_flag_GCJ \ 18835 export_symbols_cmds_GCJ \ 18836 hardcode_libdir_flag_spec_GCJ \ 18837 hardcode_libdir_flag_spec_ld_GCJ \ 18838 hardcode_libdir_separator_GCJ \ 18839 hardcode_automatic_GCJ \ 18840 module_cmds_GCJ \ 18841 module_expsym_cmds_GCJ \ 18842 lt_cv_prog_compiler_c_o_GCJ \ 18843 exclude_expsyms_GCJ \ 18844 include_expsyms_GCJ; do 18845 18846 case $var in 18847 old_archive_cmds_GCJ | \ 18848 old_archive_from_new_cmds_GCJ | \ 18849 archive_cmds_GCJ | \ 18850 archive_expsym_cmds_GCJ | \ 18851 module_cmds_GCJ | \ 18852 module_expsym_cmds_GCJ | \ 18853 old_archive_from_expsyms_cmds_GCJ | \ 18854 export_symbols_cmds_GCJ | \ 18855 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18856 postinstall_cmds | postuninstall_cmds | \ 18857 old_postinstall_cmds | old_postuninstall_cmds | \ 18858 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18859 # Double-quote double-evaled strings. 18860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18861 ;; 18862 *) 18863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18864 ;; 18865 esac 18866 done 18867 18868 case $lt_echo in 18869 *'\$0 --fallback-echo"') 18870 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18871 ;; 18872 esac 18873 18874 cfgfile="$ofile" 18875 18876 cat <<__EOF__ >> "$cfgfile" 18877 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 18878 18879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18880 18881 # Shell to use when invoking shell scripts. 18882 SHELL=$lt_SHELL 18883 18884 # Whether or not to build shared libraries. 18885 build_libtool_libs=$enable_shared 18886 18887 # Whether or not to build static libraries. 18888 build_old_libs=$enable_static 18889 18890 # Whether or not to add -lc for building shared libraries. 18891 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18892 18893 # Whether or not to disallow shared libs when runtime libs are static 18894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18895 18896 # Whether or not to optimize for fast installation. 18897 fast_install=$enable_fast_install 18898 18899 # The host system. 18900 host_alias=$host_alias 18901 host=$host 18902 host_os=$host_os 18903 18904 # The build system. 18905 build_alias=$build_alias 18906 build=$build 18907 build_os=$build_os 18908 18909 # An echo program that does not interpret backslashes. 18910 echo=$lt_echo 18911 18912 # The archiver. 18913 AR=$lt_AR 18914 AR_FLAGS=$lt_AR_FLAGS 18915 18916 # A C compiler. 18917 LTCC=$lt_LTCC 18918 18919 # LTCC compiler flags. 18920 LTCFLAGS=$lt_LTCFLAGS 18921 18922 # A language-specific compiler. 18923 CC=$lt_compiler_GCJ 18924 18925 # Is the compiler the GNU C compiler? 18926 with_gcc=$GCC_GCJ 18927 18928 # An ERE matcher. 18929 EGREP=$lt_EGREP 18930 18931 # The linker used to build libraries. 18932 LD=$lt_LD_GCJ 18933 18934 # Whether we need hard or soft links. 18935 LN_S=$lt_LN_S 18936 18937 # A BSD-compatible nm program. 18938 NM=$lt_NM 18939 18940 # A symbol stripping program 18941 STRIP=$lt_STRIP 18942 18943 # Used to examine libraries when file_magic_cmd begins "file" 18944 MAGIC_CMD=$MAGIC_CMD 18945 18946 # Used on cygwin: DLL creation program. 18947 DLLTOOL="$DLLTOOL" 18948 18949 # Used on cygwin: object dumper. 18950 OBJDUMP="$OBJDUMP" 18951 18952 # Used on cygwin: assembler. 18953 AS="$AS" 18954 18955 # The name of the directory that contains temporary libtool files. 18956 objdir=$objdir 18957 18958 # How to create reloadable object files. 18959 reload_flag=$lt_reload_flag 18960 reload_cmds=$lt_reload_cmds 18961 18962 # How to pass a linker flag through the compiler. 18963 wl=$lt_lt_prog_compiler_wl_GCJ 18964 18965 # Object file suffix (normally "o"). 18966 objext="$ac_objext" 18967 18968 # Old archive suffix (normally "a"). 18969 libext="$libext" 18970 18971 # Shared library suffix (normally ".so"). 18972 shrext_cmds='$shrext_cmds' 18973 18974 # Executable file suffix (normally ""). 18975 exeext="$exeext" 18976 18977 # Additional compiler flags for building library objects. 18978 pic_flag=$lt_lt_prog_compiler_pic_GCJ 18979 pic_mode=$pic_mode 18980 18981 # What is the maximum length of a command? 18982 max_cmd_len=$lt_cv_sys_max_cmd_len 18983 18984 # Does compiler simultaneously support -c and -o options? 18985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18986 18987 # Must we lock files when doing compilation? 18988 need_locks=$lt_need_locks 18989 18990 # Do we need the lib prefix for modules? 18991 need_lib_prefix=$need_lib_prefix 18992 18993 # Do we need a version for libraries? 18994 need_version=$need_version 18995 18996 # Whether dlopen is supported. 18997 dlopen_support=$enable_dlopen 18998 18999 # Whether dlopen of programs is supported. 19000 dlopen_self=$enable_dlopen_self 19001 19002 # Whether dlopen of statically linked programs is supported. 19003 dlopen_self_static=$enable_dlopen_self_static 19004 19005 # Compiler flag to prevent dynamic linking. 19006 link_static_flag=$lt_lt_prog_compiler_static_GCJ 19007 19008 # Compiler flag to turn off builtin functions. 19009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19010 19011 # Compiler flag to allow reflexive dlopens. 19012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19013 19014 # Compiler flag to generate shared objects directly from archives. 19015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19016 19017 # Compiler flag to generate thread-safe objects. 19018 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19019 19020 # Library versioning type. 19021 version_type=$version_type 19022 19023 # Format of library name prefix. 19024 libname_spec=$lt_libname_spec 19025 19026 # List of archive names. First name is the real one, the rest are links. 19027 # The last name is the one that the linker finds with -lNAME. 19028 library_names_spec=$lt_library_names_spec 19029 19030 # The coded name of the library, if different from the real name. 19031 soname_spec=$lt_soname_spec 19032 19033 # Commands used to build and install an old-style archive. 19034 RANLIB=$lt_RANLIB 19035 old_archive_cmds=$lt_old_archive_cmds_GCJ 19036 old_postinstall_cmds=$lt_old_postinstall_cmds 19037 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19038 19039 # Create an old-style archive from a shared archive. 19040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19041 19042 # Create a temporary old-style archive to link instead of a shared archive. 19043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19044 19045 # Commands used to build and install a shared archive. 19046 archive_cmds=$lt_archive_cmds_GCJ 19047 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19048 postinstall_cmds=$lt_postinstall_cmds 19049 postuninstall_cmds=$lt_postuninstall_cmds 19050 19051 # Commands used to build a loadable module (assumed same as above if empty) 19052 module_cmds=$lt_module_cmds_GCJ 19053 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19054 19055 # Commands to strip libraries. 19056 old_striplib=$lt_old_striplib 19057 striplib=$lt_striplib 19058 19059 # Dependencies to place before the objects being linked to create a 19060 # shared library. 19061 predep_objects=$lt_predep_objects_GCJ 19062 19063 # Dependencies to place after the objects being linked to create a 19064 # shared library. 19065 postdep_objects=$lt_postdep_objects_GCJ 19066 19067 # Dependencies to place before the objects being linked to create a 19068 # shared library. 19069 predeps=$lt_predeps_GCJ 19070 19071 # Dependencies to place after the objects being linked to create a 19072 # shared library. 19073 postdeps=$lt_postdeps_GCJ 19074 19075 # The library search path used internally by the compiler when linking 19076 # a shared library. 19077 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19078 19079 # Method to check whether dependent libraries are shared objects. 19080 deplibs_check_method=$lt_deplibs_check_method 19081 19082 # Command to use when deplibs_check_method == file_magic. 19083 file_magic_cmd=$lt_file_magic_cmd 19084 19085 # Flag that allows shared libraries with undefined symbols to be built. 19086 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19087 19088 # Flag that forces no undefined symbols. 19089 no_undefined_flag=$lt_no_undefined_flag_GCJ 19090 19091 # Commands used to finish a libtool library installation in a directory. 19092 finish_cmds=$lt_finish_cmds 19093 19094 # Same as above, but a single script fragment to be evaled but not shown. 19095 finish_eval=$lt_finish_eval 19096 19097 # Take the output of nm and produce a listing of raw symbols and C names. 19098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19099 19100 # Transform the output of nm in a proper C declaration 19101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19102 19103 # Transform the output of nm in a C name address pair 19104 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19105 19106 # This is the shared library runtime path variable. 19107 runpath_var=$runpath_var 19108 19109 # This is the shared library path variable. 19110 shlibpath_var=$shlibpath_var 19111 19112 # Is shlibpath searched before the hard-coded library search path? 19113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19114 19115 # How to hardcode a shared library path into an executable. 19116 hardcode_action=$hardcode_action_GCJ 19117 19118 # Whether we should hardcode library paths into libraries. 19119 hardcode_into_libs=$hardcode_into_libs 19120 19121 # Flag to hardcode \$libdir into a binary during linking. 19122 # This must work even if \$libdir does not exist. 19123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19124 19125 # If ld is used when linking, flag to hardcode \$libdir into 19126 # a binary during linking. This must work even if \$libdir does 19127 # not exist. 19128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19129 19130 # Whether we need a single -rpath flag with a separated argument. 19131 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19132 19133 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19134 # resulting binary. 19135 hardcode_direct=$hardcode_direct_GCJ 19136 19137 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19138 # resulting binary. 19139 hardcode_minus_L=$hardcode_minus_L_GCJ 19140 19141 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19142 # the resulting binary. 19143 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19144 19145 # Set to yes if building a shared library automatically hardcodes DIR into the library 19146 # and all subsequent libraries and executables linked against it. 19147 hardcode_automatic=$hardcode_automatic_GCJ 19148 19149 # Variables whose values should be saved in libtool wrapper scripts and 19150 # restored at relink time. 19151 variables_saved_for_relink="$variables_saved_for_relink" 19152 19153 # Whether libtool must link a program against all its dependency libraries. 19154 link_all_deplibs=$link_all_deplibs_GCJ 19155 19156 # Compile-time system search path for libraries 19157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19158 19159 # Run-time system search path for libraries 19160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19161 19162 # Fix the shell variable \$srcfile for the compiler. 19163 fix_srcfile_path="$fix_srcfile_path_GCJ" 19164 19165 # Set to yes if exported symbols are required. 19166 always_export_symbols=$always_export_symbols_GCJ 19167 19168 # The commands to list exported symbols. 19169 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19170 19171 # The commands to extract the exported symbol list from a shared archive. 19172 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19173 19174 # Symbols that should not be listed in the preloaded symbols. 19175 exclude_expsyms=$lt_exclude_expsyms_GCJ 19176 19177 # Symbols that must always be exported. 19178 include_expsyms=$lt_include_expsyms_GCJ 19179 19180 # ### END LIBTOOL TAG CONFIG: $tagname 19181 19182 __EOF__ 19183 19184 19185 else 19186 # If there is no Makefile yet, we rely on a make rule to execute 19187 # `config.status --recheck' to rerun these tests and create the 19188 # libtool script then. 19189 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19190 if test -f "$ltmain_in"; then 19191 test -f Makefile && make "$ltmain" 19192 fi 19193 fi 19194 19195 19196 ac_ext=c 19197 ac_cpp='$CPP $CPPFLAGS' 19198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19200 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19201 19202 CC="$lt_save_CC" 19203 19204 else 19205 tagname="" 19206 fi 19207 ;; 19208 19209 RC) 19210 19211 19212 # Source file extension for RC test sources. 19213 ac_ext=rc 19214 19215 # Object file extension for compiled RC test sources. 19216 objext=o 19217 objext_RC=$objext 19218 19219 # Code to be used in simple compile tests 19220 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19221 19222 # Code to be used in simple link tests 19223 lt_simple_link_test_code="$lt_simple_compile_test_code" 19224 19225 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19226 19227 # If no C compiler was specified, use CC. 19228 LTCC=${LTCC-"$CC"} 19229 19230 # If no C compiler flags were specified, use CFLAGS. 19231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19232 19233 # Allow CC to be a program name with arguments. 19234 compiler=$CC 19235 19236 19237 # save warnings/boilerplate of simple test code 19238 ac_outfile=conftest.$ac_objext 19239 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19241 _lt_compiler_boilerplate=`cat conftest.err` 19242 $rm conftest* 19243 19244 ac_outfile=conftest.$ac_objext 19245 printf "$lt_simple_link_test_code" >conftest.$ac_ext 19246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19247 _lt_linker_boilerplate=`cat conftest.err` 19248 $rm conftest* 19249 19250 19251 # Allow CC to be a program name with arguments. 19252 lt_save_CC="$CC" 19253 CC=${RC-"windres"} 19254 compiler=$CC 19255 compiler_RC=$CC 19256 for cc_temp in $compiler""; do 19257 case $cc_temp in 19258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19260 \-*) ;; 19261 *) break;; 19262 esac 19263 done 19264 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19265 19266 lt_cv_prog_compiler_c_o_RC=yes 19267 19268 # The else clause should only fire when bootstrapping the 19269 # libtool distribution, otherwise you forgot to ship ltmain.sh 19270 # with your package, and you will get complaints that there are 19271 # no rules to generate ltmain.sh. 19272 if test -f "$ltmain"; then 19273 # See if we are running on zsh, and set the options which allow our commands through 19274 # without removal of \ escapes. 19275 if test -n "${ZSH_VERSION+set}" ; then 19276 setopt NO_GLOB_SUBST 19277 fi 19278 # Now quote all the things that may contain metacharacters while being 19279 # careful not to overquote the AC_SUBSTed values. We take copies of the 19280 # variables and quote the copies for generation of the libtool script. 19281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19282 SED SHELL STRIP \ 19283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19285 deplibs_check_method reload_flag reload_cmds need_locks \ 19286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19287 lt_cv_sys_global_symbol_to_c_name_address \ 19288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19289 old_postinstall_cmds old_postuninstall_cmds \ 19290 compiler_RC \ 19291 CC_RC \ 19292 LD_RC \ 19293 lt_prog_compiler_wl_RC \ 19294 lt_prog_compiler_pic_RC \ 19295 lt_prog_compiler_static_RC \ 19296 lt_prog_compiler_no_builtin_flag_RC \ 19297 export_dynamic_flag_spec_RC \ 19298 thread_safe_flag_spec_RC \ 19299 whole_archive_flag_spec_RC \ 19300 enable_shared_with_static_runtimes_RC \ 19301 old_archive_cmds_RC \ 19302 old_archive_from_new_cmds_RC \ 19303 predep_objects_RC \ 19304 postdep_objects_RC \ 19305 predeps_RC \ 19306 postdeps_RC \ 19307 compiler_lib_search_path_RC \ 19308 archive_cmds_RC \ 19309 archive_expsym_cmds_RC \ 19310 postinstall_cmds_RC \ 19311 postuninstall_cmds_RC \ 19312 old_archive_from_expsyms_cmds_RC \ 19313 allow_undefined_flag_RC \ 19314 no_undefined_flag_RC \ 19315 export_symbols_cmds_RC \ 19316 hardcode_libdir_flag_spec_RC \ 19317 hardcode_libdir_flag_spec_ld_RC \ 19318 hardcode_libdir_separator_RC \ 19319 hardcode_automatic_RC \ 19320 module_cmds_RC \ 19321 module_expsym_cmds_RC \ 19322 lt_cv_prog_compiler_c_o_RC \ 19323 exclude_expsyms_RC \ 19324 include_expsyms_RC; do 19325 19326 case $var in 19327 old_archive_cmds_RC | \ 19328 old_archive_from_new_cmds_RC | \ 19329 archive_cmds_RC | \ 19330 archive_expsym_cmds_RC | \ 19331 module_cmds_RC | \ 19332 module_expsym_cmds_RC | \ 19333 old_archive_from_expsyms_cmds_RC | \ 19334 export_symbols_cmds_RC | \ 19335 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19336 postinstall_cmds | postuninstall_cmds | \ 19337 old_postinstall_cmds | old_postuninstall_cmds | \ 19338 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19339 # Double-quote double-evaled strings. 19340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19341 ;; 19342 *) 19343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19344 ;; 19345 esac 19346 done 19347 19348 case $lt_echo in 19349 *'\$0 --fallback-echo"') 19350 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19351 ;; 19352 esac 19353 19354 cfgfile="$ofile" 19355 19356 cat <<__EOF__ >> "$cfgfile" 19357 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19358 19359 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19360 19361 # Shell to use when invoking shell scripts. 19362 SHELL=$lt_SHELL 19363 19364 # Whether or not to build shared libraries. 19365 build_libtool_libs=$enable_shared 19366 19367 # Whether or not to build static libraries. 19368 build_old_libs=$enable_static 19369 19370 # Whether or not to add -lc for building shared libraries. 19371 build_libtool_need_lc=$archive_cmds_need_lc_RC 19372 19373 # Whether or not to disallow shared libs when runtime libs are static 19374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19375 19376 # Whether or not to optimize for fast installation. 19377 fast_install=$enable_fast_install 19378 19379 # The host system. 19380 host_alias=$host_alias 19381 host=$host 19382 host_os=$host_os 19383 19384 # The build system. 19385 build_alias=$build_alias 19386 build=$build 19387 build_os=$build_os 19388 19389 # An echo program that does not interpret backslashes. 19390 echo=$lt_echo 19391 19392 # The archiver. 19393 AR=$lt_AR 19394 AR_FLAGS=$lt_AR_FLAGS 19395 19396 # A C compiler. 19397 LTCC=$lt_LTCC 19398 19399 # LTCC compiler flags. 19400 LTCFLAGS=$lt_LTCFLAGS 19401 19402 # A language-specific compiler. 19403 CC=$lt_compiler_RC 19404 19405 # Is the compiler the GNU C compiler? 19406 with_gcc=$GCC_RC 19407 19408 # An ERE matcher. 19409 EGREP=$lt_EGREP 19410 19411 # The linker used to build libraries. 19412 LD=$lt_LD_RC 19413 19414 # Whether we need hard or soft links. 19415 LN_S=$lt_LN_S 19416 19417 # A BSD-compatible nm program. 19418 NM=$lt_NM 19419 19420 # A symbol stripping program 19421 STRIP=$lt_STRIP 19422 19423 # Used to examine libraries when file_magic_cmd begins "file" 19424 MAGIC_CMD=$MAGIC_CMD 19425 19426 # Used on cygwin: DLL creation program. 19427 DLLTOOL="$DLLTOOL" 19428 19429 # Used on cygwin: object dumper. 19430 OBJDUMP="$OBJDUMP" 19431 19432 # Used on cygwin: assembler. 19433 AS="$AS" 19434 19435 # The name of the directory that contains temporary libtool files. 19436 objdir=$objdir 19437 19438 # How to create reloadable object files. 19439 reload_flag=$lt_reload_flag 19440 reload_cmds=$lt_reload_cmds 19441 19442 # How to pass a linker flag through the compiler. 19443 wl=$lt_lt_prog_compiler_wl_RC 19444 19445 # Object file suffix (normally "o"). 19446 objext="$ac_objext" 19447 19448 # Old archive suffix (normally "a"). 19449 libext="$libext" 19450 19451 # Shared library suffix (normally ".so"). 19452 shrext_cmds='$shrext_cmds' 19453 19454 # Executable file suffix (normally ""). 19455 exeext="$exeext" 19456 19457 # Additional compiler flags for building library objects. 19458 pic_flag=$lt_lt_prog_compiler_pic_RC 19459 pic_mode=$pic_mode 19460 19461 # What is the maximum length of a command? 19462 max_cmd_len=$lt_cv_sys_max_cmd_len 19463 19464 # Does compiler simultaneously support -c and -o options? 19465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19466 19467 # Must we lock files when doing compilation? 19468 need_locks=$lt_need_locks 19469 19470 # Do we need the lib prefix for modules? 19471 need_lib_prefix=$need_lib_prefix 19472 19473 # Do we need a version for libraries? 19474 need_version=$need_version 19475 19476 # Whether dlopen is supported. 19477 dlopen_support=$enable_dlopen 19478 19479 # Whether dlopen of programs is supported. 19480 dlopen_self=$enable_dlopen_self 19481 19482 # Whether dlopen of statically linked programs is supported. 19483 dlopen_self_static=$enable_dlopen_self_static 19484 19485 # Compiler flag to prevent dynamic linking. 19486 link_static_flag=$lt_lt_prog_compiler_static_RC 19487 19488 # Compiler flag to turn off builtin functions. 19489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19490 19491 # Compiler flag to allow reflexive dlopens. 19492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19493 19494 # Compiler flag to generate shared objects directly from archives. 19495 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19496 19497 # Compiler flag to generate thread-safe objects. 19498 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19499 19500 # Library versioning type. 19501 version_type=$version_type 19502 19503 # Format of library name prefix. 19504 libname_spec=$lt_libname_spec 19505 19506 # List of archive names. First name is the real one, the rest are links. 19507 # The last name is the one that the linker finds with -lNAME. 19508 library_names_spec=$lt_library_names_spec 19509 19510 # The coded name of the library, if different from the real name. 19511 soname_spec=$lt_soname_spec 19512 19513 # Commands used to build and install an old-style archive. 19514 RANLIB=$lt_RANLIB 19515 old_archive_cmds=$lt_old_archive_cmds_RC 19516 old_postinstall_cmds=$lt_old_postinstall_cmds 19517 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19518 19519 # Create an old-style archive from a shared archive. 19520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19521 19522 # Create a temporary old-style archive to link instead of a shared archive. 19523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19524 19525 # Commands used to build and install a shared archive. 19526 archive_cmds=$lt_archive_cmds_RC 19527 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19528 postinstall_cmds=$lt_postinstall_cmds 19529 postuninstall_cmds=$lt_postuninstall_cmds 19530 19531 # Commands used to build a loadable module (assumed same as above if empty) 19532 module_cmds=$lt_module_cmds_RC 19533 module_expsym_cmds=$lt_module_expsym_cmds_RC 19534 19535 # Commands to strip libraries. 19536 old_striplib=$lt_old_striplib 19537 striplib=$lt_striplib 19538 19539 # Dependencies to place before the objects being linked to create a 19540 # shared library. 19541 predep_objects=$lt_predep_objects_RC 19542 19543 # Dependencies to place after the objects being linked to create a 19544 # shared library. 19545 postdep_objects=$lt_postdep_objects_RC 19546 19547 # Dependencies to place before the objects being linked to create a 19548 # shared library. 19549 predeps=$lt_predeps_RC 19550 19551 # Dependencies to place after the objects being linked to create a 19552 # shared library. 19553 postdeps=$lt_postdeps_RC 19554 19555 # The library search path used internally by the compiler when linking 19556 # a shared library. 19557 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19558 19559 # Method to check whether dependent libraries are shared objects. 19560 deplibs_check_method=$lt_deplibs_check_method 19561 19562 # Command to use when deplibs_check_method == file_magic. 19563 file_magic_cmd=$lt_file_magic_cmd 19564 19565 # Flag that allows shared libraries with undefined symbols to be built. 19566 allow_undefined_flag=$lt_allow_undefined_flag_RC 19567 19568 # Flag that forces no undefined symbols. 19569 no_undefined_flag=$lt_no_undefined_flag_RC 19570 19571 # Commands used to finish a libtool library installation in a directory. 19572 finish_cmds=$lt_finish_cmds 19573 19574 # Same as above, but a single script fragment to be evaled but not shown. 19575 finish_eval=$lt_finish_eval 19576 19577 # Take the output of nm and produce a listing of raw symbols and C names. 19578 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19579 19580 # Transform the output of nm in a proper C declaration 19581 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19582 19583 # Transform the output of nm in a C name address pair 19584 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19585 19586 # This is the shared library runtime path variable. 19587 runpath_var=$runpath_var 19588 19589 # This is the shared library path variable. 19590 shlibpath_var=$shlibpath_var 19591 19592 # Is shlibpath searched before the hard-coded library search path? 19593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19594 19595 # How to hardcode a shared library path into an executable. 19596 hardcode_action=$hardcode_action_RC 19597 19598 # Whether we should hardcode library paths into libraries. 19599 hardcode_into_libs=$hardcode_into_libs 19600 19601 # Flag to hardcode \$libdir into a binary during linking. 19602 # This must work even if \$libdir does not exist. 19603 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19604 19605 # If ld is used when linking, flag to hardcode \$libdir into 19606 # a binary during linking. This must work even if \$libdir does 19607 # not exist. 19608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19609 19610 # Whether we need a single -rpath flag with a separated argument. 19611 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19612 19613 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19614 # resulting binary. 19615 hardcode_direct=$hardcode_direct_RC 19616 19617 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19618 # resulting binary. 19619 hardcode_minus_L=$hardcode_minus_L_RC 19620 19621 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19622 # the resulting binary. 19623 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19624 19625 # Set to yes if building a shared library automatically hardcodes DIR into the library 19626 # and all subsequent libraries and executables linked against it. 19627 hardcode_automatic=$hardcode_automatic_RC 19628 19629 # Variables whose values should be saved in libtool wrapper scripts and 19630 # restored at relink time. 19631 variables_saved_for_relink="$variables_saved_for_relink" 19632 19633 # Whether libtool must link a program against all its dependency libraries. 19634 link_all_deplibs=$link_all_deplibs_RC 19635 19636 # Compile-time system search path for libraries 19637 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19638 19639 # Run-time system search path for libraries 19640 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19641 19642 # Fix the shell variable \$srcfile for the compiler. 19643 fix_srcfile_path="$fix_srcfile_path_RC" 19644 19645 # Set to yes if exported symbols are required. 19646 always_export_symbols=$always_export_symbols_RC 19647 19648 # The commands to list exported symbols. 19649 export_symbols_cmds=$lt_export_symbols_cmds_RC 19650 19651 # The commands to extract the exported symbol list from a shared archive. 19652 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19653 19654 # Symbols that should not be listed in the preloaded symbols. 19655 exclude_expsyms=$lt_exclude_expsyms_RC 19656 19657 # Symbols that must always be exported. 19658 include_expsyms=$lt_include_expsyms_RC 19659 19660 # ### END LIBTOOL TAG CONFIG: $tagname 19661 19662 __EOF__ 19663 19664 19665 else 19666 # If there is no Makefile yet, we rely on a make rule to execute 19667 # `config.status --recheck' to rerun these tests and create the 19668 # libtool script then. 19669 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19670 if test -f "$ltmain_in"; then 19671 test -f Makefile && make "$ltmain" 19672 fi 19673 fi 19674 19675 19676 ac_ext=c 19677 ac_cpp='$CPP $CPPFLAGS' 19678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19680 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19681 19682 CC="$lt_save_CC" 19683 19684 ;; 19685 19686 *) 19687 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19688 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19689 { (exit 1); exit 1; }; } 19690 ;; 19691 esac 19692 19693 # Append the new tag name to the list of available tags. 19694 if test -n "$tagname" ; then 19695 available_tags="$available_tags $tagname" 19696 fi 19697 fi 19698 done 19699 IFS="$lt_save_ifs" 19700 19701 # Now substitute the updated list of available tags. 19702 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19703 mv "${ofile}T" "$ofile" 19704 chmod +x "$ofile" 19705 else 19706 rm -f "${ofile}T" 19707 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19708 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19709 { (exit 1); exit 1; }; } 19710 fi 19711 fi 19712 19713 19714 19715 # This can be used to rebuild libtool when needed 19716 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19717 19718 # Always use our own libtool. 19719 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19720 19721 # Prevent multiple expansion 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 aclocaldir='${datadir}/aclocal' 19752 19753 19754 19755 acl_libdirstem=lib 19756 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 19757 if test -n "$searchpath"; then 19758 acl_save_IFS="${IFS= }"; IFS=":" 19759 for searchdir in $searchpath; do 19760 if test -d "$searchdir"; then 19761 case "$searchdir" in 19762 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 19763 *) searchdir=`cd "$searchdir" && pwd` 19764 case "$searchdir" in 19765 */lib64 ) acl_libdirstem=lib64 ;; 19766 esac ;; 19767 esac 19768 fi 19769 done 19770 IFS="$acl_save_IFS" 19771 fi 19772 19773 LIBDIRSTEM=$acl_libdirstem 19774 19775 19776 ac_config_files="$ac_config_files Makefile" 19777 19778 19779 ac_config_files="$ac_config_files m4/Makefile" 19780 19781 19782 ac_config_files="$ac_config_files tests/Makefile" 19783 19784 19785 cat >confcache <<\_ACEOF 19786 # This file is a shell script that caches the results of configure 19787 # tests run on this system so they can be shared between configure 19788 # scripts and configure runs, see configure's option --config-cache. 19789 # It is not useful on other systems. If it contains results you don't 19790 # want to keep, you may remove or edit it. 19791 # 19792 # config.status only pays attention to the cache file if you give it 19793 # the --recheck option to rerun configure. 19794 # 19795 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19796 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19797 # following values. 19798 19799 _ACEOF 19800 19801 # The following way of writing the cache mishandles newlines in values, 19802 # but we know of no workaround that is simple, portable, and efficient. 19803 # So, we kill variables containing newlines. 19804 # Ultrix sh set writes to stderr and can't be redirected directly, 19805 # and sets the high bit in the cache file unless we assign to the vars. 19806 ( 19807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19808 eval ac_val=\$$ac_var 19809 case $ac_val in #( 19810 *${as_nl}*) 19811 case $ac_var in #( 19812 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19813 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19814 esac 19815 case $ac_var in #( 19816 _ | IFS | as_nl) ;; #( 19817 *) $as_unset $ac_var ;; 19818 esac ;; 19819 esac 19820 done 19821 19822 (set) 2>&1 | 19823 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19824 *${as_nl}ac_space=\ *) 19825 # `set' does not quote correctly, so add quotes (double-quote 19826 # substitution turns \\\\ into \\, and sed turns \\ into \). 19827 sed -n \ 19828 "s/'/'\\\\''/g; 19829 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19830 ;; #( 19831 *) 19832 # `set' quotes correctly as required by POSIX, so do not add quotes. 19833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19834 ;; 19835 esac | 19836 sort 19837 ) | 19838 sed ' 19839 /^ac_cv_env_/b end 19840 t clear 19841 :clear 19842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19843 t end 19844 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19845 :end' >>confcache 19846 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19847 if test -w "$cache_file"; then 19848 test "x$cache_file" != "x/dev/null" && 19849 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19850 echo "$as_me: updating cache $cache_file" >&6;} 19851 cat confcache >$cache_file 19852 else 19853 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19854 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19855 fi 19856 fi 19857 rm -f confcache 19858 19859 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19860 # Let make expand exec_prefix. 19861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19862 19863 # Transform confdefs.h into DEFS. 19864 # Protect against shell expansion while executing Makefile rules. 19865 # Protect against Makefile macro expansion. 19866 # 19867 # If the first sed substitution is executed (which looks for macros that 19868 # take arguments), then branch to the quote section. Otherwise, 19869 # look for a macro that doesn't take arguments. 19870 ac_script=' 19871 t clear 19872 :clear 19873 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19874 t quote 19875 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19876 t quote 19877 b any 19878 :quote 19879 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19880 s/\[/\\&/g 19881 s/\]/\\&/g 19882 s/\$/$$/g 19883 H 19884 :any 19885 ${ 19886 g 19887 s/^\n// 19888 s/\n/ /g 19889 p 19890 } 19891 ' 19892 DEFS=`sed -n "$ac_script" confdefs.h` 19893 19894 19895 ac_libobjs= 19896 ac_ltlibobjs= 19897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19898 # 1. Remove the extension, and $U if already installed. 19899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19900 ac_i=`echo "$ac_i" | sed "$ac_script"` 19901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19902 # will be set to the directory where LIBOBJS objects are built. 19903 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19904 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19905 done 19906 LIBOBJS=$ac_libobjs 19907 19908 LTLIBOBJS=$ac_ltlibobjs 19909 19910 19911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19912 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19913 Usually this means the macro was only invoked conditionally." >&5 19914 echo "$as_me: error: conditional \"AMDEP\" was never defined. 19915 Usually this means the macro was only invoked conditionally." >&2;} 19916 { (exit 1); exit 1; }; } 19917 fi 19918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19919 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19920 Usually this means the macro was only invoked conditionally." >&5 19921 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19922 Usually this means the macro was only invoked conditionally." >&2;} 19923 { (exit 1); exit 1; }; } 19924 fi 19925 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19926 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19927 Usually this means the macro was only invoked conditionally." >&5 19928 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19929 Usually this means the macro was only invoked conditionally." >&2;} 19930 { (exit 1); exit 1; }; } 19931 fi 19932 19933 : ${CONFIG_STATUS=./config.status} 19934 ac_clean_files_save=$ac_clean_files 19935 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19937 echo "$as_me: creating $CONFIG_STATUS" >&6;} 19938 cat >$CONFIG_STATUS <<_ACEOF 19939 #! $SHELL 19940 # Generated by $as_me. 19941 # Run this file to recreate the current configuration. 19942 # Compiler output produced by configure, useful for debugging 19943 # configure, is in config.log if it exists. 19944 19945 debug=false 19946 ac_cs_recheck=false 19947 ac_cs_silent=false 19948 SHELL=\${CONFIG_SHELL-$SHELL} 19949 _ACEOF 19950 19951 cat >>$CONFIG_STATUS <<\_ACEOF 19952 ## --------------------- ## 19953 ## M4sh Initialization. ## 19954 ## --------------------- ## 19955 19956 # Be more Bourne compatible 19957 DUALCASE=1; export DUALCASE # for MKS sh 19958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19959 emulate sh 19960 NULLCMD=: 19961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19962 # is contrary to our usage. Disable this feature. 19963 alias -g '${1+"$@"}'='"$@"' 19964 setopt NO_GLOB_SUBST 19965 else 19966 case `(set -o) 2>/dev/null` in 19967 *posix*) set -o posix ;; 19968 esac 19969 19970 fi 19971 19972 19973 19974 19975 # PATH needs CR 19976 # Avoid depending upon Character Ranges. 19977 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19978 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19979 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19980 as_cr_digits='0123456789' 19981 as_cr_alnum=$as_cr_Letters$as_cr_digits 19982 19983 # The user is always right. 19984 if test "${PATH_SEPARATOR+set}" != set; then 19985 echo "#! /bin/sh" >conf$$.sh 19986 echo "exit 0" >>conf$$.sh 19987 chmod +x conf$$.sh 19988 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19989 PATH_SEPARATOR=';' 19990 else 19991 PATH_SEPARATOR=: 19992 fi 19993 rm -f conf$$.sh 19994 fi 19995 19996 # Support unset when possible. 19997 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19998 as_unset=unset 19999 else 20000 as_unset=false 20001 fi 20002 20003 20004 # IFS 20005 # We need space, tab and new line, in precisely that order. Quoting is 20006 # there to prevent editors from complaining about space-tab. 20007 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 20008 # splitting by setting IFS to empty value.) 20009 as_nl=' 20010 ' 20011 IFS=" "" $as_nl" 20012 20013 # Find who we are. Look in the path if we contain no directory separator. 20014 case $0 in 20015 *[\\/]* ) as_myself=$0 ;; 20016 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20017 for as_dir in $PATH 20018 do 20019 IFS=$as_save_IFS 20020 test -z "$as_dir" && as_dir=. 20021 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20022 done 20023 IFS=$as_save_IFS 20024 20025 ;; 20026 esac 20027 # We did not find ourselves, most probably we were run as `sh COMMAND' 20028 # in which case we are not to be found in the path. 20029 if test "x$as_myself" = x; then 20030 as_myself=$0 20031 fi 20032 if test ! -f "$as_myself"; then 20033 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20034 { (exit 1); exit 1; } 20035 fi 20036 20037 # Work around bugs in pre-3.0 UWIN ksh. 20038 for as_var in ENV MAIL MAILPATH 20039 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20040 done 20041 PS1='$ ' 20042 PS2='> ' 20043 PS4='+ ' 20044 20045 # NLS nuisances. 20046 for as_var in \ 20047 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20048 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20049 LC_TELEPHONE LC_TIME 20050 do 20051 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20052 eval $as_var=C; export $as_var 20053 else 20054 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20055 fi 20056 done 20057 20058 # Required to use basename. 20059 if expr a : '\(a\)' >/dev/null 2>&1 && 20060 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20061 as_expr=expr 20062 else 20063 as_expr=false 20064 fi 20065 20066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20067 as_basename=basename 20068 else 20069 as_basename=false 20070 fi 20071 20072 20073 # Name of the executable. 20074 as_me=`$as_basename -- "$0" || 20075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20076 X"$0" : 'X\(//\)$' \| \ 20077 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20078 echo X/"$0" | 20079 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20080 s//\1/ 20081 q 20082 } 20083 /^X\/\(\/\/\)$/{ 20084 s//\1/ 20085 q 20086 } 20087 /^X\/\(\/\).*/{ 20088 s//\1/ 20089 q 20090 } 20091 s/.*/./; q'` 20092 20093 # CDPATH. 20094 $as_unset CDPATH 20095 20096 20097 20098 as_lineno_1=$LINENO 20099 as_lineno_2=$LINENO 20100 test "x$as_lineno_1" != "x$as_lineno_2" && 20101 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20102 20103 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20104 # uniformly replaced by the line number. The first 'sed' inserts a 20105 # line-number line after each line using $LINENO; the second 'sed' 20106 # does the real work. The second script uses 'N' to pair each 20107 # line-number line with the line containing $LINENO, and appends 20108 # trailing '-' during substitution so that $LINENO is not a special 20109 # case at line end. 20110 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20111 # scripts with optimization help from Paolo Bonzini. Blame Lee 20112 # E. McMahon (1931-1989) for sed's syntax. :-) 20113 sed -n ' 20114 p 20115 /[$]LINENO/= 20116 ' <$as_myself | 20117 sed ' 20118 s/[$]LINENO.*/&-/ 20119 t lineno 20120 b 20121 :lineno 20122 N 20123 :loop 20124 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20125 t loop 20126 s/-\n.*// 20127 ' >$as_me.lineno && 20128 chmod +x "$as_me.lineno" || 20129 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20130 { (exit 1); exit 1; }; } 20131 20132 # Don't try to exec as it changes $[0], causing all sort of problems 20133 # (the dirname of $[0] is not the place where we might find the 20134 # original and so on. Autoconf is especially sensitive to this). 20135 . "./$as_me.lineno" 20136 # Exit status is that of the last command. 20137 exit 20138 } 20139 20140 20141 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20142 as_dirname=dirname 20143 else 20144 as_dirname=false 20145 fi 20146 20147 ECHO_C= ECHO_N= ECHO_T= 20148 case `echo -n x` in 20149 -n*) 20150 case `echo 'x\c'` in 20151 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20152 *) ECHO_C='\c';; 20153 esac;; 20154 *) 20155 ECHO_N='-n';; 20156 esac 20157 20158 if expr a : '\(a\)' >/dev/null 2>&1 && 20159 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20160 as_expr=expr 20161 else 20162 as_expr=false 20163 fi 20164 20165 rm -f conf$$ conf$$.exe conf$$.file 20166 if test -d conf$$.dir; then 20167 rm -f conf$$.dir/conf$$.file 20168 else 20169 rm -f conf$$.dir 20170 mkdir conf$$.dir 20171 fi 20172 echo >conf$$.file 20173 if ln -s conf$$.file conf$$ 2>/dev/null; then 20174 as_ln_s='ln -s' 20175 # ... but there are two gotchas: 20176 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20177 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20178 # In both cases, we have to default to `cp -p'. 20179 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20180 as_ln_s='cp -p' 20181 elif ln conf$$.file conf$$ 2>/dev/null; then 20182 as_ln_s=ln 20183 else 20184 as_ln_s='cp -p' 20185 fi 20186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20187 rmdir conf$$.dir 2>/dev/null 20188 20189 if mkdir -p . 2>/dev/null; then 20190 as_mkdir_p=: 20191 else 20192 test -d ./-p && rmdir ./-p 20193 as_mkdir_p=false 20194 fi 20195 20196 if test -x / >/dev/null 2>&1; then 20197 as_test_x='test -x' 20198 else 20199 if ls -dL / >/dev/null 2>&1; then 20200 as_ls_L_option=L 20201 else 20202 as_ls_L_option= 20203 fi 20204 as_test_x=' 20205 eval sh -c '\'' 20206 if test -d "$1"; then 20207 test -d "$1/."; 20208 else 20209 case $1 in 20210 -*)set "./$1";; 20211 esac; 20212 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20213 ???[sx]*):;;*)false;;esac;fi 20214 '\'' sh 20215 ' 20216 fi 20217 as_executable_p=$as_test_x 20218 20219 # Sed expression to map a string onto a valid CPP name. 20220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20221 20222 # Sed expression to map a string onto a valid variable name. 20223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20224 20225 20226 exec 6>&1 20227 20228 # Save the log message, to keep $[0] and so on meaningful, and to 20229 # report actual input values of CONFIG_FILES etc. instead of their 20230 # values after options handling. 20231 ac_log=" 20232 This file was extended by $as_me, which was 20233 generated by GNU Autoconf 2.61. Invocation command line was 20234 20235 CONFIG_FILES = $CONFIG_FILES 20236 CONFIG_HEADERS = $CONFIG_HEADERS 20237 CONFIG_LINKS = $CONFIG_LINKS 20238 CONFIG_COMMANDS = $CONFIG_COMMANDS 20239 $ $0 $@ 20240 20241 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20242 " 20243 20244 _ACEOF 20245 20246 cat >>$CONFIG_STATUS <<_ACEOF 20247 # Files that config.status was made for. 20248 config_files="$ac_config_files" 20249 config_commands="$ac_config_commands" 20250 20251 _ACEOF 20252 20253 cat >>$CONFIG_STATUS <<\_ACEOF 20254 ac_cs_usage="\ 20255 \`$as_me' instantiates files from templates according to the 20256 current configuration. 20257 20258 Usage: $0 [OPTIONS] [FILE]... 20259 20260 -h, --help print this help, then exit 20261 -V, --version print version number and configuration settings, then exit 20262 -q, --quiet do not print progress messages 20263 -d, --debug don't remove temporary files 20264 --recheck update $as_me by reconfiguring in the same conditions 20265 --file=FILE[:TEMPLATE] 20266 instantiate the configuration file FILE 20267 20268 Configuration files: 20269 $config_files 20270 20271 Configuration commands: 20272 $config_commands 20273 20274 Report bugs to <bug-autoconf (at] gnu.org>." 20275 20276 _ACEOF 20277 cat >>$CONFIG_STATUS <<_ACEOF 20278 ac_cs_version="\\ 20279 config.status 20280 configured by $0, generated by GNU Autoconf 2.61, 20281 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20282 20283 Copyright (C) 2006 Free Software Foundation, Inc. 20284 This config.status script is free software; the Free Software Foundation 20285 gives unlimited permission to copy, distribute and modify it." 20286 20287 ac_pwd='$ac_pwd' 20288 srcdir='$srcdir' 20289 INSTALL='$INSTALL' 20290 MKDIR_P='$MKDIR_P' 20291 _ACEOF 20292 20293 cat >>$CONFIG_STATUS <<\_ACEOF 20294 # If no file are specified by the user, then we need to provide default 20295 # value. By we need to know if files were specified by the user. 20296 ac_need_defaults=: 20297 while test $# != 0 20298 do 20299 case $1 in 20300 --*=*) 20301 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20302 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20303 ac_shift=: 20304 ;; 20305 *) 20306 ac_option=$1 20307 ac_optarg=$2 20308 ac_shift=shift 20309 ;; 20310 esac 20311 20312 case $ac_option in 20313 # Handling of the options. 20314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20315 ac_cs_recheck=: ;; 20316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20317 echo "$ac_cs_version"; exit ;; 20318 --debug | --debu | --deb | --de | --d | -d ) 20319 debug=: ;; 20320 --file | --fil | --fi | --f ) 20321 $ac_shift 20322 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20323 ac_need_defaults=false;; 20324 --he | --h | --help | --hel | -h ) 20325 echo "$ac_cs_usage"; exit ;; 20326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20327 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20328 ac_cs_silent=: ;; 20329 20330 # This is an error. 20331 -*) { echo "$as_me: error: unrecognized option: $1 20332 Try \`$0 --help' for more information." >&2 20333 { (exit 1); exit 1; }; } ;; 20334 20335 *) ac_config_targets="$ac_config_targets $1" 20336 ac_need_defaults=false ;; 20337 20338 esac 20339 shift 20340 done 20341 20342 ac_configure_extra_args= 20343 20344 if $ac_cs_silent; then 20345 exec 6>/dev/null 20346 ac_configure_extra_args="$ac_configure_extra_args --silent" 20347 fi 20348 20349 _ACEOF 20350 cat >>$CONFIG_STATUS <<_ACEOF 20351 if \$ac_cs_recheck; then 20352 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20353 CONFIG_SHELL=$SHELL 20354 export CONFIG_SHELL 20355 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20356 fi 20357 20358 _ACEOF 20359 cat >>$CONFIG_STATUS <<\_ACEOF 20360 exec 5>>config.log 20361 { 20362 echo 20363 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20364 ## Running $as_me. ## 20365 _ASBOX 20366 echo "$ac_log" 20367 } >&5 20368 20369 _ACEOF 20370 cat >>$CONFIG_STATUS <<_ACEOF 20371 # 20372 # INIT-COMMANDS 20373 # 20374 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20375 20376 _ACEOF 20377 20378 cat >>$CONFIG_STATUS <<\_ACEOF 20379 20380 # Handling of arguments. 20381 for ac_config_target in $ac_config_targets 20382 do 20383 case $ac_config_target in 20384 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20386 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 20387 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20388 20389 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20390 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20391 { (exit 1); exit 1; }; };; 20392 esac 20393 done 20394 20395 20396 # If the user did not use the arguments to specify the items to instantiate, 20397 # then the envvar interface is used. Set only those that are not. 20398 # We use the long form for the default assignment because of an extremely 20399 # bizarre bug on SunOS 4.1.3. 20400 if $ac_need_defaults; then 20401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20403 fi 20404 20405 # Have a temporary directory for convenience. Make it in the build tree 20406 # simply because there is no reason against having it here, and in addition, 20407 # creating and moving files from /tmp can sometimes cause problems. 20408 # Hook for its removal unless debugging. 20409 # Note that there is a small window in which the directory will not be cleaned: 20410 # after its creation but before its name has been assigned to `$tmp'. 20411 $debug || 20412 { 20413 tmp= 20414 trap 'exit_status=$? 20415 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20416 ' 0 20417 trap '{ (exit 1); exit 1; }' 1 2 13 15 20418 } 20419 # Create a (secure) tmp directory for tmp files. 20420 20421 { 20422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20423 test -n "$tmp" && test -d "$tmp" 20424 } || 20425 { 20426 tmp=./conf$$-$RANDOM 20427 (umask 077 && mkdir "$tmp") 20428 } || 20429 { 20430 echo "$me: cannot create a temporary directory in ." >&2 20431 { (exit 1); exit 1; } 20432 } 20433 20434 # 20435 # Set up the sed scripts for CONFIG_FILES section. 20436 # 20437 20438 # No need to generate the scripts if there are no CONFIG_FILES. 20439 # This happens for instance when ./config.status config.h 20440 if test -n "$CONFIG_FILES"; then 20441 20442 _ACEOF 20443 20444 20445 20446 ac_delim='%!_!# ' 20447 for ac_last_try in false false false false false :; do 20448 cat >conf$$subs.sed <<_ACEOF 20449 SHELL!$SHELL$ac_delim 20450 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20451 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20452 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20453 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20454 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20455 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20456 exec_prefix!$exec_prefix$ac_delim 20457 prefix!$prefix$ac_delim 20458 program_transform_name!$program_transform_name$ac_delim 20459 bindir!$bindir$ac_delim 20460 sbindir!$sbindir$ac_delim 20461 libexecdir!$libexecdir$ac_delim 20462 datarootdir!$datarootdir$ac_delim 20463 datadir!$datadir$ac_delim 20464 sysconfdir!$sysconfdir$ac_delim 20465 sharedstatedir!$sharedstatedir$ac_delim 20466 localstatedir!$localstatedir$ac_delim 20467 includedir!$includedir$ac_delim 20468 oldincludedir!$oldincludedir$ac_delim 20469 docdir!$docdir$ac_delim 20470 infodir!$infodir$ac_delim 20471 htmldir!$htmldir$ac_delim 20472 dvidir!$dvidir$ac_delim 20473 pdfdir!$pdfdir$ac_delim 20474 psdir!$psdir$ac_delim 20475 libdir!$libdir$ac_delim 20476 localedir!$localedir$ac_delim 20477 mandir!$mandir$ac_delim 20478 DEFS!$DEFS$ac_delim 20479 ECHO_C!$ECHO_C$ac_delim 20480 ECHO_N!$ECHO_N$ac_delim 20481 ECHO_T!$ECHO_T$ac_delim 20482 LIBS!$LIBS$ac_delim 20483 build_alias!$build_alias$ac_delim 20484 host_alias!$host_alias$ac_delim 20485 target_alias!$target_alias$ac_delim 20486 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20487 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20488 INSTALL_DATA!$INSTALL_DATA$ac_delim 20489 am__isrc!$am__isrc$ac_delim 20490 CYGPATH_W!$CYGPATH_W$ac_delim 20491 PACKAGE!$PACKAGE$ac_delim 20492 VERSION!$VERSION$ac_delim 20493 ACLOCAL!$ACLOCAL$ac_delim 20494 AUTOCONF!$AUTOCONF$ac_delim 20495 AUTOMAKE!$AUTOMAKE$ac_delim 20496 AUTOHEADER!$AUTOHEADER$ac_delim 20497 MAKEINFO!$MAKEINFO$ac_delim 20498 install_sh!$install_sh$ac_delim 20499 STRIP!$STRIP$ac_delim 20500 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20501 mkdir_p!$mkdir_p$ac_delim 20502 AWK!$AWK$ac_delim 20503 SET_MAKE!$SET_MAKE$ac_delim 20504 am__leading_dot!$am__leading_dot$ac_delim 20505 AMTAR!$AMTAR$ac_delim 20506 am__tar!$am__tar$ac_delim 20507 am__untar!$am__untar$ac_delim 20508 CC!$CC$ac_delim 20509 CFLAGS!$CFLAGS$ac_delim 20510 LDFLAGS!$LDFLAGS$ac_delim 20511 CPPFLAGS!$CPPFLAGS$ac_delim 20512 ac_ct_CC!$ac_ct_CC$ac_delim 20513 EXEEXT!$EXEEXT$ac_delim 20514 OBJEXT!$OBJEXT$ac_delim 20515 DEPDIR!$DEPDIR$ac_delim 20516 am__include!$am__include$ac_delim 20517 am__quote!$am__quote$ac_delim 20518 AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20519 AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20520 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20521 CCDEPMODE!$CCDEPMODE$ac_delim 20522 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20523 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20524 build!$build$ac_delim 20525 build_cpu!$build_cpu$ac_delim 20526 build_vendor!$build_vendor$ac_delim 20527 build_os!$build_os$ac_delim 20528 host!$host$ac_delim 20529 host_cpu!$host_cpu$ac_delim 20530 host_vendor!$host_vendor$ac_delim 20531 host_os!$host_os$ac_delim 20532 GREP!$GREP$ac_delim 20533 EGREP!$EGREP$ac_delim 20534 LN_S!$LN_S$ac_delim 20535 ECHO!$ECHO$ac_delim 20536 AR!$AR$ac_delim 20537 RANLIB!$RANLIB$ac_delim 20538 DLLTOOL!$DLLTOOL$ac_delim 20539 AS!$AS$ac_delim 20540 OBJDUMP!$OBJDUMP$ac_delim 20541 CPP!$CPP$ac_delim 20542 CXX!$CXX$ac_delim 20543 CXXFLAGS!$CXXFLAGS$ac_delim 20544 ac_ct_CXX!$ac_ct_CXX$ac_delim 20545 CXXDEPMODE!$CXXDEPMODE$ac_delim 20546 _ACEOF 20547 20548 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20549 break 20550 elif $ac_last_try; then 20551 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20552 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20553 { (exit 1); exit 1; }; } 20554 else 20555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20556 fi 20557 done 20558 20559 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20560 if test -n "$ac_eof"; then 20561 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20562 ac_eof=`expr $ac_eof + 1` 20563 fi 20564 20565 cat >>$CONFIG_STATUS <<_ACEOF 20566 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20568 _ACEOF 20569 sed ' 20570 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20571 s/^/s,@/; s/!/@,|#_!!_#|/ 20572 :n 20573 t n 20574 s/'"$ac_delim"'$/,g/; t 20575 s/$/\\/; p 20576 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20577 ' >>$CONFIG_STATUS <conf$$subs.sed 20578 rm -f conf$$subs.sed 20579 cat >>$CONFIG_STATUS <<_ACEOF 20580 CEOF$ac_eof 20581 _ACEOF 20582 20583 20584 ac_delim='%!_!# ' 20585 for ac_last_try in false false false false false :; do 20586 cat >conf$$subs.sed <<_ACEOF 20587 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20588 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20589 CXXCPP!$CXXCPP$ac_delim 20590 F77!$F77$ac_delim 20591 FFLAGS!$FFLAGS$ac_delim 20592 ac_ct_F77!$ac_ct_F77$ac_delim 20593 LIBTOOL!$LIBTOOL$ac_delim 20594 GCC!$GCC$ac_delim 20595 LD!$LD$ac_delim 20596 with_gnu_ld!$with_gnu_ld$ac_delim 20597 aclocaldir!$aclocaldir$ac_delim 20598 LIBDIRSTEM!$LIBDIRSTEM$ac_delim 20599 LIBOBJS!$LIBOBJS$ac_delim 20600 LTLIBOBJS!$LTLIBOBJS$ac_delim 20601 _ACEOF 20602 20603 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then 20604 break 20605 elif $ac_last_try; then 20606 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20607 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20608 { (exit 1); exit 1; }; } 20609 else 20610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20611 fi 20612 done 20613 20614 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20615 if test -n "$ac_eof"; then 20616 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20617 ac_eof=`expr $ac_eof + 1` 20618 fi 20619 20620 cat >>$CONFIG_STATUS <<_ACEOF 20621 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20623 _ACEOF 20624 sed ' 20625 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20626 s/^/s,@/; s/!/@,|#_!!_#|/ 20627 :n 20628 t n 20629 s/'"$ac_delim"'$/,g/; t 20630 s/$/\\/; p 20631 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20632 ' >>$CONFIG_STATUS <conf$$subs.sed 20633 rm -f conf$$subs.sed 20634 cat >>$CONFIG_STATUS <<_ACEOF 20635 :end 20636 s/|#_!!_#|//g 20637 CEOF$ac_eof 20638 _ACEOF 20639 20640 20641 # VPATH may cause trouble with some makes, so we remove $(srcdir), 20642 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20643 # trailing colons and then remove the whole line if VPATH becomes empty 20644 # (actually we leave an empty line to preserve line numbers). 20645 if test "x$srcdir" = x.; then 20646 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20647 s/:*\$(srcdir):*/:/ 20648 s/:*\${srcdir}:*/:/ 20649 s/:*@srcdir@:*/:/ 20650 s/^\([^=]*=[ ]*\):*/\1/ 20651 s/:*$// 20652 s/^[^=]*=[ ]*$// 20653 }' 20654 fi 20655 20656 cat >>$CONFIG_STATUS <<\_ACEOF 20657 fi # test -n "$CONFIG_FILES" 20658 20659 20660 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 20661 do 20662 case $ac_tag in 20663 :[FHLC]) ac_mode=$ac_tag; continue;; 20664 esac 20665 case $ac_mode$ac_tag in 20666 :[FHL]*:*);; 20667 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20668 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20669 { (exit 1); exit 1; }; };; 20670 :[FH]-) ac_tag=-:-;; 20671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20672 esac 20673 ac_save_IFS=$IFS 20674 IFS=: 20675 set x $ac_tag 20676 IFS=$ac_save_IFS 20677 shift 20678 ac_file=$1 20679 shift 20680 20681 case $ac_mode in 20682 :L) ac_source=$1;; 20683 :[FH]) 20684 ac_file_inputs= 20685 for ac_f 20686 do 20687 case $ac_f in 20688 -) ac_f="$tmp/stdin";; 20689 *) # Look for the file first in the build tree, then in the source tree 20690 # (if the path is not absolute). The absolute path cannot be DOS-style, 20691 # because $ac_f cannot contain `:'. 20692 test -f "$ac_f" || 20693 case $ac_f in 20694 [\\/$]*) false;; 20695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20696 esac || 20697 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20698 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20699 { (exit 1); exit 1; }; };; 20700 esac 20701 ac_file_inputs="$ac_file_inputs $ac_f" 20702 done 20703 20704 # Let's still pretend it is `configure' which instantiates (i.e., don't 20705 # use $as_me), people would be surprised to read: 20706 # /* config.h. Generated by config.status. */ 20707 configure_input="Generated from "`IFS=: 20708 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20709 if test x"$ac_file" != x-; then 20710 configure_input="$ac_file. $configure_input" 20711 { echo "$as_me:$LINENO: creating $ac_file" >&5 20712 echo "$as_me: creating $ac_file" >&6;} 20713 fi 20714 20715 case $ac_tag in 20716 *:-:* | *:-) cat >"$tmp/stdin";; 20717 esac 20718 ;; 20719 esac 20720 20721 ac_dir=`$as_dirname -- "$ac_file" || 20722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20723 X"$ac_file" : 'X\(//\)[^/]' \| \ 20724 X"$ac_file" : 'X\(//\)$' \| \ 20725 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20726 echo X"$ac_file" | 20727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20728 s//\1/ 20729 q 20730 } 20731 /^X\(\/\/\)[^/].*/{ 20732 s//\1/ 20733 q 20734 } 20735 /^X\(\/\/\)$/{ 20736 s//\1/ 20737 q 20738 } 20739 /^X\(\/\).*/{ 20740 s//\1/ 20741 q 20742 } 20743 s/.*/./; q'` 20744 { as_dir="$ac_dir" 20745 case $as_dir in #( 20746 -*) as_dir=./$as_dir;; 20747 esac 20748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20749 as_dirs= 20750 while :; do 20751 case $as_dir in #( 20752 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20753 *) as_qdir=$as_dir;; 20754 esac 20755 as_dirs="'$as_qdir' $as_dirs" 20756 as_dir=`$as_dirname -- "$as_dir" || 20757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20758 X"$as_dir" : 'X\(//\)[^/]' \| \ 20759 X"$as_dir" : 'X\(//\)$' \| \ 20760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20761 echo X"$as_dir" | 20762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20763 s//\1/ 20764 q 20765 } 20766 /^X\(\/\/\)[^/].*/{ 20767 s//\1/ 20768 q 20769 } 20770 /^X\(\/\/\)$/{ 20771 s//\1/ 20772 q 20773 } 20774 /^X\(\/\).*/{ 20775 s//\1/ 20776 q 20777 } 20778 s/.*/./; q'` 20779 test -d "$as_dir" && break 20780 done 20781 test -z "$as_dirs" || eval "mkdir $as_dirs" 20782 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20783 echo "$as_me: error: cannot create directory $as_dir" >&2;} 20784 { (exit 1); exit 1; }; }; } 20785 ac_builddir=. 20786 20787 case "$ac_dir" in 20788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20789 *) 20790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20791 # A ".." for each directory in $ac_dir_suffix. 20792 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20793 case $ac_top_builddir_sub in 20794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20796 esac ;; 20797 esac 20798 ac_abs_top_builddir=$ac_pwd 20799 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20800 # for backward compatibility: 20801 ac_top_builddir=$ac_top_build_prefix 20802 20803 case $srcdir in 20804 .) # We are building in place. 20805 ac_srcdir=. 20806 ac_top_srcdir=$ac_top_builddir_sub 20807 ac_abs_top_srcdir=$ac_pwd ;; 20808 [\\/]* | ?:[\\/]* ) # Absolute name. 20809 ac_srcdir=$srcdir$ac_dir_suffix; 20810 ac_top_srcdir=$srcdir 20811 ac_abs_top_srcdir=$srcdir ;; 20812 *) # Relative name. 20813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20814 ac_top_srcdir=$ac_top_build_prefix$srcdir 20815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20816 esac 20817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20818 20819 20820 case $ac_mode in 20821 :F) 20822 # 20823 # CONFIG_FILE 20824 # 20825 20826 case $INSTALL in 20827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20829 esac 20830 ac_MKDIR_P=$MKDIR_P 20831 case $MKDIR_P in 20832 [\\/$]* | ?:[\\/]* ) ;; 20833 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20834 esac 20835 _ACEOF 20836 20837 cat >>$CONFIG_STATUS <<\_ACEOF 20838 # If the template does not know about datarootdir, expand it. 20839 # FIXME: This hack should be removed a few years after 2.60. 20840 ac_datarootdir_hack=; ac_datarootdir_seen= 20841 20842 case `sed -n '/datarootdir/ { 20843 p 20844 q 20845 } 20846 /@datadir@/p 20847 /@docdir@/p 20848 /@infodir@/p 20849 /@localedir@/p 20850 /@mandir@/p 20851 ' $ac_file_inputs` in 20852 *datarootdir*) ac_datarootdir_seen=yes;; 20853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20854 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20855 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20856 _ACEOF 20857 cat >>$CONFIG_STATUS <<_ACEOF 20858 ac_datarootdir_hack=' 20859 s&@datadir@&$datadir&g 20860 s&@docdir@&$docdir&g 20861 s&@infodir@&$infodir&g 20862 s&@localedir@&$localedir&g 20863 s&@mandir@&$mandir&g 20864 s&\\\${datarootdir}&$datarootdir&g' ;; 20865 esac 20866 _ACEOF 20867 20868 # Neutralize VPATH when `$srcdir' = `.'. 20869 # Shell code in configure.ac might set extrasub. 20870 # FIXME: do we really want to maintain this feature? 20871 cat >>$CONFIG_STATUS <<_ACEOF 20872 sed "$ac_vpsub 20873 $extrasub 20874 _ACEOF 20875 cat >>$CONFIG_STATUS <<\_ACEOF 20876 :t 20877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20878 s&@configure_input@&$configure_input&;t t 20879 s&@top_builddir@&$ac_top_builddir_sub&;t t 20880 s&@srcdir@&$ac_srcdir&;t t 20881 s&@abs_srcdir@&$ac_abs_srcdir&;t t 20882 s&@top_srcdir@&$ac_top_srcdir&;t t 20883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20884 s&@builddir@&$ac_builddir&;t t 20885 s&@abs_builddir@&$ac_abs_builddir&;t t 20886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20887 s&@INSTALL@&$ac_INSTALL&;t t 20888 s&@MKDIR_P@&$ac_MKDIR_P&;t t 20889 $ac_datarootdir_hack 20890 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20891 20892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20896 which seems to be undefined. Please make sure it is defined." >&5 20897 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20898 which seems to be undefined. Please make sure it is defined." >&2;} 20899 20900 rm -f "$tmp/stdin" 20901 case $ac_file in 20902 -) cat "$tmp/out"; rm -f "$tmp/out";; 20903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20904 esac 20905 ;; 20906 20907 20908 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20909 echo "$as_me: executing $ac_file commands" >&6;} 20910 ;; 20911 esac 20912 20913 20914 case $ac_file$ac_mode in 20915 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20916 # Strip MF so we end up with the name of the file. 20917 mf=`echo "$mf" | sed -e 's/:.*$//'` 20918 # Check whether this is an Automake generated Makefile or not. 20919 # We used to match only the files named `Makefile.in', but 20920 # some people rename them; so instead we look at the file content. 20921 # Grep'ing the first line is not enough: some people post-process 20922 # each Makefile.in and add a new line on top of each file to say so. 20923 # Grep'ing the whole file is not good either: AIX grep has a line 20924 # limit of 2048, but all sed's we know have understand at least 4000. 20925 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 20926 dirpart=`$as_dirname -- "$mf" || 20927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20928 X"$mf" : 'X\(//\)[^/]' \| \ 20929 X"$mf" : 'X\(//\)$' \| \ 20930 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20931 echo X"$mf" | 20932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20933 s//\1/ 20934 q 20935 } 20936 /^X\(\/\/\)[^/].*/{ 20937 s//\1/ 20938 q 20939 } 20940 /^X\(\/\/\)$/{ 20941 s//\1/ 20942 q 20943 } 20944 /^X\(\/\).*/{ 20945 s//\1/ 20946 q 20947 } 20948 s/.*/./; q'` 20949 else 20950 continue 20951 fi 20952 # Extract the definition of DEPDIR, am__include, and am__quote 20953 # from the Makefile without running `make'. 20954 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20955 test -z "$DEPDIR" && continue 20956 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20957 test -z "am__include" && continue 20958 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20959 # When using ansi2knr, U may be empty or an underscore; expand it 20960 U=`sed -n 's/^U = //p' < "$mf"` 20961 # Find all dependency output files, they are included files with 20962 # $(DEPDIR) in their names. We invoke sed twice because it is the 20963 # simplest approach to changing $(DEPDIR) to its actual value in the 20964 # expansion. 20965 for file in `sed -n " 20966 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20967 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20968 # Make sure the directory exists. 20969 test -f "$dirpart/$file" && continue 20970 fdir=`$as_dirname -- "$file" || 20971 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20972 X"$file" : 'X\(//\)[^/]' \| \ 20973 X"$file" : 'X\(//\)$' \| \ 20974 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20975 echo X"$file" | 20976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20977 s//\1/ 20978 q 20979 } 20980 /^X\(\/\/\)[^/].*/{ 20981 s//\1/ 20982 q 20983 } 20984 /^X\(\/\/\)$/{ 20985 s//\1/ 20986 q 20987 } 20988 /^X\(\/\).*/{ 20989 s//\1/ 20990 q 20991 } 20992 s/.*/./; q'` 20993 { as_dir=$dirpart/$fdir 20994 case $as_dir in #( 20995 -*) as_dir=./$as_dir;; 20996 esac 20997 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20998 as_dirs= 20999 while :; do 21000 case $as_dir in #( 21001 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21002 *) as_qdir=$as_dir;; 21003 esac 21004 as_dirs="'$as_qdir' $as_dirs" 21005 as_dir=`$as_dirname -- "$as_dir" || 21006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21007 X"$as_dir" : 'X\(//\)[^/]' \| \ 21008 X"$as_dir" : 'X\(//\)$' \| \ 21009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21010 echo X"$as_dir" | 21011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21012 s//\1/ 21013 q 21014 } 21015 /^X\(\/\/\)[^/].*/{ 21016 s//\1/ 21017 q 21018 } 21019 /^X\(\/\/\)$/{ 21020 s//\1/ 21021 q 21022 } 21023 /^X\(\/\).*/{ 21024 s//\1/ 21025 q 21026 } 21027 s/.*/./; q'` 21028 test -d "$as_dir" && break 21029 done 21030 test -z "$as_dirs" || eval "mkdir $as_dirs" 21031 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21032 echo "$as_me: error: cannot create directory $as_dir" >&2;} 21033 { (exit 1); exit 1; }; }; } 21034 # echo "creating $dirpart/$file" 21035 echo '# dummy' > "$dirpart/$file" 21036 done 21037 done 21038 ;; 21039 "Makefile":F) 21040 sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp 21041 mv $ac_file.tmp $ac_file 21042 ;; 21043 21044 esac 21045 done # for ac_tag 21046 21047 21048 { (exit 0); exit 0; } 21049 _ACEOF 21050 chmod +x $CONFIG_STATUS 21051 ac_clean_files=$ac_clean_files_save 21052 21053 21054 # configure is writing to config.log, and then calls config.status. 21055 # config.status does its own redirection, appending to config.log. 21056 # Unfortunately, on DOS this fails, as config.log is still kept open 21057 # by configure, so config.status won't be able to write to it; its 21058 # output is simply discarded. So we exec the FD to /dev/null, 21059 # effectively closing config.log, so it can be properly (re)opened and 21060 # appended to by config.status. When coming back to configure, we 21061 # need to make the FD available again. 21062 if test "$no_create" != yes; then 21063 ac_cs_success=: 21064 ac_config_status_args= 21065 test "$silent" = yes && 21066 ac_config_status_args="$ac_config_status_args --quiet" 21067 exec 5>/dev/null 21068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21069 exec 5>>config.log 21070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21071 # would make configure fail if this is the last instruction. 21072 $ac_cs_success || { (exit 1); exit 1; } 21073 fi 21074 21075