1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.63 for libXfontcache 1.0.5. 4 # 5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## --------------------- ## 12 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 # Support unset when possible. 84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86 else 87 as_unset=false 88 fi 89 90 91 # IFS 92 # We need space, tab and new line, in precisely that order. Quoting is 93 # there to prevent editors from complaining about space-tab. 94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 95 # splitting by setting IFS to empty value.) 96 IFS=" "" $as_nl" 97 98 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125 done 126 PS1='$ ' 127 PS2='> ' 128 PS4='+ ' 129 130 # NLS nuisances. 131 LC_ALL=C 132 export LC_ALL 133 LANGUAGE=C 134 export LANGUAGE 135 136 # Required to use basename. 137 if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140 else 141 as_expr=false 142 fi 143 144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146 else 147 as_basename=false 148 fi 149 150 151 # Name of the executable. 152 as_me=`$as_basename -- "$0" || 153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156 $as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$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 # Pre-4.2 versions of Zsh do 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 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485 } 486 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490 else 491 as_dirname=false 492 fi 493 494 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 496 -n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501 *) 502 ECHO_N='-n';; 503 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507 else 508 as_expr=false 509 fi 510 511 rm -f conf$$ conf$$.exe conf$$.file 512 if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514 else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517 fi 518 if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532 else 533 as_ln_s='cp -p' 534 fi 535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536 rmdir conf$$.dir 2>/dev/null 537 538 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540 else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543 fi 544 545 if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547 else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565 fi 566 as_executable_p=$as_test_x 567 568 # Sed expression to map a string onto a valid CPP name. 569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571 # Sed expression to map a string onto a valid variable name. 572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577 # Check that we are running under the correct shell. 578 SHELL=${CONFIG_SHELL-/bin/sh} 579 580 case X$ECHO in 581 X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585 esac 586 587 echo=${ECHO-echo} 588 if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591 elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597 else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600 fi 601 602 if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606 $* 607 EOF 608 exit 0 609 fi 610 611 # The HP-UX ksh and POSIX shell print the target directory to stdout 612 # if CDPATH is set. 613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615 if test -z "$ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627 fi 628 629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633 else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713 fi 714 fi 715 716 # Copy echo and quote the copy suitably for passing to libtool from 717 # the Makefile, instead of quoting the original, which is used later. 718 ECHO=$echo 719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721 fi 722 723 724 725 726 tagnames=${tagnames+${tagnames},}CXX 727 728 tagnames=${tagnames+${tagnames},}F77 729 730 exec 7<&0 </dev/null 6>&1 731 732 # Name of the host. 733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734 # so uname gets run too. 735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737 # 738 # Initializations. 739 # 740 ac_default_prefix=/usr/local 741 ac_clean_files= 742 ac_config_libobj_dir=. 743 LIBOBJS= 744 cross_compiling=no 745 subdirs= 746 MFLAGS= 747 MAKEFLAGS= 748 SHELL=${CONFIG_SHELL-/bin/sh} 749 750 # Identity of this package. 751 PACKAGE_NAME='libXfontcache' 752 PACKAGE_TARNAME='libXfontcache' 753 PACKAGE_VERSION='1.0.5' 754 PACKAGE_STRING='libXfontcache 1.0.5' 755 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 756 757 # Factoring default headers for most tests. 758 ac_includes_default="\ 759 #include <stdio.h> 760 #ifdef HAVE_SYS_TYPES_H 761 # include <sys/types.h> 762 #endif 763 #ifdef HAVE_SYS_STAT_H 764 # include <sys/stat.h> 765 #endif 766 #ifdef STDC_HEADERS 767 # include <stdlib.h> 768 # include <stddef.h> 769 #else 770 # ifdef HAVE_STDLIB_H 771 # include <stdlib.h> 772 # endif 773 #endif 774 #ifdef HAVE_STRING_H 775 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 776 # include <memory.h> 777 # endif 778 # include <string.h> 779 #endif 780 #ifdef HAVE_STRINGS_H 781 # include <strings.h> 782 #endif 783 #ifdef HAVE_INTTYPES_H 784 # include <inttypes.h> 785 #endif 786 #ifdef HAVE_STDINT_H 787 # include <stdint.h> 788 #endif 789 #ifdef HAVE_UNISTD_H 790 # include <unistd.h> 791 #endif" 792 793 ac_subst_vars='am__EXEEXT_FALSE 794 am__EXEEXT_TRUE 795 LTLIBOBJS 796 LIBOBJS 797 XTMALLOC_ZERO_CFLAGS 798 XMALLOC_ZERO_CFLAGS 799 MALLOC_ZERO_CFLAGS 800 XFONTCACHE_LIBS 801 XFONTCACHE_CFLAGS 802 PKG_CONFIG 803 ADMIN_MAN_DIR 804 DRIVER_MAN_DIR 805 MISC_MAN_DIR 806 FILE_MAN_DIR 807 LIB_MAN_DIR 808 APP_MAN_DIR 809 ADMIN_MAN_SUFFIX 810 DRIVER_MAN_SUFFIX 811 MISC_MAN_SUFFIX 812 FILE_MAN_SUFFIX 813 LIB_MAN_SUFFIX 814 APP_MAN_SUFFIX 815 distcleancheck_listfiles 816 CHANGELOG_CMD 817 AM_BACKSLASH 818 AM_DEFAULT_VERBOSITY 819 CWARNFLAGS 820 LIBTOOL 821 ac_ct_F77 822 FFLAGS 823 F77 824 CXXCPP 825 am__fastdepCXX_FALSE 826 am__fastdepCXX_TRUE 827 CXXDEPMODE 828 ac_ct_CXX 829 CXXFLAGS 830 CXX 831 CPP 832 NMEDIT 833 DSYMUTIL 834 RANLIB 835 AR 836 ECHO 837 LN_S 838 EGREP 839 GREP 840 SED 841 host_os 842 host_vendor 843 host_cpu 844 host 845 build_os 846 build_vendor 847 build_cpu 848 build 849 am__fastdepCC_FALSE 850 am__fastdepCC_TRUE 851 CCDEPMODE 852 AMDEPBACKSLASH 853 AMDEP_FALSE 854 AMDEP_TRUE 855 am__quote 856 am__include 857 DEPDIR 858 OBJEXT 859 EXEEXT 860 ac_ct_CC 861 CPPFLAGS 862 LDFLAGS 863 CFLAGS 864 CC 865 MAINT 866 MAINTAINER_MODE_FALSE 867 MAINTAINER_MODE_TRUE 868 am__untar 869 am__tar 870 AMTAR 871 am__leading_dot 872 SET_MAKE 873 AWK 874 mkdir_p 875 MKDIR_P 876 INSTALL_STRIP_PROGRAM 877 STRIP 878 install_sh 879 MAKEINFO 880 AUTOHEADER 881 AUTOMAKE 882 AUTOCONF 883 ACLOCAL 884 VERSION 885 PACKAGE 886 CYGPATH_W 887 am__isrc 888 INSTALL_DATA 889 INSTALL_SCRIPT 890 INSTALL_PROGRAM 891 target_alias 892 host_alias 893 build_alias 894 LIBS 895 ECHO_T 896 ECHO_N 897 ECHO_C 898 DEFS 899 mandir 900 localedir 901 libdir 902 psdir 903 pdfdir 904 dvidir 905 htmldir 906 infodir 907 docdir 908 oldincludedir 909 includedir 910 localstatedir 911 sharedstatedir 912 sysconfdir 913 datadir 914 datarootdir 915 libexecdir 916 sbindir 917 bindir 918 program_transform_name 919 prefix 920 exec_prefix 921 PACKAGE_BUGREPORT 922 PACKAGE_STRING 923 PACKAGE_VERSION 924 PACKAGE_TARNAME 925 PACKAGE_NAME 926 PATH_SEPARATOR 927 SHELL' 928 ac_subst_files='' 929 ac_user_opts=' 930 enable_option_checking 931 enable_maintainer_mode 932 enable_dependency_tracking 933 enable_shared 934 enable_static 935 enable_fast_install 936 with_gnu_ld 937 enable_libtool_lock 938 with_pic 939 with_tags 940 enable_silent_rules 941 enable_strict_compilation 942 with_release_version 943 enable_malloc0returnsnull 944 ' 945 ac_precious_vars='build_alias 946 host_alias 947 target_alias 948 CC 949 CFLAGS 950 LDFLAGS 951 LIBS 952 CPPFLAGS 953 CPP 954 CXX 955 CXXFLAGS 956 CCC 957 CXXCPP 958 F77 959 FFLAGS 960 PKG_CONFIG 961 XFONTCACHE_CFLAGS 962 XFONTCACHE_LIBS' 963 964 965 # Initialize some variables set by options. 966 ac_init_help= 967 ac_init_version=false 968 ac_unrecognized_opts= 969 ac_unrecognized_sep= 970 # The variables have the same names as the options, with 971 # dashes changed to underlines. 972 cache_file=/dev/null 973 exec_prefix=NONE 974 no_create= 975 no_recursion= 976 prefix=NONE 977 program_prefix=NONE 978 program_suffix=NONE 979 program_transform_name=s,x,x, 980 silent= 981 site= 982 srcdir= 983 verbose= 984 x_includes=NONE 985 x_libraries=NONE 986 987 # Installation directory options. 988 # These are left unexpanded so users can "make install exec_prefix=/foo" 989 # and all the variables that are supposed to be based on exec_prefix 990 # by default will actually change. 991 # Use braces instead of parens because sh, perl, etc. also accept them. 992 # (The list follows the same order as the GNU Coding Standards.) 993 bindir='${exec_prefix}/bin' 994 sbindir='${exec_prefix}/sbin' 995 libexecdir='${exec_prefix}/libexec' 996 datarootdir='${prefix}/share' 997 datadir='${datarootdir}' 998 sysconfdir='${prefix}/etc' 999 sharedstatedir='${prefix}/com' 1000 localstatedir='${prefix}/var' 1001 includedir='${prefix}/include' 1002 oldincludedir='/usr/include' 1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1004 infodir='${datarootdir}/info' 1005 htmldir='${docdir}' 1006 dvidir='${docdir}' 1007 pdfdir='${docdir}' 1008 psdir='${docdir}' 1009 libdir='${exec_prefix}/lib' 1010 localedir='${datarootdir}/locale' 1011 mandir='${datarootdir}/man' 1012 1013 ac_prev= 1014 ac_dashdash= 1015 for ac_option 1016 do 1017 # If the previous option needs an argument, assign it. 1018 if test -n "$ac_prev"; then 1019 eval $ac_prev=\$ac_option 1020 ac_prev= 1021 continue 1022 fi 1023 1024 case $ac_option in 1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1026 *) ac_optarg=yes ;; 1027 esac 1028 1029 # Accept the important Cygnus configure options, so we can diagnose typos. 1030 1031 case $ac_dashdash$ac_option in 1032 --) 1033 ac_dashdash=yes ;; 1034 1035 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1036 ac_prev=bindir ;; 1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1038 bindir=$ac_optarg ;; 1039 1040 -build | --build | --buil | --bui | --bu) 1041 ac_prev=build_alias ;; 1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1043 build_alias=$ac_optarg ;; 1044 1045 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1047 ac_prev=cache_file ;; 1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1050 cache_file=$ac_optarg ;; 1051 1052 --config-cache | -C) 1053 cache_file=config.cache ;; 1054 1055 -datadir | --datadir | --datadi | --datad) 1056 ac_prev=datadir ;; 1057 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1058 datadir=$ac_optarg ;; 1059 1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1061 | --dataroo | --dataro | --datar) 1062 ac_prev=datarootdir ;; 1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1065 datarootdir=$ac_optarg ;; 1066 1067 -disable-* | --disable-*) 1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1072 { (exit 1); exit 1; }; } 1073 ac_useropt_orig=$ac_useropt 1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1075 case $ac_user_opts in 1076 *" 1077 "enable_$ac_useropt" 1078 "*) ;; 1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1080 ac_unrecognized_sep=', ';; 1081 esac 1082 eval enable_$ac_useropt=no ;; 1083 1084 -docdir | --docdir | --docdi | --doc | --do) 1085 ac_prev=docdir ;; 1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1087 docdir=$ac_optarg ;; 1088 1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1090 ac_prev=dvidir ;; 1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1092 dvidir=$ac_optarg ;; 1093 1094 -enable-* | --enable-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1099 { (exit 1); exit 1; }; } 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104 "enable_$ac_useropt" 1105 "*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval enable_$ac_useropt=\$ac_optarg ;; 1110 1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1113 | --exec | --exe | --ex) 1114 ac_prev=exec_prefix ;; 1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1117 | --exec=* | --exe=* | --ex=*) 1118 exec_prefix=$ac_optarg ;; 1119 1120 -gas | --gas | --ga | --g) 1121 # Obsolete; use --with-gas. 1122 with_gas=yes ;; 1123 1124 -help | --help | --hel | --he | -h) 1125 ac_init_help=long ;; 1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1127 ac_init_help=recursive ;; 1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1129 ac_init_help=short ;; 1130 1131 -host | --host | --hos | --ho) 1132 ac_prev=host_alias ;; 1133 -host=* | --host=* | --hos=* | --ho=*) 1134 host_alias=$ac_optarg ;; 1135 1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1137 ac_prev=htmldir ;; 1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1139 | --ht=*) 1140 htmldir=$ac_optarg ;; 1141 1142 -includedir | --includedir | --includedi | --included | --include \ 1143 | --includ | --inclu | --incl | --inc) 1144 ac_prev=includedir ;; 1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1146 | --includ=* | --inclu=* | --incl=* | --inc=*) 1147 includedir=$ac_optarg ;; 1148 1149 -infodir | --infodir | --infodi | --infod | --info | --inf) 1150 ac_prev=infodir ;; 1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1152 infodir=$ac_optarg ;; 1153 1154 -libdir | --libdir | --libdi | --libd) 1155 ac_prev=libdir ;; 1156 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1157 libdir=$ac_optarg ;; 1158 1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1160 | --libexe | --libex | --libe) 1161 ac_prev=libexecdir ;; 1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1163 | --libexe=* | --libex=* | --libe=*) 1164 libexecdir=$ac_optarg ;; 1165 1166 -localedir | --localedir | --localedi | --localed | --locale) 1167 ac_prev=localedir ;; 1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1169 localedir=$ac_optarg ;; 1170 1171 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1172 | --localstate | --localstat | --localsta | --localst | --locals) 1173 ac_prev=localstatedir ;; 1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1176 localstatedir=$ac_optarg ;; 1177 1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1179 ac_prev=mandir ;; 1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1181 mandir=$ac_optarg ;; 1182 1183 -nfp | --nfp | --nf) 1184 # Obsolete; use --without-fp. 1185 with_fp=no ;; 1186 1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1188 | --no-cr | --no-c | -n) 1189 no_create=yes ;; 1190 1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1193 no_recursion=yes ;; 1194 1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1197 | --oldin | --oldi | --old | --ol | --o) 1198 ac_prev=oldincludedir ;; 1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1202 oldincludedir=$ac_optarg ;; 1203 1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1205 ac_prev=prefix ;; 1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1207 prefix=$ac_optarg ;; 1208 1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1210 | --program-pre | --program-pr | --program-p) 1211 ac_prev=program_prefix ;; 1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1214 program_prefix=$ac_optarg ;; 1215 1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1217 | --program-suf | --program-su | --program-s) 1218 ac_prev=program_suffix ;; 1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1221 program_suffix=$ac_optarg ;; 1222 1223 -program-transform-name | --program-transform-name \ 1224 | --program-transform-nam | --program-transform-na \ 1225 | --program-transform-n | --program-transform- \ 1226 | --program-transform | --program-transfor \ 1227 | --program-transfo | --program-transf \ 1228 | --program-trans | --program-tran \ 1229 | --progr-tra | --program-tr | --program-t) 1230 ac_prev=program_transform_name ;; 1231 -program-transform-name=* | --program-transform-name=* \ 1232 | --program-transform-nam=* | --program-transform-na=* \ 1233 | --program-transform-n=* | --program-transform-=* \ 1234 | --program-transform=* | --program-transfor=* \ 1235 | --program-transfo=* | --program-transf=* \ 1236 | --program-trans=* | --program-tran=* \ 1237 | --progr-tra=* | --program-tr=* | --program-t=*) 1238 program_transform_name=$ac_optarg ;; 1239 1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1241 ac_prev=pdfdir ;; 1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1243 pdfdir=$ac_optarg ;; 1244 1245 -psdir | --psdir | --psdi | --psd | --ps) 1246 ac_prev=psdir ;; 1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1248 psdir=$ac_optarg ;; 1249 1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1251 | -silent | --silent | --silen | --sile | --sil) 1252 silent=yes ;; 1253 1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1255 ac_prev=sbindir ;; 1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1257 | --sbi=* | --sb=*) 1258 sbindir=$ac_optarg ;; 1259 1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1262 | --sharedst | --shareds | --shared | --share | --shar \ 1263 | --sha | --sh) 1264 ac_prev=sharedstatedir ;; 1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1268 | --sha=* | --sh=*) 1269 sharedstatedir=$ac_optarg ;; 1270 1271 -site | --site | --sit) 1272 ac_prev=site ;; 1273 -site=* | --site=* | --sit=*) 1274 site=$ac_optarg ;; 1275 1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1277 ac_prev=srcdir ;; 1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1279 srcdir=$ac_optarg ;; 1280 1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1282 | --syscon | --sysco | --sysc | --sys | --sy) 1283 ac_prev=sysconfdir ;; 1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1286 sysconfdir=$ac_optarg ;; 1287 1288 -target | --target | --targe | --targ | --tar | --ta | --t) 1289 ac_prev=target_alias ;; 1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1291 target_alias=$ac_optarg ;; 1292 1293 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1294 verbose=yes ;; 1295 1296 -version | --version | --versio | --versi | --vers | -V) 1297 ac_init_version=: ;; 1298 1299 -with-* | --with-*) 1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1301 # Reject names that are not valid shell variable names. 1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1303 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1304 { (exit 1); exit 1; }; } 1305 ac_useropt_orig=$ac_useropt 1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1307 case $ac_user_opts in 1308 *" 1309 "with_$ac_useropt" 1310 "*) ;; 1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1312 ac_unrecognized_sep=', ';; 1313 esac 1314 eval with_$ac_useropt=\$ac_optarg ;; 1315 1316 -without-* | --without-*) 1317 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1318 # Reject names that are not valid shell variable names. 1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1320 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1321 { (exit 1); exit 1; }; } 1322 ac_useropt_orig=$ac_useropt 1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1324 case $ac_user_opts in 1325 *" 1326 "with_$ac_useropt" 1327 "*) ;; 1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1329 ac_unrecognized_sep=', ';; 1330 esac 1331 eval with_$ac_useropt=no ;; 1332 1333 --x) 1334 # Obsolete; use --with-x. 1335 with_x=yes ;; 1336 1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1338 | --x-incl | --x-inc | --x-in | --x-i) 1339 ac_prev=x_includes ;; 1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1342 x_includes=$ac_optarg ;; 1343 1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1346 ac_prev=x_libraries ;; 1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1349 x_libraries=$ac_optarg ;; 1350 1351 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1352 Try \`$0 --help' for more information." >&2 1353 { (exit 1); exit 1; }; } 1354 ;; 1355 1356 *=*) 1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1358 # Reject names that are not valid shell variable names. 1359 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1360 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1361 { (exit 1); exit 1; }; } 1362 eval $ac_envvar=\$ac_optarg 1363 export $ac_envvar ;; 1364 1365 *) 1366 # FIXME: should be removed in autoconf 3.0. 1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1370 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1371 ;; 1372 1373 esac 1374 done 1375 1376 if test -n "$ac_prev"; then 1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1378 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1379 { (exit 1); exit 1; }; } 1380 fi 1381 1382 if test -n "$ac_unrecognized_opts"; then 1383 case $enable_option_checking in 1384 no) ;; 1385 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1386 { (exit 1); exit 1; }; } ;; 1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1388 esac 1389 fi 1390 1391 # Check all directory arguments for consistency. 1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1393 datadir sysconfdir sharedstatedir localstatedir includedir \ 1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1395 libdir localedir mandir 1396 do 1397 eval ac_val=\$$ac_var 1398 # Remove trailing slashes. 1399 case $ac_val in 1400 */ ) 1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1402 eval $ac_var=\$ac_val;; 1403 esac 1404 # Be sure to have absolute directory names. 1405 case $ac_val in 1406 [\\/$]* | ?:[\\/]* ) continue;; 1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1408 esac 1409 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1410 { (exit 1); exit 1; }; } 1411 done 1412 1413 # There might be people who depend on the old broken behavior: `$host' 1414 # used to hold the argument of --host etc. 1415 # FIXME: To remove some day. 1416 build=$build_alias 1417 host=$host_alias 1418 target=$target_alias 1419 1420 # FIXME: To remove some day. 1421 if test "x$host_alias" != x; then 1422 if test "x$build_alias" = x; then 1423 cross_compiling=maybe 1424 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1425 If a cross compiler is detected then cross compile mode will be used." >&2 1426 elif test "x$build_alias" != "x$host_alias"; then 1427 cross_compiling=yes 1428 fi 1429 fi 1430 1431 ac_tool_prefix= 1432 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1433 1434 test "$silent" = yes && exec 6>/dev/null 1435 1436 1437 ac_pwd=`pwd` && test -n "$ac_pwd" && 1438 ac_ls_di=`ls -di .` && 1439 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1440 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1441 { (exit 1); exit 1; }; } 1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1443 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1444 { (exit 1); exit 1; }; } 1445 1446 1447 # Find the source files, if location was not specified. 1448 if test -z "$srcdir"; then 1449 ac_srcdir_defaulted=yes 1450 # Try the directory containing this script, then the parent directory. 1451 ac_confdir=`$as_dirname -- "$as_myself" || 1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1453 X"$as_myself" : 'X\(//\)[^/]' \| \ 1454 X"$as_myself" : 'X\(//\)$' \| \ 1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1456 $as_echo X"$as_myself" | 1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\/\)[^/].*/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\/\)$/{ 1466 s//\1/ 1467 q 1468 } 1469 /^X\(\/\).*/{ 1470 s//\1/ 1471 q 1472 } 1473 s/.*/./; q'` 1474 srcdir=$ac_confdir 1475 if test ! -r "$srcdir/$ac_unique_file"; then 1476 srcdir=.. 1477 fi 1478 else 1479 ac_srcdir_defaulted=no 1480 fi 1481 if test ! -r "$srcdir/$ac_unique_file"; then 1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1483 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1484 { (exit 1); exit 1; }; } 1485 fi 1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1487 ac_abs_confdir=`( 1488 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1489 { (exit 1); exit 1; }; } 1490 pwd)` 1491 # When building in place, set srcdir=. 1492 if test "$ac_abs_confdir" = "$ac_pwd"; then 1493 srcdir=. 1494 fi 1495 # Remove unnecessary trailing slashes from srcdir. 1496 # Double slashes in file names in object file debugging info 1497 # mess up M-x gdb in Emacs. 1498 case $srcdir in 1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1500 esac 1501 for ac_var in $ac_precious_vars; do 1502 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1503 eval ac_env_${ac_var}_value=\$${ac_var} 1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1505 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1506 done 1507 1508 # 1509 # Report the --help message. 1510 # 1511 if test "$ac_init_help" = "long"; then 1512 # Omit some internal or obsolete options to make the list less imposing. 1513 # This message is too long to be a string in the A/UX 3.1 sh. 1514 cat <<_ACEOF 1515 \`configure' configures libXfontcache 1.0.5 to adapt to many kinds of systems. 1516 1517 Usage: $0 [OPTION]... [VAR=VALUE]... 1518 1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1520 VAR=VALUE. See below for descriptions of some of the useful variables. 1521 1522 Defaults for the options are specified in brackets. 1523 1524 Configuration: 1525 -h, --help display this help and exit 1526 --help=short display options specific to this package 1527 --help=recursive display the short help of all the included packages 1528 -V, --version display version information and exit 1529 -q, --quiet, --silent do not print \`checking...' messages 1530 --cache-file=FILE cache test results in FILE [disabled] 1531 -C, --config-cache alias for \`--cache-file=config.cache' 1532 -n, --no-create do not create output files 1533 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1534 1535 Installation directories: 1536 --prefix=PREFIX install architecture-independent files in PREFIX 1537 [$ac_default_prefix] 1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1539 [PREFIX] 1540 1541 By default, \`make install' will install all the files in 1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1544 for instance \`--prefix=\$HOME'. 1545 1546 For better control, use the options below. 1547 1548 Fine tuning of the installation directories: 1549 --bindir=DIR user executables [EPREFIX/bin] 1550 --sbindir=DIR system admin executables [EPREFIX/sbin] 1551 --libexecdir=DIR program executables [EPREFIX/libexec] 1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1555 --libdir=DIR object code libraries [EPREFIX/lib] 1556 --includedir=DIR C header files [PREFIX/include] 1557 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1560 --infodir=DIR info documentation [DATAROOTDIR/info] 1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1562 --mandir=DIR man documentation [DATAROOTDIR/man] 1563 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfontcache] 1564 --htmldir=DIR html documentation [DOCDIR] 1565 --dvidir=DIR dvi documentation [DOCDIR] 1566 --pdfdir=DIR pdf documentation [DOCDIR] 1567 --psdir=DIR ps documentation [DOCDIR] 1568 _ACEOF 1569 1570 cat <<\_ACEOF 1571 1572 Program names: 1573 --program-prefix=PREFIX prepend PREFIX to installed program names 1574 --program-suffix=SUFFIX append SUFFIX to installed program names 1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1576 1577 System types: 1578 --build=BUILD configure for building on BUILD [guessed] 1579 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1580 _ACEOF 1581 fi 1582 1583 if test -n "$ac_init_help"; then 1584 case $ac_init_help in 1585 short | recursive ) echo "Configuration of libXfontcache 1.0.5:";; 1586 esac 1587 cat <<\_ACEOF 1588 1589 Optional Features: 1590 --disable-option-checking ignore unrecognized --enable/--with options 1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1593 --enable-maintainer-mode enable make rules and dependencies not useful 1594 (and sometimes confusing) to the casual installer 1595 --disable-dependency-tracking speeds up one-time build 1596 --enable-dependency-tracking do not reject slow dependency extractors 1597 --enable-shared[=PKGS] build shared libraries [default=yes] 1598 --enable-static[=PKGS] build static libraries [default=yes] 1599 --enable-fast-install[=PKGS] 1600 optimize for fast installation [default=yes] 1601 --disable-libtool-lock avoid locking (might break parallel builds) 1602 --enable-silent-rules less verbose build output (undo: `make V=1') 1603 --disable-silent-rules verbose build output (undo: `make V=0') 1604 --enable-strict-compilation 1605 Enable all warnings from compiler and make them 1606 errors (default: disabled) 1607 --enable-malloc0returnsnull 1608 malloc(0) returns NULL (default: auto) 1609 1610 Optional Packages: 1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1613 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1614 --with-pic try to use only PIC/non-PIC objects [default=use 1615 both] 1616 --with-tags[=TAGS] include additional configurations [automatic] 1617 --with-release-version=STRING 1618 Use release version string in package name 1619 1620 Some influential environment variables: 1621 CC C compiler command 1622 CFLAGS C compiler flags 1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1624 nonstandard directory <lib dir> 1625 LIBS libraries to pass to the linker, e.g. -l<library> 1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1627 you have headers in a nonstandard directory <include dir> 1628 CPP C preprocessor 1629 CXX C++ compiler command 1630 CXXFLAGS C++ compiler flags 1631 CXXCPP C++ preprocessor 1632 F77 Fortran 77 compiler command 1633 FFLAGS Fortran 77 compiler flags 1634 PKG_CONFIG path to pkg-config utility 1635 XFONTCACHE_CFLAGS 1636 C compiler flags for XFONTCACHE, overriding pkg-config 1637 XFONTCACHE_LIBS 1638 linker flags for XFONTCACHE, overriding pkg-config 1639 1640 Use these variables to override the choices made by `configure' or to help 1641 it to find libraries and programs with nonstandard names/locations. 1642 1643 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1644 _ACEOF 1645 ac_status=$? 1646 fi 1647 1648 if test "$ac_init_help" = "recursive"; then 1649 # If there are subdirs, report their specific --help. 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1651 test -d "$ac_dir" || 1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1653 continue 1654 ac_builddir=. 1655 1656 case "$ac_dir" in 1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1658 *) 1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1660 # A ".." for each directory in $ac_dir_suffix. 1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1662 case $ac_top_builddir_sub in 1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1665 esac ;; 1666 esac 1667 ac_abs_top_builddir=$ac_pwd 1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1669 # for backward compatibility: 1670 ac_top_builddir=$ac_top_build_prefix 1671 1672 case $srcdir in 1673 .) # We are building in place. 1674 ac_srcdir=. 1675 ac_top_srcdir=$ac_top_builddir_sub 1676 ac_abs_top_srcdir=$ac_pwd ;; 1677 [\\/]* | ?:[\\/]* ) # Absolute name. 1678 ac_srcdir=$srcdir$ac_dir_suffix; 1679 ac_top_srcdir=$srcdir 1680 ac_abs_top_srcdir=$srcdir ;; 1681 *) # Relative name. 1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1683 ac_top_srcdir=$ac_top_build_prefix$srcdir 1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1685 esac 1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1687 1688 cd "$ac_dir" || { ac_status=$?; continue; } 1689 # Check for guested configure. 1690 if test -f "$ac_srcdir/configure.gnu"; then 1691 echo && 1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1693 elif test -f "$ac_srcdir/configure"; then 1694 echo && 1695 $SHELL "$ac_srcdir/configure" --help=recursive 1696 else 1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1698 fi || ac_status=$? 1699 cd "$ac_pwd" || { ac_status=$?; break; } 1700 done 1701 fi 1702 1703 test -n "$ac_init_help" && exit $ac_status 1704 if $ac_init_version; then 1705 cat <<\_ACEOF 1706 libXfontcache configure 1.0.5 1707 generated by GNU Autoconf 2.63 1708 1709 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1710 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1711 This configure script is free software; the Free Software Foundation 1712 gives unlimited permission to copy, distribute and modify it. 1713 _ACEOF 1714 exit 1715 fi 1716 cat >config.log <<_ACEOF 1717 This file contains any messages produced by compilers while 1718 running configure, to aid debugging if configure makes a mistake. 1719 1720 It was created by libXfontcache $as_me 1.0.5, which was 1721 generated by GNU Autoconf 2.63. Invocation command line was 1722 1723 $ $0 $@ 1724 1725 _ACEOF 1726 exec 5>>config.log 1727 { 1728 cat <<_ASUNAME 1729 ## --------- ## 1730 ## Platform. ## 1731 ## --------- ## 1732 1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1734 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1735 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1736 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1737 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1738 1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1741 1742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1749 1750 _ASUNAME 1751 1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1753 for as_dir in $PATH 1754 do 1755 IFS=$as_save_IFS 1756 test -z "$as_dir" && as_dir=. 1757 $as_echo "PATH: $as_dir" 1758 done 1759 IFS=$as_save_IFS 1760 1761 } >&5 1762 1763 cat >&5 <<_ACEOF 1764 1765 1766 ## ----------- ## 1767 ## Core tests. ## 1768 ## ----------- ## 1769 1770 _ACEOF 1771 1772 1773 # Keep a trace of the command line. 1774 # Strip out --no-create and --no-recursion so they do not pile up. 1775 # Strip out --silent because we don't want to record it for future runs. 1776 # Also quote any args containing shell meta-characters. 1777 # Make two passes to allow for proper duplicate-argument suppression. 1778 ac_configure_args= 1779 ac_configure_args0= 1780 ac_configure_args1= 1781 ac_must_keep_next=false 1782 for ac_pass in 1 2 1783 do 1784 for ac_arg 1785 do 1786 case $ac_arg in 1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1789 | -silent | --silent | --silen | --sile | --sil) 1790 continue ;; 1791 *\'*) 1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1793 esac 1794 case $ac_pass in 1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1796 2) 1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1798 if test $ac_must_keep_next = true; then 1799 ac_must_keep_next=false # Got value, back to normal. 1800 else 1801 case $ac_arg in 1802 *=* | --config-cache | -C | -disable-* | --disable-* \ 1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1805 | -with-* | --with-* | -without-* | --without-* | --x) 1806 case "$ac_configure_args0 " in 1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1808 esac 1809 ;; 1810 -* ) ac_must_keep_next=true ;; 1811 esac 1812 fi 1813 ac_configure_args="$ac_configure_args '$ac_arg'" 1814 ;; 1815 esac 1816 done 1817 done 1818 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1819 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1820 1821 # When interrupted or exit'd, cleanup temporary files, and complete 1822 # config.log. We remove comments because anyway the quotes in there 1823 # would cause problems or look ugly. 1824 # WARNING: Use '\'' to represent an apostrophe within the trap. 1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1826 trap 'exit_status=$? 1827 # Save into config.log some information that might help in debugging. 1828 { 1829 echo 1830 1831 cat <<\_ASBOX 1832 ## ---------------- ## 1833 ## Cache variables. ## 1834 ## ---------------- ## 1835 _ASBOX 1836 echo 1837 # The following way of writing the cache mishandles newlines in values, 1838 ( 1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1840 eval ac_val=\$$ac_var 1841 case $ac_val in #( 1842 *${as_nl}*) 1843 case $ac_var in #( 1844 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1846 esac 1847 case $ac_var in #( 1848 _ | IFS | as_nl) ;; #( 1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1850 *) $as_unset $ac_var ;; 1851 esac ;; 1852 esac 1853 done 1854 (set) 2>&1 | 1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1856 *${as_nl}ac_space=\ *) 1857 sed -n \ 1858 "s/'\''/'\''\\\\'\'''\''/g; 1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1860 ;; #( 1861 *) 1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1863 ;; 1864 esac | 1865 sort 1866 ) 1867 echo 1868 1869 cat <<\_ASBOX 1870 ## ----------------- ## 1871 ## Output variables. ## 1872 ## ----------------- ## 1873 _ASBOX 1874 echo 1875 for ac_var in $ac_subst_vars 1876 do 1877 eval ac_val=\$$ac_var 1878 case $ac_val in 1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1880 esac 1881 $as_echo "$ac_var='\''$ac_val'\''" 1882 done | sort 1883 echo 1884 1885 if test -n "$ac_subst_files"; then 1886 cat <<\_ASBOX 1887 ## ------------------- ## 1888 ## File substitutions. ## 1889 ## ------------------- ## 1890 _ASBOX 1891 echo 1892 for ac_var in $ac_subst_files 1893 do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897 esac 1898 $as_echo "$ac_var='\''$ac_val'\''" 1899 done | sort 1900 echo 1901 fi 1902 1903 if test -s confdefs.h; then 1904 cat <<\_ASBOX 1905 ## ----------- ## 1906 ## confdefs.h. ## 1907 ## ----------- ## 1908 _ASBOX 1909 echo 1910 cat confdefs.h 1911 echo 1912 fi 1913 test "$ac_signal" != 0 && 1914 $as_echo "$as_me: caught signal $ac_signal" 1915 $as_echo "$as_me: exit $exit_status" 1916 } >&5 1917 rm -f core *.core core.conftest.* && 1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1919 exit $exit_status 1920 ' 0 1921 for ac_signal in 1 2 13 15; do 1922 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1923 done 1924 ac_signal=0 1925 1926 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1927 rm -f -r conftest* confdefs.h 1928 1929 # Predefined preprocessor variables. 1930 1931 cat >>confdefs.h <<_ACEOF 1932 #define PACKAGE_NAME "$PACKAGE_NAME" 1933 _ACEOF 1934 1935 1936 cat >>confdefs.h <<_ACEOF 1937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1938 _ACEOF 1939 1940 1941 cat >>confdefs.h <<_ACEOF 1942 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1943 _ACEOF 1944 1945 1946 cat >>confdefs.h <<_ACEOF 1947 #define PACKAGE_STRING "$PACKAGE_STRING" 1948 _ACEOF 1949 1950 1951 cat >>confdefs.h <<_ACEOF 1952 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1953 _ACEOF 1954 1955 1956 # Let the site file select an alternate cache file if it wants to. 1957 # Prefer an explicitly selected file to automatically selected ones. 1958 ac_site_file1=NONE 1959 ac_site_file2=NONE 1960 if test -n "$CONFIG_SITE"; then 1961 ac_site_file1=$CONFIG_SITE 1962 elif test "x$prefix" != xNONE; then 1963 ac_site_file1=$prefix/share/config.site 1964 ac_site_file2=$prefix/etc/config.site 1965 else 1966 ac_site_file1=$ac_default_prefix/share/config.site 1967 ac_site_file2=$ac_default_prefix/etc/config.site 1968 fi 1969 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1970 do 1971 test "x$ac_site_file" = xNONE && continue 1972 if test -r "$ac_site_file"; then 1973 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1974 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1975 sed 's/^/| /' "$ac_site_file" >&5 1976 . "$ac_site_file" 1977 fi 1978 done 1979 1980 if test -r "$cache_file"; then 1981 # Some versions of bash will fail to source /dev/null (special 1982 # files actually), so we avoid doing that. 1983 if test -f "$cache_file"; then 1984 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1985 $as_echo "$as_me: loading cache $cache_file" >&6;} 1986 case $cache_file in 1987 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1988 *) . "./$cache_file";; 1989 esac 1990 fi 1991 else 1992 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1993 $as_echo "$as_me: creating cache $cache_file" >&6;} 1994 >$cache_file 1995 fi 1996 1997 # Check that the precious variables saved in the cache have kept the same 1998 # value. 1999 ac_cache_corrupted=false 2000 for ac_var in $ac_precious_vars; do 2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2002 eval ac_new_set=\$ac_env_${ac_var}_set 2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2004 eval ac_new_val=\$ac_env_${ac_var}_value 2005 case $ac_old_set,$ac_new_set in 2006 set,) 2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2008 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2009 ac_cache_corrupted=: ;; 2010 ,set) 2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2012 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2013 ac_cache_corrupted=: ;; 2014 ,);; 2015 *) 2016 if test "x$ac_old_val" != "x$ac_new_val"; then 2017 # differences in whitespace do not lead to failure. 2018 ac_old_val_w=`echo x $ac_old_val` 2019 ac_new_val_w=`echo x $ac_new_val` 2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2022 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2023 ac_cache_corrupted=: 2024 else 2025 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2026 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2027 eval $ac_var=\$ac_old_val 2028 fi 2029 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2030 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2031 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2032 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2033 fi;; 2034 esac 2035 # Pass precious variables to config.status. 2036 if test "$ac_new_set" = set; then 2037 case $ac_new_val in 2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 *) ac_arg=$ac_var=$ac_new_val ;; 2040 esac 2041 case " $ac_configure_args " in 2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2044 esac 2045 fi 2046 done 2047 if $ac_cache_corrupted; then 2048 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2050 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2051 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2052 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2053 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2054 { (exit 1); exit 1; }; } 2055 fi 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 ac_ext=c 2082 ac_cpp='$CPP $CPPFLAGS' 2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2086 2087 2088 am__api_version='1.11' 2089 2090 ac_aux_dir= 2091 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2092 if test -f "$ac_dir/install-sh"; then 2093 ac_aux_dir=$ac_dir 2094 ac_install_sh="$ac_aux_dir/install-sh -c" 2095 break 2096 elif test -f "$ac_dir/install.sh"; then 2097 ac_aux_dir=$ac_dir 2098 ac_install_sh="$ac_aux_dir/install.sh -c" 2099 break 2100 elif test -f "$ac_dir/shtool"; then 2101 ac_aux_dir=$ac_dir 2102 ac_install_sh="$ac_aux_dir/shtool install -c" 2103 break 2104 fi 2105 done 2106 if test -z "$ac_aux_dir"; then 2107 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2108 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2109 { (exit 1); exit 1; }; } 2110 fi 2111 2112 # These three variables are undocumented and unsupported, 2113 # and are intended to be withdrawn in a future Autoconf release. 2114 # They can cause serious problems if a builder's source tree is in a directory 2115 # whose full name contains unusual characters. 2116 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2117 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2118 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2119 2120 2121 # Find a good install program. We prefer a C program (faster), 2122 # so one script is as good as another. But avoid the broken or 2123 # incompatible versions: 2124 # SysV /etc/install, /usr/sbin/install 2125 # SunOS /usr/etc/install 2126 # IRIX /sbin/install 2127 # AIX /bin/install 2128 # AmigaOS /C/install, which installs bootblocks on floppy discs 2129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2132 # OS/2's system install, which has a completely different semantic 2133 # ./install, which can be erroneously created by make from ./install.sh. 2134 # Reject install programs that cannot install multiple files. 2135 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2136 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2137 if test -z "$INSTALL"; then 2138 if test "${ac_cv_path_install+set}" = set; then 2139 $as_echo_n "(cached) " >&6 2140 else 2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2142 for as_dir in $PATH 2143 do 2144 IFS=$as_save_IFS 2145 test -z "$as_dir" && as_dir=. 2146 # Account for people who put trailing slashes in PATH elements. 2147 case $as_dir/ in 2148 ./ | .// | /cC/* | \ 2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2151 /usr/ucb/* ) ;; 2152 *) 2153 # OSF1 and SCO ODT 3.0 have their own names for install. 2154 # Don't use installbsd from OSF since it installs stuff as root 2155 # by default. 2156 for ac_prog in ginstall scoinst install; do 2157 for ac_exec_ext in '' $ac_executable_extensions; do 2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2159 if test $ac_prog = install && 2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2161 # AIX install. It has an incompatible calling convention. 2162 : 2163 elif test $ac_prog = install && 2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2165 # program-specific install script used by HP pwplus--don't use. 2166 : 2167 else 2168 rm -rf conftest.one conftest.two conftest.dir 2169 echo one > conftest.one 2170 echo two > conftest.two 2171 mkdir conftest.dir 2172 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2173 test -s conftest.one && test -s conftest.two && 2174 test -s conftest.dir/conftest.one && 2175 test -s conftest.dir/conftest.two 2176 then 2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2178 break 3 2179 fi 2180 fi 2181 fi 2182 done 2183 done 2184 ;; 2185 esac 2186 2187 done 2188 IFS=$as_save_IFS 2189 2190 rm -rf conftest.one conftest.two conftest.dir 2191 2192 fi 2193 if test "${ac_cv_path_install+set}" = set; then 2194 INSTALL=$ac_cv_path_install 2195 else 2196 # As a last resort, use the slow shell script. Don't cache a 2197 # value for INSTALL within a source directory, because that will 2198 # break other packages using the cache if that directory is 2199 # removed, or if the value is a relative name. 2200 INSTALL=$ac_install_sh 2201 fi 2202 fi 2203 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2204 $as_echo "$INSTALL" >&6; } 2205 2206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2207 # It thinks the first close brace ends the variable substitution. 2208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2209 2210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2211 2212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2213 2214 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2215 $as_echo_n "checking whether build environment is sane... " >&6; } 2216 # Just in case 2217 sleep 1 2218 echo timestamp > conftest.file 2219 # Reject unsafe characters in $srcdir or the absolute working directory 2220 # name. Accept space and tab only in the latter. 2221 am_lf=' 2222 ' 2223 case `pwd` in 2224 *[\\\"\#\$\&\'\`$am_lf]*) 2225 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2226 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2227 { (exit 1); exit 1; }; };; 2228 esac 2229 case $srcdir in 2230 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2231 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2232 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2233 { (exit 1); exit 1; }; };; 2234 esac 2235 2236 # Do `set' in a subshell so we don't clobber the current shell's 2237 # arguments. Must try -L first in case configure is actually a 2238 # symlink; some systems play weird games with the mod time of symlinks 2239 # (eg FreeBSD returns the mod time of the symlink's containing 2240 # directory). 2241 if ( 2242 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2243 if test "$*" = "X"; then 2244 # -L didn't work. 2245 set X `ls -t "$srcdir/configure" conftest.file` 2246 fi 2247 rm -f conftest.file 2248 if test "$*" != "X $srcdir/configure conftest.file" \ 2249 && test "$*" != "X conftest.file $srcdir/configure"; then 2250 2251 # If neither matched, then we have a broken ls. This can happen 2252 # if, for instance, CONFIG_SHELL is bash and it inherits a 2253 # broken ls alias from the environment. This has actually 2254 # happened. Such a system could not be considered "sane". 2255 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2256 alias in your environment" >&5 2257 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2258 alias in your environment" >&2;} 2259 { (exit 1); exit 1; }; } 2260 fi 2261 2262 test "$2" = conftest.file 2263 ) 2264 then 2265 # Ok. 2266 : 2267 else 2268 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2269 Check your system clock" >&5 2270 $as_echo "$as_me: error: newly created file is older than distributed files! 2271 Check your system clock" >&2;} 2272 { (exit 1); exit 1; }; } 2273 fi 2274 { $as_echo "$as_me:$LINENO: result: yes" >&5 2275 $as_echo "yes" >&6; } 2276 test "$program_prefix" != NONE && 2277 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2278 # Use a double $ so make ignores it. 2279 test "$program_suffix" != NONE && 2280 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2281 # Double any \ or $. 2282 # By default was `s,x,x', remove it if useless. 2283 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2284 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2285 2286 # expand $ac_aux_dir to an absolute path 2287 am_aux_dir=`cd $ac_aux_dir && pwd` 2288 2289 if test x"${MISSING+set}" != xset; then 2290 case $am_aux_dir in 2291 *\ * | *\ *) 2292 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2293 *) 2294 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2295 esac 2296 fi 2297 # Use eval to expand $SHELL 2298 if eval "$MISSING --run true"; then 2299 am_missing_run="$MISSING --run " 2300 else 2301 am_missing_run= 2302 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2303 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2304 fi 2305 2306 if test x"${install_sh}" != xset; then 2307 case $am_aux_dir in 2308 *\ * | *\ *) 2309 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2310 *) 2311 install_sh="\${SHELL} $am_aux_dir/install-sh" 2312 esac 2313 fi 2314 2315 # Installed binaries are usually stripped using `strip' when the user 2316 # run `make install-strip'. However `strip' might not be the right 2317 # tool to use in cross-compilation environments, therefore Automake 2318 # will honor the `STRIP' environment variable to overrule this program. 2319 if test "$cross_compiling" != no; then 2320 if test -n "$ac_tool_prefix"; then 2321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2322 set dummy ${ac_tool_prefix}strip; ac_word=$2 2323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2324 $as_echo_n "checking for $ac_word... " >&6; } 2325 if test "${ac_cv_prog_STRIP+set}" = set; then 2326 $as_echo_n "(cached) " >&6 2327 else 2328 if test -n "$STRIP"; then 2329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2330 else 2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2332 for as_dir in $PATH 2333 do 2334 IFS=$as_save_IFS 2335 test -z "$as_dir" && as_dir=. 2336 for ac_exec_ext in '' $ac_executable_extensions; do 2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2338 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2340 break 2 2341 fi 2342 done 2343 done 2344 IFS=$as_save_IFS 2345 2346 fi 2347 fi 2348 STRIP=$ac_cv_prog_STRIP 2349 if test -n "$STRIP"; then 2350 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2351 $as_echo "$STRIP" >&6; } 2352 else 2353 { $as_echo "$as_me:$LINENO: result: no" >&5 2354 $as_echo "no" >&6; } 2355 fi 2356 2357 2358 fi 2359 if test -z "$ac_cv_prog_STRIP"; then 2360 ac_ct_STRIP=$STRIP 2361 # Extract the first word of "strip", so it can be a program name with args. 2362 set dummy strip; ac_word=$2 2363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2364 $as_echo_n "checking for $ac_word... " >&6; } 2365 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2366 $as_echo_n "(cached) " >&6 2367 else 2368 if test -n "$ac_ct_STRIP"; then 2369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2370 else 2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2372 for as_dir in $PATH 2373 do 2374 IFS=$as_save_IFS 2375 test -z "$as_dir" && as_dir=. 2376 for ac_exec_ext in '' $ac_executable_extensions; do 2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2378 ac_cv_prog_ac_ct_STRIP="strip" 2379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2380 break 2 2381 fi 2382 done 2383 done 2384 IFS=$as_save_IFS 2385 2386 fi 2387 fi 2388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2389 if test -n "$ac_ct_STRIP"; then 2390 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2391 $as_echo "$ac_ct_STRIP" >&6; } 2392 else 2393 { $as_echo "$as_me:$LINENO: result: no" >&5 2394 $as_echo "no" >&6; } 2395 fi 2396 2397 if test "x$ac_ct_STRIP" = x; then 2398 STRIP=":" 2399 else 2400 case $cross_compiling:$ac_tool_warned in 2401 yes:) 2402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2404 ac_tool_warned=yes ;; 2405 esac 2406 STRIP=$ac_ct_STRIP 2407 fi 2408 else 2409 STRIP="$ac_cv_prog_STRIP" 2410 fi 2411 2412 fi 2413 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2414 2415 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2416 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2417 if test -z "$MKDIR_P"; then 2418 if test "${ac_cv_path_mkdir+set}" = set; then 2419 $as_echo_n "(cached) " >&6 2420 else 2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2423 do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 for ac_prog in mkdir gmkdir; do 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2429 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2430 'mkdir (GNU coreutils) '* | \ 2431 'mkdir (coreutils) '* | \ 2432 'mkdir (fileutils) '4.1*) 2433 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2434 break 3;; 2435 esac 2436 done 2437 done 2438 done 2439 IFS=$as_save_IFS 2440 2441 fi 2442 2443 if test "${ac_cv_path_mkdir+set}" = set; then 2444 MKDIR_P="$ac_cv_path_mkdir -p" 2445 else 2446 # As a last resort, use the slow shell script. Don't cache a 2447 # value for MKDIR_P within a source directory, because that will 2448 # break other packages using the cache if that directory is 2449 # removed, or if the value is a relative name. 2450 test -d ./--version && rmdir ./--version 2451 MKDIR_P="$ac_install_sh -d" 2452 fi 2453 fi 2454 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2455 $as_echo "$MKDIR_P" >&6; } 2456 2457 mkdir_p="$MKDIR_P" 2458 case $mkdir_p in 2459 [\\/$]* | ?:[\\/]*) ;; 2460 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2461 esac 2462 2463 for ac_prog in gawk mawk nawk awk 2464 do 2465 # Extract the first word of "$ac_prog", so it can be a program name with args. 2466 set dummy $ac_prog; ac_word=$2 2467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2468 $as_echo_n "checking for $ac_word... " >&6; } 2469 if test "${ac_cv_prog_AWK+set}" = set; then 2470 $as_echo_n "(cached) " >&6 2471 else 2472 if test -n "$AWK"; then 2473 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2474 else 2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476 for as_dir in $PATH 2477 do 2478 IFS=$as_save_IFS 2479 test -z "$as_dir" && as_dir=. 2480 for ac_exec_ext in '' $ac_executable_extensions; do 2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2482 ac_cv_prog_AWK="$ac_prog" 2483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2484 break 2 2485 fi 2486 done 2487 done 2488 IFS=$as_save_IFS 2489 2490 fi 2491 fi 2492 AWK=$ac_cv_prog_AWK 2493 if test -n "$AWK"; then 2494 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2495 $as_echo "$AWK" >&6; } 2496 else 2497 { $as_echo "$as_me:$LINENO: result: no" >&5 2498 $as_echo "no" >&6; } 2499 fi 2500 2501 2502 test -n "$AWK" && break 2503 done 2504 2505 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2506 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2507 set x ${MAKE-make} 2508 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2509 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2510 $as_echo_n "(cached) " >&6 2511 else 2512 cat >conftest.make <<\_ACEOF 2513 SHELL = /bin/sh 2514 all: 2515 @echo '@@@%%%=$(MAKE)=@@@%%%' 2516 _ACEOF 2517 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2518 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2519 *@@@%%%=?*=@@@%%%*) 2520 eval ac_cv_prog_make_${ac_make}_set=yes;; 2521 *) 2522 eval ac_cv_prog_make_${ac_make}_set=no;; 2523 esac 2524 rm -f conftest.make 2525 fi 2526 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2527 { $as_echo "$as_me:$LINENO: result: yes" >&5 2528 $as_echo "yes" >&6; } 2529 SET_MAKE= 2530 else 2531 { $as_echo "$as_me:$LINENO: result: no" >&5 2532 $as_echo "no" >&6; } 2533 SET_MAKE="MAKE=${MAKE-make}" 2534 fi 2535 2536 rm -rf .tst 2>/dev/null 2537 mkdir .tst 2>/dev/null 2538 if test -d .tst; then 2539 am__leading_dot=. 2540 else 2541 am__leading_dot=_ 2542 fi 2543 rmdir .tst 2>/dev/null 2544 2545 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2546 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2547 # is not polluted with repeated "-I." 2548 am__isrc=' -I$(srcdir)' 2549 # test to see if srcdir already configured 2550 if test -f $srcdir/config.status; then 2551 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2552 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2553 { (exit 1); exit 1; }; } 2554 fi 2555 fi 2556 2557 # test whether we have cygpath 2558 if test -z "$CYGPATH_W"; then 2559 if (cygpath --version) >/dev/null 2>/dev/null; then 2560 CYGPATH_W='cygpath -w' 2561 else 2562 CYGPATH_W=echo 2563 fi 2564 fi 2565 2566 2567 # Define the identity of the package. 2568 PACKAGE='libXfontcache' 2569 VERSION='1.0.5' 2570 2571 2572 cat >>confdefs.h <<_ACEOF 2573 #define PACKAGE "$PACKAGE" 2574 _ACEOF 2575 2576 2577 cat >>confdefs.h <<_ACEOF 2578 #define VERSION "$VERSION" 2579 _ACEOF 2580 2581 # Some tools Automake needs. 2582 2583 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2584 2585 2586 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2587 2588 2589 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2590 2591 2592 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2593 2594 2595 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2596 2597 # We need awk for the "check" target. The system "awk" is bad on 2598 # some platforms. 2599 # Always define AMTAR for backward compatibility. 2600 2601 AMTAR=${AMTAR-"${am_missing_run}tar"} 2602 2603 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2604 2605 2606 2607 2608 2609 2610 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2611 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2612 # Check whether --enable-maintainer-mode was given. 2613 if test "${enable_maintainer_mode+set}" = set; then 2614 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2615 else 2616 USE_MAINTAINER_MODE=no 2617 fi 2618 2619 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2620 $as_echo "$USE_MAINTAINER_MODE" >&6; } 2621 if test $USE_MAINTAINER_MODE = yes; then 2622 MAINTAINER_MODE_TRUE= 2623 MAINTAINER_MODE_FALSE='#' 2624 else 2625 MAINTAINER_MODE_TRUE='#' 2626 MAINTAINER_MODE_FALSE= 2627 fi 2628 2629 MAINT=$MAINTAINER_MODE_TRUE 2630 2631 2632 2633 # Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 ac_config_headers="$ac_config_headers config.h" 2646 2647 2648 # Check for progs 2649 ac_ext=c 2650 ac_cpp='$CPP $CPPFLAGS' 2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2654 if test -n "$ac_tool_prefix"; then 2655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2656 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2658 $as_echo_n "checking for $ac_word... " >&6; } 2659 if test "${ac_cv_prog_CC+set}" = set; then 2660 $as_echo_n "(cached) " >&6 2661 else 2662 if test -n "$CC"; then 2663 ac_cv_prog_CC="$CC" # Let the user override the test. 2664 else 2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666 for as_dir in $PATH 2667 do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2672 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676 done 2677 done 2678 IFS=$as_save_IFS 2679 2680 fi 2681 fi 2682 CC=$ac_cv_prog_CC 2683 if test -n "$CC"; then 2684 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2685 $as_echo "$CC" >&6; } 2686 else 2687 { $as_echo "$as_me:$LINENO: result: no" >&5 2688 $as_echo "no" >&6; } 2689 fi 2690 2691 2692 fi 2693 if test -z "$ac_cv_prog_CC"; then 2694 ac_ct_CC=$CC 2695 # Extract the first word of "gcc", so it can be a program name with args. 2696 set dummy gcc; ac_word=$2 2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2698 $as_echo_n "checking for $ac_word... " >&6; } 2699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2700 $as_echo_n "(cached) " >&6 2701 else 2702 if test -n "$ac_ct_CC"; then 2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2704 else 2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2706 for as_dir in $PATH 2707 do 2708 IFS=$as_save_IFS 2709 test -z "$as_dir" && as_dir=. 2710 for ac_exec_ext in '' $ac_executable_extensions; do 2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2712 ac_cv_prog_ac_ct_CC="gcc" 2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2714 break 2 2715 fi 2716 done 2717 done 2718 IFS=$as_save_IFS 2719 2720 fi 2721 fi 2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2723 if test -n "$ac_ct_CC"; then 2724 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2725 $as_echo "$ac_ct_CC" >&6; } 2726 else 2727 { $as_echo "$as_me:$LINENO: result: no" >&5 2728 $as_echo "no" >&6; } 2729 fi 2730 2731 if test "x$ac_ct_CC" = x; then 2732 CC="" 2733 else 2734 case $cross_compiling:$ac_tool_warned in 2735 yes:) 2736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2738 ac_tool_warned=yes ;; 2739 esac 2740 CC=$ac_ct_CC 2741 fi 2742 else 2743 CC="$ac_cv_prog_CC" 2744 fi 2745 2746 if test -z "$CC"; then 2747 if test -n "$ac_tool_prefix"; then 2748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2749 set dummy ${ac_tool_prefix}cc; ac_word=$2 2750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2751 $as_echo_n "checking for $ac_word... " >&6; } 2752 if test "${ac_cv_prog_CC+set}" = set; then 2753 $as_echo_n "(cached) " >&6 2754 else 2755 if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757 else 2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759 for as_dir in $PATH 2760 do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2765 ac_cv_prog_CC="${ac_tool_prefix}cc" 2766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769 done 2770 done 2771 IFS=$as_save_IFS 2772 2773 fi 2774 fi 2775 CC=$ac_cv_prog_CC 2776 if test -n "$CC"; then 2777 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2778 $as_echo "$CC" >&6; } 2779 else 2780 { $as_echo "$as_me:$LINENO: result: no" >&5 2781 $as_echo "no" >&6; } 2782 fi 2783 2784 2785 fi 2786 fi 2787 if test -z "$CC"; then 2788 # Extract the first word of "cc", so it can be a program name with args. 2789 set dummy cc; ac_word=$2 2790 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2791 $as_echo_n "checking for $ac_word... " >&6; } 2792 if test "${ac_cv_prog_CC+set}" = set; then 2793 $as_echo_n "(cached) " >&6 2794 else 2795 if test -n "$CC"; then 2796 ac_cv_prog_CC="$CC" # Let the user override the test. 2797 else 2798 ac_prog_rejected=no 2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2800 for as_dir in $PATH 2801 do 2802 IFS=$as_save_IFS 2803 test -z "$as_dir" && as_dir=. 2804 for ac_exec_ext in '' $ac_executable_extensions; do 2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2806 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2807 ac_prog_rejected=yes 2808 continue 2809 fi 2810 ac_cv_prog_CC="cc" 2811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814 done 2815 done 2816 IFS=$as_save_IFS 2817 2818 if test $ac_prog_rejected = yes; then 2819 # We found a bogon in the path, so make sure we never use it. 2820 set dummy $ac_cv_prog_CC 2821 shift 2822 if test $# != 0; then 2823 # We chose a different compiler from the bogus one. 2824 # However, it has the same basename, so the bogon will be chosen 2825 # first if we set CC to just the basename; use the full file name. 2826 shift 2827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2828 fi 2829 fi 2830 fi 2831 fi 2832 CC=$ac_cv_prog_CC 2833 if test -n "$CC"; then 2834 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2835 $as_echo "$CC" >&6; } 2836 else 2837 { $as_echo "$as_me:$LINENO: result: no" >&5 2838 $as_echo "no" >&6; } 2839 fi 2840 2841 2842 fi 2843 if test -z "$CC"; then 2844 if test -n "$ac_tool_prefix"; then 2845 for ac_prog in cl.exe 2846 do 2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2850 $as_echo_n "checking for $ac_word... " >&6; } 2851 if test "${ac_cv_prog_CC+set}" = set; then 2852 $as_echo_n "(cached) " >&6 2853 else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856 else 2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858 for as_dir in $PATH 2859 do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868 done 2869 done 2870 IFS=$as_save_IFS 2871 2872 fi 2873 fi 2874 CC=$ac_cv_prog_CC 2875 if test -n "$CC"; then 2876 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2877 $as_echo "$CC" >&6; } 2878 else 2879 { $as_echo "$as_me:$LINENO: result: no" >&5 2880 $as_echo "no" >&6; } 2881 fi 2882 2883 2884 test -n "$CC" && break 2885 done 2886 fi 2887 if test -z "$CC"; then 2888 ac_ct_CC=$CC 2889 for ac_prog in cl.exe 2890 do 2891 # Extract the first word of "$ac_prog", so it can be a program name with args. 2892 set dummy $ac_prog; ac_word=$2 2893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2894 $as_echo_n "checking for $ac_word... " >&6; } 2895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2896 $as_echo_n "(cached) " >&6 2897 else 2898 if test -n "$ac_ct_CC"; then 2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2900 else 2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902 for as_dir in $PATH 2903 do 2904 IFS=$as_save_IFS 2905 test -z "$as_dir" && as_dir=. 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2908 ac_cv_prog_ac_ct_CC="$ac_prog" 2909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912 done 2913 done 2914 IFS=$as_save_IFS 2915 2916 fi 2917 fi 2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2919 if test -n "$ac_ct_CC"; then 2920 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2921 $as_echo "$ac_ct_CC" >&6; } 2922 else 2923 { $as_echo "$as_me:$LINENO: result: no" >&5 2924 $as_echo "no" >&6; } 2925 fi 2926 2927 2928 test -n "$ac_ct_CC" && break 2929 done 2930 2931 if test "x$ac_ct_CC" = x; then 2932 CC="" 2933 else 2934 case $cross_compiling:$ac_tool_warned in 2935 yes:) 2936 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2938 ac_tool_warned=yes ;; 2939 esac 2940 CC=$ac_ct_CC 2941 fi 2942 fi 2943 2944 fi 2945 2946 2947 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2949 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2950 See \`config.log' for more details." >&5 2951 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2952 See \`config.log' for more details." >&2;} 2953 { (exit 1); exit 1; }; }; } 2954 2955 # Provide some information about the compiler. 2956 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2957 set X $ac_compile 2958 ac_compiler=$2 2959 { (ac_try="$ac_compiler --version >&5" 2960 case "(($ac_try" in 2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2962 *) ac_try_echo=$ac_try;; 2963 esac 2964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2965 $as_echo "$ac_try_echo") >&5 2966 (eval "$ac_compiler --version >&5") 2>&5 2967 ac_status=$? 2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); } 2970 { (ac_try="$ac_compiler -v >&5" 2971 case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974 esac 2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2976 $as_echo "$ac_try_echo") >&5 2977 (eval "$ac_compiler -v >&5") 2>&5 2978 ac_status=$? 2979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); } 2981 { (ac_try="$ac_compiler -V >&5" 2982 case "(($ac_try" in 2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2984 *) ac_try_echo=$ac_try;; 2985 esac 2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2987 $as_echo "$ac_try_echo") >&5 2988 (eval "$ac_compiler -V >&5") 2>&5 2989 ac_status=$? 2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); } 2992 2993 cat >conftest.$ac_ext <<_ACEOF 2994 /* confdefs.h. */ 2995 _ACEOF 2996 cat confdefs.h >>conftest.$ac_ext 2997 cat >>conftest.$ac_ext <<_ACEOF 2998 /* end confdefs.h. */ 2999 3000 int 3001 main () 3002 { 3003 3004 ; 3005 return 0; 3006 } 3007 _ACEOF 3008 ac_clean_files_save=$ac_clean_files 3009 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3010 # Try to create an executable without -o first, disregard a.out. 3011 # It will help us diagnose broken compilers, and finding out an intuition 3012 # of exeext. 3013 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3014 $as_echo_n "checking for C compiler default output file name... " >&6; } 3015 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3016 3017 # The possible output files: 3018 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3019 3020 ac_rmfiles= 3021 for ac_file in $ac_files 3022 do 3023 case $ac_file in 3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3025 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3026 esac 3027 done 3028 rm -f $ac_rmfiles 3029 3030 if { (ac_try="$ac_link_default" 3031 case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034 esac 3035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3036 $as_echo "$ac_try_echo") >&5 3037 (eval "$ac_link_default") 2>&5 3038 ac_status=$? 3039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); }; then 3041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3042 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3043 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3044 # so that the user can short-circuit this test for compilers unknown to 3045 # Autoconf. 3046 for ac_file in $ac_files '' 3047 do 3048 test -f "$ac_file" || continue 3049 case $ac_file in 3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3051 ;; 3052 [ab].out ) 3053 # We found the default executable, but exeext='' is most 3054 # certainly right. 3055 break;; 3056 *.* ) 3057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3058 then :; else 3059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3060 fi 3061 # We set ac_cv_exeext here because the later test for it is not 3062 # safe: cross compilers may not add the suffix if given an `-o' 3063 # argument, so we may need to know it at that point already. 3064 # Even if this section looks crufty: it has the advantage of 3065 # actually working. 3066 break;; 3067 * ) 3068 break;; 3069 esac 3070 done 3071 test "$ac_cv_exeext" = no && ac_cv_exeext= 3072 3073 else 3074 ac_file='' 3075 fi 3076 3077 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3078 $as_echo "$ac_file" >&6; } 3079 if test -z "$ac_file"; then 3080 $as_echo "$as_me: failed program was:" >&5 3081 sed 's/^/| /' conftest.$ac_ext >&5 3082 3083 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3085 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3086 See \`config.log' for more details." >&5 3087 $as_echo "$as_me: error: C compiler cannot create executables 3088 See \`config.log' for more details." >&2;} 3089 { (exit 77); exit 77; }; }; } 3090 fi 3091 3092 ac_exeext=$ac_cv_exeext 3093 3094 # Check that the compiler produces executables we can run. If not, either 3095 # the compiler is broken, or we cross compile. 3096 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3097 $as_echo_n "checking whether the C compiler works... " >&6; } 3098 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3099 # If not cross compiling, check that we can run a simple program. 3100 if test "$cross_compiling" != yes; then 3101 if { ac_try='./$ac_file' 3102 { (case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105 esac 3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3107 $as_echo "$ac_try_echo") >&5 3108 (eval "$ac_try") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); }; }; then 3112 cross_compiling=no 3113 else 3114 if test "$cross_compiling" = maybe; then 3115 cross_compiling=yes 3116 else 3117 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3119 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3120 If you meant to cross compile, use \`--host'. 3121 See \`config.log' for more details." >&5 3122 $as_echo "$as_me: error: cannot run C compiled programs. 3123 If you meant to cross compile, use \`--host'. 3124 See \`config.log' for more details." >&2;} 3125 { (exit 1); exit 1; }; }; } 3126 fi 3127 fi 3128 fi 3129 { $as_echo "$as_me:$LINENO: result: yes" >&5 3130 $as_echo "yes" >&6; } 3131 3132 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3133 ac_clean_files=$ac_clean_files_save 3134 # Check that the compiler produces executables we can run. If not, either 3135 # the compiler is broken, or we cross compile. 3136 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3137 $as_echo_n "checking whether we are cross compiling... " >&6; } 3138 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3139 $as_echo "$cross_compiling" >&6; } 3140 3141 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3142 $as_echo_n "checking for suffix of executables... " >&6; } 3143 if { (ac_try="$ac_link" 3144 case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147 esac 3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3149 $as_echo "$ac_try_echo") >&5 3150 (eval "$ac_link") 2>&5 3151 ac_status=$? 3152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 (exit $ac_status); }; then 3154 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3156 # work properly (i.e., refer to `conftest.exe'), while it won't with 3157 # `rm'. 3158 for ac_file in conftest.exe conftest conftest.*; do 3159 test -f "$ac_file" || continue 3160 case $ac_file in 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3163 break;; 3164 * ) break;; 3165 esac 3166 done 3167 else 3168 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3170 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3171 See \`config.log' for more details." >&5 3172 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3173 See \`config.log' for more details." >&2;} 3174 { (exit 1); exit 1; }; }; } 3175 fi 3176 3177 rm -f conftest$ac_cv_exeext 3178 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3179 $as_echo "$ac_cv_exeext" >&6; } 3180 3181 rm -f conftest.$ac_ext 3182 EXEEXT=$ac_cv_exeext 3183 ac_exeext=$EXEEXT 3184 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3185 $as_echo_n "checking for suffix of object files... " >&6; } 3186 if test "${ac_cv_objext+set}" = set; then 3187 $as_echo_n "(cached) " >&6 3188 else 3189 cat >conftest.$ac_ext <<_ACEOF 3190 /* confdefs.h. */ 3191 _ACEOF 3192 cat confdefs.h >>conftest.$ac_ext 3193 cat >>conftest.$ac_ext <<_ACEOF 3194 /* end confdefs.h. */ 3195 3196 int 3197 main () 3198 { 3199 3200 ; 3201 return 0; 3202 } 3203 _ACEOF 3204 rm -f conftest.o conftest.obj 3205 if { (ac_try="$ac_compile" 3206 case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209 esac 3210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3211 $as_echo "$ac_try_echo") >&5 3212 (eval "$ac_compile") 2>&5 3213 ac_status=$? 3214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3215 (exit $ac_status); }; then 3216 for ac_file in conftest.o conftest.obj conftest.*; do 3217 test -f "$ac_file" || continue; 3218 case $ac_file in 3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3221 break;; 3222 esac 3223 done 3224 else 3225 $as_echo "$as_me: failed program was:" >&5 3226 sed 's/^/| /' conftest.$ac_ext >&5 3227 3228 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3231 See \`config.log' for more details." >&5 3232 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3233 See \`config.log' for more details." >&2;} 3234 { (exit 1); exit 1; }; }; } 3235 fi 3236 3237 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3238 fi 3239 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3240 $as_echo "$ac_cv_objext" >&6; } 3241 OBJEXT=$ac_cv_objext 3242 ac_objext=$OBJEXT 3243 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3245 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3246 $as_echo_n "(cached) " >&6 3247 else 3248 cat >conftest.$ac_ext <<_ACEOF 3249 /* confdefs.h. */ 3250 _ACEOF 3251 cat confdefs.h >>conftest.$ac_ext 3252 cat >>conftest.$ac_ext <<_ACEOF 3253 /* end confdefs.h. */ 3254 3255 int 3256 main () 3257 { 3258 #ifndef __GNUC__ 3259 choke me 3260 #endif 3261 3262 ; 3263 return 0; 3264 } 3265 _ACEOF 3266 rm -f conftest.$ac_objext 3267 if { (ac_try="$ac_compile" 3268 case "(($ac_try" in 3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270 *) ac_try_echo=$ac_try;; 3271 esac 3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3273 $as_echo "$ac_try_echo") >&5 3274 (eval "$ac_compile") 2>conftest.er1 3275 ac_status=$? 3276 grep -v '^ *+' conftest.er1 >conftest.err 3277 rm -f conftest.er1 3278 cat conftest.err >&5 3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); } && { 3281 test -z "$ac_c_werror_flag" || 3282 test ! -s conftest.err 3283 } && test -s conftest.$ac_objext; then 3284 ac_compiler_gnu=yes 3285 else 3286 $as_echo "$as_me: failed program was:" >&5 3287 sed 's/^/| /' conftest.$ac_ext >&5 3288 3289 ac_compiler_gnu=no 3290 fi 3291 3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3294 3295 fi 3296 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3297 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3298 if test $ac_compiler_gnu = yes; then 3299 GCC=yes 3300 else 3301 GCC= 3302 fi 3303 ac_test_CFLAGS=${CFLAGS+set} 3304 ac_save_CFLAGS=$CFLAGS 3305 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3306 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3307 if test "${ac_cv_prog_cc_g+set}" = set; then 3308 $as_echo_n "(cached) " >&6 3309 else 3310 ac_save_c_werror_flag=$ac_c_werror_flag 3311 ac_c_werror_flag=yes 3312 ac_cv_prog_cc_g=no 3313 CFLAGS="-g" 3314 cat >conftest.$ac_ext <<_ACEOF 3315 /* confdefs.h. */ 3316 _ACEOF 3317 cat confdefs.h >>conftest.$ac_ext 3318 cat >>conftest.$ac_ext <<_ACEOF 3319 /* end confdefs.h. */ 3320 3321 int 3322 main () 3323 { 3324 3325 ; 3326 return 0; 3327 } 3328 _ACEOF 3329 rm -f conftest.$ac_objext 3330 if { (ac_try="$ac_compile" 3331 case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334 esac 3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3336 $as_echo "$ac_try_echo") >&5 3337 (eval "$ac_compile") 2>conftest.er1 3338 ac_status=$? 3339 grep -v '^ *+' conftest.er1 >conftest.err 3340 rm -f conftest.er1 3341 cat conftest.err >&5 3342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343 (exit $ac_status); } && { 3344 test -z "$ac_c_werror_flag" || 3345 test ! -s conftest.err 3346 } && test -s conftest.$ac_objext; then 3347 ac_cv_prog_cc_g=yes 3348 else 3349 $as_echo "$as_me: failed program was:" >&5 3350 sed 's/^/| /' conftest.$ac_ext >&5 3351 3352 CFLAGS="" 3353 cat >conftest.$ac_ext <<_ACEOF 3354 /* confdefs.h. */ 3355 _ACEOF 3356 cat confdefs.h >>conftest.$ac_ext 3357 cat >>conftest.$ac_ext <<_ACEOF 3358 /* end confdefs.h. */ 3359 3360 int 3361 main () 3362 { 3363 3364 ; 3365 return 0; 3366 } 3367 _ACEOF 3368 rm -f conftest.$ac_objext 3369 if { (ac_try="$ac_compile" 3370 case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373 esac 3374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3375 $as_echo "$ac_try_echo") >&5 3376 (eval "$ac_compile") 2>conftest.er1 3377 ac_status=$? 3378 grep -v '^ *+' conftest.er1 >conftest.err 3379 rm -f conftest.er1 3380 cat conftest.err >&5 3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); } && { 3383 test -z "$ac_c_werror_flag" || 3384 test ! -s conftest.err 3385 } && test -s conftest.$ac_objext; then 3386 : 3387 else 3388 $as_echo "$as_me: failed program was:" >&5 3389 sed 's/^/| /' conftest.$ac_ext >&5 3390 3391 ac_c_werror_flag=$ac_save_c_werror_flag 3392 CFLAGS="-g" 3393 cat >conftest.$ac_ext <<_ACEOF 3394 /* confdefs.h. */ 3395 _ACEOF 3396 cat confdefs.h >>conftest.$ac_ext 3397 cat >>conftest.$ac_ext <<_ACEOF 3398 /* end confdefs.h. */ 3399 3400 int 3401 main () 3402 { 3403 3404 ; 3405 return 0; 3406 } 3407 _ACEOF 3408 rm -f conftest.$ac_objext 3409 if { (ac_try="$ac_compile" 3410 case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413 esac 3414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3415 $as_echo "$ac_try_echo") >&5 3416 (eval "$ac_compile") 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } && { 3423 test -z "$ac_c_werror_flag" || 3424 test ! -s conftest.err 3425 } && test -s conftest.$ac_objext; then 3426 ac_cv_prog_cc_g=yes 3427 else 3428 $as_echo "$as_me: failed program was:" >&5 3429 sed 's/^/| /' conftest.$ac_ext >&5 3430 3431 3432 fi 3433 3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3435 fi 3436 3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3438 fi 3439 3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3441 ac_c_werror_flag=$ac_save_c_werror_flag 3442 fi 3443 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3444 $as_echo "$ac_cv_prog_cc_g" >&6; } 3445 if test "$ac_test_CFLAGS" = set; then 3446 CFLAGS=$ac_save_CFLAGS 3447 elif test $ac_cv_prog_cc_g = yes; then 3448 if test "$GCC" = yes; then 3449 CFLAGS="-g -O2" 3450 else 3451 CFLAGS="-g" 3452 fi 3453 else 3454 if test "$GCC" = yes; then 3455 CFLAGS="-O2" 3456 else 3457 CFLAGS= 3458 fi 3459 fi 3460 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3461 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3462 if test "${ac_cv_prog_cc_c89+set}" = set; then 3463 $as_echo_n "(cached) " >&6 3464 else 3465 ac_cv_prog_cc_c89=no 3466 ac_save_CC=$CC 3467 cat >conftest.$ac_ext <<_ACEOF 3468 /* confdefs.h. */ 3469 _ACEOF 3470 cat confdefs.h >>conftest.$ac_ext 3471 cat >>conftest.$ac_ext <<_ACEOF 3472 /* end confdefs.h. */ 3473 #include <stdarg.h> 3474 #include <stdio.h> 3475 #include <sys/types.h> 3476 #include <sys/stat.h> 3477 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3478 struct buf { int x; }; 3479 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3480 static char *e (p, i) 3481 char **p; 3482 int i; 3483 { 3484 return p[i]; 3485 } 3486 static char *f (char * (*g) (char **, int), char **p, ...) 3487 { 3488 char *s; 3489 va_list v; 3490 va_start (v,p); 3491 s = g (p, va_arg (v,int)); 3492 va_end (v); 3493 return s; 3494 } 3495 3496 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3497 function prototypes and stuff, but not '\xHH' hex character constants. 3498 These don't provoke an error unfortunately, instead are silently treated 3499 as 'x'. The following induces an error, until -std is added to get 3500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3501 array size at least. It's necessary to write '\x00'==0 to get something 3502 that's true only with -std. */ 3503 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3504 3505 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3506 inside strings and character constants. */ 3507 #define FOO(x) 'x' 3508 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3509 3510 int test (int i, double x); 3511 struct s1 {int (*f) (int a);}; 3512 struct s2 {int (*f) (double a);}; 3513 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3514 int argc; 3515 char **argv; 3516 int 3517 main () 3518 { 3519 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3520 ; 3521 return 0; 3522 } 3523 _ACEOF 3524 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3526 do 3527 CC="$ac_save_CC $ac_arg" 3528 rm -f conftest.$ac_objext 3529 if { (ac_try="$ac_compile" 3530 case "(($ac_try" in 3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3532 *) ac_try_echo=$ac_try;; 3533 esac 3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3535 $as_echo "$ac_try_echo") >&5 3536 (eval "$ac_compile") 2>conftest.er1 3537 ac_status=$? 3538 grep -v '^ *+' conftest.er1 >conftest.err 3539 rm -f conftest.er1 3540 cat conftest.err >&5 3541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && { 3543 test -z "$ac_c_werror_flag" || 3544 test ! -s conftest.err 3545 } && test -s conftest.$ac_objext; then 3546 ac_cv_prog_cc_c89=$ac_arg 3547 else 3548 $as_echo "$as_me: failed program was:" >&5 3549 sed 's/^/| /' conftest.$ac_ext >&5 3550 3551 3552 fi 3553 3554 rm -f core conftest.err conftest.$ac_objext 3555 test "x$ac_cv_prog_cc_c89" != "xno" && break 3556 done 3557 rm -f conftest.$ac_ext 3558 CC=$ac_save_CC 3559 3560 fi 3561 # AC_CACHE_VAL 3562 case "x$ac_cv_prog_cc_c89" in 3563 x) 3564 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3565 $as_echo "none needed" >&6; } ;; 3566 xno) 3567 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3568 $as_echo "unsupported" >&6; } ;; 3569 *) 3570 CC="$CC $ac_cv_prog_cc_c89" 3571 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3572 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3573 esac 3574 3575 3576 ac_ext=c 3577 ac_cpp='$CPP $CPPFLAGS' 3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581 DEPDIR="${am__leading_dot}deps" 3582 3583 ac_config_commands="$ac_config_commands depfiles" 3584 3585 3586 am_make=${MAKE-make} 3587 cat > confinc << 'END' 3588 am__doit: 3589 @echo this is the am__doit target 3590 .PHONY: am__doit 3591 END 3592 # If we don't find an include directive, just comment out the code. 3593 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3594 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3595 am__include="#" 3596 am__quote= 3597 _am_result=none 3598 # First try GNU make style include. 3599 echo "include confinc" > confmf 3600 # Ignore all kinds of additional output from `make'. 3601 case `$am_make -s -f confmf 2> /dev/null` in #( 3602 *the\ am__doit\ target*) 3603 am__include=include 3604 am__quote= 3605 _am_result=GNU 3606 ;; 3607 esac 3608 # Now try BSD make style include. 3609 if test "$am__include" = "#"; then 3610 echo '.include "confinc"' > confmf 3611 case `$am_make -s -f confmf 2> /dev/null` in #( 3612 *the\ am__doit\ target*) 3613 am__include=.include 3614 am__quote="\"" 3615 _am_result=BSD 3616 ;; 3617 esac 3618 fi 3619 3620 3621 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3622 $as_echo "$_am_result" >&6; } 3623 rm -f confinc confmf 3624 3625 # Check whether --enable-dependency-tracking was given. 3626 if test "${enable_dependency_tracking+set}" = set; then 3627 enableval=$enable_dependency_tracking; 3628 fi 3629 3630 if test "x$enable_dependency_tracking" != xno; then 3631 am_depcomp="$ac_aux_dir/depcomp" 3632 AMDEPBACKSLASH='\' 3633 fi 3634 if test "x$enable_dependency_tracking" != xno; then 3635 AMDEP_TRUE= 3636 AMDEP_FALSE='#' 3637 else 3638 AMDEP_TRUE='#' 3639 AMDEP_FALSE= 3640 fi 3641 3642 3643 3644 depcc="$CC" am_compiler_list= 3645 3646 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3647 $as_echo_n "checking dependency style of $depcc... " >&6; } 3648 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3649 $as_echo_n "(cached) " >&6 3650 else 3651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3652 # We make a subdir and do the tests there. Otherwise we can end up 3653 # making bogus files that we don't know about and never remove. For 3654 # instance it was reported that on HP-UX the gcc test will end up 3655 # making a dummy file named `D' -- because `-MD' means `put the output 3656 # in D'. 3657 mkdir conftest.dir 3658 # Copy depcomp to subdir because otherwise we won't find it if we're 3659 # using a relative directory. 3660 cp "$am_depcomp" conftest.dir 3661 cd conftest.dir 3662 # We will build objects and dependencies in a subdirectory because 3663 # it helps to detect inapplicable dependency modes. For instance 3664 # both Tru64's cc and ICC support -MD to output dependencies as a 3665 # side effect of compilation, but ICC will put the dependencies in 3666 # the current directory while Tru64 will put them in the object 3667 # directory. 3668 mkdir sub 3669 3670 am_cv_CC_dependencies_compiler_type=none 3671 if test "$am_compiler_list" = ""; then 3672 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3673 fi 3674 am__universal=false 3675 case " $depcc " in #( 3676 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3677 esac 3678 3679 for depmode in $am_compiler_list; do 3680 # Setup a source with many dependencies, because some compilers 3681 # like to wrap large dependency lists on column 80 (with \), and 3682 # we should not choose a depcomp mode which is confused by this. 3683 # 3684 # We need to recreate these files for each test, as the compiler may 3685 # overwrite some of them when testing with obscure command lines. 3686 # This happens at least with the AIX C compiler. 3687 : > sub/conftest.c 3688 for i in 1 2 3 4 5 6; do 3689 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3691 # Solaris 8's {/usr,}/bin/sh. 3692 touch sub/conftst$i.h 3693 done 3694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3695 3696 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3697 # mode. It turns out that the SunPro C++ compiler does not properly 3698 # handle `-M -o', and we need to detect this. Also, some Intel 3699 # versions had trouble with output in subdirs 3700 am__obj=sub/conftest.${OBJEXT-o} 3701 am__minus_obj="-o $am__obj" 3702 case $depmode in 3703 gcc) 3704 # This depmode causes a compiler race in universal mode. 3705 test "$am__universal" = false || continue 3706 ;; 3707 nosideeffect) 3708 # after this tag, mechanisms are not by side-effect, so they'll 3709 # only be used when explicitly requested 3710 if test "x$enable_dependency_tracking" = xyes; then 3711 continue 3712 else 3713 break 3714 fi 3715 ;; 3716 msvisualcpp | msvcmsys) 3717 # This compiler won't grok `-c -o', but also, the minuso test has 3718 # not run yet. These depmodes are late enough in the game, and 3719 # so weak that their functioning should not be impacted. 3720 am__obj=conftest.${OBJEXT-o} 3721 am__minus_obj= 3722 ;; 3723 none) break ;; 3724 esac 3725 if depmode=$depmode \ 3726 source=sub/conftest.c object=$am__obj \ 3727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3728 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3729 >/dev/null 2>conftest.err && 3730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3732 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3734 # icc doesn't choke on unknown options, it will just issue warnings 3735 # or remarks (even with -Werror). So we grep stderr for any message 3736 # that says an option was ignored or not supported. 3737 # When given -MP, icc 7.0 and 7.1 complain thusly: 3738 # icc: Command line warning: ignoring option '-M'; no argument required 3739 # The diagnosis changed in icc 8.0: 3740 # icc: Command line remark: option '-MP' not supported 3741 if (grep 'ignoring option' conftest.err || 3742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3743 am_cv_CC_dependencies_compiler_type=$depmode 3744 break 3745 fi 3746 fi 3747 done 3748 3749 cd .. 3750 rm -rf conftest.dir 3751 else 3752 am_cv_CC_dependencies_compiler_type=none 3753 fi 3754 3755 fi 3756 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3757 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3758 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3759 3760 if 3761 test "x$enable_dependency_tracking" != xno \ 3762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3763 am__fastdepCC_TRUE= 3764 am__fastdepCC_FALSE='#' 3765 else 3766 am__fastdepCC_TRUE='#' 3767 am__fastdepCC_FALSE= 3768 fi 3769 3770 3771 # Check whether --enable-shared was given. 3772 if test "${enable_shared+set}" = set; then 3773 enableval=$enable_shared; p=${PACKAGE-default} 3774 case $enableval in 3775 yes) enable_shared=yes ;; 3776 no) enable_shared=no ;; 3777 *) 3778 enable_shared=no 3779 # Look at the argument we got. We use all the common list separators. 3780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3781 for pkg in $enableval; do 3782 IFS="$lt_save_ifs" 3783 if test "X$pkg" = "X$p"; then 3784 enable_shared=yes 3785 fi 3786 done 3787 IFS="$lt_save_ifs" 3788 ;; 3789 esac 3790 else 3791 enable_shared=yes 3792 fi 3793 3794 3795 # Check whether --enable-static was given. 3796 if test "${enable_static+set}" = set; then 3797 enableval=$enable_static; p=${PACKAGE-default} 3798 case $enableval in 3799 yes) enable_static=yes ;; 3800 no) enable_static=no ;; 3801 *) 3802 enable_static=no 3803 # Look at the argument we got. We use all the common list separators. 3804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3805 for pkg in $enableval; do 3806 IFS="$lt_save_ifs" 3807 if test "X$pkg" = "X$p"; then 3808 enable_static=yes 3809 fi 3810 done 3811 IFS="$lt_save_ifs" 3812 ;; 3813 esac 3814 else 3815 enable_static=yes 3816 fi 3817 3818 3819 # Check whether --enable-fast-install was given. 3820 if test "${enable_fast_install+set}" = set; then 3821 enableval=$enable_fast_install; p=${PACKAGE-default} 3822 case $enableval in 3823 yes) enable_fast_install=yes ;; 3824 no) enable_fast_install=no ;; 3825 *) 3826 enable_fast_install=no 3827 # Look at the argument we got. We use all the common list separators. 3828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3829 for pkg in $enableval; do 3830 IFS="$lt_save_ifs" 3831 if test "X$pkg" = "X$p"; then 3832 enable_fast_install=yes 3833 fi 3834 done 3835 IFS="$lt_save_ifs" 3836 ;; 3837 esac 3838 else 3839 enable_fast_install=yes 3840 fi 3841 3842 3843 # Make sure we can run config.sub. 3844 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3845 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3846 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3847 { (exit 1); exit 1; }; } 3848 3849 { $as_echo "$as_me:$LINENO: checking build system type" >&5 3850 $as_echo_n "checking build system type... " >&6; } 3851 if test "${ac_cv_build+set}" = set; then 3852 $as_echo_n "(cached) " >&6 3853 else 3854 ac_build_alias=$build_alias 3855 test "x$ac_build_alias" = x && 3856 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3857 test "x$ac_build_alias" = x && 3858 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3859 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3860 { (exit 1); exit 1; }; } 3861 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3862 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3863 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3864 { (exit 1); exit 1; }; } 3865 3866 fi 3867 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3868 $as_echo "$ac_cv_build" >&6; } 3869 case $ac_cv_build in 3870 *-*-*) ;; 3871 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3872 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 3873 { (exit 1); exit 1; }; };; 3874 esac 3875 build=$ac_cv_build 3876 ac_save_IFS=$IFS; IFS='-' 3877 set x $ac_cv_build 3878 shift 3879 build_cpu=$1 3880 build_vendor=$2 3881 shift; shift 3882 # Remember, the first character of IFS is used to create $*, 3883 # except with old shells: 3884 build_os=$* 3885 IFS=$ac_save_IFS 3886 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3887 3888 3889 { $as_echo "$as_me:$LINENO: checking host system type" >&5 3890 $as_echo_n "checking host system type... " >&6; } 3891 if test "${ac_cv_host+set}" = set; then 3892 $as_echo_n "(cached) " >&6 3893 else 3894 if test "x$host_alias" = x; then 3895 ac_cv_host=$ac_cv_build 3896 else 3897 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3898 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3899 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3900 { (exit 1); exit 1; }; } 3901 fi 3902 3903 fi 3904 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3905 $as_echo "$ac_cv_host" >&6; } 3906 case $ac_cv_host in 3907 *-*-*) ;; 3908 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3909 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 3910 { (exit 1); exit 1; }; };; 3911 esac 3912 host=$ac_cv_host 3913 ac_save_IFS=$IFS; IFS='-' 3914 set x $ac_cv_host 3915 shift 3916 host_cpu=$1 3917 host_vendor=$2 3918 shift; shift 3919 # Remember, the first character of IFS is used to create $*, 3920 # except with old shells: 3921 host_os=$* 3922 IFS=$ac_save_IFS 3923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3924 3925 3926 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3927 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 3928 if test "${lt_cv_path_SED+set}" = set; then 3929 $as_echo_n "(cached) " >&6 3930 else 3931 # Loop through the user's path and test for sed and gsed. 3932 # Then use that list of sed's as ones to test for truncation. 3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3934 for as_dir in $PATH 3935 do 3936 IFS=$as_save_IFS 3937 test -z "$as_dir" && as_dir=. 3938 for lt_ac_prog in sed gsed; do 3939 for ac_exec_ext in '' $ac_executable_extensions; do 3940 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3941 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3942 fi 3943 done 3944 done 3945 done 3946 IFS=$as_save_IFS 3947 lt_ac_max=0 3948 lt_ac_count=0 3949 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 3950 # along with /bin/sed that truncates output. 3951 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3952 test ! -f $lt_ac_sed && continue 3953 cat /dev/null > conftest.in 3954 lt_ac_count=0 3955 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3956 # Check for GNU sed and select it if it is found. 3957 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3958 lt_cv_path_SED=$lt_ac_sed 3959 break 3960 fi 3961 while true; do 3962 cat conftest.in conftest.in >conftest.tmp 3963 mv conftest.tmp conftest.in 3964 cp conftest.in conftest.nl 3965 echo >>conftest.nl 3966 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3967 cmp -s conftest.out conftest.nl || break 3968 # 10000 chars as input seems more than enough 3969 test $lt_ac_count -gt 10 && break 3970 lt_ac_count=`expr $lt_ac_count + 1` 3971 if test $lt_ac_count -gt $lt_ac_max; then 3972 lt_ac_max=$lt_ac_count 3973 lt_cv_path_SED=$lt_ac_sed 3974 fi 3975 done 3976 done 3977 3978 fi 3979 3980 SED=$lt_cv_path_SED 3981 3982 { $as_echo "$as_me:$LINENO: result: $SED" >&5 3983 $as_echo "$SED" >&6; } 3984 3985 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3986 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3987 if test "${ac_cv_path_GREP+set}" = set; then 3988 $as_echo_n "(cached) " >&6 3989 else 3990 if test -z "$GREP"; then 3991 ac_path_GREP_found=false 3992 # Loop through the user's path and test for each of PROGNAME-LIST 3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3995 do 3996 IFS=$as_save_IFS 3997 test -z "$as_dir" && as_dir=. 3998 for ac_prog in grep ggrep; do 3999 for ac_exec_ext in '' $ac_executable_extensions; do 4000 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4002 # Check for GNU ac_path_GREP and select it if it is found. 4003 # Check for GNU $ac_path_GREP 4004 case `"$ac_path_GREP" --version 2>&1` in 4005 *GNU*) 4006 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4007 *) 4008 ac_count=0 4009 $as_echo_n 0123456789 >"conftest.in" 4010 while : 4011 do 4012 cat "conftest.in" "conftest.in" >"conftest.tmp" 4013 mv "conftest.tmp" "conftest.in" 4014 cp "conftest.in" "conftest.nl" 4015 $as_echo 'GREP' >> "conftest.nl" 4016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4018 ac_count=`expr $ac_count + 1` 4019 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4020 # Best one so far, save it but keep looking for a better one 4021 ac_cv_path_GREP="$ac_path_GREP" 4022 ac_path_GREP_max=$ac_count 4023 fi 4024 # 10*(2^10) chars as input seems more than enough 4025 test $ac_count -gt 10 && break 4026 done 4027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4028 esac 4029 4030 $ac_path_GREP_found && break 3 4031 done 4032 done 4033 done 4034 IFS=$as_save_IFS 4035 if test -z "$ac_cv_path_GREP"; then 4036 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4037 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4038 { (exit 1); exit 1; }; } 4039 fi 4040 else 4041 ac_cv_path_GREP=$GREP 4042 fi 4043 4044 fi 4045 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4046 $as_echo "$ac_cv_path_GREP" >&6; } 4047 GREP="$ac_cv_path_GREP" 4048 4049 4050 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 4051 $as_echo_n "checking for egrep... " >&6; } 4052 if test "${ac_cv_path_EGREP+set}" = set; then 4053 $as_echo_n "(cached) " >&6 4054 else 4055 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4056 then ac_cv_path_EGREP="$GREP -E" 4057 else 4058 if test -z "$EGREP"; then 4059 ac_path_EGREP_found=false 4060 # Loop through the user's path and test for each of PROGNAME-LIST 4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4063 do 4064 IFS=$as_save_IFS 4065 test -z "$as_dir" && as_dir=. 4066 for ac_prog in egrep; do 4067 for ac_exec_ext in '' $ac_executable_extensions; do 4068 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4069 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4070 # Check for GNU ac_path_EGREP and select it if it is found. 4071 # Check for GNU $ac_path_EGREP 4072 case `"$ac_path_EGREP" --version 2>&1` in 4073 *GNU*) 4074 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4075 *) 4076 ac_count=0 4077 $as_echo_n 0123456789 >"conftest.in" 4078 while : 4079 do 4080 cat "conftest.in" "conftest.in" >"conftest.tmp" 4081 mv "conftest.tmp" "conftest.in" 4082 cp "conftest.in" "conftest.nl" 4083 $as_echo 'EGREP' >> "conftest.nl" 4084 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4086 ac_count=`expr $ac_count + 1` 4087 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4088 # Best one so far, save it but keep looking for a better one 4089 ac_cv_path_EGREP="$ac_path_EGREP" 4090 ac_path_EGREP_max=$ac_count 4091 fi 4092 # 10*(2^10) chars as input seems more than enough 4093 test $ac_count -gt 10 && break 4094 done 4095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4096 esac 4097 4098 $ac_path_EGREP_found && break 3 4099 done 4100 done 4101 done 4102 IFS=$as_save_IFS 4103 if test -z "$ac_cv_path_EGREP"; then 4104 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4105 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4106 { (exit 1); exit 1; }; } 4107 fi 4108 else 4109 ac_cv_path_EGREP=$EGREP 4110 fi 4111 4112 fi 4113 fi 4114 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4115 $as_echo "$ac_cv_path_EGREP" >&6; } 4116 EGREP="$ac_cv_path_EGREP" 4117 4118 4119 4120 # Check whether --with-gnu-ld was given. 4121 if test "${with_gnu_ld+set}" = set; then 4122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4123 else 4124 with_gnu_ld=no 4125 fi 4126 4127 ac_prog=ld 4128 if test "$GCC" = yes; then 4129 # Check if gcc -print-prog-name=ld gives a path. 4130 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4131 $as_echo_n "checking for ld used by $CC... " >&6; } 4132 case $host in 4133 *-*-mingw*) 4134 # gcc leaves a trailing carriage return which upsets mingw 4135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4136 *) 4137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4138 esac 4139 case $ac_prog in 4140 # Accept absolute paths. 4141 [\\/]* | ?:[\\/]*) 4142 re_direlt='/[^/][^/]*/\.\./' 4143 # Canonicalize the pathname of ld 4144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4147 done 4148 test -z "$LD" && LD="$ac_prog" 4149 ;; 4150 "") 4151 # If it fails, then pretend we aren't using GCC. 4152 ac_prog=ld 4153 ;; 4154 *) 4155 # If it is relative, then search for the first ld in PATH. 4156 with_gnu_ld=unknown 4157 ;; 4158 esac 4159 elif test "$with_gnu_ld" = yes; then 4160 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4161 $as_echo_n "checking for GNU ld... " >&6; } 4162 else 4163 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4164 $as_echo_n "checking for non-GNU ld... " >&6; } 4165 fi 4166 if test "${lt_cv_path_LD+set}" = set; then 4167 $as_echo_n "(cached) " >&6 4168 else 4169 if test -z "$LD"; then 4170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4171 for ac_dir in $PATH; do 4172 IFS="$lt_save_ifs" 4173 test -z "$ac_dir" && ac_dir=. 4174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4175 lt_cv_path_LD="$ac_dir/$ac_prog" 4176 # Check to see if the program is GNU ld. I'd rather use --version, 4177 # but apparently some variants of GNU ld only accept -v. 4178 # Break only if it was the GNU/non-GNU ld that we prefer. 4179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4180 *GNU* | *'with BFD'*) 4181 test "$with_gnu_ld" != no && break 4182 ;; 4183 *) 4184 test "$with_gnu_ld" != yes && break 4185 ;; 4186 esac 4187 fi 4188 done 4189 IFS="$lt_save_ifs" 4190 else 4191 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4192 fi 4193 fi 4194 4195 LD="$lt_cv_path_LD" 4196 if test -n "$LD"; then 4197 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4198 $as_echo "$LD" >&6; } 4199 else 4200 { $as_echo "$as_me:$LINENO: result: no" >&5 4201 $as_echo "no" >&6; } 4202 fi 4203 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4204 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4205 { (exit 1); exit 1; }; } 4206 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4207 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4208 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4209 $as_echo_n "(cached) " >&6 4210 else 4211 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4212 case `$LD -v 2>&1 </dev/null` in 4213 *GNU* | *'with BFD'*) 4214 lt_cv_prog_gnu_ld=yes 4215 ;; 4216 *) 4217 lt_cv_prog_gnu_ld=no 4218 ;; 4219 esac 4220 fi 4221 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4222 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4223 with_gnu_ld=$lt_cv_prog_gnu_ld 4224 4225 4226 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4227 $as_echo_n "checking for $LD option to reload object files... " >&6; } 4228 if test "${lt_cv_ld_reload_flag+set}" = set; then 4229 $as_echo_n "(cached) " >&6 4230 else 4231 lt_cv_ld_reload_flag='-r' 4232 fi 4233 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4234 $as_echo "$lt_cv_ld_reload_flag" >&6; } 4235 reload_flag=$lt_cv_ld_reload_flag 4236 case $reload_flag in 4237 "" | " "*) ;; 4238 *) reload_flag=" $reload_flag" ;; 4239 esac 4240 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4241 case $host_os in 4242 darwin*) 4243 if test "$GCC" = yes; then 4244 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4245 else 4246 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4247 fi 4248 ;; 4249 esac 4250 4251 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4252 $as_echo_n "checking for BSD-compatible nm... " >&6; } 4253 if test "${lt_cv_path_NM+set}" = set; then 4254 $as_echo_n "(cached) " >&6 4255 else 4256 if test -n "$NM"; then 4257 # Let the user override the test. 4258 lt_cv_path_NM="$NM" 4259 else 4260 lt_nm_to_check="${ac_tool_prefix}nm" 4261 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4262 lt_nm_to_check="$lt_nm_to_check nm" 4263 fi 4264 for lt_tmp_nm in $lt_nm_to_check; do 4265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4266 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4267 IFS="$lt_save_ifs" 4268 test -z "$ac_dir" && ac_dir=. 4269 tmp_nm="$ac_dir/$lt_tmp_nm" 4270 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4271 # Check to see if the nm accepts a BSD-compat flag. 4272 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4273 # nm: unknown option "B" ignored 4274 # Tru64's nm complains that /dev/null is an invalid object file 4275 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4276 */dev/null* | *'Invalid file or object type'*) 4277 lt_cv_path_NM="$tmp_nm -B" 4278 break 4279 ;; 4280 *) 4281 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4282 */dev/null*) 4283 lt_cv_path_NM="$tmp_nm -p" 4284 break 4285 ;; 4286 *) 4287 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4288 continue # so that we can try to find one that supports BSD flags 4289 ;; 4290 esac 4291 ;; 4292 esac 4293 fi 4294 done 4295 IFS="$lt_save_ifs" 4296 done 4297 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4298 fi 4299 fi 4300 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4301 $as_echo "$lt_cv_path_NM" >&6; } 4302 NM="$lt_cv_path_NM" 4303 4304 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4305 $as_echo_n "checking whether ln -s works... " >&6; } 4306 LN_S=$as_ln_s 4307 if test "$LN_S" = "ln -s"; then 4308 { $as_echo "$as_me:$LINENO: result: yes" >&5 4309 $as_echo "yes" >&6; } 4310 else 4311 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4312 $as_echo "no, using $LN_S" >&6; } 4313 fi 4314 4315 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4316 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 4317 if test "${lt_cv_deplibs_check_method+set}" = set; then 4318 $as_echo_n "(cached) " >&6 4319 else 4320 lt_cv_file_magic_cmd='$MAGIC_CMD' 4321 lt_cv_file_magic_test_file= 4322 lt_cv_deplibs_check_method='unknown' 4323 # Need to set the preceding variable on all platforms that support 4324 # interlibrary dependencies. 4325 # 'none' -- dependencies not supported. 4326 # `unknown' -- same as none, but documents that we really don't know. 4327 # 'pass_all' -- all dependencies passed with no checks. 4328 # 'test_compile' -- check by making test program. 4329 # 'file_magic [[regex]]' -- check by looking for files in library path 4330 # which responds to the $file_magic_cmd with a given extended regex. 4331 # If you have `file' or equivalent on your system and you're not sure 4332 # whether `pass_all' will *always* work, you probably want this one. 4333 4334 case $host_os in 4335 aix[4-9]*) 4336 lt_cv_deplibs_check_method=pass_all 4337 ;; 4338 4339 beos*) 4340 lt_cv_deplibs_check_method=pass_all 4341 ;; 4342 4343 bsdi[45]*) 4344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4345 lt_cv_file_magic_cmd='/usr/bin/file -L' 4346 lt_cv_file_magic_test_file=/shlib/libc.so 4347 ;; 4348 4349 cygwin*) 4350 # func_win32_libid is a shell function defined in ltmain.sh 4351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4352 lt_cv_file_magic_cmd='func_win32_libid' 4353 ;; 4354 4355 mingw* | pw32*) 4356 # Base MSYS/MinGW do not provide the 'file' command needed by 4357 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4358 # unless we find 'file', for example because we are cross-compiling. 4359 if ( file / ) >/dev/null 2>&1; then 4360 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4361 lt_cv_file_magic_cmd='func_win32_libid' 4362 else 4363 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4364 lt_cv_file_magic_cmd='$OBJDUMP -f' 4365 fi 4366 ;; 4367 4368 darwin* | rhapsody*) 4369 lt_cv_deplibs_check_method=pass_all 4370 ;; 4371 4372 freebsd* | dragonfly*) 4373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4374 case $host_cpu in 4375 i*86 ) 4376 # Not sure whether the presence of OpenBSD here was a mistake. 4377 # Let's accept both of them until this is cleared up. 4378 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4379 lt_cv_file_magic_cmd=/usr/bin/file 4380 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4381 ;; 4382 esac 4383 else 4384 lt_cv_deplibs_check_method=pass_all 4385 fi 4386 ;; 4387 4388 gnu*) 4389 lt_cv_deplibs_check_method=pass_all 4390 ;; 4391 4392 hpux10.20* | hpux11*) 4393 lt_cv_file_magic_cmd=/usr/bin/file 4394 case $host_cpu in 4395 ia64*) 4396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4397 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4398 ;; 4399 hppa*64*) 4400 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]' 4401 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4402 ;; 4403 *) 4404 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4405 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4406 ;; 4407 esac 4408 ;; 4409 4410 interix[3-9]*) 4411 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4413 ;; 4414 4415 irix5* | irix6* | nonstopux*) 4416 case $LD in 4417 *-32|*"-32 ") libmagic=32-bit;; 4418 *-n32|*"-n32 ") libmagic=N32;; 4419 *-64|*"-64 ") libmagic=64-bit;; 4420 *) libmagic=never-match;; 4421 esac 4422 lt_cv_deplibs_check_method=pass_all 4423 ;; 4424 4425 # This must be Linux ELF. 4426 linux* | k*bsd*-gnu) 4427 lt_cv_deplibs_check_method=pass_all 4428 ;; 4429 4430 netbsd*) 4431 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4433 else 4434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4435 fi 4436 ;; 4437 4438 newos6*) 4439 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4440 lt_cv_file_magic_cmd=/usr/bin/file 4441 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4442 ;; 4443 4444 nto-qnx*) 4445 lt_cv_deplibs_check_method=unknown 4446 ;; 4447 4448 openbsd*) 4449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4451 else 4452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4453 fi 4454 ;; 4455 4456 osf3* | osf4* | osf5*) 4457 lt_cv_deplibs_check_method=pass_all 4458 ;; 4459 4460 rdos*) 4461 lt_cv_deplibs_check_method=pass_all 4462 ;; 4463 4464 solaris*) 4465 lt_cv_deplibs_check_method=pass_all 4466 ;; 4467 4468 sysv4 | sysv4.3*) 4469 case $host_vendor in 4470 motorola) 4471 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]' 4472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4473 ;; 4474 ncr) 4475 lt_cv_deplibs_check_method=pass_all 4476 ;; 4477 sequent) 4478 lt_cv_file_magic_cmd='/bin/file' 4479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4480 ;; 4481 sni) 4482 lt_cv_file_magic_cmd='/bin/file' 4483 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4484 lt_cv_file_magic_test_file=/lib/libc.so 4485 ;; 4486 siemens) 4487 lt_cv_deplibs_check_method=pass_all 4488 ;; 4489 pc) 4490 lt_cv_deplibs_check_method=pass_all 4491 ;; 4492 esac 4493 ;; 4494 4495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4496 lt_cv_deplibs_check_method=pass_all 4497 ;; 4498 esac 4499 4500 fi 4501 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4502 $as_echo "$lt_cv_deplibs_check_method" >&6; } 4503 file_magic_cmd=$lt_cv_file_magic_cmd 4504 deplibs_check_method=$lt_cv_deplibs_check_method 4505 test -z "$deplibs_check_method" && deplibs_check_method=unknown 4506 4507 4508 4509 4510 # If no C compiler was specified, use CC. 4511 LTCC=${LTCC-"$CC"} 4512 4513 # If no C compiler flags were specified, use CFLAGS. 4514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4515 4516 # Allow CC to be a program name with arguments. 4517 compiler=$CC 4518 4519 4520 # Check whether --enable-libtool-lock was given. 4521 if test "${enable_libtool_lock+set}" = set; then 4522 enableval=$enable_libtool_lock; 4523 fi 4524 4525 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4526 4527 # Some flags need to be propagated to the compiler or linker for good 4528 # libtool support. 4529 case $host in 4530 ia64-*-hpux*) 4531 # Find out which ABI we are using. 4532 echo 'int i;' > conftest.$ac_ext 4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4534 (eval $ac_compile) 2>&5 4535 ac_status=$? 4536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4537 (exit $ac_status); }; then 4538 case `/usr/bin/file conftest.$ac_objext` in 4539 *ELF-32*) 4540 HPUX_IA64_MODE="32" 4541 ;; 4542 *ELF-64*) 4543 HPUX_IA64_MODE="64" 4544 ;; 4545 esac 4546 fi 4547 rm -rf conftest* 4548 ;; 4549 *-*-irix6*) 4550 # Find out which ABI we are using. 4551 echo '#line 4551 "configure"' > conftest.$ac_ext 4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4553 (eval $ac_compile) 2>&5 4554 ac_status=$? 4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); }; then 4557 if test "$lt_cv_prog_gnu_ld" = yes; then 4558 case `/usr/bin/file conftest.$ac_objext` in 4559 *32-bit*) 4560 LD="${LD-ld} -melf32bsmip" 4561 ;; 4562 *N32*) 4563 LD="${LD-ld} -melf32bmipn32" 4564 ;; 4565 *64-bit*) 4566 LD="${LD-ld} -melf64bmip" 4567 ;; 4568 esac 4569 else 4570 case `/usr/bin/file conftest.$ac_objext` in 4571 *32-bit*) 4572 LD="${LD-ld} -32" 4573 ;; 4574 *N32*) 4575 LD="${LD-ld} -n32" 4576 ;; 4577 *64-bit*) 4578 LD="${LD-ld} -64" 4579 ;; 4580 esac 4581 fi 4582 fi 4583 rm -rf conftest* 4584 ;; 4585 4586 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4587 s390*-*linux*|sparc*-*linux*) 4588 # Find out which ABI we are using. 4589 echo 'int i;' > conftest.$ac_ext 4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4591 (eval $ac_compile) 2>&5 4592 ac_status=$? 4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); }; then 4595 case `/usr/bin/file conftest.o` in 4596 *32-bit*) 4597 case $host in 4598 x86_64-*kfreebsd*-gnu) 4599 LD="${LD-ld} -m elf_i386_fbsd" 4600 ;; 4601 x86_64-*linux*) 4602 LD="${LD-ld} -m elf_i386" 4603 ;; 4604 ppc64-*linux*|powerpc64-*linux*) 4605 LD="${LD-ld} -m elf32ppclinux" 4606 ;; 4607 s390x-*linux*) 4608 LD="${LD-ld} -m elf_s390" 4609 ;; 4610 sparc64-*linux*) 4611 LD="${LD-ld} -m elf32_sparc" 4612 ;; 4613 esac 4614 ;; 4615 *64-bit*) 4616 case $host in 4617 x86_64-*kfreebsd*-gnu) 4618 LD="${LD-ld} -m elf_x86_64_fbsd" 4619 ;; 4620 x86_64-*linux*) 4621 LD="${LD-ld} -m elf_x86_64" 4622 ;; 4623 ppc*-*linux*|powerpc*-*linux*) 4624 LD="${LD-ld} -m elf64ppc" 4625 ;; 4626 s390*-*linux*) 4627 LD="${LD-ld} -m elf64_s390" 4628 ;; 4629 sparc*-*linux*) 4630 LD="${LD-ld} -m elf64_sparc" 4631 ;; 4632 esac 4633 ;; 4634 esac 4635 fi 4636 rm -rf conftest* 4637 ;; 4638 4639 *-*-sco3.2v5*) 4640 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4641 SAVE_CFLAGS="$CFLAGS" 4642 CFLAGS="$CFLAGS -belf" 4643 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4644 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4645 if test "${lt_cv_cc_needs_belf+set}" = set; then 4646 $as_echo_n "(cached) " >&6 4647 else 4648 ac_ext=c 4649 ac_cpp='$CPP $CPPFLAGS' 4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4653 4654 cat >conftest.$ac_ext <<_ACEOF 4655 /* confdefs.h. */ 4656 _ACEOF 4657 cat confdefs.h >>conftest.$ac_ext 4658 cat >>conftest.$ac_ext <<_ACEOF 4659 /* end confdefs.h. */ 4660 4661 int 4662 main () 4663 { 4664 4665 ; 4666 return 0; 4667 } 4668 _ACEOF 4669 rm -f conftest.$ac_objext conftest$ac_exeext 4670 if { (ac_try="$ac_link" 4671 case "(($ac_try" in 4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4673 *) ac_try_echo=$ac_try;; 4674 esac 4675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4676 $as_echo "$ac_try_echo") >&5 4677 (eval "$ac_link") 2>conftest.er1 4678 ac_status=$? 4679 grep -v '^ *+' conftest.er1 >conftest.err 4680 rm -f conftest.er1 4681 cat conftest.err >&5 4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); } && { 4684 test -z "$ac_c_werror_flag" || 4685 test ! -s conftest.err 4686 } && test -s conftest$ac_exeext && { 4687 test "$cross_compiling" = yes || 4688 $as_test_x conftest$ac_exeext 4689 }; then 4690 lt_cv_cc_needs_belf=yes 4691 else 4692 $as_echo "$as_me: failed program was:" >&5 4693 sed 's/^/| /' conftest.$ac_ext >&5 4694 4695 lt_cv_cc_needs_belf=no 4696 fi 4697 4698 rm -rf conftest.dSYM 4699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4700 conftest$ac_exeext conftest.$ac_ext 4701 ac_ext=c 4702 ac_cpp='$CPP $CPPFLAGS' 4703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4705 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4706 4707 fi 4708 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4709 $as_echo "$lt_cv_cc_needs_belf" >&6; } 4710 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4711 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4712 CFLAGS="$SAVE_CFLAGS" 4713 fi 4714 ;; 4715 sparc*-*solaris*) 4716 # Find out which ABI we are using. 4717 echo 'int i;' > conftest.$ac_ext 4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4719 (eval $ac_compile) 2>&5 4720 ac_status=$? 4721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4722 (exit $ac_status); }; then 4723 case `/usr/bin/file conftest.o` in 4724 *64-bit*) 4725 case $lt_cv_prog_gnu_ld in 4726 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4727 *) 4728 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4729 LD="${LD-ld} -64" 4730 fi 4731 ;; 4732 esac 4733 ;; 4734 esac 4735 fi 4736 rm -rf conftest* 4737 ;; 4738 4739 4740 esac 4741 4742 need_locks="$enable_libtool_lock" 4743 4744 4745 ac_ext=c 4746 ac_cpp='$CPP $CPPFLAGS' 4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4750 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4751 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4752 # On Suns, sometimes $CPP names a directory. 4753 if test -n "$CPP" && test -d "$CPP"; then 4754 CPP= 4755 fi 4756 if test -z "$CPP"; then 4757 if test "${ac_cv_prog_CPP+set}" = set; then 4758 $as_echo_n "(cached) " >&6 4759 else 4760 # Double quotes because CPP needs to be expanded 4761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4762 do 4763 ac_preproc_ok=false 4764 for ac_c_preproc_warn_flag in '' yes 4765 do 4766 # Use a header file that comes with gcc, so configuring glibc 4767 # with a fresh cross-compiler works. 4768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4769 # <limits.h> exists even on freestanding compilers. 4770 # On the NeXT, cc -E runs the code through the compiler's parser, 4771 # not just through cpp. "Syntax error" is here to catch this case. 4772 cat >conftest.$ac_ext <<_ACEOF 4773 /* confdefs.h. */ 4774 _ACEOF 4775 cat confdefs.h >>conftest.$ac_ext 4776 cat >>conftest.$ac_ext <<_ACEOF 4777 /* end confdefs.h. */ 4778 #ifdef __STDC__ 4779 # include <limits.h> 4780 #else 4781 # include <assert.h> 4782 #endif 4783 Syntax error 4784 _ACEOF 4785 if { (ac_try="$ac_cpp conftest.$ac_ext" 4786 case "(($ac_try" in 4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4788 *) ac_try_echo=$ac_try;; 4789 esac 4790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4791 $as_echo "$ac_try_echo") >&5 4792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4793 ac_status=$? 4794 grep -v '^ *+' conftest.er1 >conftest.err 4795 rm -f conftest.er1 4796 cat conftest.err >&5 4797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 (exit $ac_status); } >/dev/null && { 4799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4800 test ! -s conftest.err 4801 }; then 4802 : 4803 else 4804 $as_echo "$as_me: failed program was:" >&5 4805 sed 's/^/| /' conftest.$ac_ext >&5 4806 4807 # Broken: fails on valid input. 4808 continue 4809 fi 4810 4811 rm -f conftest.err conftest.$ac_ext 4812 4813 # OK, works on sane cases. Now check whether nonexistent headers 4814 # can be detected and how. 4815 cat >conftest.$ac_ext <<_ACEOF 4816 /* confdefs.h. */ 4817 _ACEOF 4818 cat confdefs.h >>conftest.$ac_ext 4819 cat >>conftest.$ac_ext <<_ACEOF 4820 /* end confdefs.h. */ 4821 #include <ac_nonexistent.h> 4822 _ACEOF 4823 if { (ac_try="$ac_cpp conftest.$ac_ext" 4824 case "(($ac_try" in 4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4826 *) ac_try_echo=$ac_try;; 4827 esac 4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4829 $as_echo "$ac_try_echo") >&5 4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4831 ac_status=$? 4832 grep -v '^ *+' conftest.er1 >conftest.err 4833 rm -f conftest.er1 4834 cat conftest.err >&5 4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); } >/dev/null && { 4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4838 test ! -s conftest.err 4839 }; then 4840 # Broken: success on invalid input. 4841 continue 4842 else 4843 $as_echo "$as_me: failed program was:" >&5 4844 sed 's/^/| /' conftest.$ac_ext >&5 4845 4846 # Passes both tests. 4847 ac_preproc_ok=: 4848 break 4849 fi 4850 4851 rm -f conftest.err conftest.$ac_ext 4852 4853 done 4854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4855 rm -f conftest.err conftest.$ac_ext 4856 if $ac_preproc_ok; then 4857 break 4858 fi 4859 4860 done 4861 ac_cv_prog_CPP=$CPP 4862 4863 fi 4864 CPP=$ac_cv_prog_CPP 4865 else 4866 ac_cv_prog_CPP=$CPP 4867 fi 4868 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 4869 $as_echo "$CPP" >&6; } 4870 ac_preproc_ok=false 4871 for ac_c_preproc_warn_flag in '' yes 4872 do 4873 # Use a header file that comes with gcc, so configuring glibc 4874 # with a fresh cross-compiler works. 4875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4876 # <limits.h> exists even on freestanding compilers. 4877 # On the NeXT, cc -E runs the code through the compiler's parser, 4878 # not just through cpp. "Syntax error" is here to catch this case. 4879 cat >conftest.$ac_ext <<_ACEOF 4880 /* confdefs.h. */ 4881 _ACEOF 4882 cat confdefs.h >>conftest.$ac_ext 4883 cat >>conftest.$ac_ext <<_ACEOF 4884 /* end confdefs.h. */ 4885 #ifdef __STDC__ 4886 # include <limits.h> 4887 #else 4888 # include <assert.h> 4889 #endif 4890 Syntax error 4891 _ACEOF 4892 if { (ac_try="$ac_cpp conftest.$ac_ext" 4893 case "(($ac_try" in 4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4895 *) ac_try_echo=$ac_try;; 4896 esac 4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4898 $as_echo "$ac_try_echo") >&5 4899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4900 ac_status=$? 4901 grep -v '^ *+' conftest.er1 >conftest.err 4902 rm -f conftest.er1 4903 cat conftest.err >&5 4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } >/dev/null && { 4906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4907 test ! -s conftest.err 4908 }; then 4909 : 4910 else 4911 $as_echo "$as_me: failed program was:" >&5 4912 sed 's/^/| /' conftest.$ac_ext >&5 4913 4914 # Broken: fails on valid input. 4915 continue 4916 fi 4917 4918 rm -f conftest.err conftest.$ac_ext 4919 4920 # OK, works on sane cases. Now check whether nonexistent headers 4921 # can be detected and how. 4922 cat >conftest.$ac_ext <<_ACEOF 4923 /* confdefs.h. */ 4924 _ACEOF 4925 cat confdefs.h >>conftest.$ac_ext 4926 cat >>conftest.$ac_ext <<_ACEOF 4927 /* end confdefs.h. */ 4928 #include <ac_nonexistent.h> 4929 _ACEOF 4930 if { (ac_try="$ac_cpp conftest.$ac_ext" 4931 case "(($ac_try" in 4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4933 *) ac_try_echo=$ac_try;; 4934 esac 4935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4936 $as_echo "$ac_try_echo") >&5 4937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4938 ac_status=$? 4939 grep -v '^ *+' conftest.er1 >conftest.err 4940 rm -f conftest.er1 4941 cat conftest.err >&5 4942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); } >/dev/null && { 4944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4945 test ! -s conftest.err 4946 }; then 4947 # Broken: success on invalid input. 4948 continue 4949 else 4950 $as_echo "$as_me: failed program was:" >&5 4951 sed 's/^/| /' conftest.$ac_ext >&5 4952 4953 # Passes both tests. 4954 ac_preproc_ok=: 4955 break 4956 fi 4957 4958 rm -f conftest.err conftest.$ac_ext 4959 4960 done 4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4962 rm -f conftest.err conftest.$ac_ext 4963 if $ac_preproc_ok; then 4964 : 4965 else 4966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4968 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4969 See \`config.log' for more details." >&5 4970 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4971 See \`config.log' for more details." >&2;} 4972 { (exit 1); exit 1; }; }; } 4973 fi 4974 4975 ac_ext=c 4976 ac_cpp='$CPP $CPPFLAGS' 4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4980 4981 4982 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4983 $as_echo_n "checking for ANSI C header files... " >&6; } 4984 if test "${ac_cv_header_stdc+set}" = set; then 4985 $as_echo_n "(cached) " >&6 4986 else 4987 cat >conftest.$ac_ext <<_ACEOF 4988 /* confdefs.h. */ 4989 _ACEOF 4990 cat confdefs.h >>conftest.$ac_ext 4991 cat >>conftest.$ac_ext <<_ACEOF 4992 /* end confdefs.h. */ 4993 #include <stdlib.h> 4994 #include <stdarg.h> 4995 #include <string.h> 4996 #include <float.h> 4997 4998 int 4999 main () 5000 { 5001 5002 ; 5003 return 0; 5004 } 5005 _ACEOF 5006 rm -f conftest.$ac_objext 5007 if { (ac_try="$ac_compile" 5008 case "(($ac_try" in 5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5010 *) ac_try_echo=$ac_try;; 5011 esac 5012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5013 $as_echo "$ac_try_echo") >&5 5014 (eval "$ac_compile") 2>conftest.er1 5015 ac_status=$? 5016 grep -v '^ *+' conftest.er1 >conftest.err 5017 rm -f conftest.er1 5018 cat conftest.err >&5 5019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5020 (exit $ac_status); } && { 5021 test -z "$ac_c_werror_flag" || 5022 test ! -s conftest.err 5023 } && test -s conftest.$ac_objext; then 5024 ac_cv_header_stdc=yes 5025 else 5026 $as_echo "$as_me: failed program was:" >&5 5027 sed 's/^/| /' conftest.$ac_ext >&5 5028 5029 ac_cv_header_stdc=no 5030 fi 5031 5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5033 5034 if test $ac_cv_header_stdc = yes; then 5035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5036 cat >conftest.$ac_ext <<_ACEOF 5037 /* confdefs.h. */ 5038 _ACEOF 5039 cat confdefs.h >>conftest.$ac_ext 5040 cat >>conftest.$ac_ext <<_ACEOF 5041 /* end confdefs.h. */ 5042 #include <string.h> 5043 5044 _ACEOF 5045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5046 $EGREP "memchr" >/dev/null 2>&1; then 5047 : 5048 else 5049 ac_cv_header_stdc=no 5050 fi 5051 rm -f conftest* 5052 5053 fi 5054 5055 if test $ac_cv_header_stdc = yes; then 5056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5057 cat >conftest.$ac_ext <<_ACEOF 5058 /* confdefs.h. */ 5059 _ACEOF 5060 cat confdefs.h >>conftest.$ac_ext 5061 cat >>conftest.$ac_ext <<_ACEOF 5062 /* end confdefs.h. */ 5063 #include <stdlib.h> 5064 5065 _ACEOF 5066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5067 $EGREP "free" >/dev/null 2>&1; then 5068 : 5069 else 5070 ac_cv_header_stdc=no 5071 fi 5072 rm -f conftest* 5073 5074 fi 5075 5076 if test $ac_cv_header_stdc = yes; then 5077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5078 if test "$cross_compiling" = yes; then 5079 : 5080 else 5081 cat >conftest.$ac_ext <<_ACEOF 5082 /* confdefs.h. */ 5083 _ACEOF 5084 cat confdefs.h >>conftest.$ac_ext 5085 cat >>conftest.$ac_ext <<_ACEOF 5086 /* end confdefs.h. */ 5087 #include <ctype.h> 5088 #include <stdlib.h> 5089 #if ((' ' & 0x0FF) == 0x020) 5090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5092 #else 5093 # define ISLOWER(c) \ 5094 (('a' <= (c) && (c) <= 'i') \ 5095 || ('j' <= (c) && (c) <= 'r') \ 5096 || ('s' <= (c) && (c) <= 'z')) 5097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5098 #endif 5099 5100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5101 int 5102 main () 5103 { 5104 int i; 5105 for (i = 0; i < 256; i++) 5106 if (XOR (islower (i), ISLOWER (i)) 5107 || toupper (i) != TOUPPER (i)) 5108 return 2; 5109 return 0; 5110 } 5111 _ACEOF 5112 rm -f conftest$ac_exeext 5113 if { (ac_try="$ac_link" 5114 case "(($ac_try" in 5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5116 *) ac_try_echo=$ac_try;; 5117 esac 5118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5119 $as_echo "$ac_try_echo") >&5 5120 (eval "$ac_link") 2>&5 5121 ac_status=$? 5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5124 { (case "(($ac_try" in 5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5126 *) ac_try_echo=$ac_try;; 5127 esac 5128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5129 $as_echo "$ac_try_echo") >&5 5130 (eval "$ac_try") 2>&5 5131 ac_status=$? 5132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); }; }; then 5134 : 5135 else 5136 $as_echo "$as_me: program exited with status $ac_status" >&5 5137 $as_echo "$as_me: failed program was:" >&5 5138 sed 's/^/| /' conftest.$ac_ext >&5 5139 5140 ( exit $ac_status ) 5141 ac_cv_header_stdc=no 5142 fi 5143 rm -rf conftest.dSYM 5144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5145 fi 5146 5147 5148 fi 5149 fi 5150 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5151 $as_echo "$ac_cv_header_stdc" >&6; } 5152 if test $ac_cv_header_stdc = yes; then 5153 5154 cat >>confdefs.h <<\_ACEOF 5155 #define STDC_HEADERS 1 5156 _ACEOF 5157 5158 fi 5159 5160 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5171 inttypes.h stdint.h unistd.h 5172 do 5173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5175 $as_echo_n "checking for $ac_header... " >&6; } 5176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5177 $as_echo_n "(cached) " >&6 5178 else 5179 cat >conftest.$ac_ext <<_ACEOF 5180 /* confdefs.h. */ 5181 _ACEOF 5182 cat confdefs.h >>conftest.$ac_ext 5183 cat >>conftest.$ac_ext <<_ACEOF 5184 /* end confdefs.h. */ 5185 $ac_includes_default 5186 5187 #include <$ac_header> 5188 _ACEOF 5189 rm -f conftest.$ac_objext 5190 if { (ac_try="$ac_compile" 5191 case "(($ac_try" in 5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5193 *) ac_try_echo=$ac_try;; 5194 esac 5195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5196 $as_echo "$ac_try_echo") >&5 5197 (eval "$ac_compile") 2>conftest.er1 5198 ac_status=$? 5199 grep -v '^ *+' conftest.er1 >conftest.err 5200 rm -f conftest.er1 5201 cat conftest.err >&5 5202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); } && { 5204 test -z "$ac_c_werror_flag" || 5205 test ! -s conftest.err 5206 } && test -s conftest.$ac_objext; then 5207 eval "$as_ac_Header=yes" 5208 else 5209 $as_echo "$as_me: failed program was:" >&5 5210 sed 's/^/| /' conftest.$ac_ext >&5 5211 5212 eval "$as_ac_Header=no" 5213 fi 5214 5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216 fi 5217 ac_res=`eval 'as_val=${'$as_ac_Header'} 5218 $as_echo "$as_val"'` 5219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5220 $as_echo "$ac_res" >&6; } 5221 as_val=`eval 'as_val=${'$as_ac_Header'} 5222 $as_echo "$as_val"'` 5223 if test "x$as_val" = x""yes; then 5224 cat >>confdefs.h <<_ACEOF 5225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5226 _ACEOF 5227 5228 fi 5229 5230 done 5231 5232 5233 5234 for ac_header in dlfcn.h 5235 do 5236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5239 $as_echo_n "checking for $ac_header... " >&6; } 5240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5241 $as_echo_n "(cached) " >&6 5242 fi 5243 ac_res=`eval 'as_val=${'$as_ac_Header'} 5244 $as_echo "$as_val"'` 5245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5246 $as_echo "$ac_res" >&6; } 5247 else 5248 # Is the header compilable? 5249 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5250 $as_echo_n "checking $ac_header usability... " >&6; } 5251 cat >conftest.$ac_ext <<_ACEOF 5252 /* confdefs.h. */ 5253 _ACEOF 5254 cat confdefs.h >>conftest.$ac_ext 5255 cat >>conftest.$ac_ext <<_ACEOF 5256 /* end confdefs.h. */ 5257 $ac_includes_default 5258 #include <$ac_header> 5259 _ACEOF 5260 rm -f conftest.$ac_objext 5261 if { (ac_try="$ac_compile" 5262 case "(($ac_try" in 5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5264 *) ac_try_echo=$ac_try;; 5265 esac 5266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5267 $as_echo "$ac_try_echo") >&5 5268 (eval "$ac_compile") 2>conftest.er1 5269 ac_status=$? 5270 grep -v '^ *+' conftest.er1 >conftest.err 5271 rm -f conftest.er1 5272 cat conftest.err >&5 5273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5274 (exit $ac_status); } && { 5275 test -z "$ac_c_werror_flag" || 5276 test ! -s conftest.err 5277 } && test -s conftest.$ac_objext; then 5278 ac_header_compiler=yes 5279 else 5280 $as_echo "$as_me: failed program was:" >&5 5281 sed 's/^/| /' conftest.$ac_ext >&5 5282 5283 ac_header_compiler=no 5284 fi 5285 5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5287 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5288 $as_echo "$ac_header_compiler" >&6; } 5289 5290 # Is the header present? 5291 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5292 $as_echo_n "checking $ac_header presence... " >&6; } 5293 cat >conftest.$ac_ext <<_ACEOF 5294 /* confdefs.h. */ 5295 _ACEOF 5296 cat confdefs.h >>conftest.$ac_ext 5297 cat >>conftest.$ac_ext <<_ACEOF 5298 /* end confdefs.h. */ 5299 #include <$ac_header> 5300 _ACEOF 5301 if { (ac_try="$ac_cpp conftest.$ac_ext" 5302 case "(($ac_try" in 5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5304 *) ac_try_echo=$ac_try;; 5305 esac 5306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5307 $as_echo "$ac_try_echo") >&5 5308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5309 ac_status=$? 5310 grep -v '^ *+' conftest.er1 >conftest.err 5311 rm -f conftest.er1 5312 cat conftest.err >&5 5313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); } >/dev/null && { 5315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5316 test ! -s conftest.err 5317 }; then 5318 ac_header_preproc=yes 5319 else 5320 $as_echo "$as_me: failed program was:" >&5 5321 sed 's/^/| /' conftest.$ac_ext >&5 5322 5323 ac_header_preproc=no 5324 fi 5325 5326 rm -f conftest.err conftest.$ac_ext 5327 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5328 $as_echo "$ac_header_preproc" >&6; } 5329 5330 # So? What about this header? 5331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5332 yes:no: ) 5333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5334 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5337 ac_header_preproc=yes 5338 ;; 5339 no:yes:* ) 5340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5341 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5343 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5345 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5347 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5349 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5351 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5352 ( cat <<\_ASBOX 5353 ## ---------------------------------------------------------------------- ## 5354 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5355 ## ---------------------------------------------------------------------- ## 5356 _ASBOX 5357 ) | sed "s/^/$as_me: WARNING: /" >&2 5358 ;; 5359 esac 5360 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5361 $as_echo_n "checking for $ac_header... " >&6; } 5362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5363 $as_echo_n "(cached) " >&6 5364 else 5365 eval "$as_ac_Header=\$ac_header_preproc" 5366 fi 5367 ac_res=`eval 'as_val=${'$as_ac_Header'} 5368 $as_echo "$as_val"'` 5369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5370 $as_echo "$ac_res" >&6; } 5371 5372 fi 5373 as_val=`eval 'as_val=${'$as_ac_Header'} 5374 $as_echo "$as_val"'` 5375 if test "x$as_val" = x""yes; then 5376 cat >>confdefs.h <<_ACEOF 5377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5378 _ACEOF 5379 5380 fi 5381 5382 done 5383 5384 ac_ext=cpp 5385 ac_cpp='$CXXCPP $CPPFLAGS' 5386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5389 if test -z "$CXX"; then 5390 if test -n "$CCC"; then 5391 CXX=$CCC 5392 else 5393 if test -n "$ac_tool_prefix"; then 5394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5395 do 5396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5399 $as_echo_n "checking for $ac_word... " >&6; } 5400 if test "${ac_cv_prog_CXX+set}" = set; then 5401 $as_echo_n "(cached) " >&6 5402 else 5403 if test -n "$CXX"; then 5404 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5405 else 5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5407 for as_dir in $PATH 5408 do 5409 IFS=$as_save_IFS 5410 test -z "$as_dir" && as_dir=. 5411 for ac_exec_ext in '' $ac_executable_extensions; do 5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5415 break 2 5416 fi 5417 done 5418 done 5419 IFS=$as_save_IFS 5420 5421 fi 5422 fi 5423 CXX=$ac_cv_prog_CXX 5424 if test -n "$CXX"; then 5425 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5426 $as_echo "$CXX" >&6; } 5427 else 5428 { $as_echo "$as_me:$LINENO: result: no" >&5 5429 $as_echo "no" >&6; } 5430 fi 5431 5432 5433 test -n "$CXX" && break 5434 done 5435 fi 5436 if test -z "$CXX"; then 5437 ac_ct_CXX=$CXX 5438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5439 do 5440 # Extract the first word of "$ac_prog", so it can be a program name with args. 5441 set dummy $ac_prog; ac_word=$2 5442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5443 $as_echo_n "checking for $ac_word... " >&6; } 5444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5445 $as_echo_n "(cached) " >&6 5446 else 5447 if test -n "$ac_ct_CXX"; then 5448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5449 else 5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5451 for as_dir in $PATH 5452 do 5453 IFS=$as_save_IFS 5454 test -z "$as_dir" && as_dir=. 5455 for ac_exec_ext in '' $ac_executable_extensions; do 5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5457 ac_cv_prog_ac_ct_CXX="$ac_prog" 5458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5459 break 2 5460 fi 5461 done 5462 done 5463 IFS=$as_save_IFS 5464 5465 fi 5466 fi 5467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5468 if test -n "$ac_ct_CXX"; then 5469 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5470 $as_echo "$ac_ct_CXX" >&6; } 5471 else 5472 { $as_echo "$as_me:$LINENO: result: no" >&5 5473 $as_echo "no" >&6; } 5474 fi 5475 5476 5477 test -n "$ac_ct_CXX" && break 5478 done 5479 5480 if test "x$ac_ct_CXX" = x; then 5481 CXX="g++" 5482 else 5483 case $cross_compiling:$ac_tool_warned in 5484 yes:) 5485 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5487 ac_tool_warned=yes ;; 5488 esac 5489 CXX=$ac_ct_CXX 5490 fi 5491 fi 5492 5493 fi 5494 fi 5495 # Provide some information about the compiler. 5496 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5497 set X $ac_compile 5498 ac_compiler=$2 5499 { (ac_try="$ac_compiler --version >&5" 5500 case "(($ac_try" in 5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5502 *) ac_try_echo=$ac_try;; 5503 esac 5504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5505 $as_echo "$ac_try_echo") >&5 5506 (eval "$ac_compiler --version >&5") 2>&5 5507 ac_status=$? 5508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5509 (exit $ac_status); } 5510 { (ac_try="$ac_compiler -v >&5" 5511 case "(($ac_try" in 5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5513 *) ac_try_echo=$ac_try;; 5514 esac 5515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5516 $as_echo "$ac_try_echo") >&5 5517 (eval "$ac_compiler -v >&5") 2>&5 5518 ac_status=$? 5519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5520 (exit $ac_status); } 5521 { (ac_try="$ac_compiler -V >&5" 5522 case "(($ac_try" in 5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5524 *) ac_try_echo=$ac_try;; 5525 esac 5526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5527 $as_echo "$ac_try_echo") >&5 5528 (eval "$ac_compiler -V >&5") 2>&5 5529 ac_status=$? 5530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5531 (exit $ac_status); } 5532 5533 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5534 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5535 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5536 $as_echo_n "(cached) " >&6 5537 else 5538 cat >conftest.$ac_ext <<_ACEOF 5539 /* confdefs.h. */ 5540 _ACEOF 5541 cat confdefs.h >>conftest.$ac_ext 5542 cat >>conftest.$ac_ext <<_ACEOF 5543 /* end confdefs.h. */ 5544 5545 int 5546 main () 5547 { 5548 #ifndef __GNUC__ 5549 choke me 5550 #endif 5551 5552 ; 5553 return 0; 5554 } 5555 _ACEOF 5556 rm -f conftest.$ac_objext 5557 if { (ac_try="$ac_compile" 5558 case "(($ac_try" in 5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5560 *) ac_try_echo=$ac_try;; 5561 esac 5562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5563 $as_echo "$ac_try_echo") >&5 5564 (eval "$ac_compile") 2>conftest.er1 5565 ac_status=$? 5566 grep -v '^ *+' conftest.er1 >conftest.err 5567 rm -f conftest.er1 5568 cat conftest.err >&5 5569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5570 (exit $ac_status); } && { 5571 test -z "$ac_cxx_werror_flag" || 5572 test ! -s conftest.err 5573 } && test -s conftest.$ac_objext; then 5574 ac_compiler_gnu=yes 5575 else 5576 $as_echo "$as_me: failed program was:" >&5 5577 sed 's/^/| /' conftest.$ac_ext >&5 5578 5579 ac_compiler_gnu=no 5580 fi 5581 5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5583 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5584 5585 fi 5586 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5587 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5588 if test $ac_compiler_gnu = yes; then 5589 GXX=yes 5590 else 5591 GXX= 5592 fi 5593 ac_test_CXXFLAGS=${CXXFLAGS+set} 5594 ac_save_CXXFLAGS=$CXXFLAGS 5595 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5596 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 5597 if test "${ac_cv_prog_cxx_g+set}" = set; then 5598 $as_echo_n "(cached) " >&6 5599 else 5600 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5601 ac_cxx_werror_flag=yes 5602 ac_cv_prog_cxx_g=no 5603 CXXFLAGS="-g" 5604 cat >conftest.$ac_ext <<_ACEOF 5605 /* confdefs.h. */ 5606 _ACEOF 5607 cat confdefs.h >>conftest.$ac_ext 5608 cat >>conftest.$ac_ext <<_ACEOF 5609 /* end confdefs.h. */ 5610 5611 int 5612 main () 5613 { 5614 5615 ; 5616 return 0; 5617 } 5618 _ACEOF 5619 rm -f conftest.$ac_objext 5620 if { (ac_try="$ac_compile" 5621 case "(($ac_try" in 5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5623 *) ac_try_echo=$ac_try;; 5624 esac 5625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5626 $as_echo "$ac_try_echo") >&5 5627 (eval "$ac_compile") 2>conftest.er1 5628 ac_status=$? 5629 grep -v '^ *+' conftest.er1 >conftest.err 5630 rm -f conftest.er1 5631 cat conftest.err >&5 5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); } && { 5634 test -z "$ac_cxx_werror_flag" || 5635 test ! -s conftest.err 5636 } && test -s conftest.$ac_objext; then 5637 ac_cv_prog_cxx_g=yes 5638 else 5639 $as_echo "$as_me: failed program was:" >&5 5640 sed 's/^/| /' conftest.$ac_ext >&5 5641 5642 CXXFLAGS="" 5643 cat >conftest.$ac_ext <<_ACEOF 5644 /* confdefs.h. */ 5645 _ACEOF 5646 cat confdefs.h >>conftest.$ac_ext 5647 cat >>conftest.$ac_ext <<_ACEOF 5648 /* end confdefs.h. */ 5649 5650 int 5651 main () 5652 { 5653 5654 ; 5655 return 0; 5656 } 5657 _ACEOF 5658 rm -f conftest.$ac_objext 5659 if { (ac_try="$ac_compile" 5660 case "(($ac_try" in 5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5662 *) ac_try_echo=$ac_try;; 5663 esac 5664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5665 $as_echo "$ac_try_echo") >&5 5666 (eval "$ac_compile") 2>conftest.er1 5667 ac_status=$? 5668 grep -v '^ *+' conftest.er1 >conftest.err 5669 rm -f conftest.er1 5670 cat conftest.err >&5 5671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); } && { 5673 test -z "$ac_cxx_werror_flag" || 5674 test ! -s conftest.err 5675 } && test -s conftest.$ac_objext; then 5676 : 5677 else 5678 $as_echo "$as_me: failed program was:" >&5 5679 sed 's/^/| /' conftest.$ac_ext >&5 5680 5681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5682 CXXFLAGS="-g" 5683 cat >conftest.$ac_ext <<_ACEOF 5684 /* confdefs.h. */ 5685 _ACEOF 5686 cat confdefs.h >>conftest.$ac_ext 5687 cat >>conftest.$ac_ext <<_ACEOF 5688 /* end confdefs.h. */ 5689 5690 int 5691 main () 5692 { 5693 5694 ; 5695 return 0; 5696 } 5697 _ACEOF 5698 rm -f conftest.$ac_objext 5699 if { (ac_try="$ac_compile" 5700 case "(($ac_try" in 5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5702 *) ac_try_echo=$ac_try;; 5703 esac 5704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5705 $as_echo "$ac_try_echo") >&5 5706 (eval "$ac_compile") 2>conftest.er1 5707 ac_status=$? 5708 grep -v '^ *+' conftest.er1 >conftest.err 5709 rm -f conftest.er1 5710 cat conftest.err >&5 5711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); } && { 5713 test -z "$ac_cxx_werror_flag" || 5714 test ! -s conftest.err 5715 } && test -s conftest.$ac_objext; then 5716 ac_cv_prog_cxx_g=yes 5717 else 5718 $as_echo "$as_me: failed program was:" >&5 5719 sed 's/^/| /' conftest.$ac_ext >&5 5720 5721 5722 fi 5723 5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725 fi 5726 5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5728 fi 5729 5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5732 fi 5733 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5734 $as_echo "$ac_cv_prog_cxx_g" >&6; } 5735 if test "$ac_test_CXXFLAGS" = set; then 5736 CXXFLAGS=$ac_save_CXXFLAGS 5737 elif test $ac_cv_prog_cxx_g = yes; then 5738 if test "$GXX" = yes; then 5739 CXXFLAGS="-g -O2" 5740 else 5741 CXXFLAGS="-g" 5742 fi 5743 else 5744 if test "$GXX" = yes; then 5745 CXXFLAGS="-O2" 5746 else 5747 CXXFLAGS= 5748 fi 5749 fi 5750 ac_ext=cpp 5751 ac_cpp='$CXXCPP $CPPFLAGS' 5752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5755 5756 depcc="$CXX" am_compiler_list= 5757 5758 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5759 $as_echo_n "checking dependency style of $depcc... " >&6; } 5760 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5761 $as_echo_n "(cached) " >&6 5762 else 5763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5764 # We make a subdir and do the tests there. Otherwise we can end up 5765 # making bogus files that we don't know about and never remove. For 5766 # instance it was reported that on HP-UX the gcc test will end up 5767 # making a dummy file named `D' -- because `-MD' means `put the output 5768 # in D'. 5769 mkdir conftest.dir 5770 # Copy depcomp to subdir because otherwise we won't find it if we're 5771 # using a relative directory. 5772 cp "$am_depcomp" conftest.dir 5773 cd conftest.dir 5774 # We will build objects and dependencies in a subdirectory because 5775 # it helps to detect inapplicable dependency modes. For instance 5776 # both Tru64's cc and ICC support -MD to output dependencies as a 5777 # side effect of compilation, but ICC will put the dependencies in 5778 # the current directory while Tru64 will put them in the object 5779 # directory. 5780 mkdir sub 5781 5782 am_cv_CXX_dependencies_compiler_type=none 5783 if test "$am_compiler_list" = ""; then 5784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5785 fi 5786 am__universal=false 5787 case " $depcc " in #( 5788 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5789 esac 5790 5791 for depmode in $am_compiler_list; do 5792 # Setup a source with many dependencies, because some compilers 5793 # like to wrap large dependency lists on column 80 (with \), and 5794 # we should not choose a depcomp mode which is confused by this. 5795 # 5796 # We need to recreate these files for each test, as the compiler may 5797 # overwrite some of them when testing with obscure command lines. 5798 # This happens at least with the AIX C compiler. 5799 : > sub/conftest.c 5800 for i in 1 2 3 4 5 6; do 5801 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5803 # Solaris 8's {/usr,}/bin/sh. 5804 touch sub/conftst$i.h 5805 done 5806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5807 5808 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5809 # mode. It turns out that the SunPro C++ compiler does not properly 5810 # handle `-M -o', and we need to detect this. Also, some Intel 5811 # versions had trouble with output in subdirs 5812 am__obj=sub/conftest.${OBJEXT-o} 5813 am__minus_obj="-o $am__obj" 5814 case $depmode in 5815 gcc) 5816 # This depmode causes a compiler race in universal mode. 5817 test "$am__universal" = false || continue 5818 ;; 5819 nosideeffect) 5820 # after this tag, mechanisms are not by side-effect, so they'll 5821 # only be used when explicitly requested 5822 if test "x$enable_dependency_tracking" = xyes; then 5823 continue 5824 else 5825 break 5826 fi 5827 ;; 5828 msvisualcpp | msvcmsys) 5829 # This compiler won't grok `-c -o', but also, the minuso test has 5830 # not run yet. These depmodes are late enough in the game, and 5831 # so weak that their functioning should not be impacted. 5832 am__obj=conftest.${OBJEXT-o} 5833 am__minus_obj= 5834 ;; 5835 none) break ;; 5836 esac 5837 if depmode=$depmode \ 5838 source=sub/conftest.c object=$am__obj \ 5839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5841 >/dev/null 2>conftest.err && 5842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5846 # icc doesn't choke on unknown options, it will just issue warnings 5847 # or remarks (even with -Werror). So we grep stderr for any message 5848 # that says an option was ignored or not supported. 5849 # When given -MP, icc 7.0 and 7.1 complain thusly: 5850 # icc: Command line warning: ignoring option '-M'; no argument required 5851 # The diagnosis changed in icc 8.0: 5852 # icc: Command line remark: option '-MP' not supported 5853 if (grep 'ignoring option' conftest.err || 5854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5855 am_cv_CXX_dependencies_compiler_type=$depmode 5856 break 5857 fi 5858 fi 5859 done 5860 5861 cd .. 5862 rm -rf conftest.dir 5863 else 5864 am_cv_CXX_dependencies_compiler_type=none 5865 fi 5866 5867 fi 5868 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5869 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5870 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5871 5872 if 5873 test "x$enable_dependency_tracking" != xno \ 5874 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5875 am__fastdepCXX_TRUE= 5876 am__fastdepCXX_FALSE='#' 5877 else 5878 am__fastdepCXX_TRUE='#' 5879 am__fastdepCXX_FALSE= 5880 fi 5881 5882 5883 5884 5885 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5886 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5887 (test "X$CXX" != "Xg++"))) ; then 5888 ac_ext=cpp 5889 ac_cpp='$CXXCPP $CPPFLAGS' 5890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5893 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5894 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5895 if test -z "$CXXCPP"; then 5896 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5897 $as_echo_n "(cached) " >&6 5898 else 5899 # Double quotes because CXXCPP needs to be expanded 5900 for CXXCPP in "$CXX -E" "/lib/cpp" 5901 do 5902 ac_preproc_ok=false 5903 for ac_cxx_preproc_warn_flag in '' yes 5904 do 5905 # Use a header file that comes with gcc, so configuring glibc 5906 # with a fresh cross-compiler works. 5907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5908 # <limits.h> exists even on freestanding compilers. 5909 # On the NeXT, cc -E runs the code through the compiler's parser, 5910 # not just through cpp. "Syntax error" is here to catch this case. 5911 cat >conftest.$ac_ext <<_ACEOF 5912 /* confdefs.h. */ 5913 _ACEOF 5914 cat confdefs.h >>conftest.$ac_ext 5915 cat >>conftest.$ac_ext <<_ACEOF 5916 /* end confdefs.h. */ 5917 #ifdef __STDC__ 5918 # include <limits.h> 5919 #else 5920 # include <assert.h> 5921 #endif 5922 Syntax error 5923 _ACEOF 5924 if { (ac_try="$ac_cpp conftest.$ac_ext" 5925 case "(($ac_try" in 5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5927 *) ac_try_echo=$ac_try;; 5928 esac 5929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5930 $as_echo "$ac_try_echo") >&5 5931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5932 ac_status=$? 5933 grep -v '^ *+' conftest.er1 >conftest.err 5934 rm -f conftest.er1 5935 cat conftest.err >&5 5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5937 (exit $ac_status); } >/dev/null && { 5938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5939 test ! -s conftest.err 5940 }; then 5941 : 5942 else 5943 $as_echo "$as_me: failed program was:" >&5 5944 sed 's/^/| /' conftest.$ac_ext >&5 5945 5946 # Broken: fails on valid input. 5947 continue 5948 fi 5949 5950 rm -f conftest.err conftest.$ac_ext 5951 5952 # OK, works on sane cases. Now check whether nonexistent headers 5953 # can be detected and how. 5954 cat >conftest.$ac_ext <<_ACEOF 5955 /* confdefs.h. */ 5956 _ACEOF 5957 cat confdefs.h >>conftest.$ac_ext 5958 cat >>conftest.$ac_ext <<_ACEOF 5959 /* end confdefs.h. */ 5960 #include <ac_nonexistent.h> 5961 _ACEOF 5962 if { (ac_try="$ac_cpp conftest.$ac_ext" 5963 case "(($ac_try" in 5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5965 *) ac_try_echo=$ac_try;; 5966 esac 5967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5968 $as_echo "$ac_try_echo") >&5 5969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5970 ac_status=$? 5971 grep -v '^ *+' conftest.er1 >conftest.err 5972 rm -f conftest.er1 5973 cat conftest.err >&5 5974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5975 (exit $ac_status); } >/dev/null && { 5976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5977 test ! -s conftest.err 5978 }; then 5979 # Broken: success on invalid input. 5980 continue 5981 else 5982 $as_echo "$as_me: failed program was:" >&5 5983 sed 's/^/| /' conftest.$ac_ext >&5 5984 5985 # Passes both tests. 5986 ac_preproc_ok=: 5987 break 5988 fi 5989 5990 rm -f conftest.err conftest.$ac_ext 5991 5992 done 5993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5994 rm -f conftest.err conftest.$ac_ext 5995 if $ac_preproc_ok; then 5996 break 5997 fi 5998 5999 done 6000 ac_cv_prog_CXXCPP=$CXXCPP 6001 6002 fi 6003 CXXCPP=$ac_cv_prog_CXXCPP 6004 else 6005 ac_cv_prog_CXXCPP=$CXXCPP 6006 fi 6007 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 6008 $as_echo "$CXXCPP" >&6; } 6009 ac_preproc_ok=false 6010 for ac_cxx_preproc_warn_flag in '' yes 6011 do 6012 # Use a header file that comes with gcc, so configuring glibc 6013 # with a fresh cross-compiler works. 6014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6015 # <limits.h> exists even on freestanding compilers. 6016 # On the NeXT, cc -E runs the code through the compiler's parser, 6017 # not just through cpp. "Syntax error" is here to catch this case. 6018 cat >conftest.$ac_ext <<_ACEOF 6019 /* confdefs.h. */ 6020 _ACEOF 6021 cat confdefs.h >>conftest.$ac_ext 6022 cat >>conftest.$ac_ext <<_ACEOF 6023 /* end confdefs.h. */ 6024 #ifdef __STDC__ 6025 # include <limits.h> 6026 #else 6027 # include <assert.h> 6028 #endif 6029 Syntax error 6030 _ACEOF 6031 if { (ac_try="$ac_cpp conftest.$ac_ext" 6032 case "(($ac_try" in 6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6034 *) ac_try_echo=$ac_try;; 6035 esac 6036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6037 $as_echo "$ac_try_echo") >&5 6038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6039 ac_status=$? 6040 grep -v '^ *+' conftest.er1 >conftest.err 6041 rm -f conftest.er1 6042 cat conftest.err >&5 6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6044 (exit $ac_status); } >/dev/null && { 6045 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6046 test ! -s conftest.err 6047 }; then 6048 : 6049 else 6050 $as_echo "$as_me: failed program was:" >&5 6051 sed 's/^/| /' conftest.$ac_ext >&5 6052 6053 # Broken: fails on valid input. 6054 continue 6055 fi 6056 6057 rm -f conftest.err conftest.$ac_ext 6058 6059 # OK, works on sane cases. Now check whether nonexistent headers 6060 # can be detected and how. 6061 cat >conftest.$ac_ext <<_ACEOF 6062 /* confdefs.h. */ 6063 _ACEOF 6064 cat confdefs.h >>conftest.$ac_ext 6065 cat >>conftest.$ac_ext <<_ACEOF 6066 /* end confdefs.h. */ 6067 #include <ac_nonexistent.h> 6068 _ACEOF 6069 if { (ac_try="$ac_cpp conftest.$ac_ext" 6070 case "(($ac_try" in 6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6072 *) ac_try_echo=$ac_try;; 6073 esac 6074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6075 $as_echo "$ac_try_echo") >&5 6076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6077 ac_status=$? 6078 grep -v '^ *+' conftest.er1 >conftest.err 6079 rm -f conftest.er1 6080 cat conftest.err >&5 6081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6082 (exit $ac_status); } >/dev/null && { 6083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6084 test ! -s conftest.err 6085 }; then 6086 # Broken: success on invalid input. 6087 continue 6088 else 6089 $as_echo "$as_me: failed program was:" >&5 6090 sed 's/^/| /' conftest.$ac_ext >&5 6091 6092 # Passes both tests. 6093 ac_preproc_ok=: 6094 break 6095 fi 6096 6097 rm -f conftest.err conftest.$ac_ext 6098 6099 done 6100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6101 rm -f conftest.err conftest.$ac_ext 6102 if $ac_preproc_ok; then 6103 : 6104 else 6105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6107 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6108 See \`config.log' for more details." >&5 6109 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6110 See \`config.log' for more details." >&2;} 6111 { (exit 1); exit 1; }; }; } 6112 fi 6113 6114 ac_ext=cpp 6115 ac_cpp='$CXXCPP $CPPFLAGS' 6116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6119 6120 fi 6121 6122 6123 ac_ext=f 6124 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6125 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6126 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6127 if test -n "$ac_tool_prefix"; then 6128 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 6129 do 6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6133 $as_echo_n "checking for $ac_word... " >&6; } 6134 if test "${ac_cv_prog_F77+set}" = set; then 6135 $as_echo_n "(cached) " >&6 6136 else 6137 if test -n "$F77"; then 6138 ac_cv_prog_F77="$F77" # Let the user override the test. 6139 else 6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6141 for as_dir in $PATH 6142 do 6143 IFS=$as_save_IFS 6144 test -z "$as_dir" && as_dir=. 6145 for ac_exec_ext in '' $ac_executable_extensions; do 6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6147 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151 done 6152 done 6153 IFS=$as_save_IFS 6154 6155 fi 6156 fi 6157 F77=$ac_cv_prog_F77 6158 if test -n "$F77"; then 6159 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6160 $as_echo "$F77" >&6; } 6161 else 6162 { $as_echo "$as_me:$LINENO: result: no" >&5 6163 $as_echo "no" >&6; } 6164 fi 6165 6166 6167 test -n "$F77" && break 6168 done 6169 fi 6170 if test -z "$F77"; then 6171 ac_ct_F77=$F77 6172 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 6173 do 6174 # Extract the first word of "$ac_prog", so it can be a program name with args. 6175 set dummy $ac_prog; ac_word=$2 6176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6177 $as_echo_n "checking for $ac_word... " >&6; } 6178 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6179 $as_echo_n "(cached) " >&6 6180 else 6181 if test -n "$ac_ct_F77"; then 6182 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6183 else 6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6185 for as_dir in $PATH 6186 do 6187 IFS=$as_save_IFS 6188 test -z "$as_dir" && as_dir=. 6189 for ac_exec_ext in '' $ac_executable_extensions; do 6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6191 ac_cv_prog_ac_ct_F77="$ac_prog" 6192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6193 break 2 6194 fi 6195 done 6196 done 6197 IFS=$as_save_IFS 6198 6199 fi 6200 fi 6201 ac_ct_F77=$ac_cv_prog_ac_ct_F77 6202 if test -n "$ac_ct_F77"; then 6203 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6204 $as_echo "$ac_ct_F77" >&6; } 6205 else 6206 { $as_echo "$as_me:$LINENO: result: no" >&5 6207 $as_echo "no" >&6; } 6208 fi 6209 6210 6211 test -n "$ac_ct_F77" && break 6212 done 6213 6214 if test "x$ac_ct_F77" = x; then 6215 F77="" 6216 else 6217 case $cross_compiling:$ac_tool_warned in 6218 yes:) 6219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6221 ac_tool_warned=yes ;; 6222 esac 6223 F77=$ac_ct_F77 6224 fi 6225 fi 6226 6227 6228 # Provide some information about the compiler. 6229 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6230 set X $ac_compile 6231 ac_compiler=$2 6232 { (ac_try="$ac_compiler --version >&5" 6233 case "(($ac_try" in 6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6235 *) ac_try_echo=$ac_try;; 6236 esac 6237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6238 $as_echo "$ac_try_echo") >&5 6239 (eval "$ac_compiler --version >&5") 2>&5 6240 ac_status=$? 6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6242 (exit $ac_status); } 6243 { (ac_try="$ac_compiler -v >&5" 6244 case "(($ac_try" in 6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6246 *) ac_try_echo=$ac_try;; 6247 esac 6248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6249 $as_echo "$ac_try_echo") >&5 6250 (eval "$ac_compiler -v >&5") 2>&5 6251 ac_status=$? 6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } 6254 { (ac_try="$ac_compiler -V >&5" 6255 case "(($ac_try" in 6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6257 *) ac_try_echo=$ac_try;; 6258 esac 6259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6260 $as_echo "$ac_try_echo") >&5 6261 (eval "$ac_compiler -V >&5") 2>&5 6262 ac_status=$? 6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); } 6265 rm -f a.out 6266 6267 # If we don't use `.F' as extension, the preprocessor is not run on the 6268 # input file. (Note that this only needs to work for GNU compilers.) 6269 ac_save_ext=$ac_ext 6270 ac_ext=F 6271 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6272 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6273 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6274 $as_echo_n "(cached) " >&6 6275 else 6276 cat >conftest.$ac_ext <<_ACEOF 6277 program main 6278 #ifndef __GNUC__ 6279 choke me 6280 #endif 6281 6282 end 6283 _ACEOF 6284 rm -f conftest.$ac_objext 6285 if { (ac_try="$ac_compile" 6286 case "(($ac_try" in 6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6288 *) ac_try_echo=$ac_try;; 6289 esac 6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6291 $as_echo "$ac_try_echo") >&5 6292 (eval "$ac_compile") 2>conftest.er1 6293 ac_status=$? 6294 grep -v '^ *+' conftest.er1 >conftest.err 6295 rm -f conftest.er1 6296 cat conftest.err >&5 6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); } && { 6299 test -z "$ac_f77_werror_flag" || 6300 test ! -s conftest.err 6301 } && test -s conftest.$ac_objext; then 6302 ac_compiler_gnu=yes 6303 else 6304 $as_echo "$as_me: failed program was:" >&5 6305 sed 's/^/| /' conftest.$ac_ext >&5 6306 6307 ac_compiler_gnu=no 6308 fi 6309 6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6311 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6312 6313 fi 6314 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6315 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6316 ac_ext=$ac_save_ext 6317 ac_test_FFLAGS=${FFLAGS+set} 6318 ac_save_FFLAGS=$FFLAGS 6319 FFLAGS= 6320 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6321 $as_echo_n "checking whether $F77 accepts -g... " >&6; } 6322 if test "${ac_cv_prog_f77_g+set}" = set; then 6323 $as_echo_n "(cached) " >&6 6324 else 6325 FFLAGS=-g 6326 cat >conftest.$ac_ext <<_ACEOF 6327 program main 6328 6329 end 6330 _ACEOF 6331 rm -f conftest.$ac_objext 6332 if { (ac_try="$ac_compile" 6333 case "(($ac_try" in 6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6335 *) ac_try_echo=$ac_try;; 6336 esac 6337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6338 $as_echo "$ac_try_echo") >&5 6339 (eval "$ac_compile") 2>conftest.er1 6340 ac_status=$? 6341 grep -v '^ *+' conftest.er1 >conftest.err 6342 rm -f conftest.er1 6343 cat conftest.err >&5 6344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6345 (exit $ac_status); } && { 6346 test -z "$ac_f77_werror_flag" || 6347 test ! -s conftest.err 6348 } && test -s conftest.$ac_objext; then 6349 ac_cv_prog_f77_g=yes 6350 else 6351 $as_echo "$as_me: failed program was:" >&5 6352 sed 's/^/| /' conftest.$ac_ext >&5 6353 6354 ac_cv_prog_f77_g=no 6355 fi 6356 6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6358 6359 fi 6360 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6361 $as_echo "$ac_cv_prog_f77_g" >&6; } 6362 if test "$ac_test_FFLAGS" = set; then 6363 FFLAGS=$ac_save_FFLAGS 6364 elif test $ac_cv_prog_f77_g = yes; then 6365 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6366 FFLAGS="-g -O2" 6367 else 6368 FFLAGS="-g" 6369 fi 6370 else 6371 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6372 FFLAGS="-O2" 6373 else 6374 FFLAGS= 6375 fi 6376 fi 6377 6378 if test $ac_compiler_gnu = yes; then 6379 G77=yes 6380 else 6381 G77= 6382 fi 6383 ac_ext=c 6384 ac_cpp='$CPP $CPPFLAGS' 6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6388 6389 6390 6391 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6392 # find the maximum length of command line arguments 6393 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6394 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 6395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6396 $as_echo_n "(cached) " >&6 6397 else 6398 i=0 6399 teststring="ABCD" 6400 6401 case $build_os in 6402 msdosdjgpp*) 6403 # On DJGPP, this test can blow up pretty badly due to problems in libc 6404 # (any single argument exceeding 2000 bytes causes a buffer overrun 6405 # during glob expansion). Even if it were fixed, the result of this 6406 # check would be larger than it should be. 6407 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6408 ;; 6409 6410 gnu*) 6411 # Under GNU Hurd, this test is not required because there is 6412 # no limit to the length of command line arguments. 6413 # Libtool will interpret -1 as no limit whatsoever 6414 lt_cv_sys_max_cmd_len=-1; 6415 ;; 6416 6417 cygwin* | mingw*) 6418 # On Win9x/ME, this test blows up -- it succeeds, but takes 6419 # about 5 minutes as the teststring grows exponentially. 6420 # Worse, since 9x/ME are not pre-emptively multitasking, 6421 # you end up with a "frozen" computer, even though with patience 6422 # the test eventually succeeds (with a max line length of 256k). 6423 # Instead, let's just punt: use the minimum linelength reported by 6424 # all of the supported platforms: 8192 (on NT/2K/XP). 6425 lt_cv_sys_max_cmd_len=8192; 6426 ;; 6427 6428 amigaos*) 6429 # On AmigaOS with pdksh, this test takes hours, literally. 6430 # So we just punt and use a minimum line length of 8192. 6431 lt_cv_sys_max_cmd_len=8192; 6432 ;; 6433 6434 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6435 # This has been around since 386BSD, at least. Likely further. 6436 if test -x /sbin/sysctl; then 6437 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6438 elif test -x /usr/sbin/sysctl; then 6439 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6440 else 6441 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6442 fi 6443 # And add a safety zone 6444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6446 ;; 6447 6448 interix*) 6449 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6450 lt_cv_sys_max_cmd_len=196608 6451 ;; 6452 6453 osf*) 6454 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6455 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6456 # nice to cause kernel panics so lets avoid the loop below. 6457 # First set a reasonable default. 6458 lt_cv_sys_max_cmd_len=16384 6459 # 6460 if test -x /sbin/sysconfig; then 6461 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6462 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6463 esac 6464 fi 6465 ;; 6466 sco3.2v5*) 6467 lt_cv_sys_max_cmd_len=102400 6468 ;; 6469 sysv5* | sco5v6* | sysv4.2uw2*) 6470 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6471 if test -n "$kargmax"; then 6472 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6473 else 6474 lt_cv_sys_max_cmd_len=32768 6475 fi 6476 ;; 6477 *) 6478 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6479 if test -n "$lt_cv_sys_max_cmd_len"; then 6480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6482 else 6483 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6484 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6485 = "XX$teststring") >/dev/null 2>&1 && 6486 new_result=`expr "X$teststring" : ".*" 2>&1` && 6487 lt_cv_sys_max_cmd_len=$new_result && 6488 test $i != 17 # 1/2 MB should be enough 6489 do 6490 i=`expr $i + 1` 6491 teststring=$teststring$teststring 6492 done 6493 teststring= 6494 # Add a significant safety factor because C++ compilers can tack on massive 6495 # amounts of additional arguments before passing them to the linker. 6496 # It appears as though 1/2 is a usable value. 6497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6498 fi 6499 ;; 6500 esac 6501 6502 fi 6503 6504 if test -n $lt_cv_sys_max_cmd_len ; then 6505 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6506 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6507 else 6508 { $as_echo "$as_me:$LINENO: result: none" >&5 6509 $as_echo "none" >&6; } 6510 fi 6511 6512 6513 6514 6515 6516 # Check for command to grab the raw symbol name followed by C symbol from nm. 6517 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6518 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6519 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6520 $as_echo_n "(cached) " >&6 6521 else 6522 6523 # These are sane defaults that work on at least a few old systems. 6524 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6525 6526 # Character class describing NM global symbol codes. 6527 symcode='[BCDEGRST]' 6528 6529 # Regexp to match symbols that can be accessed directly from C. 6530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6531 6532 # Transform an extracted symbol line into a proper C declaration 6533 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6534 6535 # Transform an extracted symbol line into symbol name and symbol address 6536 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'" 6537 6538 # Define system-specific variables. 6539 case $host_os in 6540 aix*) 6541 symcode='[BCDT]' 6542 ;; 6543 cygwin* | mingw* | pw32*) 6544 symcode='[ABCDGISTW]' 6545 ;; 6546 hpux*) # Its linker distinguishes data from code symbols 6547 if test "$host_cpu" = ia64; then 6548 symcode='[ABCDEGRST]' 6549 fi 6550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6551 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'" 6552 ;; 6553 linux* | k*bsd*-gnu) 6554 if test "$host_cpu" = ia64; then 6555 symcode='[ABCDGIRSTW]' 6556 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6557 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'" 6558 fi 6559 ;; 6560 irix* | nonstopux*) 6561 symcode='[BCDEGRST]' 6562 ;; 6563 osf*) 6564 symcode='[BCDEGQRST]' 6565 ;; 6566 solaris*) 6567 symcode='[BDRT]' 6568 ;; 6569 sco3.2v5*) 6570 symcode='[DT]' 6571 ;; 6572 sysv4.2uw2*) 6573 symcode='[DT]' 6574 ;; 6575 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6576 symcode='[ABDT]' 6577 ;; 6578 sysv4) 6579 symcode='[DFNSTU]' 6580 ;; 6581 esac 6582 6583 # Handle CRLF in mingw tool chain 6584 opt_cr= 6585 case $build_os in 6586 mingw*) 6587 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6588 ;; 6589 esac 6590 6591 # If we're using GNU nm, then use its standard symbol codes. 6592 case `$NM -V 2>&1` in 6593 *GNU* | *'with BFD'*) 6594 symcode='[ABCDGIRSTW]' ;; 6595 esac 6596 6597 # Try without a prefix undercore, then with it. 6598 for ac_symprfx in "" "_"; do 6599 6600 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6601 symxfrm="\\1 $ac_symprfx\\2 \\2" 6602 6603 # Write the raw and C identifiers. 6604 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6605 6606 # Check to see that the pipe works correctly. 6607 pipe_works=no 6608 6609 rm -f conftest* 6610 cat > conftest.$ac_ext <<EOF 6611 #ifdef __cplusplus 6612 extern "C" { 6613 #endif 6614 char nm_test_var; 6615 void nm_test_func(){} 6616 #ifdef __cplusplus 6617 } 6618 #endif 6619 int main(){nm_test_var='a';nm_test_func();return(0);} 6620 EOF 6621 6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6623 (eval $ac_compile) 2>&5 6624 ac_status=$? 6625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6626 (exit $ac_status); }; then 6627 # Now try to grab the symbols. 6628 nlist=conftest.nm 6629 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6630 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6631 ac_status=$? 6632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6633 (exit $ac_status); } && test -s "$nlist"; then 6634 # Try sorting and uniquifying the output. 6635 if sort "$nlist" | uniq > "$nlist"T; then 6636 mv -f "$nlist"T "$nlist" 6637 else 6638 rm -f "$nlist"T 6639 fi 6640 6641 # Make sure that we snagged all the symbols we need. 6642 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6643 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6644 cat <<EOF > conftest.$ac_ext 6645 #ifdef __cplusplus 6646 extern "C" { 6647 #endif 6648 6649 EOF 6650 # Now generate the symbol file. 6651 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6652 6653 cat <<EOF >> conftest.$ac_ext 6654 #if defined (__STDC__) && __STDC__ 6655 # define lt_ptr_t void * 6656 #else 6657 # define lt_ptr_t char * 6658 # define const 6659 #endif 6660 6661 /* The mapping between symbol names and symbols. */ 6662 const struct { 6663 const char *name; 6664 lt_ptr_t address; 6665 } 6666 lt_preloaded_symbols[] = 6667 { 6668 EOF 6669 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6670 cat <<\EOF >> conftest.$ac_ext 6671 {0, (lt_ptr_t) 0} 6672 }; 6673 6674 #ifdef __cplusplus 6675 } 6676 #endif 6677 EOF 6678 # Now try linking the two files. 6679 mv conftest.$ac_objext conftstm.$ac_objext 6680 lt_save_LIBS="$LIBS" 6681 lt_save_CFLAGS="$CFLAGS" 6682 LIBS="conftstm.$ac_objext" 6683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6685 (eval $ac_link) 2>&5 6686 ac_status=$? 6687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6688 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6689 pipe_works=yes 6690 fi 6691 LIBS="$lt_save_LIBS" 6692 CFLAGS="$lt_save_CFLAGS" 6693 else 6694 echo "cannot find nm_test_func in $nlist" >&5 6695 fi 6696 else 6697 echo "cannot find nm_test_var in $nlist" >&5 6698 fi 6699 else 6700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6701 fi 6702 else 6703 echo "$progname: failed program was:" >&5 6704 cat conftest.$ac_ext >&5 6705 fi 6706 rm -rf conftest* conftst* 6707 6708 # Do not use the global_symbol_pipe unless it works. 6709 if test "$pipe_works" = yes; then 6710 break 6711 else 6712 lt_cv_sys_global_symbol_pipe= 6713 fi 6714 done 6715 6716 fi 6717 6718 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6719 lt_cv_sys_global_symbol_to_cdecl= 6720 fi 6721 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6722 { $as_echo "$as_me:$LINENO: result: failed" >&5 6723 $as_echo "failed" >&6; } 6724 else 6725 { $as_echo "$as_me:$LINENO: result: ok" >&5 6726 $as_echo "ok" >&6; } 6727 fi 6728 6729 { $as_echo "$as_me:$LINENO: checking for objdir" >&5 6730 $as_echo_n "checking for objdir... " >&6; } 6731 if test "${lt_cv_objdir+set}" = set; then 6732 $as_echo_n "(cached) " >&6 6733 else 6734 rm -f .libs 2>/dev/null 6735 mkdir .libs 2>/dev/null 6736 if test -d .libs; then 6737 lt_cv_objdir=.libs 6738 else 6739 # MS-DOS does not allow filenames that begin with a dot. 6740 lt_cv_objdir=_libs 6741 fi 6742 rmdir .libs 2>/dev/null 6743 fi 6744 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6745 $as_echo "$lt_cv_objdir" >&6; } 6746 objdir=$lt_cv_objdir 6747 6748 6749 6750 6751 6752 case $host_os in 6753 aix3*) 6754 # AIX sometimes has problems with the GCC collect2 program. For some 6755 # reason, if we set the COLLECT_NAMES environment variable, the problems 6756 # vanish in a puff of smoke. 6757 if test "X${COLLECT_NAMES+set}" != Xset; then 6758 COLLECT_NAMES= 6759 export COLLECT_NAMES 6760 fi 6761 ;; 6762 esac 6763 6764 # Sed substitution that helps us do robust quoting. It backslashifies 6765 # metacharacters that are still active within double-quoted strings. 6766 Xsed='sed -e 1s/^X//' 6767 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6768 6769 # Same as above, but do not quote variable references. 6770 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6771 6772 # Sed substitution to delay expansion of an escaped shell variable in a 6773 # double_quote_subst'ed string. 6774 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6775 6776 # Sed substitution to avoid accidental globbing in evaled expressions 6777 no_glob_subst='s/\*/\\\*/g' 6778 6779 # Constants: 6780 rm="rm -f" 6781 6782 # Global variables: 6783 default_ofile=libtool 6784 can_build_shared=yes 6785 6786 # All known linkers require a `.a' archive for static linking (except MSVC, 6787 # which needs '.lib'). 6788 libext=a 6789 ltmain="$ac_aux_dir/ltmain.sh" 6790 ofile="$default_ofile" 6791 with_gnu_ld="$lt_cv_prog_gnu_ld" 6792 6793 if test -n "$ac_tool_prefix"; then 6794 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6795 set dummy ${ac_tool_prefix}ar; ac_word=$2 6796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6797 $as_echo_n "checking for $ac_word... " >&6; } 6798 if test "${ac_cv_prog_AR+set}" = set; then 6799 $as_echo_n "(cached) " >&6 6800 else 6801 if test -n "$AR"; then 6802 ac_cv_prog_AR="$AR" # Let the user override the test. 6803 else 6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6805 for as_dir in $PATH 6806 do 6807 IFS=$as_save_IFS 6808 test -z "$as_dir" && as_dir=. 6809 for ac_exec_ext in '' $ac_executable_extensions; do 6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6811 ac_cv_prog_AR="${ac_tool_prefix}ar" 6812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6813 break 2 6814 fi 6815 done 6816 done 6817 IFS=$as_save_IFS 6818 6819 fi 6820 fi 6821 AR=$ac_cv_prog_AR 6822 if test -n "$AR"; then 6823 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6824 $as_echo "$AR" >&6; } 6825 else 6826 { $as_echo "$as_me:$LINENO: result: no" >&5 6827 $as_echo "no" >&6; } 6828 fi 6829 6830 6831 fi 6832 if test -z "$ac_cv_prog_AR"; then 6833 ac_ct_AR=$AR 6834 # Extract the first word of "ar", so it can be a program name with args. 6835 set dummy ar; ac_word=$2 6836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6837 $as_echo_n "checking for $ac_word... " >&6; } 6838 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6839 $as_echo_n "(cached) " >&6 6840 else 6841 if test -n "$ac_ct_AR"; then 6842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6843 else 6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845 for as_dir in $PATH 6846 do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6851 ac_cv_prog_ac_ct_AR="ar" 6852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855 done 6856 done 6857 IFS=$as_save_IFS 6858 6859 fi 6860 fi 6861 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6862 if test -n "$ac_ct_AR"; then 6863 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6864 $as_echo "$ac_ct_AR" >&6; } 6865 else 6866 { $as_echo "$as_me:$LINENO: result: no" >&5 6867 $as_echo "no" >&6; } 6868 fi 6869 6870 if test "x$ac_ct_AR" = x; then 6871 AR="false" 6872 else 6873 case $cross_compiling:$ac_tool_warned in 6874 yes:) 6875 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6877 ac_tool_warned=yes ;; 6878 esac 6879 AR=$ac_ct_AR 6880 fi 6881 else 6882 AR="$ac_cv_prog_AR" 6883 fi 6884 6885 if test -n "$ac_tool_prefix"; then 6886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6889 $as_echo_n "checking for $ac_word... " >&6; } 6890 if test "${ac_cv_prog_RANLIB+set}" = set; then 6891 $as_echo_n "(cached) " >&6 6892 else 6893 if test -n "$RANLIB"; then 6894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6895 else 6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897 for as_dir in $PATH 6898 do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907 done 6908 done 6909 IFS=$as_save_IFS 6910 6911 fi 6912 fi 6913 RANLIB=$ac_cv_prog_RANLIB 6914 if test -n "$RANLIB"; then 6915 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6916 $as_echo "$RANLIB" >&6; } 6917 else 6918 { $as_echo "$as_me:$LINENO: result: no" >&5 6919 $as_echo "no" >&6; } 6920 fi 6921 6922 6923 fi 6924 if test -z "$ac_cv_prog_RANLIB"; then 6925 ac_ct_RANLIB=$RANLIB 6926 # Extract the first word of "ranlib", so it can be a program name with args. 6927 set dummy ranlib; ac_word=$2 6928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6929 $as_echo_n "checking for $ac_word... " >&6; } 6930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6931 $as_echo_n "(cached) " >&6 6932 else 6933 if test -n "$ac_ct_RANLIB"; then 6934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6935 else 6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937 for as_dir in $PATH 6938 do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6943 ac_cv_prog_ac_ct_RANLIB="ranlib" 6944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947 done 6948 done 6949 IFS=$as_save_IFS 6950 6951 fi 6952 fi 6953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6954 if test -n "$ac_ct_RANLIB"; then 6955 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6956 $as_echo "$ac_ct_RANLIB" >&6; } 6957 else 6958 { $as_echo "$as_me:$LINENO: result: no" >&5 6959 $as_echo "no" >&6; } 6960 fi 6961 6962 if test "x$ac_ct_RANLIB" = x; then 6963 RANLIB=":" 6964 else 6965 case $cross_compiling:$ac_tool_warned in 6966 yes:) 6967 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6969 ac_tool_warned=yes ;; 6970 esac 6971 RANLIB=$ac_ct_RANLIB 6972 fi 6973 else 6974 RANLIB="$ac_cv_prog_RANLIB" 6975 fi 6976 6977 if test -n "$ac_tool_prefix"; then 6978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6979 set dummy ${ac_tool_prefix}strip; ac_word=$2 6980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6981 $as_echo_n "checking for $ac_word... " >&6; } 6982 if test "${ac_cv_prog_STRIP+set}" = set; then 6983 $as_echo_n "(cached) " >&6 6984 else 6985 if test -n "$STRIP"; then 6986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6987 else 6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6989 for as_dir in $PATH 6990 do 6991 IFS=$as_save_IFS 6992 test -z "$as_dir" && as_dir=. 6993 for ac_exec_ext in '' $ac_executable_extensions; do 6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6995 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6997 break 2 6998 fi 6999 done 7000 done 7001 IFS=$as_save_IFS 7002 7003 fi 7004 fi 7005 STRIP=$ac_cv_prog_STRIP 7006 if test -n "$STRIP"; then 7007 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 7008 $as_echo "$STRIP" >&6; } 7009 else 7010 { $as_echo "$as_me:$LINENO: result: no" >&5 7011 $as_echo "no" >&6; } 7012 fi 7013 7014 7015 fi 7016 if test -z "$ac_cv_prog_STRIP"; then 7017 ac_ct_STRIP=$STRIP 7018 # Extract the first word of "strip", so it can be a program name with args. 7019 set dummy strip; ac_word=$2 7020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7021 $as_echo_n "checking for $ac_word... " >&6; } 7022 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7023 $as_echo_n "(cached) " >&6 7024 else 7025 if test -n "$ac_ct_STRIP"; then 7026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7027 else 7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7029 for as_dir in $PATH 7030 do 7031 IFS=$as_save_IFS 7032 test -z "$as_dir" && as_dir=. 7033 for ac_exec_ext in '' $ac_executable_extensions; do 7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7035 ac_cv_prog_ac_ct_STRIP="strip" 7036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7037 break 2 7038 fi 7039 done 7040 done 7041 IFS=$as_save_IFS 7042 7043 fi 7044 fi 7045 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7046 if test -n "$ac_ct_STRIP"; then 7047 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7048 $as_echo "$ac_ct_STRIP" >&6; } 7049 else 7050 { $as_echo "$as_me:$LINENO: result: no" >&5 7051 $as_echo "no" >&6; } 7052 fi 7053 7054 if test "x$ac_ct_STRIP" = x; then 7055 STRIP=":" 7056 else 7057 case $cross_compiling:$ac_tool_warned in 7058 yes:) 7059 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7061 ac_tool_warned=yes ;; 7062 esac 7063 STRIP=$ac_ct_STRIP 7064 fi 7065 else 7066 STRIP="$ac_cv_prog_STRIP" 7067 fi 7068 7069 7070 old_CC="$CC" 7071 old_CFLAGS="$CFLAGS" 7072 7073 # Set sane defaults for various variables 7074 test -z "$AR" && AR=ar 7075 test -z "$AR_FLAGS" && AR_FLAGS=cru 7076 test -z "$AS" && AS=as 7077 test -z "$CC" && CC=cc 7078 test -z "$LTCC" && LTCC=$CC 7079 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7080 test -z "$DLLTOOL" && DLLTOOL=dlltool 7081 test -z "$LD" && LD=ld 7082 test -z "$LN_S" && LN_S="ln -s" 7083 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7084 test -z "$NM" && NM=nm 7085 test -z "$SED" && SED=sed 7086 test -z "$OBJDUMP" && OBJDUMP=objdump 7087 test -z "$RANLIB" && RANLIB=: 7088 test -z "$STRIP" && STRIP=: 7089 test -z "$ac_objext" && ac_objext=o 7090 7091 # Determine commands to create old-style static archives. 7092 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7093 old_postinstall_cmds='chmod 644 $oldlib' 7094 old_postuninstall_cmds= 7095 7096 if test -n "$RANLIB"; then 7097 case $host_os in 7098 openbsd*) 7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7100 ;; 7101 *) 7102 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7103 ;; 7104 esac 7105 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7106 fi 7107 7108 for cc_temp in $compiler""; do 7109 case $cc_temp in 7110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7112 \-*) ;; 7113 *) break;; 7114 esac 7115 done 7116 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7117 7118 7119 # Only perform the check for file, if the check method requires it 7120 case $deplibs_check_method in 7121 file_magic*) 7122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7123 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7124 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7126 $as_echo_n "(cached) " >&6 7127 else 7128 case $MAGIC_CMD in 7129 [\\/*] | ?:[\\/]*) 7130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7131 ;; 7132 *) 7133 lt_save_MAGIC_CMD="$MAGIC_CMD" 7134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7136 for ac_dir in $ac_dummy; do 7137 IFS="$lt_save_ifs" 7138 test -z "$ac_dir" && ac_dir=. 7139 if test -f $ac_dir/${ac_tool_prefix}file; then 7140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7141 if test -n "$file_magic_test_file"; then 7142 case $deplibs_check_method in 7143 "file_magic "*) 7144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7147 $EGREP "$file_magic_regex" > /dev/null; then 7148 : 7149 else 7150 cat <<EOF 1>&2 7151 7152 *** Warning: the command libtool uses to detect shared libraries, 7153 *** $file_magic_cmd, produces output that libtool cannot recognize. 7154 *** The result is that libtool may fail to recognize shared libraries 7155 *** as such. This will affect the creation of libtool libraries that 7156 *** depend on shared libraries, but programs linked with such libtool 7157 *** libraries will work regardless of this problem. Nevertheless, you 7158 *** may want to report the problem to your system manager and/or to 7159 *** bug-libtool@gnu.org 7160 7161 EOF 7162 fi ;; 7163 esac 7164 fi 7165 break 7166 fi 7167 done 7168 IFS="$lt_save_ifs" 7169 MAGIC_CMD="$lt_save_MAGIC_CMD" 7170 ;; 7171 esac 7172 fi 7173 7174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7175 if test -n "$MAGIC_CMD"; then 7176 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7177 $as_echo "$MAGIC_CMD" >&6; } 7178 else 7179 { $as_echo "$as_me:$LINENO: result: no" >&5 7180 $as_echo "no" >&6; } 7181 fi 7182 7183 if test -z "$lt_cv_path_MAGIC_CMD"; then 7184 if test -n "$ac_tool_prefix"; then 7185 { $as_echo "$as_me:$LINENO: checking for file" >&5 7186 $as_echo_n "checking for file... " >&6; } 7187 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7188 $as_echo_n "(cached) " >&6 7189 else 7190 case $MAGIC_CMD in 7191 [\\/*] | ?:[\\/]*) 7192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7193 ;; 7194 *) 7195 lt_save_MAGIC_CMD="$MAGIC_CMD" 7196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7198 for ac_dir in $ac_dummy; do 7199 IFS="$lt_save_ifs" 7200 test -z "$ac_dir" && ac_dir=. 7201 if test -f $ac_dir/file; then 7202 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7203 if test -n "$file_magic_test_file"; then 7204 case $deplibs_check_method in 7205 "file_magic "*) 7206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7209 $EGREP "$file_magic_regex" > /dev/null; then 7210 : 7211 else 7212 cat <<EOF 1>&2 7213 7214 *** Warning: the command libtool uses to detect shared libraries, 7215 *** $file_magic_cmd, produces output that libtool cannot recognize. 7216 *** The result is that libtool may fail to recognize shared libraries 7217 *** as such. This will affect the creation of libtool libraries that 7218 *** depend on shared libraries, but programs linked with such libtool 7219 *** libraries will work regardless of this problem. Nevertheless, you 7220 *** may want to report the problem to your system manager and/or to 7221 *** bug-libtool@gnu.org 7222 7223 EOF 7224 fi ;; 7225 esac 7226 fi 7227 break 7228 fi 7229 done 7230 IFS="$lt_save_ifs" 7231 MAGIC_CMD="$lt_save_MAGIC_CMD" 7232 ;; 7233 esac 7234 fi 7235 7236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7237 if test -n "$MAGIC_CMD"; then 7238 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7239 $as_echo "$MAGIC_CMD" >&6; } 7240 else 7241 { $as_echo "$as_me:$LINENO: result: no" >&5 7242 $as_echo "no" >&6; } 7243 fi 7244 7245 else 7246 MAGIC_CMD=: 7247 fi 7248 fi 7249 7250 fi 7251 ;; 7252 esac 7253 7254 7255 case $host_os in 7256 rhapsody* | darwin*) 7257 if test -n "$ac_tool_prefix"; then 7258 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7259 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7261 $as_echo_n "checking for $ac_word... " >&6; } 7262 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7263 $as_echo_n "(cached) " >&6 7264 else 7265 if test -n "$DSYMUTIL"; then 7266 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7267 else 7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269 for as_dir in $PATH 7270 do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7275 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279 done 7280 done 7281 IFS=$as_save_IFS 7282 7283 fi 7284 fi 7285 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7286 if test -n "$DSYMUTIL"; then 7287 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7288 $as_echo "$DSYMUTIL" >&6; } 7289 else 7290 { $as_echo "$as_me:$LINENO: result: no" >&5 7291 $as_echo "no" >&6; } 7292 fi 7293 7294 7295 fi 7296 if test -z "$ac_cv_prog_DSYMUTIL"; then 7297 ac_ct_DSYMUTIL=$DSYMUTIL 7298 # Extract the first word of "dsymutil", so it can be a program name with args. 7299 set dummy dsymutil; ac_word=$2 7300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7301 $as_echo_n "checking for $ac_word... " >&6; } 7302 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7303 $as_echo_n "(cached) " >&6 7304 else 7305 if test -n "$ac_ct_DSYMUTIL"; then 7306 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7307 else 7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7309 for as_dir in $PATH 7310 do 7311 IFS=$as_save_IFS 7312 test -z "$as_dir" && as_dir=. 7313 for ac_exec_ext in '' $ac_executable_extensions; do 7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7315 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7317 break 2 7318 fi 7319 done 7320 done 7321 IFS=$as_save_IFS 7322 7323 fi 7324 fi 7325 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7326 if test -n "$ac_ct_DSYMUTIL"; then 7327 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7328 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7329 else 7330 { $as_echo "$as_me:$LINENO: result: no" >&5 7331 $as_echo "no" >&6; } 7332 fi 7333 7334 if test "x$ac_ct_DSYMUTIL" = x; then 7335 DSYMUTIL=":" 7336 else 7337 case $cross_compiling:$ac_tool_warned in 7338 yes:) 7339 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7341 ac_tool_warned=yes ;; 7342 esac 7343 DSYMUTIL=$ac_ct_DSYMUTIL 7344 fi 7345 else 7346 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7347 fi 7348 7349 if test -n "$ac_tool_prefix"; then 7350 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7351 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7353 $as_echo_n "checking for $ac_word... " >&6; } 7354 if test "${ac_cv_prog_NMEDIT+set}" = set; then 7355 $as_echo_n "(cached) " >&6 7356 else 7357 if test -n "$NMEDIT"; then 7358 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7359 else 7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361 for as_dir in $PATH 7362 do 7363 IFS=$as_save_IFS 7364 test -z "$as_dir" && as_dir=. 7365 for ac_exec_ext in '' $ac_executable_extensions; do 7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7367 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7369 break 2 7370 fi 7371 done 7372 done 7373 IFS=$as_save_IFS 7374 7375 fi 7376 fi 7377 NMEDIT=$ac_cv_prog_NMEDIT 7378 if test -n "$NMEDIT"; then 7379 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7380 $as_echo "$NMEDIT" >&6; } 7381 else 7382 { $as_echo "$as_me:$LINENO: result: no" >&5 7383 $as_echo "no" >&6; } 7384 fi 7385 7386 7387 fi 7388 if test -z "$ac_cv_prog_NMEDIT"; then 7389 ac_ct_NMEDIT=$NMEDIT 7390 # Extract the first word of "nmedit", so it can be a program name with args. 7391 set dummy nmedit; ac_word=$2 7392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7393 $as_echo_n "checking for $ac_word... " >&6; } 7394 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7395 $as_echo_n "(cached) " >&6 7396 else 7397 if test -n "$ac_ct_NMEDIT"; then 7398 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7399 else 7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7401 for as_dir in $PATH 7402 do 7403 IFS=$as_save_IFS 7404 test -z "$as_dir" && as_dir=. 7405 for ac_exec_ext in '' $ac_executable_extensions; do 7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7407 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7409 break 2 7410 fi 7411 done 7412 done 7413 IFS=$as_save_IFS 7414 7415 fi 7416 fi 7417 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7418 if test -n "$ac_ct_NMEDIT"; then 7419 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7420 $as_echo "$ac_ct_NMEDIT" >&6; } 7421 else 7422 { $as_echo "$as_me:$LINENO: result: no" >&5 7423 $as_echo "no" >&6; } 7424 fi 7425 7426 if test "x$ac_ct_NMEDIT" = x; then 7427 NMEDIT=":" 7428 else 7429 case $cross_compiling:$ac_tool_warned in 7430 yes:) 7431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7433 ac_tool_warned=yes ;; 7434 esac 7435 NMEDIT=$ac_ct_NMEDIT 7436 fi 7437 else 7438 NMEDIT="$ac_cv_prog_NMEDIT" 7439 fi 7440 7441 7442 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7443 $as_echo_n "checking for -single_module linker flag... " >&6; } 7444 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7445 $as_echo_n "(cached) " >&6 7446 else 7447 lt_cv_apple_cc_single_mod=no 7448 if test -z "${LT_MULTI_MODULE}"; then 7449 # By default we will add the -single_module flag. You can override 7450 # by either setting the environment variable LT_MULTI_MODULE 7451 # non-empty at configure time, or by adding -multi_module to the 7452 # link flags. 7453 echo "int foo(void){return 1;}" > conftest.c 7454 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7455 -dynamiclib ${wl}-single_module conftest.c 7456 if test -f libconftest.dylib; then 7457 lt_cv_apple_cc_single_mod=yes 7458 rm -rf libconftest.dylib* 7459 fi 7460 rm conftest.c 7461 fi 7462 fi 7463 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7464 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7465 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7466 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7467 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7468 $as_echo_n "(cached) " >&6 7469 else 7470 lt_cv_ld_exported_symbols_list=no 7471 save_LDFLAGS=$LDFLAGS 7472 echo "_main" > conftest.sym 7473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7474 cat >conftest.$ac_ext <<_ACEOF 7475 /* confdefs.h. */ 7476 _ACEOF 7477 cat confdefs.h >>conftest.$ac_ext 7478 cat >>conftest.$ac_ext <<_ACEOF 7479 /* end confdefs.h. */ 7480 7481 int 7482 main () 7483 { 7484 7485 ; 7486 return 0; 7487 } 7488 _ACEOF 7489 rm -f conftest.$ac_objext conftest$ac_exeext 7490 if { (ac_try="$ac_link" 7491 case "(($ac_try" in 7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7493 *) ac_try_echo=$ac_try;; 7494 esac 7495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7496 $as_echo "$ac_try_echo") >&5 7497 (eval "$ac_link") 2>conftest.er1 7498 ac_status=$? 7499 grep -v '^ *+' conftest.er1 >conftest.err 7500 rm -f conftest.er1 7501 cat conftest.err >&5 7502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7503 (exit $ac_status); } && { 7504 test -z "$ac_c_werror_flag" || 7505 test ! -s conftest.err 7506 } && test -s conftest$ac_exeext && { 7507 test "$cross_compiling" = yes || 7508 $as_test_x conftest$ac_exeext 7509 }; then 7510 lt_cv_ld_exported_symbols_list=yes 7511 else 7512 $as_echo "$as_me: failed program was:" >&5 7513 sed 's/^/| /' conftest.$ac_ext >&5 7514 7515 lt_cv_ld_exported_symbols_list=no 7516 fi 7517 7518 rm -rf conftest.dSYM 7519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7520 conftest$ac_exeext conftest.$ac_ext 7521 LDFLAGS="$save_LDFLAGS" 7522 7523 fi 7524 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7525 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7526 case $host_os in 7527 rhapsody* | darwin1.[0123]) 7528 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7529 darwin1.*) 7530 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7531 darwin*) 7532 # if running on 10.5 or later, the deployment target defaults 7533 # to the OS version, if on x86, and 10.4, the deployment 7534 # target defaults to 10.4. Don't you love it? 7535 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7536 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7537 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7538 10.[012]*) 7539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7540 10.*) 7541 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7542 esac 7543 ;; 7544 esac 7545 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7546 _lt_dar_single_mod='$single_module' 7547 fi 7548 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7549 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7550 else 7551 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7552 fi 7553 if test "$DSYMUTIL" != ":"; then 7554 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7555 else 7556 _lt_dsymutil= 7557 fi 7558 ;; 7559 esac 7560 7561 7562 enable_dlopen=no 7563 enable_win32_dll=no 7564 7565 # Check whether --enable-libtool-lock was given. 7566 if test "${enable_libtool_lock+set}" = set; then 7567 enableval=$enable_libtool_lock; 7568 fi 7569 7570 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7571 7572 7573 # Check whether --with-pic was given. 7574 if test "${with_pic+set}" = set; then 7575 withval=$with_pic; pic_mode="$withval" 7576 else 7577 pic_mode=default 7578 fi 7579 7580 test -z "$pic_mode" && pic_mode=default 7581 7582 # Use C for the default configuration in the libtool script 7583 tagname= 7584 lt_save_CC="$CC" 7585 ac_ext=c 7586 ac_cpp='$CPP $CPPFLAGS' 7587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7589 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7590 7591 7592 # Source file extension for C test sources. 7593 ac_ext=c 7594 7595 # Object file extension for compiled C test sources. 7596 objext=o 7597 objext=$objext 7598 7599 # Code to be used in simple compile tests 7600 lt_simple_compile_test_code="int some_variable = 0;" 7601 7602 # Code to be used in simple link tests 7603 lt_simple_link_test_code='int main(){return(0);}' 7604 7605 7606 # If no C compiler was specified, use CC. 7607 LTCC=${LTCC-"$CC"} 7608 7609 # If no C compiler flags were specified, use CFLAGS. 7610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7611 7612 # Allow CC to be a program name with arguments. 7613 compiler=$CC 7614 7615 7616 # save warnings/boilerplate of simple test code 7617 ac_outfile=conftest.$ac_objext 7618 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7619 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7620 _lt_compiler_boilerplate=`cat conftest.err` 7621 $rm conftest* 7622 7623 ac_outfile=conftest.$ac_objext 7624 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7625 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7626 _lt_linker_boilerplate=`cat conftest.err` 7627 $rm -r conftest* 7628 7629 7630 7631 lt_prog_compiler_no_builtin_flag= 7632 7633 if test "$GCC" = yes; then 7634 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7635 7636 7637 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7638 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7640 $as_echo_n "(cached) " >&6 7641 else 7642 lt_cv_prog_compiler_rtti_exceptions=no 7643 ac_outfile=conftest.$ac_objext 7644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7645 lt_compiler_flag="-fno-rtti -fno-exceptions" 7646 # Insert the option either (1) after the last *FLAGS variable, or 7647 # (2) before a word containing "conftest.", or (3) at the end. 7648 # Note that $ac_compile itself does not contain backslashes and begins 7649 # with a dollar sign (not a hyphen), so the echo should work correctly. 7650 # The option is referenced via a variable to avoid confusing sed. 7651 lt_compile=`echo "$ac_compile" | $SED \ 7652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7654 -e 's:$: $lt_compiler_flag:'` 7655 (eval echo "\"\$as_me:7655: $lt_compile\"" >&5) 7656 (eval "$lt_compile" 2>conftest.err) 7657 ac_status=$? 7658 cat conftest.err >&5 7659 echo "$as_me:7659: \$? = $ac_status" >&5 7660 if (exit $ac_status) && test -s "$ac_outfile"; then 7661 # The compiler can only warn and ignore the option if not recognized 7662 # So say no if there are warnings other than the usual output. 7663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7666 lt_cv_prog_compiler_rtti_exceptions=yes 7667 fi 7668 fi 7669 $rm conftest* 7670 7671 fi 7672 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7673 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7674 7675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7676 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7677 else 7678 : 7679 fi 7680 7681 fi 7682 7683 lt_prog_compiler_wl= 7684 lt_prog_compiler_pic= 7685 lt_prog_compiler_static= 7686 7687 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7689 7690 if test "$GCC" = yes; then 7691 lt_prog_compiler_wl='-Wl,' 7692 lt_prog_compiler_static='-static' 7693 7694 case $host_os in 7695 aix*) 7696 # All AIX code is PIC. 7697 if test "$host_cpu" = ia64; then 7698 # AIX 5 now supports IA64 processor 7699 lt_prog_compiler_static='-Bstatic' 7700 fi 7701 ;; 7702 7703 amigaos*) 7704 # FIXME: we need at least 68020 code to build shared libraries, but 7705 # adding the `-m68020' flag to GCC prevents building anything better, 7706 # like `-m68040'. 7707 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7708 ;; 7709 7710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7711 # PIC is the default for these OSes. 7712 ;; 7713 7714 mingw* | cygwin* | pw32* | os2*) 7715 # This hack is so that the source file can tell whether it is being 7716 # built for inclusion in a dll (and should export symbols for example). 7717 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7718 # (--disable-auto-import) libraries 7719 lt_prog_compiler_pic='-DDLL_EXPORT' 7720 ;; 7721 7722 darwin* | rhapsody*) 7723 # PIC is the default on this platform 7724 # Common symbols not allowed in MH_DYLIB files 7725 lt_prog_compiler_pic='-fno-common' 7726 ;; 7727 7728 interix[3-9]*) 7729 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7730 # Instead, we relocate shared libraries at runtime. 7731 ;; 7732 7733 msdosdjgpp*) 7734 # Just because we use GCC doesn't mean we suddenly get shared libraries 7735 # on systems that don't support them. 7736 lt_prog_compiler_can_build_shared=no 7737 enable_shared=no 7738 ;; 7739 7740 sysv4*MP*) 7741 if test -d /usr/nec; then 7742 lt_prog_compiler_pic=-Kconform_pic 7743 fi 7744 ;; 7745 7746 hpux*) 7747 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7748 # not for PA HP-UX. 7749 case $host_cpu in 7750 hppa*64*|ia64*) 7751 # +Z the default 7752 ;; 7753 *) 7754 lt_prog_compiler_pic='-fPIC' 7755 ;; 7756 esac 7757 ;; 7758 7759 *) 7760 lt_prog_compiler_pic='-fPIC' 7761 ;; 7762 esac 7763 else 7764 # PORTME Check for flag to pass linker flags through the system compiler. 7765 case $host_os in 7766 aix*) 7767 lt_prog_compiler_wl='-Wl,' 7768 if test "$host_cpu" = ia64; then 7769 # AIX 5 now supports IA64 processor 7770 lt_prog_compiler_static='-Bstatic' 7771 else 7772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7773 fi 7774 ;; 7775 darwin*) 7776 # PIC is the default on this platform 7777 # Common symbols not allowed in MH_DYLIB files 7778 case $cc_basename in 7779 xlc*) 7780 lt_prog_compiler_pic='-qnocommon' 7781 lt_prog_compiler_wl='-Wl,' 7782 ;; 7783 esac 7784 ;; 7785 7786 mingw* | cygwin* | pw32* | os2*) 7787 # This hack is so that the source file can tell whether it is being 7788 # built for inclusion in a dll (and should export symbols for example). 7789 lt_prog_compiler_pic='-DDLL_EXPORT' 7790 ;; 7791 7792 hpux9* | hpux10* | hpux11*) 7793 lt_prog_compiler_wl='-Wl,' 7794 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7795 # not for PA HP-UX. 7796 case $host_cpu in 7797 hppa*64*|ia64*) 7798 # +Z the default 7799 ;; 7800 *) 7801 lt_prog_compiler_pic='+Z' 7802 ;; 7803 esac 7804 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7805 lt_prog_compiler_static='${wl}-a ${wl}archive' 7806 ;; 7807 7808 irix5* | irix6* | nonstopux*) 7809 lt_prog_compiler_wl='-Wl,' 7810 # PIC (with -KPIC) is the default. 7811 lt_prog_compiler_static='-non_shared' 7812 ;; 7813 7814 newsos6) 7815 lt_prog_compiler_pic='-KPIC' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 7819 linux* | k*bsd*-gnu) 7820 case $cc_basename in 7821 icc* | ecc*) 7822 lt_prog_compiler_wl='-Wl,' 7823 lt_prog_compiler_pic='-KPIC' 7824 lt_prog_compiler_static='-static' 7825 ;; 7826 pgcc* | pgf77* | pgf90* | pgf95*) 7827 # Portland Group compilers (*not* the Pentium gcc compiler, 7828 # which looks to be a dead project) 7829 lt_prog_compiler_wl='-Wl,' 7830 lt_prog_compiler_pic='-fpic' 7831 lt_prog_compiler_static='-Bstatic' 7832 ;; 7833 ccc*) 7834 lt_prog_compiler_wl='-Wl,' 7835 # All Alpha code is PIC. 7836 lt_prog_compiler_static='-non_shared' 7837 ;; 7838 *) 7839 case `$CC -V 2>&1 | sed 5q` in 7840 *Sun\ C*) 7841 # Sun C 5.9 7842 lt_prog_compiler_pic='-KPIC' 7843 lt_prog_compiler_static='-Bstatic' 7844 lt_prog_compiler_wl='-Wl,' 7845 ;; 7846 *Sun\ F*) 7847 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7848 lt_prog_compiler_pic='-KPIC' 7849 lt_prog_compiler_static='-Bstatic' 7850 lt_prog_compiler_wl='' 7851 ;; 7852 esac 7853 ;; 7854 esac 7855 ;; 7856 7857 osf3* | osf4* | osf5*) 7858 lt_prog_compiler_wl='-Wl,' 7859 # All OSF/1 code is PIC. 7860 lt_prog_compiler_static='-non_shared' 7861 ;; 7862 7863 rdos*) 7864 lt_prog_compiler_static='-non_shared' 7865 ;; 7866 7867 solaris*) 7868 lt_prog_compiler_pic='-KPIC' 7869 lt_prog_compiler_static='-Bstatic' 7870 case $cc_basename in 7871 f77* | f90* | f95*) 7872 lt_prog_compiler_wl='-Qoption ld ';; 7873 *) 7874 lt_prog_compiler_wl='-Wl,';; 7875 esac 7876 ;; 7877 7878 sunos4*) 7879 lt_prog_compiler_wl='-Qoption ld ' 7880 lt_prog_compiler_pic='-PIC' 7881 lt_prog_compiler_static='-Bstatic' 7882 ;; 7883 7884 sysv4 | sysv4.2uw2* | sysv4.3*) 7885 lt_prog_compiler_wl='-Wl,' 7886 lt_prog_compiler_pic='-KPIC' 7887 lt_prog_compiler_static='-Bstatic' 7888 ;; 7889 7890 sysv4*MP*) 7891 if test -d /usr/nec ;then 7892 lt_prog_compiler_pic='-Kconform_pic' 7893 lt_prog_compiler_static='-Bstatic' 7894 fi 7895 ;; 7896 7897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7898 lt_prog_compiler_wl='-Wl,' 7899 lt_prog_compiler_pic='-KPIC' 7900 lt_prog_compiler_static='-Bstatic' 7901 ;; 7902 7903 unicos*) 7904 lt_prog_compiler_wl='-Wl,' 7905 lt_prog_compiler_can_build_shared=no 7906 ;; 7907 7908 uts4*) 7909 lt_prog_compiler_pic='-pic' 7910 lt_prog_compiler_static='-Bstatic' 7911 ;; 7912 7913 *) 7914 lt_prog_compiler_can_build_shared=no 7915 ;; 7916 esac 7917 fi 7918 7919 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7920 $as_echo "$lt_prog_compiler_pic" >&6; } 7921 7922 # 7923 # Check to make sure the PIC flag actually works. 7924 # 7925 if test -n "$lt_prog_compiler_pic"; then 7926 7927 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7928 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7929 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7930 $as_echo_n "(cached) " >&6 7931 else 7932 lt_cv_prog_compiler_pic_works=no 7933 ac_outfile=conftest.$ac_objext 7934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7935 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7936 # Insert the option either (1) after the last *FLAGS variable, or 7937 # (2) before a word containing "conftest.", or (3) at the end. 7938 # Note that $ac_compile itself does not contain backslashes and begins 7939 # with a dollar sign (not a hyphen), so the echo should work correctly. 7940 # The option is referenced via a variable to avoid confusing sed. 7941 lt_compile=`echo "$ac_compile" | $SED \ 7942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7944 -e 's:$: $lt_compiler_flag:'` 7945 (eval echo "\"\$as_me:7945: $lt_compile\"" >&5) 7946 (eval "$lt_compile" 2>conftest.err) 7947 ac_status=$? 7948 cat conftest.err >&5 7949 echo "$as_me:7949: \$? = $ac_status" >&5 7950 if (exit $ac_status) && test -s "$ac_outfile"; then 7951 # The compiler can only warn and ignore the option if not recognized 7952 # So say no if there are warnings other than the usual output. 7953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7956 lt_cv_prog_compiler_pic_works=yes 7957 fi 7958 fi 7959 $rm conftest* 7960 7961 fi 7962 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7963 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7964 7965 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7966 case $lt_prog_compiler_pic in 7967 "" | " "*) ;; 7968 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7969 esac 7970 else 7971 lt_prog_compiler_pic= 7972 lt_prog_compiler_can_build_shared=no 7973 fi 7974 7975 fi 7976 case $host_os in 7977 # For platforms which do not support PIC, -DPIC is meaningless: 7978 *djgpp*) 7979 lt_prog_compiler_pic= 7980 ;; 7981 *) 7982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7983 ;; 7984 esac 7985 7986 # 7987 # Check to make sure the static flag actually works. 7988 # 7989 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7990 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7992 if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7993 $as_echo_n "(cached) " >&6 7994 else 7995 lt_cv_prog_compiler_static_works=no 7996 save_LDFLAGS="$LDFLAGS" 7997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7998 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8000 # The linker can only warn and ignore the option if not recognized 8001 # So say no if there are warnings 8002 if test -s conftest.err; then 8003 # Append any errors to the config.log. 8004 cat conftest.err 1>&5 8005 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8007 if diff conftest.exp conftest.er2 >/dev/null; then 8008 lt_cv_prog_compiler_static_works=yes 8009 fi 8010 else 8011 lt_cv_prog_compiler_static_works=yes 8012 fi 8013 fi 8014 $rm -r conftest* 8015 LDFLAGS="$save_LDFLAGS" 8016 8017 fi 8018 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8019 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8020 8021 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8022 : 8023 else 8024 lt_prog_compiler_static= 8025 fi 8026 8027 8028 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8030 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8031 $as_echo_n "(cached) " >&6 8032 else 8033 lt_cv_prog_compiler_c_o=no 8034 $rm -r conftest 2>/dev/null 8035 mkdir conftest 8036 cd conftest 8037 mkdir out 8038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8039 8040 lt_compiler_flag="-o out/conftest2.$ac_objext" 8041 # Insert the option either (1) after the last *FLAGS variable, or 8042 # (2) before a word containing "conftest.", or (3) at the end. 8043 # Note that $ac_compile itself does not contain backslashes and begins 8044 # with a dollar sign (not a hyphen), so the echo should work correctly. 8045 lt_compile=`echo "$ac_compile" | $SED \ 8046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8048 -e 's:$: $lt_compiler_flag:'` 8049 (eval echo "\"\$as_me:8049: $lt_compile\"" >&5) 8050 (eval "$lt_compile" 2>out/conftest.err) 8051 ac_status=$? 8052 cat out/conftest.err >&5 8053 echo "$as_me:8053: \$? = $ac_status" >&5 8054 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8055 then 8056 # The compiler can only warn and ignore the option if not recognized 8057 # So say no if there are warnings 8058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8061 lt_cv_prog_compiler_c_o=yes 8062 fi 8063 fi 8064 chmod u+w . 2>&5 8065 $rm conftest* 8066 # SGI C++ compiler will create directory out/ii_files/ for 8067 # template instantiation 8068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8069 $rm out/* && rmdir out 8070 cd .. 8071 rmdir conftest 8072 $rm conftest* 8073 8074 fi 8075 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8076 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8077 8078 8079 hard_links="nottested" 8080 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8081 # do not overwrite the value of need_locks provided by the user 8082 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8083 $as_echo_n "checking if we can lock with hard links... " >&6; } 8084 hard_links=yes 8085 $rm conftest* 8086 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8087 touch conftest.a 8088 ln conftest.a conftest.b 2>&5 || hard_links=no 8089 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8090 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8091 $as_echo "$hard_links" >&6; } 8092 if test "$hard_links" = no; then 8093 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8095 need_locks=warn 8096 fi 8097 else 8098 need_locks=no 8099 fi 8100 8101 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8103 8104 runpath_var= 8105 allow_undefined_flag= 8106 enable_shared_with_static_runtimes=no 8107 archive_cmds= 8108 archive_expsym_cmds= 8109 old_archive_From_new_cmds= 8110 old_archive_from_expsyms_cmds= 8111 export_dynamic_flag_spec= 8112 whole_archive_flag_spec= 8113 thread_safe_flag_spec= 8114 hardcode_libdir_flag_spec= 8115 hardcode_libdir_flag_spec_ld= 8116 hardcode_libdir_separator= 8117 hardcode_direct=no 8118 hardcode_minus_L=no 8119 hardcode_shlibpath_var=unsupported 8120 link_all_deplibs=unknown 8121 hardcode_automatic=no 8122 module_cmds= 8123 module_expsym_cmds= 8124 always_export_symbols=no 8125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8126 # include_expsyms should be a list of space-separated symbols to be *always* 8127 # included in the symbol list 8128 include_expsyms= 8129 # exclude_expsyms can be an extended regexp of symbols to exclude 8130 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8132 # as well as any symbol that contains `d'. 8133 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8135 # platforms (ab)use it in PIC code, but their linkers get confused if 8136 # the symbol is explicitly referenced. Since portable code cannot 8137 # rely on this symbol name, it's probably fine to never include it in 8138 # preloaded symbol tables. 8139 # Exclude shared library initialization/finalization symbols. 8140 extract_expsyms_cmds= 8141 # Just being paranoid about ensuring that cc_basename is set. 8142 for cc_temp in $compiler""; do 8143 case $cc_temp in 8144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8146 \-*) ;; 8147 *) break;; 8148 esac 8149 done 8150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8151 8152 case $host_os in 8153 cygwin* | mingw* | pw32*) 8154 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8155 # When not using gcc, we currently assume that we are using 8156 # Microsoft Visual C++. 8157 if test "$GCC" != yes; then 8158 with_gnu_ld=no 8159 fi 8160 ;; 8161 interix*) 8162 # we just hope/assume this is gcc and not c89 (= MSVC++) 8163 with_gnu_ld=yes 8164 ;; 8165 openbsd*) 8166 with_gnu_ld=no 8167 ;; 8168 esac 8169 8170 ld_shlibs=yes 8171 if test "$with_gnu_ld" = yes; then 8172 # If archive_cmds runs LD, not CC, wlarc should be empty 8173 wlarc='${wl}' 8174 8175 # Set some defaults for GNU ld with shared library support. These 8176 # are reset later if shared libraries are not supported. Putting them 8177 # here allows them to be overridden if necessary. 8178 runpath_var=LD_RUN_PATH 8179 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8180 export_dynamic_flag_spec='${wl}--export-dynamic' 8181 # ancient GNU ld didn't support --whole-archive et. al. 8182 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8183 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8184 else 8185 whole_archive_flag_spec= 8186 fi 8187 supports_anon_versioning=no 8188 case `$LD -v 2>/dev/null` in 8189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8192 *\ 2.11.*) ;; # other 2.11 versions 8193 *) supports_anon_versioning=yes ;; 8194 esac 8195 8196 # See if GNU ld supports shared libraries. 8197 case $host_os in 8198 aix[3-9]*) 8199 # On AIX/PPC, the GNU linker is very broken 8200 if test "$host_cpu" != ia64; then 8201 ld_shlibs=no 8202 cat <<EOF 1>&2 8203 8204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 8205 *** to be unable to reliably create shared libraries on AIX. 8206 *** Therefore, libtool is disabling shared libraries support. If you 8207 *** really care for shared libraries, you may want to modify your PATH 8208 *** so that a non-GNU linker is found, and then restart. 8209 8210 EOF 8211 fi 8212 ;; 8213 8214 amigaos*) 8215 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)' 8216 hardcode_libdir_flag_spec='-L$libdir' 8217 hardcode_minus_L=yes 8218 8219 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 8220 # that the semantics of dynamic libraries on AmigaOS, at least up 8221 # to version 4, is to share data among multiple programs linked 8222 # with the same dynamic library. Since this doesn't match the 8223 # behavior of shared libraries on other platforms, we can't use 8224 # them. 8225 ld_shlibs=no 8226 ;; 8227 8228 beos*) 8229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8230 allow_undefined_flag=unsupported 8231 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8232 # support --undefined. This deserves some investigation. FIXME 8233 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8234 else 8235 ld_shlibs=no 8236 fi 8237 ;; 8238 8239 cygwin* | mingw* | pw32*) 8240 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8241 # as there is no search path for DLLs. 8242 hardcode_libdir_flag_spec='-L$libdir' 8243 allow_undefined_flag=unsupported 8244 always_export_symbols=no 8245 enable_shared_with_static_runtimes=yes 8246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8247 8248 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8250 # If the export-symbols file already is a .def file (1st line 8251 # is EXPORTS), use it as is; otherwise, prepend... 8252 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8253 cp $export_symbols $output_objdir/$soname.def; 8254 else 8255 echo EXPORTS > $output_objdir/$soname.def; 8256 cat $export_symbols >> $output_objdir/$soname.def; 8257 fi~ 8258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8259 else 8260 ld_shlibs=no 8261 fi 8262 ;; 8263 8264 interix[3-9]*) 8265 hardcode_direct=no 8266 hardcode_shlibpath_var=no 8267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8268 export_dynamic_flag_spec='${wl}-E' 8269 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8270 # Instead, shared libraries are loaded at an image base (0x10000000 by 8271 # default) and relocated if they conflict, which is a slow very memory 8272 # consuming and fragmenting process. To avoid this, we pick a random, 8273 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8274 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8276 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' 8277 ;; 8278 8279 gnu* | linux* | k*bsd*-gnu) 8280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8281 tmp_addflag= 8282 case $cc_basename,$host_cpu in 8283 pgcc*) # Portland Group C compiler 8284 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' 8285 tmp_addflag=' $pic_flag' 8286 ;; 8287 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8288 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' 8289 tmp_addflag=' $pic_flag -Mnomain' ;; 8290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8291 tmp_addflag=' -i_dynamic' ;; 8292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8293 tmp_addflag=' -i_dynamic -nofor_main' ;; 8294 ifc* | ifort*) # Intel Fortran compiler 8295 tmp_addflag=' -nofor_main' ;; 8296 esac 8297 case `$CC -V 2>&1 | sed 5q` in 8298 *Sun\ C*) # Sun C 5.9 8299 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' 8300 tmp_sharedflag='-G' ;; 8301 *Sun\ F*) # Sun Fortran 8.3 8302 tmp_sharedflag='-G' ;; 8303 *) 8304 tmp_sharedflag='-shared' ;; 8305 esac 8306 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8307 8308 if test $supports_anon_versioning = yes; then 8309 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8311 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8312 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8313 fi 8314 else 8315 ld_shlibs=no 8316 fi 8317 ;; 8318 8319 netbsd*) 8320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8322 wlarc= 8323 else 8324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8326 fi 8327 ;; 8328 8329 solaris*) 8330 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8331 ld_shlibs=no 8332 cat <<EOF 1>&2 8333 8334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8335 *** create shared libraries on Solaris systems. Therefore, libtool 8336 *** is disabling shared libraries support. We urge you to upgrade GNU 8337 *** binutils to release 2.9.1 or newer. Another option is to modify 8338 *** your PATH or compiler configuration so that the native linker is 8339 *** used, and then restart. 8340 8341 EOF 8342 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8345 else 8346 ld_shlibs=no 8347 fi 8348 ;; 8349 8350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8351 case `$LD -v 2>&1` in 8352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8353 ld_shlibs=no 8354 cat <<_LT_EOF 1>&2 8355 8356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8357 *** reliably create shared libraries on SCO systems. Therefore, libtool 8358 *** is disabling shared libraries support. We urge you to upgrade GNU 8359 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8360 *** your PATH or compiler configuration so that the native linker is 8361 *** used, and then restart. 8362 8363 _LT_EOF 8364 ;; 8365 *) 8366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8367 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8370 else 8371 ld_shlibs=no 8372 fi 8373 ;; 8374 esac 8375 ;; 8376 8377 sunos4*) 8378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8379 wlarc= 8380 hardcode_direct=yes 8381 hardcode_shlibpath_var=no 8382 ;; 8383 8384 *) 8385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8388 else 8389 ld_shlibs=no 8390 fi 8391 ;; 8392 esac 8393 8394 if test "$ld_shlibs" = no; then 8395 runpath_var= 8396 hardcode_libdir_flag_spec= 8397 export_dynamic_flag_spec= 8398 whole_archive_flag_spec= 8399 fi 8400 else 8401 # PORTME fill in a description of your system's linker (not GNU ld) 8402 case $host_os in 8403 aix3*) 8404 allow_undefined_flag=unsupported 8405 always_export_symbols=yes 8406 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' 8407 # Note: this linker hardcodes the directories in LIBPATH if there 8408 # are no directories specified by -L. 8409 hardcode_minus_L=yes 8410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8411 # Neither direct hardcoding nor static linking is supported with a 8412 # broken collect2. 8413 hardcode_direct=unsupported 8414 fi 8415 ;; 8416 8417 aix[4-9]*) 8418 if test "$host_cpu" = ia64; then 8419 # On IA64, the linker does run time linking by default, so we don't 8420 # have to do anything special. 8421 aix_use_runtimelinking=no 8422 exp_sym_flag='-Bexport' 8423 no_entry_flag="" 8424 else 8425 # If we're using GNU nm, then we don't want the "-C" option. 8426 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8428 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' 8429 else 8430 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' 8431 fi 8432 aix_use_runtimelinking=no 8433 8434 # Test if we are trying to use run time linking or normal 8435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8436 # need to do runtime linking. 8437 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8438 for ld_flag in $LDFLAGS; do 8439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8440 aix_use_runtimelinking=yes 8441 break 8442 fi 8443 done 8444 ;; 8445 esac 8446 8447 exp_sym_flag='-bexport' 8448 no_entry_flag='-bnoentry' 8449 fi 8450 8451 # When large executables or shared objects are built, AIX ld can 8452 # have problems creating the table of contents. If linking a library 8453 # or program results in "error TOC overflow" add -mminimal-toc to 8454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8456 8457 archive_cmds='' 8458 hardcode_direct=yes 8459 hardcode_libdir_separator=':' 8460 link_all_deplibs=yes 8461 8462 if test "$GCC" = yes; then 8463 case $host_os in aix4.[012]|aix4.[012].*) 8464 # We only want to do this on AIX 4.2 and lower, the check 8465 # below for broken collect2 doesn't work under 4.3+ 8466 collect2name=`${CC} -print-prog-name=collect2` 8467 if test -f "$collect2name" && \ 8468 strings "$collect2name" | grep resolve_lib_name >/dev/null 8469 then 8470 # We have reworked collect2 8471 : 8472 else 8473 # We have old collect2 8474 hardcode_direct=unsupported 8475 # It fails to find uninstalled libraries when the uninstalled 8476 # path is not listed in the libpath. Setting hardcode_minus_L 8477 # to unsupported forces relinking 8478 hardcode_minus_L=yes 8479 hardcode_libdir_flag_spec='-L$libdir' 8480 hardcode_libdir_separator= 8481 fi 8482 ;; 8483 esac 8484 shared_flag='-shared' 8485 if test "$aix_use_runtimelinking" = yes; then 8486 shared_flag="$shared_flag "'${wl}-G' 8487 fi 8488 else 8489 # not using gcc 8490 if test "$host_cpu" = ia64; then 8491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8492 # chokes on -Wl,-G. The following line is correct: 8493 shared_flag='-G' 8494 else 8495 if test "$aix_use_runtimelinking" = yes; then 8496 shared_flag='${wl}-G' 8497 else 8498 shared_flag='${wl}-bM:SRE' 8499 fi 8500 fi 8501 fi 8502 8503 # It seems that -bexpall does not export symbols beginning with 8504 # underscore (_), so it is better to generate a list of symbols to export. 8505 always_export_symbols=yes 8506 if test "$aix_use_runtimelinking" = yes; then 8507 # Warning - without using the other runtime loading flags (-brtl), 8508 # -berok will link without error, but may produce a broken library. 8509 allow_undefined_flag='-berok' 8510 # Determine the default libpath from the value encoded in an empty executable. 8511 cat >conftest.$ac_ext <<_ACEOF 8512 /* confdefs.h. */ 8513 _ACEOF 8514 cat confdefs.h >>conftest.$ac_ext 8515 cat >>conftest.$ac_ext <<_ACEOF 8516 /* end confdefs.h. */ 8517 8518 int 8519 main () 8520 { 8521 8522 ; 8523 return 0; 8524 } 8525 _ACEOF 8526 rm -f conftest.$ac_objext conftest$ac_exeext 8527 if { (ac_try="$ac_link" 8528 case "(($ac_try" in 8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8530 *) ac_try_echo=$ac_try;; 8531 esac 8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8533 $as_echo "$ac_try_echo") >&5 8534 (eval "$ac_link") 2>conftest.er1 8535 ac_status=$? 8536 grep -v '^ *+' conftest.er1 >conftest.err 8537 rm -f conftest.er1 8538 cat conftest.err >&5 8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8540 (exit $ac_status); } && { 8541 test -z "$ac_c_werror_flag" || 8542 test ! -s conftest.err 8543 } && test -s conftest$ac_exeext && { 8544 test "$cross_compiling" = yes || 8545 $as_test_x conftest$ac_exeext 8546 }; then 8547 8548 lt_aix_libpath_sed=' 8549 /Import File Strings/,/^$/ { 8550 /^0/ { 8551 s/^0 *\(.*\)$/\1/ 8552 p 8553 } 8554 }' 8555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8556 # Check for a 64-bit object if we didn't find anything. 8557 if test -z "$aix_libpath"; then 8558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8559 fi 8560 else 8561 $as_echo "$as_me: failed program was:" >&5 8562 sed 's/^/| /' conftest.$ac_ext >&5 8563 8564 8565 fi 8566 8567 rm -rf conftest.dSYM 8568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8569 conftest$ac_exeext conftest.$ac_ext 8570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8571 8572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8573 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" 8574 else 8575 if test "$host_cpu" = ia64; then 8576 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8577 allow_undefined_flag="-z nodefs" 8578 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" 8579 else 8580 # Determine the default libpath from the value encoded in an empty executable. 8581 cat >conftest.$ac_ext <<_ACEOF 8582 /* confdefs.h. */ 8583 _ACEOF 8584 cat confdefs.h >>conftest.$ac_ext 8585 cat >>conftest.$ac_ext <<_ACEOF 8586 /* end confdefs.h. */ 8587 8588 int 8589 main () 8590 { 8591 8592 ; 8593 return 0; 8594 } 8595 _ACEOF 8596 rm -f conftest.$ac_objext conftest$ac_exeext 8597 if { (ac_try="$ac_link" 8598 case "(($ac_try" in 8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8600 *) ac_try_echo=$ac_try;; 8601 esac 8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8603 $as_echo "$ac_try_echo") >&5 8604 (eval "$ac_link") 2>conftest.er1 8605 ac_status=$? 8606 grep -v '^ *+' conftest.er1 >conftest.err 8607 rm -f conftest.er1 8608 cat conftest.err >&5 8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 (exit $ac_status); } && { 8611 test -z "$ac_c_werror_flag" || 8612 test ! -s conftest.err 8613 } && test -s conftest$ac_exeext && { 8614 test "$cross_compiling" = yes || 8615 $as_test_x conftest$ac_exeext 8616 }; then 8617 8618 lt_aix_libpath_sed=' 8619 /Import File Strings/,/^$/ { 8620 /^0/ { 8621 s/^0 *\(.*\)$/\1/ 8622 p 8623 } 8624 }' 8625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8626 # Check for a 64-bit object if we didn't find anything. 8627 if test -z "$aix_libpath"; then 8628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8629 fi 8630 else 8631 $as_echo "$as_me: failed program was:" >&5 8632 sed 's/^/| /' conftest.$ac_ext >&5 8633 8634 8635 fi 8636 8637 rm -rf conftest.dSYM 8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8639 conftest$ac_exeext conftest.$ac_ext 8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8641 8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8643 # Warning - without using the other run time loading flags, 8644 # -berok will link without error, but may produce a broken library. 8645 no_undefined_flag=' ${wl}-bernotok' 8646 allow_undefined_flag=' ${wl}-berok' 8647 # Exported symbols can be pulled into shared objects from archives 8648 whole_archive_flag_spec='$convenience' 8649 archive_cmds_need_lc=yes 8650 # This is similar to how AIX traditionally builds its shared libraries. 8651 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' 8652 fi 8653 fi 8654 ;; 8655 8656 amigaos*) 8657 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)' 8658 hardcode_libdir_flag_spec='-L$libdir' 8659 hardcode_minus_L=yes 8660 # see comment about different semantics on the GNU ld section 8661 ld_shlibs=no 8662 ;; 8663 8664 bsdi[45]*) 8665 export_dynamic_flag_spec=-rdynamic 8666 ;; 8667 8668 cygwin* | mingw* | pw32*) 8669 # When not using gcc, we currently assume that we are using 8670 # Microsoft Visual C++. 8671 # hardcode_libdir_flag_spec is actually meaningless, as there is 8672 # no search path for DLLs. 8673 hardcode_libdir_flag_spec=' ' 8674 allow_undefined_flag=unsupported 8675 # Tell ltmain to make .lib files, not .a files. 8676 libext=lib 8677 # Tell ltmain to make .dll files, not .so files. 8678 shrext_cmds=".dll" 8679 # FIXME: Setting linknames here is a bad hack. 8680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8681 # The linker will automatically build a .lib file if we build a DLL. 8682 old_archive_From_new_cmds='true' 8683 # FIXME: Should let the user specify the lib program. 8684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8685 fix_srcfile_path='`cygpath -w "$srcfile"`' 8686 enable_shared_with_static_runtimes=yes 8687 ;; 8688 8689 darwin* | rhapsody*) 8690 case $host_os in 8691 rhapsody* | darwin1.[012]) 8692 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8693 ;; 8694 *) # Darwin 1.3 on 8695 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8696 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8697 else 8698 case ${MACOSX_DEPLOYMENT_TARGET} in 8699 10.[012]) 8700 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8701 ;; 8702 10.*) 8703 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8704 ;; 8705 esac 8706 fi 8707 ;; 8708 esac 8709 archive_cmds_need_lc=no 8710 hardcode_direct=no 8711 hardcode_automatic=yes 8712 hardcode_shlibpath_var=unsupported 8713 whole_archive_flag_spec='' 8714 link_all_deplibs=yes 8715 if test "$GCC" = yes ; then 8716 output_verbose_link_cmd='echo' 8717 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8718 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8719 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8720 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8721 else 8722 case $cc_basename in 8723 xlc*) 8724 output_verbose_link_cmd='echo' 8725 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8726 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8728 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8729 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}' 8730 ;; 8731 *) 8732 ld_shlibs=no 8733 ;; 8734 esac 8735 fi 8736 ;; 8737 8738 dgux*) 8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8740 hardcode_libdir_flag_spec='-L$libdir' 8741 hardcode_shlibpath_var=no 8742 ;; 8743 8744 freebsd1*) 8745 ld_shlibs=no 8746 ;; 8747 8748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8749 # support. Future versions do this automatically, but an explicit c++rt0.o 8750 # does not break anything, and helps significantly (at the cost of a little 8751 # extra space). 8752 freebsd2.2*) 8753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8754 hardcode_libdir_flag_spec='-R$libdir' 8755 hardcode_direct=yes 8756 hardcode_shlibpath_var=no 8757 ;; 8758 8759 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8760 freebsd2*) 8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_direct=yes 8763 hardcode_minus_L=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8768 freebsd* | dragonfly*) 8769 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8770 hardcode_libdir_flag_spec='-R$libdir' 8771 hardcode_direct=yes 8772 hardcode_shlibpath_var=no 8773 ;; 8774 8775 hpux9*) 8776 if test "$GCC" = yes; then 8777 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' 8778 else 8779 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' 8780 fi 8781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8782 hardcode_libdir_separator=: 8783 hardcode_direct=yes 8784 8785 # hardcode_minus_L: Not really in the search PATH, 8786 # but as the default location of the library. 8787 hardcode_minus_L=yes 8788 export_dynamic_flag_spec='${wl}-E' 8789 ;; 8790 8791 hpux10*) 8792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8793 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8794 else 8795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8796 fi 8797 if test "$with_gnu_ld" = no; then 8798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8799 hardcode_libdir_separator=: 8800 8801 hardcode_direct=yes 8802 export_dynamic_flag_spec='${wl}-E' 8803 8804 # hardcode_minus_L: Not really in the search PATH, 8805 # but as the default location of the library. 8806 hardcode_minus_L=yes 8807 fi 8808 ;; 8809 8810 hpux11*) 8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8812 case $host_cpu in 8813 hppa*64*) 8814 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8815 ;; 8816 ia64*) 8817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 *) 8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8821 ;; 8822 esac 8823 else 8824 case $host_cpu in 8825 hppa*64*) 8826 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 ia64*) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 *) 8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8833 ;; 8834 esac 8835 fi 8836 if test "$with_gnu_ld" = no; then 8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8838 hardcode_libdir_separator=: 8839 8840 case $host_cpu in 8841 hppa*64*|ia64*) 8842 hardcode_libdir_flag_spec_ld='+b $libdir' 8843 hardcode_direct=no 8844 hardcode_shlibpath_var=no 8845 ;; 8846 *) 8847 hardcode_direct=yes 8848 export_dynamic_flag_spec='${wl}-E' 8849 8850 # hardcode_minus_L: Not really in the search PATH, 8851 # but as the default location of the library. 8852 hardcode_minus_L=yes 8853 ;; 8854 esac 8855 fi 8856 ;; 8857 8858 irix5* | irix6* | nonstopux*) 8859 if test "$GCC" = yes; then 8860 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' 8861 else 8862 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' 8863 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8864 fi 8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8866 hardcode_libdir_separator=: 8867 link_all_deplibs=yes 8868 ;; 8869 8870 netbsd*) 8871 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8873 else 8874 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8875 fi 8876 hardcode_libdir_flag_spec='-R$libdir' 8877 hardcode_direct=yes 8878 hardcode_shlibpath_var=no 8879 ;; 8880 8881 newsos6) 8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8883 hardcode_direct=yes 8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8885 hardcode_libdir_separator=: 8886 hardcode_shlibpath_var=no 8887 ;; 8888 8889 openbsd*) 8890 if test -f /usr/libexec/ld.so; then 8891 hardcode_direct=yes 8892 hardcode_shlibpath_var=no 8893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8895 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8897 export_dynamic_flag_spec='${wl}-E' 8898 else 8899 case $host_os in 8900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8902 hardcode_libdir_flag_spec='-R$libdir' 8903 ;; 8904 *) 8905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8907 ;; 8908 esac 8909 fi 8910 else 8911 ld_shlibs=no 8912 fi 8913 ;; 8914 8915 os2*) 8916 hardcode_libdir_flag_spec='-L$libdir' 8917 hardcode_minus_L=yes 8918 allow_undefined_flag=unsupported 8919 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' 8920 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8921 ;; 8922 8923 osf3*) 8924 if test "$GCC" = yes; then 8925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8926 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' 8927 else 8928 allow_undefined_flag=' -expect_unresolved \*' 8929 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' 8930 fi 8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8932 hardcode_libdir_separator=: 8933 ;; 8934 8935 osf4* | osf5*) # as osf3* with the addition of -msym flag 8936 if test "$GCC" = yes; then 8937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8938 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' 8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8940 else 8941 allow_undefined_flag=' -expect_unresolved \*' 8942 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' 8943 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8944 $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' 8945 8946 # Both c and cxx compiler support -rpath directly 8947 hardcode_libdir_flag_spec='-rpath $libdir' 8948 fi 8949 hardcode_libdir_separator=: 8950 ;; 8951 8952 solaris*) 8953 no_undefined_flag=' -z text' 8954 if test "$GCC" = yes; then 8955 wlarc='${wl}' 8956 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8957 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8958 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8959 else 8960 wlarc='' 8961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8962 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8964 fi 8965 hardcode_libdir_flag_spec='-R$libdir' 8966 hardcode_shlibpath_var=no 8967 case $host_os in 8968 solaris2.[0-5] | solaris2.[0-5].*) ;; 8969 *) 8970 # The compiler driver will combine and reorder linker options, 8971 # but understands `-z linker_flag'. GCC discards it without `$wl', 8972 # but is careful enough not to reorder. 8973 # Supported since Solaris 2.6 (maybe 2.5.1?) 8974 if test "$GCC" = yes; then 8975 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8976 else 8977 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8978 fi 8979 ;; 8980 esac 8981 link_all_deplibs=yes 8982 ;; 8983 8984 sunos4*) 8985 if test "x$host_vendor" = xsequent; then 8986 # Use $CC to link under sequent, because it throws in some extra .o 8987 # files that make .init and .fini sections work. 8988 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8989 else 8990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8991 fi 8992 hardcode_libdir_flag_spec='-L$libdir' 8993 hardcode_direct=yes 8994 hardcode_minus_L=yes 8995 hardcode_shlibpath_var=no 8996 ;; 8997 8998 sysv4) 8999 case $host_vendor in 9000 sni) 9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9002 hardcode_direct=yes # is this really true??? 9003 ;; 9004 siemens) 9005 ## LD is ld it makes a PLAMLIB 9006 ## CC just makes a GrossModule. 9007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9008 reload_cmds='$CC -r -o $output$reload_objs' 9009 hardcode_direct=no 9010 ;; 9011 motorola) 9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9014 ;; 9015 esac 9016 runpath_var='LD_RUN_PATH' 9017 hardcode_shlibpath_var=no 9018 ;; 9019 9020 sysv4.3*) 9021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9022 hardcode_shlibpath_var=no 9023 export_dynamic_flag_spec='-Bexport' 9024 ;; 9025 9026 sysv4*MP*) 9027 if test -d /usr/nec; then 9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9029 hardcode_shlibpath_var=no 9030 runpath_var=LD_RUN_PATH 9031 hardcode_runpath_var=yes 9032 ld_shlibs=yes 9033 fi 9034 ;; 9035 9036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9037 no_undefined_flag='${wl}-z,text' 9038 archive_cmds_need_lc=no 9039 hardcode_shlibpath_var=no 9040 runpath_var='LD_RUN_PATH' 9041 9042 if test "$GCC" = yes; then 9043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9045 else 9046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 fi 9049 ;; 9050 9051 sysv5* | sco3.2v5* | sco5v6*) 9052 # Note: We can NOT use -z defs as we might desire, because we do not 9053 # link with -lc, and that would cause any symbols used from libc to 9054 # always be unresolved, which means just about no library would 9055 # ever link correctly. If we're not using GNU ld we use -z text 9056 # though, which does catch some bad symbols but isn't as heavy-handed 9057 # as -z defs. 9058 no_undefined_flag='${wl}-z,text' 9059 allow_undefined_flag='${wl}-z,nodefs' 9060 archive_cmds_need_lc=no 9061 hardcode_shlibpath_var=no 9062 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9063 hardcode_libdir_separator=':' 9064 link_all_deplibs=yes 9065 export_dynamic_flag_spec='${wl}-Bexport' 9066 runpath_var='LD_RUN_PATH' 9067 9068 if test "$GCC" = yes; then 9069 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9070 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9071 else 9072 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9073 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9074 fi 9075 ;; 9076 9077 uts4*) 9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9079 hardcode_libdir_flag_spec='-L$libdir' 9080 hardcode_shlibpath_var=no 9081 ;; 9082 9083 *) 9084 ld_shlibs=no 9085 ;; 9086 esac 9087 fi 9088 9089 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9090 $as_echo "$ld_shlibs" >&6; } 9091 test "$ld_shlibs" = no && can_build_shared=no 9092 9093 # 9094 # Do we need to explicitly link libc? 9095 # 9096 case "x$archive_cmds_need_lc" in 9097 x|xyes) 9098 # Assume -lc should be added 9099 archive_cmds_need_lc=yes 9100 9101 if test "$enable_shared" = yes && test "$GCC" = yes; then 9102 case $archive_cmds in 9103 *'~'*) 9104 # FIXME: we may have to deal with multi-command sequences. 9105 ;; 9106 '$CC '*) 9107 # Test whether the compiler implicitly links with -lc since on some 9108 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9109 # to ld, don't add -lc before -lgcc. 9110 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9111 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9112 $rm conftest* 9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9114 9115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9116 (eval $ac_compile) 2>&5 9117 ac_status=$? 9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9119 (exit $ac_status); } 2>conftest.err; then 9120 soname=conftest 9121 lib=conftest 9122 libobjs=conftest.$ac_objext 9123 deplibs= 9124 wl=$lt_prog_compiler_wl 9125 pic_flag=$lt_prog_compiler_pic 9126 compiler_flags=-v 9127 linker_flags=-v 9128 verstring= 9129 output_objdir=. 9130 libname=conftest 9131 lt_save_allow_undefined_flag=$allow_undefined_flag 9132 allow_undefined_flag= 9133 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9134 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9135 ac_status=$? 9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9137 (exit $ac_status); } 9138 then 9139 archive_cmds_need_lc=no 9140 else 9141 archive_cmds_need_lc=yes 9142 fi 9143 allow_undefined_flag=$lt_save_allow_undefined_flag 9144 else 9145 cat conftest.err 1>&5 9146 fi 9147 $rm conftest* 9148 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9149 $as_echo "$archive_cmds_need_lc" >&6; } 9150 ;; 9151 esac 9152 fi 9153 ;; 9154 esac 9155 9156 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9157 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9158 library_names_spec= 9159 libname_spec='lib$name' 9160 soname_spec= 9161 shrext_cmds=".so" 9162 postinstall_cmds= 9163 postuninstall_cmds= 9164 finish_cmds= 9165 finish_eval= 9166 shlibpath_var= 9167 shlibpath_overrides_runpath=unknown 9168 version_type=none 9169 dynamic_linker="$host_os ld.so" 9170 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9171 9172 if test "$GCC" = yes; then 9173 case $host_os in 9174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9175 *) lt_awk_arg="/^libraries:/" ;; 9176 esac 9177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9178 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9179 # if the path contains ";" then we assume it to be the separator 9180 # otherwise default to the standard path separator (i.e. ":") - it is 9181 # assumed that no part of a normal pathname contains ";" but that should 9182 # okay in the real world where ";" in dirpaths is itself problematic. 9183 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9184 else 9185 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9186 fi 9187 # Ok, now we have the path, separated by spaces, we can step through it 9188 # and add multilib dir if necessary. 9189 lt_tmp_lt_search_path_spec= 9190 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9191 for lt_sys_path in $lt_search_path_spec; do 9192 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9193 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9194 else 9195 test -d "$lt_sys_path" && \ 9196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9197 fi 9198 done 9199 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9200 BEGIN {RS=" "; FS="/|\n";} { 9201 lt_foo=""; 9202 lt_count=0; 9203 for (lt_i = NF; lt_i > 0; lt_i--) { 9204 if ($lt_i != "" && $lt_i != ".") { 9205 if ($lt_i == "..") { 9206 lt_count++; 9207 } else { 9208 if (lt_count == 0) { 9209 lt_foo="/" $lt_i lt_foo; 9210 } else { 9211 lt_count--; 9212 } 9213 } 9214 } 9215 } 9216 if (lt_foo != "") { lt_freq[lt_foo]++; } 9217 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9218 }'` 9219 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9220 else 9221 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9222 fi 9223 need_lib_prefix=unknown 9224 hardcode_into_libs=no 9225 9226 # when you set need_version to no, make sure it does not cause -set_version 9227 # flags to be left without arguments 9228 need_version=unknown 9229 9230 case $host_os in 9231 aix3*) 9232 version_type=linux 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9234 shlibpath_var=LIBPATH 9235 9236 # AIX 3 has no versioning support, so we append a major version to the name. 9237 soname_spec='${libname}${release}${shared_ext}$major' 9238 ;; 9239 9240 aix[4-9]*) 9241 version_type=linux 9242 need_lib_prefix=no 9243 need_version=no 9244 hardcode_into_libs=yes 9245 if test "$host_cpu" = ia64; then 9246 # AIX 5 supports IA64 9247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9248 shlibpath_var=LD_LIBRARY_PATH 9249 else 9250 # With GCC up to 2.95.x, collect2 would create an import file 9251 # for dependence libraries. The import file would start with 9252 # the line `#! .'. This would cause the generated library to 9253 # depend on `.', always an invalid library. This was fixed in 9254 # development snapshots of GCC prior to 3.0. 9255 case $host_os in 9256 aix4 | aix4.[01] | aix4.[01].*) 9257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9258 echo ' yes ' 9259 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9260 : 9261 else 9262 can_build_shared=no 9263 fi 9264 ;; 9265 esac 9266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9267 # soname into executable. Probably we can add versioning support to 9268 # collect2, so additional links can be useful in future. 9269 if test "$aix_use_runtimelinking" = yes; then 9270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9271 # instead of lib<name>.a to let people know that these are not 9272 # typical AIX shared libraries. 9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9274 else 9275 # We preserve .a as extension for shared libraries through AIX4.2 9276 # and later when we are not doing run time linking. 9277 library_names_spec='${libname}${release}.a $libname.a' 9278 soname_spec='${libname}${release}${shared_ext}$major' 9279 fi 9280 shlibpath_var=LIBPATH 9281 fi 9282 ;; 9283 9284 amigaos*) 9285 library_names_spec='$libname.ixlibrary $libname.a' 9286 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9287 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' 9288 ;; 9289 9290 beos*) 9291 library_names_spec='${libname}${shared_ext}' 9292 dynamic_linker="$host_os ld.so" 9293 shlibpath_var=LIBRARY_PATH 9294 ;; 9295 9296 bsdi[45]*) 9297 version_type=linux 9298 need_version=no 9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9300 soname_spec='${libname}${release}${shared_ext}$major' 9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9302 shlibpath_var=LD_LIBRARY_PATH 9303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9305 # the default ld.so.conf also contains /usr/contrib/lib and 9306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9307 # libtool to hard-code these into programs 9308 ;; 9309 9310 cygwin* | mingw* | pw32*) 9311 version_type=windows 9312 shrext_cmds=".dll" 9313 need_version=no 9314 need_lib_prefix=no 9315 9316 case $GCC,$host_os in 9317 yes,cygwin* | yes,mingw* | yes,pw32*) 9318 library_names_spec='$libname.dll.a' 9319 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9320 postinstall_cmds='base_file=`basename \${file}`~ 9321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9322 dldir=$destdir/`dirname \$dlpath`~ 9323 test -d \$dldir || mkdir -p \$dldir~ 9324 $install_prog $dir/$dlname \$dldir/$dlname~ 9325 chmod a+x \$dldir/$dlname' 9326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9327 dlpath=$dir/\$dldll~ 9328 $rm \$dlpath' 9329 shlibpath_overrides_runpath=yes 9330 9331 case $host_os in 9332 cygwin*) 9333 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9335 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9336 ;; 9337 mingw*) 9338 # MinGW DLLs use traditional 'lib' prefix 9339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9341 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9342 # It is most probably a Windows format PATH printed by 9343 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9344 # path with ; separators, and with drive letters. We can handle the 9345 # drive letters (cygwin fileutils understands them), so leave them, 9346 # especially as we might pass files found there to a mingw objdump, 9347 # which wouldn't understand a cygwinified path. Ahh. 9348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9349 else 9350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9351 fi 9352 ;; 9353 pw32*) 9354 # pw32 DLLs use 'pw' prefix rather than 'lib' 9355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9356 ;; 9357 esac 9358 ;; 9359 9360 *) 9361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9362 ;; 9363 esac 9364 dynamic_linker='Win32 ld.exe' 9365 # FIXME: first we should search . and the directory the executable is in 9366 shlibpath_var=PATH 9367 ;; 9368 9369 darwin* | rhapsody*) 9370 dynamic_linker="$host_os dyld" 9371 version_type=darwin 9372 need_lib_prefix=no 9373 need_version=no 9374 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9375 soname_spec='${libname}${release}${major}$shared_ext' 9376 shlibpath_overrides_runpath=yes 9377 shlibpath_var=DYLD_LIBRARY_PATH 9378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9379 9380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9382 ;; 9383 9384 dgux*) 9385 version_type=linux 9386 need_lib_prefix=no 9387 need_version=no 9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9389 soname_spec='${libname}${release}${shared_ext}$major' 9390 shlibpath_var=LD_LIBRARY_PATH 9391 ;; 9392 9393 freebsd1*) 9394 dynamic_linker=no 9395 ;; 9396 9397 freebsd* | dragonfly*) 9398 # DragonFly does not have aout. When/if they implement a new 9399 # versioning mechanism, adjust this. 9400 if test -x /usr/bin/objformat; then 9401 objformat=`/usr/bin/objformat` 9402 else 9403 case $host_os in 9404 freebsd[123]*) objformat=aout ;; 9405 *) objformat=elf ;; 9406 esac 9407 fi 9408 version_type=freebsd-$objformat 9409 case $version_type in 9410 freebsd-elf*) 9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9412 need_version=no 9413 need_lib_prefix=no 9414 ;; 9415 freebsd-*) 9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9417 need_version=yes 9418 ;; 9419 esac 9420 shlibpath_var=LD_LIBRARY_PATH 9421 case $host_os in 9422 freebsd2*) 9423 shlibpath_overrides_runpath=yes 9424 ;; 9425 freebsd3.[01]* | freebsdelf3.[01]*) 9426 shlibpath_overrides_runpath=yes 9427 hardcode_into_libs=yes 9428 ;; 9429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9431 shlibpath_overrides_runpath=no 9432 hardcode_into_libs=yes 9433 ;; 9434 *) # from 4.6 on, and DragonFly 9435 shlibpath_overrides_runpath=yes 9436 hardcode_into_libs=yes 9437 ;; 9438 esac 9439 ;; 9440 9441 gnu*) 9442 version_type=linux 9443 need_lib_prefix=no 9444 need_version=no 9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9446 soname_spec='${libname}${release}${shared_ext}$major' 9447 shlibpath_var=LD_LIBRARY_PATH 9448 hardcode_into_libs=yes 9449 ;; 9450 9451 hpux9* | hpux10* | hpux11*) 9452 # Give a soname corresponding to the major version so that dld.sl refuses to 9453 # link against other versions. 9454 version_type=sunos 9455 need_lib_prefix=no 9456 need_version=no 9457 case $host_cpu in 9458 ia64*) 9459 shrext_cmds='.so' 9460 hardcode_into_libs=yes 9461 dynamic_linker="$host_os dld.so" 9462 shlibpath_var=LD_LIBRARY_PATH 9463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9465 soname_spec='${libname}${release}${shared_ext}$major' 9466 if test "X$HPUX_IA64_MODE" = X32; then 9467 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9468 else 9469 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9470 fi 9471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9472 ;; 9473 hppa*64*) 9474 shrext_cmds='.sl' 9475 hardcode_into_libs=yes 9476 dynamic_linker="$host_os dld.sl" 9477 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9480 soname_spec='${libname}${release}${shared_ext}$major' 9481 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9483 ;; 9484 *) 9485 shrext_cmds='.sl' 9486 dynamic_linker="$host_os dld.sl" 9487 shlibpath_var=SHLIB_PATH 9488 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9490 soname_spec='${libname}${release}${shared_ext}$major' 9491 ;; 9492 esac 9493 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9494 postinstall_cmds='chmod 555 $lib' 9495 ;; 9496 9497 interix[3-9]*) 9498 version_type=linux 9499 need_lib_prefix=no 9500 need_version=no 9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9502 soname_spec='${libname}${release}${shared_ext}$major' 9503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9504 shlibpath_var=LD_LIBRARY_PATH 9505 shlibpath_overrides_runpath=no 9506 hardcode_into_libs=yes 9507 ;; 9508 9509 irix5* | irix6* | nonstopux*) 9510 case $host_os in 9511 nonstopux*) version_type=nonstopux ;; 9512 *) 9513 if test "$lt_cv_prog_gnu_ld" = yes; then 9514 version_type=linux 9515 else 9516 version_type=irix 9517 fi ;; 9518 esac 9519 need_lib_prefix=no 9520 need_version=no 9521 soname_spec='${libname}${release}${shared_ext}$major' 9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9523 case $host_os in 9524 irix5* | nonstopux*) 9525 libsuff= shlibsuff= 9526 ;; 9527 *) 9528 case $LD in # libtool.m4 will add one of these switches to LD 9529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9530 libsuff= shlibsuff= libmagic=32-bit;; 9531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9532 libsuff=32 shlibsuff=N32 libmagic=N32;; 9533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9534 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9535 *) libsuff= shlibsuff= libmagic=never-match;; 9536 esac 9537 ;; 9538 esac 9539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9540 shlibpath_overrides_runpath=no 9541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9543 hardcode_into_libs=yes 9544 ;; 9545 9546 # No shared lib support for Linux oldld, aout, or coff. 9547 linux*oldld* | linux*aout* | linux*coff*) 9548 dynamic_linker=no 9549 ;; 9550 9551 # This must be Linux ELF. 9552 linux* | k*bsd*-gnu) 9553 version_type=linux 9554 need_lib_prefix=no 9555 need_version=no 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9557 soname_spec='${libname}${release}${shared_ext}$major' 9558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9559 shlibpath_var=LD_LIBRARY_PATH 9560 shlibpath_overrides_runpath=no 9561 # This implies no fast_install, which is unacceptable. 9562 # Some rework will be needed to allow for fast_install 9563 # before this can be enabled. 9564 hardcode_into_libs=yes 9565 9566 # Append ld.so.conf contents to the search path 9567 if test -f /etc/ld.so.conf; then 9568 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9569 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9570 fi 9571 9572 # We used to test for /lib/ld.so.1 and disable shared libraries on 9573 # powerpc, because MkLinux only supported shared libraries with the 9574 # GNU dynamic linker. Since this was broken with cross compilers, 9575 # most powerpc-linux boxes support dynamic linking these days and 9576 # people can always --disable-shared, the test was removed, and we 9577 # assume the GNU/Linux dynamic linker is in use. 9578 dynamic_linker='GNU/Linux ld.so' 9579 ;; 9580 9581 netbsd*) 9582 version_type=sunos 9583 need_lib_prefix=no 9584 need_version=no 9585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9588 dynamic_linker='NetBSD (a.out) ld.so' 9589 else 9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9591 soname_spec='${libname}${release}${shared_ext}$major' 9592 dynamic_linker='NetBSD ld.elf_so' 9593 fi 9594 shlibpath_var=LD_LIBRARY_PATH 9595 shlibpath_overrides_runpath=yes 9596 hardcode_into_libs=yes 9597 ;; 9598 9599 newsos6) 9600 version_type=linux 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9602 shlibpath_var=LD_LIBRARY_PATH 9603 shlibpath_overrides_runpath=yes 9604 ;; 9605 9606 nto-qnx*) 9607 version_type=linux 9608 need_lib_prefix=no 9609 need_version=no 9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9611 soname_spec='${libname}${release}${shared_ext}$major' 9612 shlibpath_var=LD_LIBRARY_PATH 9613 shlibpath_overrides_runpath=yes 9614 ;; 9615 9616 openbsd*) 9617 version_type=sunos 9618 sys_lib_dlsearch_path_spec="/usr/lib" 9619 need_lib_prefix=no 9620 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9621 case $host_os in 9622 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9623 *) need_version=no ;; 9624 esac 9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9627 shlibpath_var=LD_LIBRARY_PATH 9628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9629 case $host_os in 9630 openbsd2.[89] | openbsd2.[89].*) 9631 shlibpath_overrides_runpath=no 9632 ;; 9633 *) 9634 shlibpath_overrides_runpath=yes 9635 ;; 9636 esac 9637 else 9638 shlibpath_overrides_runpath=yes 9639 fi 9640 ;; 9641 9642 os2*) 9643 libname_spec='$name' 9644 shrext_cmds=".dll" 9645 need_lib_prefix=no 9646 library_names_spec='$libname${shared_ext} $libname.a' 9647 dynamic_linker='OS/2 ld.exe' 9648 shlibpath_var=LIBPATH 9649 ;; 9650 9651 osf3* | osf4* | osf5*) 9652 version_type=osf 9653 need_lib_prefix=no 9654 need_version=no 9655 soname_spec='${libname}${release}${shared_ext}$major' 9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9657 shlibpath_var=LD_LIBRARY_PATH 9658 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9659 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9660 ;; 9661 9662 rdos*) 9663 dynamic_linker=no 9664 ;; 9665 9666 solaris*) 9667 version_type=linux 9668 need_lib_prefix=no 9669 need_version=no 9670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9671 soname_spec='${libname}${release}${shared_ext}$major' 9672 shlibpath_var=LD_LIBRARY_PATH 9673 shlibpath_overrides_runpath=yes 9674 hardcode_into_libs=yes 9675 # ldd complains unless libraries are executable 9676 postinstall_cmds='chmod +x $lib' 9677 ;; 9678 9679 sunos4*) 9680 version_type=sunos 9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9682 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9683 shlibpath_var=LD_LIBRARY_PATH 9684 shlibpath_overrides_runpath=yes 9685 if test "$with_gnu_ld" = yes; then 9686 need_lib_prefix=no 9687 fi 9688 need_version=yes 9689 ;; 9690 9691 sysv4 | sysv4.3*) 9692 version_type=linux 9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9694 soname_spec='${libname}${release}${shared_ext}$major' 9695 shlibpath_var=LD_LIBRARY_PATH 9696 case $host_vendor in 9697 sni) 9698 shlibpath_overrides_runpath=no 9699 need_lib_prefix=no 9700 export_dynamic_flag_spec='${wl}-Blargedynsym' 9701 runpath_var=LD_RUN_PATH 9702 ;; 9703 siemens) 9704 need_lib_prefix=no 9705 ;; 9706 motorola) 9707 need_lib_prefix=no 9708 need_version=no 9709 shlibpath_overrides_runpath=no 9710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9711 ;; 9712 esac 9713 ;; 9714 9715 sysv4*MP*) 9716 if test -d /usr/nec ;then 9717 version_type=linux 9718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9719 soname_spec='$libname${shared_ext}.$major' 9720 shlibpath_var=LD_LIBRARY_PATH 9721 fi 9722 ;; 9723 9724 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9725 version_type=freebsd-elf 9726 need_lib_prefix=no 9727 need_version=no 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 shlibpath_var=LD_LIBRARY_PATH 9731 hardcode_into_libs=yes 9732 if test "$with_gnu_ld" = yes; then 9733 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9734 shlibpath_overrides_runpath=no 9735 else 9736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9737 shlibpath_overrides_runpath=yes 9738 case $host_os in 9739 sco3.2v5*) 9740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9741 ;; 9742 esac 9743 fi 9744 sys_lib_dlsearch_path_spec='/usr/lib' 9745 ;; 9746 9747 uts4*) 9748 version_type=linux 9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 shlibpath_var=LD_LIBRARY_PATH 9752 ;; 9753 9754 *) 9755 dynamic_linker=no 9756 ;; 9757 esac 9758 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9759 $as_echo "$dynamic_linker" >&6; } 9760 test "$dynamic_linker" = no && can_build_shared=no 9761 9762 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9763 $as_echo_n "(cached) " >&6 9764 else 9765 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9766 fi 9767 9768 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9770 $as_echo_n "(cached) " >&6 9771 else 9772 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9773 fi 9774 9775 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9776 9777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9778 if test "$GCC" = yes; then 9779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9780 fi 9781 9782 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9783 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9784 hardcode_action= 9785 if test -n "$hardcode_libdir_flag_spec" || \ 9786 test -n "$runpath_var" || \ 9787 test "X$hardcode_automatic" = "Xyes" ; then 9788 9789 # We can hardcode non-existant directories. 9790 if test "$hardcode_direct" != no && 9791 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9792 # have to relink, otherwise we might link with an installed library 9793 # when we should be linking with a yet-to-be-installed one 9794 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9795 test "$hardcode_minus_L" != no; then 9796 # Linking always hardcodes the temporary library directory. 9797 hardcode_action=relink 9798 else 9799 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9800 hardcode_action=immediate 9801 fi 9802 else 9803 # We cannot hardcode anything, or else we can only hardcode existing 9804 # directories. 9805 hardcode_action=unsupported 9806 fi 9807 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9808 $as_echo "$hardcode_action" >&6; } 9809 9810 if test "$hardcode_action" = relink; then 9811 # Fast installation is not supported 9812 enable_fast_install=no 9813 elif test "$shlibpath_overrides_runpath" = yes || 9814 test "$enable_shared" = no; then 9815 # Fast installation is not necessary 9816 enable_fast_install=needless 9817 fi 9818 9819 striplib= 9820 old_striplib= 9821 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9822 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 9823 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9824 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9825 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9826 { $as_echo "$as_me:$LINENO: result: yes" >&5 9827 $as_echo "yes" >&6; } 9828 else 9829 # FIXME - insert some real tests, host_os isn't really good enough 9830 case $host_os in 9831 darwin*) 9832 if test -n "$STRIP" ; then 9833 striplib="$STRIP -x" 9834 old_striplib="$STRIP -S" 9835 { $as_echo "$as_me:$LINENO: result: yes" >&5 9836 $as_echo "yes" >&6; } 9837 else 9838 { $as_echo "$as_me:$LINENO: result: no" >&5 9839 $as_echo "no" >&6; } 9840 fi 9841 ;; 9842 *) 9843 { $as_echo "$as_me:$LINENO: result: no" >&5 9844 $as_echo "no" >&6; } 9845 ;; 9846 esac 9847 fi 9848 9849 if test "x$enable_dlopen" != xyes; then 9850 enable_dlopen=unknown 9851 enable_dlopen_self=unknown 9852 enable_dlopen_self_static=unknown 9853 else 9854 lt_cv_dlopen=no 9855 lt_cv_dlopen_libs= 9856 9857 case $host_os in 9858 beos*) 9859 lt_cv_dlopen="load_add_on" 9860 lt_cv_dlopen_libs= 9861 lt_cv_dlopen_self=yes 9862 ;; 9863 9864 mingw* | pw32*) 9865 lt_cv_dlopen="LoadLibrary" 9866 lt_cv_dlopen_libs= 9867 ;; 9868 9869 cygwin*) 9870 lt_cv_dlopen="dlopen" 9871 lt_cv_dlopen_libs= 9872 ;; 9873 9874 darwin*) 9875 # if libdl is installed we need to link against it 9876 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9877 $as_echo_n "checking for dlopen in -ldl... " >&6; } 9878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9879 $as_echo_n "(cached) " >&6 9880 else 9881 ac_check_lib_save_LIBS=$LIBS 9882 LIBS="-ldl $LIBS" 9883 cat >conftest.$ac_ext <<_ACEOF 9884 /* confdefs.h. */ 9885 _ACEOF 9886 cat confdefs.h >>conftest.$ac_ext 9887 cat >>conftest.$ac_ext <<_ACEOF 9888 /* end confdefs.h. */ 9889 9890 /* Override any GCC internal prototype to avoid an error. 9891 Use char because int might match the return type of a GCC 9892 builtin and then its argument prototype would still apply. */ 9893 #ifdef __cplusplus 9894 extern "C" 9895 #endif 9896 char dlopen (); 9897 int 9898 main () 9899 { 9900 return dlopen (); 9901 ; 9902 return 0; 9903 } 9904 _ACEOF 9905 rm -f conftest.$ac_objext conftest$ac_exeext 9906 if { (ac_try="$ac_link" 9907 case "(($ac_try" in 9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9909 *) ac_try_echo=$ac_try;; 9910 esac 9911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9912 $as_echo "$ac_try_echo") >&5 9913 (eval "$ac_link") 2>conftest.er1 9914 ac_status=$? 9915 grep -v '^ *+' conftest.er1 >conftest.err 9916 rm -f conftest.er1 9917 cat conftest.err >&5 9918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9919 (exit $ac_status); } && { 9920 test -z "$ac_c_werror_flag" || 9921 test ! -s conftest.err 9922 } && test -s conftest$ac_exeext && { 9923 test "$cross_compiling" = yes || 9924 $as_test_x conftest$ac_exeext 9925 }; then 9926 ac_cv_lib_dl_dlopen=yes 9927 else 9928 $as_echo "$as_me: failed program was:" >&5 9929 sed 's/^/| /' conftest.$ac_ext >&5 9930 9931 ac_cv_lib_dl_dlopen=no 9932 fi 9933 9934 rm -rf conftest.dSYM 9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9936 conftest$ac_exeext conftest.$ac_ext 9937 LIBS=$ac_check_lib_save_LIBS 9938 fi 9939 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9941 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9943 else 9944 9945 lt_cv_dlopen="dyld" 9946 lt_cv_dlopen_libs= 9947 lt_cv_dlopen_self=yes 9948 9949 fi 9950 9951 ;; 9952 9953 *) 9954 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9955 $as_echo_n "checking for shl_load... " >&6; } 9956 if test "${ac_cv_func_shl_load+set}" = set; then 9957 $as_echo_n "(cached) " >&6 9958 else 9959 cat >conftest.$ac_ext <<_ACEOF 9960 /* confdefs.h. */ 9961 _ACEOF 9962 cat confdefs.h >>conftest.$ac_ext 9963 cat >>conftest.$ac_ext <<_ACEOF 9964 /* end confdefs.h. */ 9965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9966 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9967 #define shl_load innocuous_shl_load 9968 9969 /* System header to define __stub macros and hopefully few prototypes, 9970 which can conflict with char shl_load (); below. 9971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9972 <limits.h> exists even on freestanding compilers. */ 9973 9974 #ifdef __STDC__ 9975 # include <limits.h> 9976 #else 9977 # include <assert.h> 9978 #endif 9979 9980 #undef shl_load 9981 9982 /* Override any GCC internal prototype to avoid an error. 9983 Use char because int might match the return type of a GCC 9984 builtin and then its argument prototype would still apply. */ 9985 #ifdef __cplusplus 9986 extern "C" 9987 #endif 9988 char shl_load (); 9989 /* The GNU C library defines this for functions which it implements 9990 to always fail with ENOSYS. Some functions are actually named 9991 something starting with __ and the normal name is an alias. */ 9992 #if defined __stub_shl_load || defined __stub___shl_load 9993 choke me 9994 #endif 9995 9996 int 9997 main () 9998 { 9999 return shl_load (); 10000 ; 10001 return 0; 10002 } 10003 _ACEOF 10004 rm -f conftest.$ac_objext conftest$ac_exeext 10005 if { (ac_try="$ac_link" 10006 case "(($ac_try" in 10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10008 *) ac_try_echo=$ac_try;; 10009 esac 10010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10011 $as_echo "$ac_try_echo") >&5 10012 (eval "$ac_link") 2>conftest.er1 10013 ac_status=$? 10014 grep -v '^ *+' conftest.er1 >conftest.err 10015 rm -f conftest.er1 10016 cat conftest.err >&5 10017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10018 (exit $ac_status); } && { 10019 test -z "$ac_c_werror_flag" || 10020 test ! -s conftest.err 10021 } && test -s conftest$ac_exeext && { 10022 test "$cross_compiling" = yes || 10023 $as_test_x conftest$ac_exeext 10024 }; then 10025 ac_cv_func_shl_load=yes 10026 else 10027 $as_echo "$as_me: failed program was:" >&5 10028 sed 's/^/| /' conftest.$ac_ext >&5 10029 10030 ac_cv_func_shl_load=no 10031 fi 10032 10033 rm -rf conftest.dSYM 10034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10035 conftest$ac_exeext conftest.$ac_ext 10036 fi 10037 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10038 $as_echo "$ac_cv_func_shl_load" >&6; } 10039 if test "x$ac_cv_func_shl_load" = x""yes; then 10040 lt_cv_dlopen="shl_load" 10041 else 10042 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10043 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10044 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10045 $as_echo_n "(cached) " >&6 10046 else 10047 ac_check_lib_save_LIBS=$LIBS 10048 LIBS="-ldld $LIBS" 10049 cat >conftest.$ac_ext <<_ACEOF 10050 /* confdefs.h. */ 10051 _ACEOF 10052 cat confdefs.h >>conftest.$ac_ext 10053 cat >>conftest.$ac_ext <<_ACEOF 10054 /* end confdefs.h. */ 10055 10056 /* Override any GCC internal prototype to avoid an error. 10057 Use char because int might match the return type of a GCC 10058 builtin and then its argument prototype would still apply. */ 10059 #ifdef __cplusplus 10060 extern "C" 10061 #endif 10062 char shl_load (); 10063 int 10064 main () 10065 { 10066 return shl_load (); 10067 ; 10068 return 0; 10069 } 10070 _ACEOF 10071 rm -f conftest.$ac_objext conftest$ac_exeext 10072 if { (ac_try="$ac_link" 10073 case "(($ac_try" in 10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10075 *) ac_try_echo=$ac_try;; 10076 esac 10077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10078 $as_echo "$ac_try_echo") >&5 10079 (eval "$ac_link") 2>conftest.er1 10080 ac_status=$? 10081 grep -v '^ *+' conftest.er1 >conftest.err 10082 rm -f conftest.er1 10083 cat conftest.err >&5 10084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10085 (exit $ac_status); } && { 10086 test -z "$ac_c_werror_flag" || 10087 test ! -s conftest.err 10088 } && test -s conftest$ac_exeext && { 10089 test "$cross_compiling" = yes || 10090 $as_test_x conftest$ac_exeext 10091 }; then 10092 ac_cv_lib_dld_shl_load=yes 10093 else 10094 $as_echo "$as_me: failed program was:" >&5 10095 sed 's/^/| /' conftest.$ac_ext >&5 10096 10097 ac_cv_lib_dld_shl_load=no 10098 fi 10099 10100 rm -rf conftest.dSYM 10101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10102 conftest$ac_exeext conftest.$ac_ext 10103 LIBS=$ac_check_lib_save_LIBS 10104 fi 10105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10106 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10107 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10108 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10109 else 10110 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10111 $as_echo_n "checking for dlopen... " >&6; } 10112 if test "${ac_cv_func_dlopen+set}" = set; then 10113 $as_echo_n "(cached) " >&6 10114 else 10115 cat >conftest.$ac_ext <<_ACEOF 10116 /* confdefs.h. */ 10117 _ACEOF 10118 cat confdefs.h >>conftest.$ac_ext 10119 cat >>conftest.$ac_ext <<_ACEOF 10120 /* end confdefs.h. */ 10121 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10123 #define dlopen innocuous_dlopen 10124 10125 /* System header to define __stub macros and hopefully few prototypes, 10126 which can conflict with char dlopen (); below. 10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10128 <limits.h> exists even on freestanding compilers. */ 10129 10130 #ifdef __STDC__ 10131 # include <limits.h> 10132 #else 10133 # include <assert.h> 10134 #endif 10135 10136 #undef dlopen 10137 10138 /* Override any GCC internal prototype to avoid an error. 10139 Use char because int might match the return type of a GCC 10140 builtin and then its argument prototype would still apply. */ 10141 #ifdef __cplusplus 10142 extern "C" 10143 #endif 10144 char dlopen (); 10145 /* The GNU C library defines this for functions which it implements 10146 to always fail with ENOSYS. Some functions are actually named 10147 something starting with __ and the normal name is an alias. */ 10148 #if defined __stub_dlopen || defined __stub___dlopen 10149 choke me 10150 #endif 10151 10152 int 10153 main () 10154 { 10155 return dlopen (); 10156 ; 10157 return 0; 10158 } 10159 _ACEOF 10160 rm -f conftest.$ac_objext conftest$ac_exeext 10161 if { (ac_try="$ac_link" 10162 case "(($ac_try" in 10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10164 *) ac_try_echo=$ac_try;; 10165 esac 10166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10167 $as_echo "$ac_try_echo") >&5 10168 (eval "$ac_link") 2>conftest.er1 10169 ac_status=$? 10170 grep -v '^ *+' conftest.er1 >conftest.err 10171 rm -f conftest.er1 10172 cat conftest.err >&5 10173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10174 (exit $ac_status); } && { 10175 test -z "$ac_c_werror_flag" || 10176 test ! -s conftest.err 10177 } && test -s conftest$ac_exeext && { 10178 test "$cross_compiling" = yes || 10179 $as_test_x conftest$ac_exeext 10180 }; then 10181 ac_cv_func_dlopen=yes 10182 else 10183 $as_echo "$as_me: failed program was:" >&5 10184 sed 's/^/| /' conftest.$ac_ext >&5 10185 10186 ac_cv_func_dlopen=no 10187 fi 10188 10189 rm -rf conftest.dSYM 10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10191 conftest$ac_exeext conftest.$ac_ext 10192 fi 10193 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10194 $as_echo "$ac_cv_func_dlopen" >&6; } 10195 if test "x$ac_cv_func_dlopen" = x""yes; then 10196 lt_cv_dlopen="dlopen" 10197 else 10198 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10199 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10200 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10201 $as_echo_n "(cached) " >&6 10202 else 10203 ac_check_lib_save_LIBS=$LIBS 10204 LIBS="-ldl $LIBS" 10205 cat >conftest.$ac_ext <<_ACEOF 10206 /* confdefs.h. */ 10207 _ACEOF 10208 cat confdefs.h >>conftest.$ac_ext 10209 cat >>conftest.$ac_ext <<_ACEOF 10210 /* end confdefs.h. */ 10211 10212 /* Override any GCC internal prototype to avoid an error. 10213 Use char because int might match the return type of a GCC 10214 builtin and then its argument prototype would still apply. */ 10215 #ifdef __cplusplus 10216 extern "C" 10217 #endif 10218 char dlopen (); 10219 int 10220 main () 10221 { 10222 return dlopen (); 10223 ; 10224 return 0; 10225 } 10226 _ACEOF 10227 rm -f conftest.$ac_objext conftest$ac_exeext 10228 if { (ac_try="$ac_link" 10229 case "(($ac_try" in 10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10231 *) ac_try_echo=$ac_try;; 10232 esac 10233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10234 $as_echo "$ac_try_echo") >&5 10235 (eval "$ac_link") 2>conftest.er1 10236 ac_status=$? 10237 grep -v '^ *+' conftest.er1 >conftest.err 10238 rm -f conftest.er1 10239 cat conftest.err >&5 10240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10241 (exit $ac_status); } && { 10242 test -z "$ac_c_werror_flag" || 10243 test ! -s conftest.err 10244 } && test -s conftest$ac_exeext && { 10245 test "$cross_compiling" = yes || 10246 $as_test_x conftest$ac_exeext 10247 }; then 10248 ac_cv_lib_dl_dlopen=yes 10249 else 10250 $as_echo "$as_me: failed program was:" >&5 10251 sed 's/^/| /' conftest.$ac_ext >&5 10252 10253 ac_cv_lib_dl_dlopen=no 10254 fi 10255 10256 rm -rf conftest.dSYM 10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10258 conftest$ac_exeext conftest.$ac_ext 10259 LIBS=$ac_check_lib_save_LIBS 10260 fi 10261 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10263 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10265 else 10266 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10267 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10268 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10269 $as_echo_n "(cached) " >&6 10270 else 10271 ac_check_lib_save_LIBS=$LIBS 10272 LIBS="-lsvld $LIBS" 10273 cat >conftest.$ac_ext <<_ACEOF 10274 /* confdefs.h. */ 10275 _ACEOF 10276 cat confdefs.h >>conftest.$ac_ext 10277 cat >>conftest.$ac_ext <<_ACEOF 10278 /* end confdefs.h. */ 10279 10280 /* Override any GCC internal prototype to avoid an error. 10281 Use char because int might match the return type of a GCC 10282 builtin and then its argument prototype would still apply. */ 10283 #ifdef __cplusplus 10284 extern "C" 10285 #endif 10286 char dlopen (); 10287 int 10288 main () 10289 { 10290 return dlopen (); 10291 ; 10292 return 0; 10293 } 10294 _ACEOF 10295 rm -f conftest.$ac_objext conftest$ac_exeext 10296 if { (ac_try="$ac_link" 10297 case "(($ac_try" in 10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10299 *) ac_try_echo=$ac_try;; 10300 esac 10301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10302 $as_echo "$ac_try_echo") >&5 10303 (eval "$ac_link") 2>conftest.er1 10304 ac_status=$? 10305 grep -v '^ *+' conftest.er1 >conftest.err 10306 rm -f conftest.er1 10307 cat conftest.err >&5 10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10309 (exit $ac_status); } && { 10310 test -z "$ac_c_werror_flag" || 10311 test ! -s conftest.err 10312 } && test -s conftest$ac_exeext && { 10313 test "$cross_compiling" = yes || 10314 $as_test_x conftest$ac_exeext 10315 }; then 10316 ac_cv_lib_svld_dlopen=yes 10317 else 10318 $as_echo "$as_me: failed program was:" >&5 10319 sed 's/^/| /' conftest.$ac_ext >&5 10320 10321 ac_cv_lib_svld_dlopen=no 10322 fi 10323 10324 rm -rf conftest.dSYM 10325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10326 conftest$ac_exeext conftest.$ac_ext 10327 LIBS=$ac_check_lib_save_LIBS 10328 fi 10329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10330 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10331 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10333 else 10334 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10335 $as_echo_n "checking for dld_link in -ldld... " >&6; } 10336 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10337 $as_echo_n "(cached) " >&6 10338 else 10339 ac_check_lib_save_LIBS=$LIBS 10340 LIBS="-ldld $LIBS" 10341 cat >conftest.$ac_ext <<_ACEOF 10342 /* confdefs.h. */ 10343 _ACEOF 10344 cat confdefs.h >>conftest.$ac_ext 10345 cat >>conftest.$ac_ext <<_ACEOF 10346 /* end confdefs.h. */ 10347 10348 /* Override any GCC internal prototype to avoid an error. 10349 Use char because int might match the return type of a GCC 10350 builtin and then its argument prototype would still apply. */ 10351 #ifdef __cplusplus 10352 extern "C" 10353 #endif 10354 char dld_link (); 10355 int 10356 main () 10357 { 10358 return dld_link (); 10359 ; 10360 return 0; 10361 } 10362 _ACEOF 10363 rm -f conftest.$ac_objext conftest$ac_exeext 10364 if { (ac_try="$ac_link" 10365 case "(($ac_try" in 10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10367 *) ac_try_echo=$ac_try;; 10368 esac 10369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10370 $as_echo "$ac_try_echo") >&5 10371 (eval "$ac_link") 2>conftest.er1 10372 ac_status=$? 10373 grep -v '^ *+' conftest.er1 >conftest.err 10374 rm -f conftest.er1 10375 cat conftest.err >&5 10376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 (exit $ac_status); } && { 10378 test -z "$ac_c_werror_flag" || 10379 test ! -s conftest.err 10380 } && test -s conftest$ac_exeext && { 10381 test "$cross_compiling" = yes || 10382 $as_test_x conftest$ac_exeext 10383 }; then 10384 ac_cv_lib_dld_dld_link=yes 10385 else 10386 $as_echo "$as_me: failed program was:" >&5 10387 sed 's/^/| /' conftest.$ac_ext >&5 10388 10389 ac_cv_lib_dld_dld_link=no 10390 fi 10391 10392 rm -rf conftest.dSYM 10393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10394 conftest$ac_exeext conftest.$ac_ext 10395 LIBS=$ac_check_lib_save_LIBS 10396 fi 10397 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10398 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10399 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10400 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10401 fi 10402 10403 10404 fi 10405 10406 10407 fi 10408 10409 10410 fi 10411 10412 10413 fi 10414 10415 10416 fi 10417 10418 ;; 10419 esac 10420 10421 if test "x$lt_cv_dlopen" != xno; then 10422 enable_dlopen=yes 10423 else 10424 enable_dlopen=no 10425 fi 10426 10427 case $lt_cv_dlopen in 10428 dlopen) 10429 save_CPPFLAGS="$CPPFLAGS" 10430 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10431 10432 save_LDFLAGS="$LDFLAGS" 10433 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10434 10435 save_LIBS="$LIBS" 10436 LIBS="$lt_cv_dlopen_libs $LIBS" 10437 10438 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10439 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 10440 if test "${lt_cv_dlopen_self+set}" = set; then 10441 $as_echo_n "(cached) " >&6 10442 else 10443 if test "$cross_compiling" = yes; then : 10444 lt_cv_dlopen_self=cross 10445 else 10446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10447 lt_status=$lt_dlunknown 10448 cat > conftest.$ac_ext <<EOF 10449 #line 10449 "configure" 10450 #include "confdefs.h" 10451 10452 #if HAVE_DLFCN_H 10453 #include <dlfcn.h> 10454 #endif 10455 10456 #include <stdio.h> 10457 10458 #ifdef RTLD_GLOBAL 10459 # define LT_DLGLOBAL RTLD_GLOBAL 10460 #else 10461 # ifdef DL_GLOBAL 10462 # define LT_DLGLOBAL DL_GLOBAL 10463 # else 10464 # define LT_DLGLOBAL 0 10465 # endif 10466 #endif 10467 10468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10469 find out it does not work in some platform. */ 10470 #ifndef LT_DLLAZY_OR_NOW 10471 # ifdef RTLD_LAZY 10472 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10473 # else 10474 # ifdef DL_LAZY 10475 # define LT_DLLAZY_OR_NOW DL_LAZY 10476 # else 10477 # ifdef RTLD_NOW 10478 # define LT_DLLAZY_OR_NOW RTLD_NOW 10479 # else 10480 # ifdef DL_NOW 10481 # define LT_DLLAZY_OR_NOW DL_NOW 10482 # else 10483 # define LT_DLLAZY_OR_NOW 0 10484 # endif 10485 # endif 10486 # endif 10487 # endif 10488 #endif 10489 10490 #ifdef __cplusplus 10491 extern "C" void exit (int); 10492 #endif 10493 10494 void fnord() { int i=42;} 10495 int main () 10496 { 10497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10498 int status = $lt_dlunknown; 10499 10500 if (self) 10501 { 10502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10504 /* dlclose (self); */ 10505 } 10506 else 10507 puts (dlerror ()); 10508 10509 exit (status); 10510 } 10511 EOF 10512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10513 (eval $ac_link) 2>&5 10514 ac_status=$? 10515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10516 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10517 (./conftest; exit; ) >&5 2>/dev/null 10518 lt_status=$? 10519 case x$lt_status in 10520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10523 esac 10524 else : 10525 # compilation failed 10526 lt_cv_dlopen_self=no 10527 fi 10528 fi 10529 rm -fr conftest* 10530 10531 10532 fi 10533 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10534 $as_echo "$lt_cv_dlopen_self" >&6; } 10535 10536 if test "x$lt_cv_dlopen_self" = xyes; then 10537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10538 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10539 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10540 if test "${lt_cv_dlopen_self_static+set}" = set; then 10541 $as_echo_n "(cached) " >&6 10542 else 10543 if test "$cross_compiling" = yes; then : 10544 lt_cv_dlopen_self_static=cross 10545 else 10546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10547 lt_status=$lt_dlunknown 10548 cat > conftest.$ac_ext <<EOF 10549 #line 10549 "configure" 10550 #include "confdefs.h" 10551 10552 #if HAVE_DLFCN_H 10553 #include <dlfcn.h> 10554 #endif 10555 10556 #include <stdio.h> 10557 10558 #ifdef RTLD_GLOBAL 10559 # define LT_DLGLOBAL RTLD_GLOBAL 10560 #else 10561 # ifdef DL_GLOBAL 10562 # define LT_DLGLOBAL DL_GLOBAL 10563 # else 10564 # define LT_DLGLOBAL 0 10565 # endif 10566 #endif 10567 10568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10569 find out it does not work in some platform. */ 10570 #ifndef LT_DLLAZY_OR_NOW 10571 # ifdef RTLD_LAZY 10572 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10573 # else 10574 # ifdef DL_LAZY 10575 # define LT_DLLAZY_OR_NOW DL_LAZY 10576 # else 10577 # ifdef RTLD_NOW 10578 # define LT_DLLAZY_OR_NOW RTLD_NOW 10579 # else 10580 # ifdef DL_NOW 10581 # define LT_DLLAZY_OR_NOW DL_NOW 10582 # else 10583 # define LT_DLLAZY_OR_NOW 0 10584 # endif 10585 # endif 10586 # endif 10587 # endif 10588 #endif 10589 10590 #ifdef __cplusplus 10591 extern "C" void exit (int); 10592 #endif 10593 10594 void fnord() { int i=42;} 10595 int main () 10596 { 10597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10598 int status = $lt_dlunknown; 10599 10600 if (self) 10601 { 10602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10603 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10604 /* dlclose (self); */ 10605 } 10606 else 10607 puts (dlerror ()); 10608 10609 exit (status); 10610 } 10611 EOF 10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10613 (eval $ac_link) 2>&5 10614 ac_status=$? 10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10616 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10617 (./conftest; exit; ) >&5 2>/dev/null 10618 lt_status=$? 10619 case x$lt_status in 10620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10623 esac 10624 else : 10625 # compilation failed 10626 lt_cv_dlopen_self_static=no 10627 fi 10628 fi 10629 rm -fr conftest* 10630 10631 10632 fi 10633 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10634 $as_echo "$lt_cv_dlopen_self_static" >&6; } 10635 fi 10636 10637 CPPFLAGS="$save_CPPFLAGS" 10638 LDFLAGS="$save_LDFLAGS" 10639 LIBS="$save_LIBS" 10640 ;; 10641 esac 10642 10643 case $lt_cv_dlopen_self in 10644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10645 *) enable_dlopen_self=unknown ;; 10646 esac 10647 10648 case $lt_cv_dlopen_self_static in 10649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10650 *) enable_dlopen_self_static=unknown ;; 10651 esac 10652 fi 10653 10654 10655 # Report which library types will actually be built 10656 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10657 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 10658 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10659 $as_echo "$can_build_shared" >&6; } 10660 10661 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10662 $as_echo_n "checking whether to build shared libraries... " >&6; } 10663 test "$can_build_shared" = "no" && enable_shared=no 10664 10665 # On AIX, shared libraries and static libraries use the same namespace, and 10666 # are all built from PIC. 10667 case $host_os in 10668 aix3*) 10669 test "$enable_shared" = yes && enable_static=no 10670 if test -n "$RANLIB"; then 10671 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10672 postinstall_cmds='$RANLIB $lib' 10673 fi 10674 ;; 10675 10676 aix[4-9]*) 10677 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10678 test "$enable_shared" = yes && enable_static=no 10679 fi 10680 ;; 10681 esac 10682 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10683 $as_echo "$enable_shared" >&6; } 10684 10685 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10686 $as_echo_n "checking whether to build static libraries... " >&6; } 10687 # Make sure either enable_shared or enable_static is yes. 10688 test "$enable_shared" = yes || enable_static=yes 10689 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10690 $as_echo "$enable_static" >&6; } 10691 10692 # The else clause should only fire when bootstrapping the 10693 # libtool distribution, otherwise you forgot to ship ltmain.sh 10694 # with your package, and you will get complaints that there are 10695 # no rules to generate ltmain.sh. 10696 if test -f "$ltmain"; then 10697 # See if we are running on zsh, and set the options which allow our commands through 10698 # without removal of \ escapes. 10699 if test -n "${ZSH_VERSION+set}" ; then 10700 setopt NO_GLOB_SUBST 10701 fi 10702 # Now quote all the things that may contain metacharacters while being 10703 # careful not to overquote the AC_SUBSTed values. We take copies of the 10704 # variables and quote the copies for generation of the libtool script. 10705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10706 SED SHELL STRIP \ 10707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10708 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10709 deplibs_check_method reload_flag reload_cmds need_locks \ 10710 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10711 lt_cv_sys_global_symbol_to_c_name_address \ 10712 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10713 old_postinstall_cmds old_postuninstall_cmds \ 10714 compiler \ 10715 CC \ 10716 LD \ 10717 lt_prog_compiler_wl \ 10718 lt_prog_compiler_pic \ 10719 lt_prog_compiler_static \ 10720 lt_prog_compiler_no_builtin_flag \ 10721 export_dynamic_flag_spec \ 10722 thread_safe_flag_spec \ 10723 whole_archive_flag_spec \ 10724 enable_shared_with_static_runtimes \ 10725 old_archive_cmds \ 10726 old_archive_from_new_cmds \ 10727 predep_objects \ 10728 postdep_objects \ 10729 predeps \ 10730 postdeps \ 10731 compiler_lib_search_path \ 10732 compiler_lib_search_dirs \ 10733 archive_cmds \ 10734 archive_expsym_cmds \ 10735 postinstall_cmds \ 10736 postuninstall_cmds \ 10737 old_archive_from_expsyms_cmds \ 10738 allow_undefined_flag \ 10739 no_undefined_flag \ 10740 export_symbols_cmds \ 10741 hardcode_libdir_flag_spec \ 10742 hardcode_libdir_flag_spec_ld \ 10743 hardcode_libdir_separator \ 10744 hardcode_automatic \ 10745 module_cmds \ 10746 module_expsym_cmds \ 10747 lt_cv_prog_compiler_c_o \ 10748 fix_srcfile_path \ 10749 exclude_expsyms \ 10750 include_expsyms; do 10751 10752 case $var in 10753 old_archive_cmds | \ 10754 old_archive_from_new_cmds | \ 10755 archive_cmds | \ 10756 archive_expsym_cmds | \ 10757 module_cmds | \ 10758 module_expsym_cmds | \ 10759 old_archive_from_expsyms_cmds | \ 10760 export_symbols_cmds | \ 10761 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10762 postinstall_cmds | postuninstall_cmds | \ 10763 old_postinstall_cmds | old_postuninstall_cmds | \ 10764 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10765 # Double-quote double-evaled strings. 10766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10767 ;; 10768 *) 10769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10770 ;; 10771 esac 10772 done 10773 10774 case $lt_echo in 10775 *'\$0 --fallback-echo"') 10776 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10777 ;; 10778 esac 10779 10780 cfgfile="${ofile}T" 10781 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10782 $rm -f "$cfgfile" 10783 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10784 $as_echo "$as_me: creating $ofile" >&6;} 10785 10786 cat <<__EOF__ >> "$cfgfile" 10787 #! $SHELL 10788 10789 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10790 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10791 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 10792 # 10793 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10794 # Free Software Foundation, Inc. 10795 # 10796 # This file is part of GNU Libtool: 10797 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996 10798 # 10799 # This program is free software; you can redistribute it and/or modify 10800 # it under the terms of the GNU General Public License as published by 10801 # the Free Software Foundation; either version 2 of the License, or 10802 # (at your option) any later version. 10803 # 10804 # This program is distributed in the hope that it will be useful, but 10805 # WITHOUT ANY WARRANTY; without even the implied warranty of 10806 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10807 # General Public License for more details. 10808 # 10809 # You should have received a copy of the GNU General Public License 10810 # along with this program; if not, write to the Free Software 10811 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10812 # 10813 # As a special exception to the GNU General Public License, if you 10814 # distribute this file as part of a program that contains a 10815 # configuration script generated by Autoconf, you may include it under 10816 # the same distribution terms that you use for the rest of that program. 10817 10818 # A sed program that does not truncate output. 10819 SED=$lt_SED 10820 10821 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 10822 Xsed="$SED -e 1s/^X//" 10823 10824 # The HP-UX ksh and POSIX shell print the target directory to stdout 10825 # if CDPATH is set. 10826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10827 10828 # The names of the tagged configurations supported by this script. 10829 available_tags= 10830 10831 # ### BEGIN LIBTOOL CONFIG 10832 10833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10834 10835 # Shell to use when invoking shell scripts. 10836 SHELL=$lt_SHELL 10837 10838 # Whether or not to build shared libraries. 10839 build_libtool_libs=$enable_shared 10840 10841 # Whether or not to build static libraries. 10842 build_old_libs=$enable_static 10843 10844 # Whether or not to add -lc for building shared libraries. 10845 build_libtool_need_lc=$archive_cmds_need_lc 10846 10847 # Whether or not to disallow shared libs when runtime libs are static 10848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10849 10850 # Whether or not to optimize for fast installation. 10851 fast_install=$enable_fast_install 10852 10853 # The host system. 10854 host_alias=$host_alias 10855 host=$host 10856 host_os=$host_os 10857 10858 # The build system. 10859 build_alias=$build_alias 10860 build=$build 10861 build_os=$build_os 10862 10863 # An echo program that does not interpret backslashes. 10864 echo=$lt_echo 10865 10866 # The archiver. 10867 AR=$lt_AR 10868 AR_FLAGS=$lt_AR_FLAGS 10869 10870 # A C compiler. 10871 LTCC=$lt_LTCC 10872 10873 # LTCC compiler flags. 10874 LTCFLAGS=$lt_LTCFLAGS 10875 10876 # A language-specific compiler. 10877 CC=$lt_compiler 10878 10879 # Is the compiler the GNU C compiler? 10880 with_gcc=$GCC 10881 10882 # An ERE matcher. 10883 EGREP=$lt_EGREP 10884 10885 # The linker used to build libraries. 10886 LD=$lt_LD 10887 10888 # Whether we need hard or soft links. 10889 LN_S=$lt_LN_S 10890 10891 # A BSD-compatible nm program. 10892 NM=$lt_NM 10893 10894 # A symbol stripping program 10895 STRIP=$lt_STRIP 10896 10897 # Used to examine libraries when file_magic_cmd begins "file" 10898 MAGIC_CMD=$MAGIC_CMD 10899 10900 # Used on cygwin: DLL creation program. 10901 DLLTOOL="$DLLTOOL" 10902 10903 # Used on cygwin: object dumper. 10904 OBJDUMP="$OBJDUMP" 10905 10906 # Used on cygwin: assembler. 10907 AS="$AS" 10908 10909 # The name of the directory that contains temporary libtool files. 10910 objdir=$objdir 10911 10912 # How to create reloadable object files. 10913 reload_flag=$lt_reload_flag 10914 reload_cmds=$lt_reload_cmds 10915 10916 # How to pass a linker flag through the compiler. 10917 wl=$lt_lt_prog_compiler_wl 10918 10919 # Object file suffix (normally "o"). 10920 objext="$ac_objext" 10921 10922 # Old archive suffix (normally "a"). 10923 libext="$libext" 10924 10925 # Shared library suffix (normally ".so"). 10926 shrext_cmds='$shrext_cmds' 10927 10928 # Executable file suffix (normally ""). 10929 exeext="$exeext" 10930 10931 # Additional compiler flags for building library objects. 10932 pic_flag=$lt_lt_prog_compiler_pic 10933 pic_mode=$pic_mode 10934 10935 # What is the maximum length of a command? 10936 max_cmd_len=$lt_cv_sys_max_cmd_len 10937 10938 # Does compiler simultaneously support -c and -o options? 10939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10940 10941 # Must we lock files when doing compilation? 10942 need_locks=$lt_need_locks 10943 10944 # Do we need the lib prefix for modules? 10945 need_lib_prefix=$need_lib_prefix 10946 10947 # Do we need a version for libraries? 10948 need_version=$need_version 10949 10950 # Whether dlopen is supported. 10951 dlopen_support=$enable_dlopen 10952 10953 # Whether dlopen of programs is supported. 10954 dlopen_self=$enable_dlopen_self 10955 10956 # Whether dlopen of statically linked programs is supported. 10957 dlopen_self_static=$enable_dlopen_self_static 10958 10959 # Compiler flag to prevent dynamic linking. 10960 link_static_flag=$lt_lt_prog_compiler_static 10961 10962 # Compiler flag to turn off builtin functions. 10963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10964 10965 # Compiler flag to allow reflexive dlopens. 10966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10967 10968 # Compiler flag to generate shared objects directly from archives. 10969 whole_archive_flag_spec=$lt_whole_archive_flag_spec 10970 10971 # Compiler flag to generate thread-safe objects. 10972 thread_safe_flag_spec=$lt_thread_safe_flag_spec 10973 10974 # Library versioning type. 10975 version_type=$version_type 10976 10977 # Format of library name prefix. 10978 libname_spec=$lt_libname_spec 10979 10980 # List of archive names. First name is the real one, the rest are links. 10981 # The last name is the one that the linker finds with -lNAME. 10982 library_names_spec=$lt_library_names_spec 10983 10984 # The coded name of the library, if different from the real name. 10985 soname_spec=$lt_soname_spec 10986 10987 # Commands used to build and install an old-style archive. 10988 RANLIB=$lt_RANLIB 10989 old_archive_cmds=$lt_old_archive_cmds 10990 old_postinstall_cmds=$lt_old_postinstall_cmds 10991 old_postuninstall_cmds=$lt_old_postuninstall_cmds 10992 10993 # Create an old-style archive from a shared archive. 10994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10995 10996 # Create a temporary old-style archive to link instead of a shared archive. 10997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10998 10999 # Commands used to build and install a shared archive. 11000 archive_cmds=$lt_archive_cmds 11001 archive_expsym_cmds=$lt_archive_expsym_cmds 11002 postinstall_cmds=$lt_postinstall_cmds 11003 postuninstall_cmds=$lt_postuninstall_cmds 11004 11005 # Commands used to build a loadable module (assumed same as above if empty) 11006 module_cmds=$lt_module_cmds 11007 module_expsym_cmds=$lt_module_expsym_cmds 11008 11009 # Commands to strip libraries. 11010 old_striplib=$lt_old_striplib 11011 striplib=$lt_striplib 11012 11013 # Dependencies to place before the objects being linked to create a 11014 # shared library. 11015 predep_objects=$lt_predep_objects 11016 11017 # Dependencies to place after the objects being linked to create a 11018 # shared library. 11019 postdep_objects=$lt_postdep_objects 11020 11021 # Dependencies to place before the objects being linked to create a 11022 # shared library. 11023 predeps=$lt_predeps 11024 11025 # Dependencies to place after the objects being linked to create a 11026 # shared library. 11027 postdeps=$lt_postdeps 11028 11029 # The directories searched by this compiler when creating a shared 11030 # library 11031 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11032 11033 # The library search path used internally by the compiler when linking 11034 # a shared library. 11035 compiler_lib_search_path=$lt_compiler_lib_search_path 11036 11037 # Method to check whether dependent libraries are shared objects. 11038 deplibs_check_method=$lt_deplibs_check_method 11039 11040 # Command to use when deplibs_check_method == file_magic. 11041 file_magic_cmd=$lt_file_magic_cmd 11042 11043 # Flag that allows shared libraries with undefined symbols to be built. 11044 allow_undefined_flag=$lt_allow_undefined_flag 11045 11046 # Flag that forces no undefined symbols. 11047 no_undefined_flag=$lt_no_undefined_flag 11048 11049 # Commands used to finish a libtool library installation in a directory. 11050 finish_cmds=$lt_finish_cmds 11051 11052 # Same as above, but a single script fragment to be evaled but not shown. 11053 finish_eval=$lt_finish_eval 11054 11055 # Take the output of nm and produce a listing of raw symbols and C names. 11056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11057 11058 # Transform the output of nm in a proper C declaration 11059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11060 11061 # Transform the output of nm in a C name address pair 11062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11063 11064 # This is the shared library runtime path variable. 11065 runpath_var=$runpath_var 11066 11067 # This is the shared library path variable. 11068 shlibpath_var=$shlibpath_var 11069 11070 # Is shlibpath searched before the hard-coded library search path? 11071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11072 11073 # How to hardcode a shared library path into an executable. 11074 hardcode_action=$hardcode_action 11075 11076 # Whether we should hardcode library paths into libraries. 11077 hardcode_into_libs=$hardcode_into_libs 11078 11079 # Flag to hardcode \$libdir into a binary during linking. 11080 # This must work even if \$libdir does not exist. 11081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11082 11083 # If ld is used when linking, flag to hardcode \$libdir into 11084 # a binary during linking. This must work even if \$libdir does 11085 # not exist. 11086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11087 11088 # Whether we need a single -rpath flag with a separated argument. 11089 hardcode_libdir_separator=$lt_hardcode_libdir_separator 11090 11091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11092 # resulting binary. 11093 hardcode_direct=$hardcode_direct 11094 11095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11096 # resulting binary. 11097 hardcode_minus_L=$hardcode_minus_L 11098 11099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11100 # the resulting binary. 11101 hardcode_shlibpath_var=$hardcode_shlibpath_var 11102 11103 # Set to yes if building a shared library automatically hardcodes DIR into the library 11104 # and all subsequent libraries and executables linked against it. 11105 hardcode_automatic=$hardcode_automatic 11106 11107 # Variables whose values should be saved in libtool wrapper scripts and 11108 # restored at relink time. 11109 variables_saved_for_relink="$variables_saved_for_relink" 11110 11111 # Whether libtool must link a program against all its dependency libraries. 11112 link_all_deplibs=$link_all_deplibs 11113 11114 # Compile-time system search path for libraries 11115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11116 11117 # Run-time system search path for libraries 11118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11119 11120 # Fix the shell variable \$srcfile for the compiler. 11121 fix_srcfile_path=$lt_fix_srcfile_path 11122 11123 # Set to yes if exported symbols are required. 11124 always_export_symbols=$always_export_symbols 11125 11126 # The commands to list exported symbols. 11127 export_symbols_cmds=$lt_export_symbols_cmds 11128 11129 # The commands to extract the exported symbol list from a shared archive. 11130 extract_expsyms_cmds=$lt_extract_expsyms_cmds 11131 11132 # Symbols that should not be listed in the preloaded symbols. 11133 exclude_expsyms=$lt_exclude_expsyms 11134 11135 # Symbols that must always be exported. 11136 include_expsyms=$lt_include_expsyms 11137 11138 # ### END LIBTOOL CONFIG 11139 11140 __EOF__ 11141 11142 11143 case $host_os in 11144 aix3*) 11145 cat <<\EOF >> "$cfgfile" 11146 11147 # AIX sometimes has problems with the GCC collect2 program. For some 11148 # reason, if we set the COLLECT_NAMES environment variable, the problems 11149 # vanish in a puff of smoke. 11150 if test "X${COLLECT_NAMES+set}" != Xset; then 11151 COLLECT_NAMES= 11152 export COLLECT_NAMES 11153 fi 11154 EOF 11155 ;; 11156 esac 11157 11158 # We use sed instead of cat because bash on DJGPP gets confused if 11159 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11160 # text mode, it properly converts lines to CR/LF. This bash problem 11161 # is reportedly fixed, but why not run on old versions too? 11162 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11163 11164 mv -f "$cfgfile" "$ofile" || \ 11165 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11166 chmod +x "$ofile" 11167 11168 else 11169 # If there is no Makefile yet, we rely on a make rule to execute 11170 # `config.status --recheck' to rerun these tests and create the 11171 # libtool script then. 11172 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11173 if test -f "$ltmain_in"; then 11174 test -f Makefile && make "$ltmain" 11175 fi 11176 fi 11177 11178 11179 ac_ext=c 11180 ac_cpp='$CPP $CPPFLAGS' 11181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11183 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11184 11185 CC="$lt_save_CC" 11186 11187 11188 # Check whether --with-tags was given. 11189 if test "${with_tags+set}" = set; then 11190 withval=$with_tags; tagnames="$withval" 11191 fi 11192 11193 11194 if test -f "$ltmain" && test -n "$tagnames"; then 11195 if test ! -f "${ofile}"; then 11196 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11197 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11198 fi 11199 11200 if test -z "$LTCC"; then 11201 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11202 if test -z "$LTCC"; then 11203 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11204 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11205 else 11206 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11207 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11208 fi 11209 fi 11210 if test -z "$LTCFLAGS"; then 11211 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11212 fi 11213 11214 # Extract list of available tagged configurations in $ofile. 11215 # Note that this assumes the entire list is on one line. 11216 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11217 11218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11219 for tagname in $tagnames; do 11220 IFS="$lt_save_ifs" 11221 # Check whether tagname contains only valid characters 11222 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11223 "") ;; 11224 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11225 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11226 { (exit 1); exit 1; }; } 11227 ;; 11228 esac 11229 11230 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11231 then 11232 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11233 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11234 { (exit 1); exit 1; }; } 11235 fi 11236 11237 # Update the list of available tags. 11238 if test -n "$tagname"; then 11239 echo appending configuration tag \"$tagname\" to $ofile 11240 11241 case $tagname in 11242 CXX) 11243 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11244 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11245 (test "X$CXX" != "Xg++"))) ; then 11246 ac_ext=cpp 11247 ac_cpp='$CXXCPP $CPPFLAGS' 11248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11251 11252 11253 11254 11255 archive_cmds_need_lc_CXX=no 11256 allow_undefined_flag_CXX= 11257 always_export_symbols_CXX=no 11258 archive_expsym_cmds_CXX= 11259 export_dynamic_flag_spec_CXX= 11260 hardcode_direct_CXX=no 11261 hardcode_libdir_flag_spec_CXX= 11262 hardcode_libdir_flag_spec_ld_CXX= 11263 hardcode_libdir_separator_CXX= 11264 hardcode_minus_L_CXX=no 11265 hardcode_shlibpath_var_CXX=unsupported 11266 hardcode_automatic_CXX=no 11267 module_cmds_CXX= 11268 module_expsym_cmds_CXX= 11269 link_all_deplibs_CXX=unknown 11270 old_archive_cmds_CXX=$old_archive_cmds 11271 no_undefined_flag_CXX= 11272 whole_archive_flag_spec_CXX= 11273 enable_shared_with_static_runtimes_CXX=no 11274 11275 # Dependencies to place before and after the object being linked: 11276 predep_objects_CXX= 11277 postdep_objects_CXX= 11278 predeps_CXX= 11279 postdeps_CXX= 11280 compiler_lib_search_path_CXX= 11281 compiler_lib_search_dirs_CXX= 11282 11283 # Source file extension for C++ test sources. 11284 ac_ext=cpp 11285 11286 # Object file extension for compiled C++ test sources. 11287 objext=o 11288 objext_CXX=$objext 11289 11290 # Code to be used in simple compile tests 11291 lt_simple_compile_test_code="int some_variable = 0;" 11292 11293 # Code to be used in simple link tests 11294 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11295 11296 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11297 11298 # If no C compiler was specified, use CC. 11299 LTCC=${LTCC-"$CC"} 11300 11301 # If no C compiler flags were specified, use CFLAGS. 11302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11303 11304 # Allow CC to be a program name with arguments. 11305 compiler=$CC 11306 11307 11308 # save warnings/boilerplate of simple test code 11309 ac_outfile=conftest.$ac_objext 11310 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11312 _lt_compiler_boilerplate=`cat conftest.err` 11313 $rm conftest* 11314 11315 ac_outfile=conftest.$ac_objext 11316 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11318 _lt_linker_boilerplate=`cat conftest.err` 11319 $rm -r conftest* 11320 11321 11322 # Allow CC to be a program name with arguments. 11323 lt_save_CC=$CC 11324 lt_save_LD=$LD 11325 lt_save_GCC=$GCC 11326 GCC=$GXX 11327 lt_save_with_gnu_ld=$with_gnu_ld 11328 lt_save_path_LD=$lt_cv_path_LD 11329 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11330 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11331 else 11332 $as_unset lt_cv_prog_gnu_ld 11333 fi 11334 if test -n "${lt_cv_path_LDCXX+set}"; then 11335 lt_cv_path_LD=$lt_cv_path_LDCXX 11336 else 11337 $as_unset lt_cv_path_LD 11338 fi 11339 test -z "${LDCXX+set}" || LD=$LDCXX 11340 CC=${CXX-"c++"} 11341 compiler=$CC 11342 compiler_CXX=$CC 11343 for cc_temp in $compiler""; do 11344 case $cc_temp in 11345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11347 \-*) ;; 11348 *) break;; 11349 esac 11350 done 11351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11352 11353 11354 # We don't want -fno-exception wen compiling C++ code, so set the 11355 # no_builtin_flag separately 11356 if test "$GXX" = yes; then 11357 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11358 else 11359 lt_prog_compiler_no_builtin_flag_CXX= 11360 fi 11361 11362 if test "$GXX" = yes; then 11363 # Set up default GNU C++ configuration 11364 11365 11366 # Check whether --with-gnu-ld was given. 11367 if test "${with_gnu_ld+set}" = set; then 11368 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11369 else 11370 with_gnu_ld=no 11371 fi 11372 11373 ac_prog=ld 11374 if test "$GCC" = yes; then 11375 # Check if gcc -print-prog-name=ld gives a path. 11376 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11377 $as_echo_n "checking for ld used by $CC... " >&6; } 11378 case $host in 11379 *-*-mingw*) 11380 # gcc leaves a trailing carriage return which upsets mingw 11381 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11382 *) 11383 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11384 esac 11385 case $ac_prog in 11386 # Accept absolute paths. 11387 [\\/]* | ?:[\\/]*) 11388 re_direlt='/[^/][^/]*/\.\./' 11389 # Canonicalize the pathname of ld 11390 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11391 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11392 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11393 done 11394 test -z "$LD" && LD="$ac_prog" 11395 ;; 11396 "") 11397 # If it fails, then pretend we aren't using GCC. 11398 ac_prog=ld 11399 ;; 11400 *) 11401 # If it is relative, then search for the first ld in PATH. 11402 with_gnu_ld=unknown 11403 ;; 11404 esac 11405 elif test "$with_gnu_ld" = yes; then 11406 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11407 $as_echo_n "checking for GNU ld... " >&6; } 11408 else 11409 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11410 $as_echo_n "checking for non-GNU ld... " >&6; } 11411 fi 11412 if test "${lt_cv_path_LD+set}" = set; then 11413 $as_echo_n "(cached) " >&6 11414 else 11415 if test -z "$LD"; then 11416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11417 for ac_dir in $PATH; do 11418 IFS="$lt_save_ifs" 11419 test -z "$ac_dir" && ac_dir=. 11420 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11421 lt_cv_path_LD="$ac_dir/$ac_prog" 11422 # Check to see if the program is GNU ld. I'd rather use --version, 11423 # but apparently some variants of GNU ld only accept -v. 11424 # Break only if it was the GNU/non-GNU ld that we prefer. 11425 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11426 *GNU* | *'with BFD'*) 11427 test "$with_gnu_ld" != no && break 11428 ;; 11429 *) 11430 test "$with_gnu_ld" != yes && break 11431 ;; 11432 esac 11433 fi 11434 done 11435 IFS="$lt_save_ifs" 11436 else 11437 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11438 fi 11439 fi 11440 11441 LD="$lt_cv_path_LD" 11442 if test -n "$LD"; then 11443 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11444 $as_echo "$LD" >&6; } 11445 else 11446 { $as_echo "$as_me:$LINENO: result: no" >&5 11447 $as_echo "no" >&6; } 11448 fi 11449 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11450 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11451 { (exit 1); exit 1; }; } 11452 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11453 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11454 if test "${lt_cv_prog_gnu_ld+set}" = set; then 11455 $as_echo_n "(cached) " >&6 11456 else 11457 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11458 case `$LD -v 2>&1 </dev/null` in 11459 *GNU* | *'with BFD'*) 11460 lt_cv_prog_gnu_ld=yes 11461 ;; 11462 *) 11463 lt_cv_prog_gnu_ld=no 11464 ;; 11465 esac 11466 fi 11467 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11468 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11469 with_gnu_ld=$lt_cv_prog_gnu_ld 11470 11471 11472 11473 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11474 # archiving commands below assume that GNU ld is being used. 11475 if test "$with_gnu_ld" = yes; then 11476 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11477 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' 11478 11479 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11481 11482 # If archive_cmds runs LD, not CC, wlarc should be empty 11483 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11484 # investigate it a little bit more. (MM) 11485 wlarc='${wl}' 11486 11487 # ancient GNU ld didn't support --whole-archive et. al. 11488 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11489 grep 'no-whole-archive' > /dev/null; then 11490 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11491 else 11492 whole_archive_flag_spec_CXX= 11493 fi 11494 else 11495 with_gnu_ld=no 11496 wlarc= 11497 11498 # A generic and very simple default shared library creation 11499 # command for GNU C++ for the case where it uses the native 11500 # linker, instead of GNU ld. If possible, this setting should 11501 # overridden to take advantage of the native linker features on 11502 # the platform it is being used on. 11503 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11504 fi 11505 11506 # Commands to make compiler produce verbose output that lists 11507 # what "hidden" libraries, object files and flags are used when 11508 # linking a shared library. 11509 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11510 11511 else 11512 GXX=no 11513 with_gnu_ld=no 11514 wlarc= 11515 fi 11516 11517 # PORTME: fill in a description of your system's C++ link characteristics 11518 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11519 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11520 ld_shlibs_CXX=yes 11521 case $host_os in 11522 aix3*) 11523 # FIXME: insert proper C++ library support 11524 ld_shlibs_CXX=no 11525 ;; 11526 aix[4-9]*) 11527 if test "$host_cpu" = ia64; then 11528 # On IA64, the linker does run time linking by default, so we don't 11529 # have to do anything special. 11530 aix_use_runtimelinking=no 11531 exp_sym_flag='-Bexport' 11532 no_entry_flag="" 11533 else 11534 aix_use_runtimelinking=no 11535 11536 # Test if we are trying to use run time linking or normal 11537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11538 # need to do runtime linking. 11539 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11540 for ld_flag in $LDFLAGS; do 11541 case $ld_flag in 11542 *-brtl*) 11543 aix_use_runtimelinking=yes 11544 break 11545 ;; 11546 esac 11547 done 11548 ;; 11549 esac 11550 11551 exp_sym_flag='-bexport' 11552 no_entry_flag='-bnoentry' 11553 fi 11554 11555 # When large executables or shared objects are built, AIX ld can 11556 # have problems creating the table of contents. If linking a library 11557 # or program results in "error TOC overflow" add -mminimal-toc to 11558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11560 11561 archive_cmds_CXX='' 11562 hardcode_direct_CXX=yes 11563 hardcode_libdir_separator_CXX=':' 11564 link_all_deplibs_CXX=yes 11565 11566 if test "$GXX" = yes; then 11567 case $host_os in aix4.[012]|aix4.[012].*) 11568 # We only want to do this on AIX 4.2 and lower, the check 11569 # below for broken collect2 doesn't work under 4.3+ 11570 collect2name=`${CC} -print-prog-name=collect2` 11571 if test -f "$collect2name" && \ 11572 strings "$collect2name" | grep resolve_lib_name >/dev/null 11573 then 11574 # We have reworked collect2 11575 : 11576 else 11577 # We have old collect2 11578 hardcode_direct_CXX=unsupported 11579 # It fails to find uninstalled libraries when the uninstalled 11580 # path is not listed in the libpath. Setting hardcode_minus_L 11581 # to unsupported forces relinking 11582 hardcode_minus_L_CXX=yes 11583 hardcode_libdir_flag_spec_CXX='-L$libdir' 11584 hardcode_libdir_separator_CXX= 11585 fi 11586 ;; 11587 esac 11588 shared_flag='-shared' 11589 if test "$aix_use_runtimelinking" = yes; then 11590 shared_flag="$shared_flag "'${wl}-G' 11591 fi 11592 else 11593 # not using gcc 11594 if test "$host_cpu" = ia64; then 11595 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11596 # chokes on -Wl,-G. The following line is correct: 11597 shared_flag='-G' 11598 else 11599 if test "$aix_use_runtimelinking" = yes; then 11600 shared_flag='${wl}-G' 11601 else 11602 shared_flag='${wl}-bM:SRE' 11603 fi 11604 fi 11605 fi 11606 11607 # It seems that -bexpall does not export symbols beginning with 11608 # underscore (_), so it is better to generate a list of symbols to export. 11609 always_export_symbols_CXX=yes 11610 if test "$aix_use_runtimelinking" = yes; then 11611 # Warning - without using the other runtime loading flags (-brtl), 11612 # -berok will link without error, but may produce a broken library. 11613 allow_undefined_flag_CXX='-berok' 11614 # Determine the default libpath from the value encoded in an empty executable. 11615 cat >conftest.$ac_ext <<_ACEOF 11616 /* confdefs.h. */ 11617 _ACEOF 11618 cat confdefs.h >>conftest.$ac_ext 11619 cat >>conftest.$ac_ext <<_ACEOF 11620 /* end confdefs.h. */ 11621 11622 int 11623 main () 11624 { 11625 11626 ; 11627 return 0; 11628 } 11629 _ACEOF 11630 rm -f conftest.$ac_objext conftest$ac_exeext 11631 if { (ac_try="$ac_link" 11632 case "(($ac_try" in 11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11634 *) ac_try_echo=$ac_try;; 11635 esac 11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11637 $as_echo "$ac_try_echo") >&5 11638 (eval "$ac_link") 2>conftest.er1 11639 ac_status=$? 11640 grep -v '^ *+' conftest.er1 >conftest.err 11641 rm -f conftest.er1 11642 cat conftest.err >&5 11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11644 (exit $ac_status); } && { 11645 test -z "$ac_cxx_werror_flag" || 11646 test ! -s conftest.err 11647 } && test -s conftest$ac_exeext && { 11648 test "$cross_compiling" = yes || 11649 $as_test_x conftest$ac_exeext 11650 }; then 11651 11652 lt_aix_libpath_sed=' 11653 /Import File Strings/,/^$/ { 11654 /^0/ { 11655 s/^0 *\(.*\)$/\1/ 11656 p 11657 } 11658 }' 11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11660 # Check for a 64-bit object if we didn't find anything. 11661 if test -z "$aix_libpath"; then 11662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11663 fi 11664 else 11665 $as_echo "$as_me: failed program was:" >&5 11666 sed 's/^/| /' conftest.$ac_ext >&5 11667 11668 11669 fi 11670 11671 rm -rf conftest.dSYM 11672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11673 conftest$ac_exeext conftest.$ac_ext 11674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11675 11676 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11677 11678 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" 11679 else 11680 if test "$host_cpu" = ia64; then 11681 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11682 allow_undefined_flag_CXX="-z nodefs" 11683 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" 11684 else 11685 # Determine the default libpath from the value encoded in an empty executable. 11686 cat >conftest.$ac_ext <<_ACEOF 11687 /* confdefs.h. */ 11688 _ACEOF 11689 cat confdefs.h >>conftest.$ac_ext 11690 cat >>conftest.$ac_ext <<_ACEOF 11691 /* end confdefs.h. */ 11692 11693 int 11694 main () 11695 { 11696 11697 ; 11698 return 0; 11699 } 11700 _ACEOF 11701 rm -f conftest.$ac_objext conftest$ac_exeext 11702 if { (ac_try="$ac_link" 11703 case "(($ac_try" in 11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11705 *) ac_try_echo=$ac_try;; 11706 esac 11707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11708 $as_echo "$ac_try_echo") >&5 11709 (eval "$ac_link") 2>conftest.er1 11710 ac_status=$? 11711 grep -v '^ *+' conftest.er1 >conftest.err 11712 rm -f conftest.er1 11713 cat conftest.err >&5 11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11715 (exit $ac_status); } && { 11716 test -z "$ac_cxx_werror_flag" || 11717 test ! -s conftest.err 11718 } && test -s conftest$ac_exeext && { 11719 test "$cross_compiling" = yes || 11720 $as_test_x conftest$ac_exeext 11721 }; then 11722 11723 lt_aix_libpath_sed=' 11724 /Import File Strings/,/^$/ { 11725 /^0/ { 11726 s/^0 *\(.*\)$/\1/ 11727 p 11728 } 11729 }' 11730 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11731 # Check for a 64-bit object if we didn't find anything. 11732 if test -z "$aix_libpath"; then 11733 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11734 fi 11735 else 11736 $as_echo "$as_me: failed program was:" >&5 11737 sed 's/^/| /' conftest.$ac_ext >&5 11738 11739 11740 fi 11741 11742 rm -rf conftest.dSYM 11743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11744 conftest$ac_exeext conftest.$ac_ext 11745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11746 11747 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11748 # Warning - without using the other run time loading flags, 11749 # -berok will link without error, but may produce a broken library. 11750 no_undefined_flag_CXX=' ${wl}-bernotok' 11751 allow_undefined_flag_CXX=' ${wl}-berok' 11752 # Exported symbols can be pulled into shared objects from archives 11753 whole_archive_flag_spec_CXX='$convenience' 11754 archive_cmds_need_lc_CXX=yes 11755 # This is similar to how AIX traditionally builds its shared libraries. 11756 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' 11757 fi 11758 fi 11759 ;; 11760 11761 beos*) 11762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11763 allow_undefined_flag_CXX=unsupported 11764 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11765 # support --undefined. This deserves some investigation. FIXME 11766 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11767 else 11768 ld_shlibs_CXX=no 11769 fi 11770 ;; 11771 11772 chorus*) 11773 case $cc_basename in 11774 *) 11775 # FIXME: insert proper C++ library support 11776 ld_shlibs_CXX=no 11777 ;; 11778 esac 11779 ;; 11780 11781 cygwin* | mingw* | pw32*) 11782 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11783 # as there is no search path for DLLs. 11784 hardcode_libdir_flag_spec_CXX='-L$libdir' 11785 allow_undefined_flag_CXX=unsupported 11786 always_export_symbols_CXX=no 11787 enable_shared_with_static_runtimes_CXX=yes 11788 11789 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11790 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' 11791 # If the export-symbols file already is a .def file (1st line 11792 # is EXPORTS), use it as is; otherwise, prepend... 11793 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11794 cp $export_symbols $output_objdir/$soname.def; 11795 else 11796 echo EXPORTS > $output_objdir/$soname.def; 11797 cat $export_symbols >> $output_objdir/$soname.def; 11798 fi~ 11799 $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' 11800 else 11801 ld_shlibs_CXX=no 11802 fi 11803 ;; 11804 darwin* | rhapsody*) 11805 archive_cmds_need_lc_CXX=no 11806 hardcode_direct_CXX=no 11807 hardcode_automatic_CXX=yes 11808 hardcode_shlibpath_var_CXX=unsupported 11809 whole_archive_flag_spec_CXX='' 11810 link_all_deplibs_CXX=yes 11811 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11812 if test "$GXX" = yes ; then 11813 output_verbose_link_cmd='echo' 11814 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11815 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11816 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 11817 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 11818 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11819 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${_lt_dsymutil}" 11820 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 11821 fi 11822 else 11823 case $cc_basename in 11824 xlc*) 11825 output_verbose_link_cmd='echo' 11826 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11827 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11829 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11830 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}' 11831 ;; 11832 *) 11833 ld_shlibs_CXX=no 11834 ;; 11835 esac 11836 fi 11837 ;; 11838 11839 dgux*) 11840 case $cc_basename in 11841 ec++*) 11842 # FIXME: insert proper C++ library support 11843 ld_shlibs_CXX=no 11844 ;; 11845 ghcx*) 11846 # Green Hills C++ Compiler 11847 # FIXME: insert proper C++ library support 11848 ld_shlibs_CXX=no 11849 ;; 11850 *) 11851 # FIXME: insert proper C++ library support 11852 ld_shlibs_CXX=no 11853 ;; 11854 esac 11855 ;; 11856 freebsd[12]*) 11857 # C++ shared libraries reported to be fairly broken before switch to ELF 11858 ld_shlibs_CXX=no 11859 ;; 11860 freebsd-elf*) 11861 archive_cmds_need_lc_CXX=no 11862 ;; 11863 freebsd* | dragonfly*) 11864 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11865 # conventions 11866 ld_shlibs_CXX=yes 11867 ;; 11868 gnu*) 11869 ;; 11870 hpux9*) 11871 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11872 hardcode_libdir_separator_CXX=: 11873 export_dynamic_flag_spec_CXX='${wl}-E' 11874 hardcode_direct_CXX=yes 11875 hardcode_minus_L_CXX=yes # Not in the search PATH, 11876 # but as the default 11877 # location of the library. 11878 11879 case $cc_basename in 11880 CC*) 11881 # FIXME: insert proper C++ library support 11882 ld_shlibs_CXX=no 11883 ;; 11884 aCC*) 11885 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' 11886 # Commands to make compiler produce verbose output that lists 11887 # what "hidden" libraries, object files and flags are used when 11888 # linking a shared library. 11889 # 11890 # There doesn't appear to be a way to prevent this compiler from 11891 # explicitly linking system object files so we need to strip them 11892 # from the output so that they don't get included in the library 11893 # dependencies. 11894 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' 11895 ;; 11896 *) 11897 if test "$GXX" = yes; then 11898 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' 11899 else 11900 # FIXME: insert proper C++ library support 11901 ld_shlibs_CXX=no 11902 fi 11903 ;; 11904 esac 11905 ;; 11906 hpux10*|hpux11*) 11907 if test $with_gnu_ld = no; then 11908 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11909 hardcode_libdir_separator_CXX=: 11910 11911 case $host_cpu in 11912 hppa*64*|ia64*) ;; 11913 *) 11914 export_dynamic_flag_spec_CXX='${wl}-E' 11915 ;; 11916 esac 11917 fi 11918 case $host_cpu in 11919 hppa*64*|ia64*) 11920 hardcode_direct_CXX=no 11921 hardcode_shlibpath_var_CXX=no 11922 ;; 11923 *) 11924 hardcode_direct_CXX=yes 11925 hardcode_minus_L_CXX=yes # Not in the search PATH, 11926 # but as the default 11927 # location of the library. 11928 ;; 11929 esac 11930 11931 case $cc_basename in 11932 CC*) 11933 # FIXME: insert proper C++ library support 11934 ld_shlibs_CXX=no 11935 ;; 11936 aCC*) 11937 case $host_cpu in 11938 hppa*64*) 11939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11940 ;; 11941 ia64*) 11942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11943 ;; 11944 *) 11945 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11946 ;; 11947 esac 11948 # Commands to make compiler produce verbose output that lists 11949 # what "hidden" libraries, object files and flags are used when 11950 # linking a shared library. 11951 # 11952 # There doesn't appear to be a way to prevent this compiler from 11953 # explicitly linking system object files so we need to strip them 11954 # from the output so that they don't get included in the library 11955 # dependencies. 11956 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' 11957 ;; 11958 *) 11959 if test "$GXX" = yes; then 11960 if test $with_gnu_ld = no; then 11961 case $host_cpu in 11962 hppa*64*) 11963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11964 ;; 11965 ia64*) 11966 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11967 ;; 11968 *) 11969 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' 11970 ;; 11971 esac 11972 fi 11973 else 11974 # FIXME: insert proper C++ library support 11975 ld_shlibs_CXX=no 11976 fi 11977 ;; 11978 esac 11979 ;; 11980 interix[3-9]*) 11981 hardcode_direct_CXX=no 11982 hardcode_shlibpath_var_CXX=no 11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11984 export_dynamic_flag_spec_CXX='${wl}-E' 11985 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11986 # Instead, shared libraries are loaded at an image base (0x10000000 by 11987 # default) and relocated if they conflict, which is a slow very memory 11988 # consuming and fragmenting process. To avoid this, we pick a random, 11989 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11990 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11991 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' 11992 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' 11993 ;; 11994 irix5* | irix6*) 11995 case $cc_basename in 11996 CC*) 11997 # SGI C++ 11998 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' 11999 12000 # Archives containing C++ object files must be created using 12001 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12002 # necessary to make sure instantiated templates are included 12003 # in the archive. 12004 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12005 ;; 12006 *) 12007 if test "$GXX" = yes; then 12008 if test "$with_gnu_ld" = no; then 12009 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' 12010 else 12011 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' 12012 fi 12013 fi 12014 link_all_deplibs_CXX=yes 12015 ;; 12016 esac 12017 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12018 hardcode_libdir_separator_CXX=: 12019 ;; 12020 linux* | k*bsd*-gnu) 12021 case $cc_basename in 12022 KCC*) 12023 # Kuck and Associates, Inc. (KAI) C++ Compiler 12024 12025 # KCC will only create a shared library if the output file 12026 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12027 # to its proper name (with version) after linking. 12028 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' 12029 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' 12030 # Commands to make compiler produce verbose output that lists 12031 # what "hidden" libraries, object files and flags are used when 12032 # linking a shared library. 12033 # 12034 # There doesn't appear to be a way to prevent this compiler from 12035 # explicitly linking system object files so we need to strip them 12036 # from the output so that they don't get included in the library 12037 # dependencies. 12038 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' 12039 12040 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12042 12043 # Archives containing C++ object files must be created using 12044 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12045 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12046 ;; 12047 icpc*) 12048 # Intel C++ 12049 with_gnu_ld=yes 12050 # version 8.0 and above of icpc choke on multiply defined symbols 12051 # if we add $predep_objects and $postdep_objects, however 7.1 and 12052 # earlier do not add the objects themselves. 12053 case `$CC -V 2>&1` in 12054 *"Version 7."*) 12055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12056 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' 12057 ;; 12058 *) # Version 8.0 or newer 12059 tmp_idyn= 12060 case $host_cpu in 12061 ia64*) tmp_idyn=' -i_dynamic';; 12062 esac 12063 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12064 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' 12065 ;; 12066 esac 12067 archive_cmds_need_lc_CXX=no 12068 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12070 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12071 ;; 12072 pgCC* | pgcpp*) 12073 # Portland Group C++ compiler 12074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12075 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' 12076 12077 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12079 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' 12080 ;; 12081 cxx*) 12082 # Compaq C++ 12083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12084 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' 12085 12086 runpath_var=LD_RUN_PATH 12087 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12088 hardcode_libdir_separator_CXX=: 12089 12090 # Commands to make compiler produce verbose output that lists 12091 # what "hidden" libraries, object files and flags are used when 12092 # linking a shared library. 12093 # 12094 # There doesn't appear to be a way to prevent this compiler from 12095 # explicitly linking system object files so we need to strip them 12096 # from the output so that they don't get included in the library 12097 # dependencies. 12098 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' 12099 ;; 12100 *) 12101 case `$CC -V 2>&1 | sed 5q` in 12102 *Sun\ C*) 12103 # Sun C++ 5.9 12104 no_undefined_flag_CXX=' -zdefs' 12105 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12106 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' 12107 hardcode_libdir_flag_spec_CXX='-R$libdir' 12108 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' 12109 12110 # Not sure whether something based on 12111 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12112 # would be better. 12113 output_verbose_link_cmd='echo' 12114 12115 # Archives containing C++ object files must be created using 12116 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12117 # necessary to make sure instantiated templates are included 12118 # in the archive. 12119 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12120 ;; 12121 esac 12122 ;; 12123 esac 12124 ;; 12125 lynxos*) 12126 # FIXME: insert proper C++ library support 12127 ld_shlibs_CXX=no 12128 ;; 12129 m88k*) 12130 # FIXME: insert proper C++ library support 12131 ld_shlibs_CXX=no 12132 ;; 12133 mvs*) 12134 case $cc_basename in 12135 cxx*) 12136 # FIXME: insert proper C++ library support 12137 ld_shlibs_CXX=no 12138 ;; 12139 *) 12140 # FIXME: insert proper C++ library support 12141 ld_shlibs_CXX=no 12142 ;; 12143 esac 12144 ;; 12145 netbsd*) 12146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12147 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12148 wlarc= 12149 hardcode_libdir_flag_spec_CXX='-R$libdir' 12150 hardcode_direct_CXX=yes 12151 hardcode_shlibpath_var_CXX=no 12152 fi 12153 # Workaround some broken pre-1.5 toolchains 12154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12155 ;; 12156 openbsd2*) 12157 # C++ shared libraries are fairly broken 12158 ld_shlibs_CXX=no 12159 ;; 12160 openbsd*) 12161 if test -f /usr/libexec/ld.so; then 12162 hardcode_direct_CXX=yes 12163 hardcode_shlibpath_var_CXX=no 12164 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12165 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12167 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12168 export_dynamic_flag_spec_CXX='${wl}-E' 12169 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12170 fi 12171 output_verbose_link_cmd='echo' 12172 else 12173 ld_shlibs_CXX=no 12174 fi 12175 ;; 12176 osf3*) 12177 case $cc_basename in 12178 KCC*) 12179 # Kuck and Associates, Inc. (KAI) C++ Compiler 12180 12181 # KCC will only create a shared library if the output file 12182 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12183 # to its proper name (with version) after linking. 12184 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' 12185 12186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12187 hardcode_libdir_separator_CXX=: 12188 12189 # Archives containing C++ object files must be created using 12190 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12191 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12192 12193 ;; 12194 RCC*) 12195 # Rational C++ 2.4.1 12196 # FIXME: insert proper C++ library support 12197 ld_shlibs_CXX=no 12198 ;; 12199 cxx*) 12200 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12201 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' 12202 12203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12204 hardcode_libdir_separator_CXX=: 12205 12206 # Commands to make compiler produce verbose output that lists 12207 # what "hidden" libraries, object files and flags are used when 12208 # linking a shared library. 12209 # 12210 # There doesn't appear to be a way to prevent this compiler from 12211 # explicitly linking system object files so we need to strip them 12212 # from the output so that they don't get included in the library 12213 # dependencies. 12214 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' 12215 ;; 12216 *) 12217 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12218 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12219 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' 12220 12221 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12222 hardcode_libdir_separator_CXX=: 12223 12224 # Commands to make compiler produce verbose output that lists 12225 # what "hidden" libraries, object files and flags are used when 12226 # linking a shared library. 12227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12228 12229 else 12230 # FIXME: insert proper C++ library support 12231 ld_shlibs_CXX=no 12232 fi 12233 ;; 12234 esac 12235 ;; 12236 osf4* | osf5*) 12237 case $cc_basename in 12238 KCC*) 12239 # Kuck and Associates, Inc. (KAI) C++ Compiler 12240 12241 # KCC will only create a shared library if the output file 12242 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12243 # to its proper name (with version) after linking. 12244 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' 12245 12246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12247 hardcode_libdir_separator_CXX=: 12248 12249 # Archives containing C++ object files must be created using 12250 # the KAI C++ compiler. 12251 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12252 ;; 12253 RCC*) 12254 # Rational C++ 2.4.1 12255 # FIXME: insert proper C++ library support 12256 ld_shlibs_CXX=no 12257 ;; 12258 cxx*) 12259 allow_undefined_flag_CXX=' -expect_unresolved \*' 12260 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' 12261 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12262 echo "-hidden">> $lib.exp~ 12263 $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~ 12264 $rm $lib.exp' 12265 12266 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12267 hardcode_libdir_separator_CXX=: 12268 12269 # Commands to make compiler produce verbose output that lists 12270 # what "hidden" libraries, object files and flags are used when 12271 # linking a shared library. 12272 # 12273 # There doesn't appear to be a way to prevent this compiler from 12274 # explicitly linking system object files so we need to strip them 12275 # from the output so that they don't get included in the library 12276 # dependencies. 12277 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' 12278 ;; 12279 *) 12280 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12281 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12282 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' 12283 12284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12285 hardcode_libdir_separator_CXX=: 12286 12287 # Commands to make compiler produce verbose output that lists 12288 # what "hidden" libraries, object files and flags are used when 12289 # linking a shared library. 12290 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12291 12292 else 12293 # FIXME: insert proper C++ library support 12294 ld_shlibs_CXX=no 12295 fi 12296 ;; 12297 esac 12298 ;; 12299 psos*) 12300 # FIXME: insert proper C++ library support 12301 ld_shlibs_CXX=no 12302 ;; 12303 sunos4*) 12304 case $cc_basename in 12305 CC*) 12306 # Sun C++ 4.x 12307 # FIXME: insert proper C++ library support 12308 ld_shlibs_CXX=no 12309 ;; 12310 lcc*) 12311 # Lucid 12312 # FIXME: insert proper C++ library support 12313 ld_shlibs_CXX=no 12314 ;; 12315 *) 12316 # FIXME: insert proper C++ library support 12317 ld_shlibs_CXX=no 12318 ;; 12319 esac 12320 ;; 12321 solaris*) 12322 case $cc_basename in 12323 CC*) 12324 # Sun C++ 4.2, 5.x and Centerline C++ 12325 archive_cmds_need_lc_CXX=yes 12326 no_undefined_flag_CXX=' -zdefs' 12327 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12328 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12329 $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' 12330 12331 hardcode_libdir_flag_spec_CXX='-R$libdir' 12332 hardcode_shlibpath_var_CXX=no 12333 case $host_os in 12334 solaris2.[0-5] | solaris2.[0-5].*) ;; 12335 *) 12336 # The compiler driver will combine and reorder linker options, 12337 # but understands `-z linker_flag'. 12338 # Supported since Solaris 2.6 (maybe 2.5.1?) 12339 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12340 ;; 12341 esac 12342 link_all_deplibs_CXX=yes 12343 12344 output_verbose_link_cmd='echo' 12345 12346 # Archives containing C++ object files must be created using 12347 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12348 # necessary to make sure instantiated templates are included 12349 # in the archive. 12350 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12351 ;; 12352 gcx*) 12353 # Green Hills C++ Compiler 12354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12355 12356 # The C++ compiler must be used to create the archive. 12357 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12358 ;; 12359 *) 12360 # GNU C++ compiler with Solaris linker 12361 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12362 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12363 if $CC --version | grep -v '^2\.7' > /dev/null; then 12364 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12365 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12366 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12367 12368 # Commands to make compiler produce verbose output that lists 12369 # what "hidden" libraries, object files and flags are used when 12370 # linking a shared library. 12371 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12372 else 12373 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12374 # platform. 12375 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12376 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12377 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12378 12379 # Commands to make compiler produce verbose output that lists 12380 # what "hidden" libraries, object files and flags are used when 12381 # linking a shared library. 12382 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12383 fi 12384 12385 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12386 case $host_os in 12387 solaris2.[0-5] | solaris2.[0-5].*) ;; 12388 *) 12389 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12390 ;; 12391 esac 12392 fi 12393 ;; 12394 esac 12395 ;; 12396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12397 no_undefined_flag_CXX='${wl}-z,text' 12398 archive_cmds_need_lc_CXX=no 12399 hardcode_shlibpath_var_CXX=no 12400 runpath_var='LD_RUN_PATH' 12401 12402 case $cc_basename in 12403 CC*) 12404 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12405 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12406 ;; 12407 *) 12408 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12409 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12410 ;; 12411 esac 12412 ;; 12413 sysv5* | sco3.2v5* | sco5v6*) 12414 # Note: We can NOT use -z defs as we might desire, because we do not 12415 # link with -lc, and that would cause any symbols used from libc to 12416 # always be unresolved, which means just about no library would 12417 # ever link correctly. If we're not using GNU ld we use -z text 12418 # though, which does catch some bad symbols but isn't as heavy-handed 12419 # as -z defs. 12420 # For security reasons, it is highly recommended that you always 12421 # use absolute paths for naming shared libraries, and exclude the 12422 # DT_RUNPATH tag from executables and libraries. But doing so 12423 # requires that you compile everything twice, which is a pain. 12424 # So that behaviour is only enabled if SCOABSPATH is set to a 12425 # non-empty value in the environment. Most likely only useful for 12426 # creating official distributions of packages. 12427 # This is a hack until libtool officially supports absolute path 12428 # names for shared libraries. 12429 no_undefined_flag_CXX='${wl}-z,text' 12430 allow_undefined_flag_CXX='${wl}-z,nodefs' 12431 archive_cmds_need_lc_CXX=no 12432 hardcode_shlibpath_var_CXX=no 12433 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12434 hardcode_libdir_separator_CXX=':' 12435 link_all_deplibs_CXX=yes 12436 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12437 runpath_var='LD_RUN_PATH' 12438 12439 case $cc_basename in 12440 CC*) 12441 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12442 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12443 ;; 12444 *) 12445 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12446 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12447 ;; 12448 esac 12449 ;; 12450 tandem*) 12451 case $cc_basename in 12452 NCC*) 12453 # NonStop-UX NCC 3.20 12454 # FIXME: insert proper C++ library support 12455 ld_shlibs_CXX=no 12456 ;; 12457 *) 12458 # FIXME: insert proper C++ library support 12459 ld_shlibs_CXX=no 12460 ;; 12461 esac 12462 ;; 12463 vxworks*) 12464 # FIXME: insert proper C++ library support 12465 ld_shlibs_CXX=no 12466 ;; 12467 *) 12468 # FIXME: insert proper C++ library support 12469 ld_shlibs_CXX=no 12470 ;; 12471 esac 12472 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12473 $as_echo "$ld_shlibs_CXX" >&6; } 12474 test "$ld_shlibs_CXX" = no && can_build_shared=no 12475 12476 GCC_CXX="$GXX" 12477 LD_CXX="$LD" 12478 12479 cat > conftest.$ac_ext <<EOF 12480 class Foo 12481 { 12482 public: 12483 Foo (void) { a = 0; } 12484 private: 12485 int a; 12486 }; 12487 EOF 12488 12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12490 (eval $ac_compile) 2>&5 12491 ac_status=$? 12492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12493 (exit $ac_status); }; then 12494 # Parse the compiler output and extract the necessary 12495 # objects, libraries and library flags. 12496 12497 # Sentinel used to keep track of whether or not we are before 12498 # the conftest object file. 12499 pre_test_object_deps_done=no 12500 12501 # The `*' in the case matches for architectures that use `case' in 12502 # $output_verbose_cmd can trigger glob expansion during the loop 12503 # eval without this substitution. 12504 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12505 12506 for p in `eval $output_verbose_link_cmd`; do 12507 case $p in 12508 12509 -L* | -R* | -l*) 12510 # Some compilers place space between "-{L,R}" and the path. 12511 # Remove the space. 12512 if test $p = "-L" \ 12513 || test $p = "-R"; then 12514 prev=$p 12515 continue 12516 else 12517 prev= 12518 fi 12519 12520 if test "$pre_test_object_deps_done" = no; then 12521 case $p in 12522 -L* | -R*) 12523 # Internal compiler library paths should come after those 12524 # provided the user. The postdeps already come after the 12525 # user supplied libs so there is no need to process them. 12526 if test -z "$compiler_lib_search_path_CXX"; then 12527 compiler_lib_search_path_CXX="${prev}${p}" 12528 else 12529 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12530 fi 12531 ;; 12532 # The "-l" case would never come before the object being 12533 # linked, so don't bother handling this case. 12534 esac 12535 else 12536 if test -z "$postdeps_CXX"; then 12537 postdeps_CXX="${prev}${p}" 12538 else 12539 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12540 fi 12541 fi 12542 ;; 12543 12544 *.$objext) 12545 # This assumes that the test object file only shows up 12546 # once in the compiler output. 12547 if test "$p" = "conftest.$objext"; then 12548 pre_test_object_deps_done=yes 12549 continue 12550 fi 12551 12552 if test "$pre_test_object_deps_done" = no; then 12553 if test -z "$predep_objects_CXX"; then 12554 predep_objects_CXX="$p" 12555 else 12556 predep_objects_CXX="$predep_objects_CXX $p" 12557 fi 12558 else 12559 if test -z "$postdep_objects_CXX"; then 12560 postdep_objects_CXX="$p" 12561 else 12562 postdep_objects_CXX="$postdep_objects_CXX $p" 12563 fi 12564 fi 12565 ;; 12566 12567 *) ;; # Ignore the rest. 12568 12569 esac 12570 done 12571 12572 # Clean up. 12573 rm -f a.out a.exe 12574 else 12575 echo "libtool.m4: error: problem compiling CXX test program" 12576 fi 12577 12578 $rm -f confest.$objext 12579 12580 compiler_lib_search_dirs_CXX= 12581 if test -n "$compiler_lib_search_path_CXX"; then 12582 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12583 fi 12584 12585 # PORTME: override above test on systems where it is broken 12586 case $host_os in 12587 interix[3-9]*) 12588 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12589 # hack all around it, let's just trust "g++" to DTRT. 12590 predep_objects_CXX= 12591 postdep_objects_CXX= 12592 postdeps_CXX= 12593 ;; 12594 12595 linux*) 12596 case `$CC -V 2>&1 | sed 5q` in 12597 *Sun\ C*) 12598 # Sun C++ 5.9 12599 # 12600 # The more standards-conforming stlport4 library is 12601 # incompatible with the Cstd library. Avoid specifying 12602 # it if it's in CXXFLAGS. Ignore libCrun as 12603 # -library=stlport4 depends on it. 12604 case " $CXX $CXXFLAGS " in 12605 *" -library=stlport4 "*) 12606 solaris_use_stlport4=yes 12607 ;; 12608 esac 12609 if test "$solaris_use_stlport4" != yes; then 12610 postdeps_CXX='-library=Cstd -library=Crun' 12611 fi 12612 ;; 12613 esac 12614 ;; 12615 12616 solaris*) 12617 case $cc_basename in 12618 CC*) 12619 # The more standards-conforming stlport4 library is 12620 # incompatible with the Cstd library. Avoid specifying 12621 # it if it's in CXXFLAGS. Ignore libCrun as 12622 # -library=stlport4 depends on it. 12623 case " $CXX $CXXFLAGS " in 12624 *" -library=stlport4 "*) 12625 solaris_use_stlport4=yes 12626 ;; 12627 esac 12628 12629 # Adding this requires a known-good setup of shared libraries for 12630 # Sun compiler versions before 5.6, else PIC objects from an old 12631 # archive will be linked into the output, leading to subtle bugs. 12632 if test "$solaris_use_stlport4" != yes; then 12633 postdeps_CXX='-library=Cstd -library=Crun' 12634 fi 12635 ;; 12636 esac 12637 ;; 12638 esac 12639 12640 case " $postdeps_CXX " in 12641 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 12642 esac 12643 12644 lt_prog_compiler_wl_CXX= 12645 lt_prog_compiler_pic_CXX= 12646 lt_prog_compiler_static_CXX= 12647 12648 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12649 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12650 12651 # C++ specific cases for pic, static, wl, etc. 12652 if test "$GXX" = yes; then 12653 lt_prog_compiler_wl_CXX='-Wl,' 12654 lt_prog_compiler_static_CXX='-static' 12655 12656 case $host_os in 12657 aix*) 12658 # All AIX code is PIC. 12659 if test "$host_cpu" = ia64; then 12660 # AIX 5 now supports IA64 processor 12661 lt_prog_compiler_static_CXX='-Bstatic' 12662 fi 12663 ;; 12664 amigaos*) 12665 # FIXME: we need at least 68020 code to build shared libraries, but 12666 # adding the `-m68020' flag to GCC prevents building anything better, 12667 # like `-m68040'. 12668 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12669 ;; 12670 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12671 # PIC is the default for these OSes. 12672 ;; 12673 mingw* | cygwin* | os2* | pw32*) 12674 # This hack is so that the source file can tell whether it is being 12675 # built for inclusion in a dll (and should export symbols for example). 12676 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12677 # (--disable-auto-import) libraries 12678 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12679 ;; 12680 darwin* | rhapsody*) 12681 # PIC is the default on this platform 12682 # Common symbols not allowed in MH_DYLIB files 12683 lt_prog_compiler_pic_CXX='-fno-common' 12684 ;; 12685 *djgpp*) 12686 # DJGPP does not support shared libraries at all 12687 lt_prog_compiler_pic_CXX= 12688 ;; 12689 interix[3-9]*) 12690 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12691 # Instead, we relocate shared libraries at runtime. 12692 ;; 12693 sysv4*MP*) 12694 if test -d /usr/nec; then 12695 lt_prog_compiler_pic_CXX=-Kconform_pic 12696 fi 12697 ;; 12698 hpux*) 12699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12700 # not for PA HP-UX. 12701 case $host_cpu in 12702 hppa*64*|ia64*) 12703 ;; 12704 *) 12705 lt_prog_compiler_pic_CXX='-fPIC' 12706 ;; 12707 esac 12708 ;; 12709 *) 12710 lt_prog_compiler_pic_CXX='-fPIC' 12711 ;; 12712 esac 12713 else 12714 case $host_os in 12715 aix[4-9]*) 12716 # All AIX code is PIC. 12717 if test "$host_cpu" = ia64; then 12718 # AIX 5 now supports IA64 processor 12719 lt_prog_compiler_static_CXX='-Bstatic' 12720 else 12721 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12722 fi 12723 ;; 12724 chorus*) 12725 case $cc_basename in 12726 cxch68*) 12727 # Green Hills C++ Compiler 12728 # _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" 12729 ;; 12730 esac 12731 ;; 12732 darwin*) 12733 # PIC is the default on this platform 12734 # Common symbols not allowed in MH_DYLIB files 12735 case $cc_basename in 12736 xlc*) 12737 lt_prog_compiler_pic_CXX='-qnocommon' 12738 lt_prog_compiler_wl_CXX='-Wl,' 12739 ;; 12740 esac 12741 ;; 12742 dgux*) 12743 case $cc_basename in 12744 ec++*) 12745 lt_prog_compiler_pic_CXX='-KPIC' 12746 ;; 12747 ghcx*) 12748 # Green Hills C++ Compiler 12749 lt_prog_compiler_pic_CXX='-pic' 12750 ;; 12751 *) 12752 ;; 12753 esac 12754 ;; 12755 freebsd* | dragonfly*) 12756 # FreeBSD uses GNU C++ 12757 ;; 12758 hpux9* | hpux10* | hpux11*) 12759 case $cc_basename in 12760 CC*) 12761 lt_prog_compiler_wl_CXX='-Wl,' 12762 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12763 if test "$host_cpu" != ia64; then 12764 lt_prog_compiler_pic_CXX='+Z' 12765 fi 12766 ;; 12767 aCC*) 12768 lt_prog_compiler_wl_CXX='-Wl,' 12769 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12770 case $host_cpu in 12771 hppa*64*|ia64*) 12772 # +Z the default 12773 ;; 12774 *) 12775 lt_prog_compiler_pic_CXX='+Z' 12776 ;; 12777 esac 12778 ;; 12779 *) 12780 ;; 12781 esac 12782 ;; 12783 interix*) 12784 # This is c89, which is MS Visual C++ (no shared libs) 12785 # Anyone wants to do a port? 12786 ;; 12787 irix5* | irix6* | nonstopux*) 12788 case $cc_basename in 12789 CC*) 12790 lt_prog_compiler_wl_CXX='-Wl,' 12791 lt_prog_compiler_static_CXX='-non_shared' 12792 # CC pic flag -KPIC is the default. 12793 ;; 12794 *) 12795 ;; 12796 esac 12797 ;; 12798 linux* | k*bsd*-gnu) 12799 case $cc_basename in 12800 KCC*) 12801 # KAI C++ Compiler 12802 lt_prog_compiler_wl_CXX='--backend -Wl,' 12803 lt_prog_compiler_pic_CXX='-fPIC' 12804 ;; 12805 icpc* | ecpc*) 12806 # Intel C++ 12807 lt_prog_compiler_wl_CXX='-Wl,' 12808 lt_prog_compiler_pic_CXX='-KPIC' 12809 lt_prog_compiler_static_CXX='-static' 12810 ;; 12811 pgCC* | pgcpp*) 12812 # Portland Group C++ compiler. 12813 lt_prog_compiler_wl_CXX='-Wl,' 12814 lt_prog_compiler_pic_CXX='-fpic' 12815 lt_prog_compiler_static_CXX='-Bstatic' 12816 ;; 12817 cxx*) 12818 # Compaq C++ 12819 # Make sure the PIC flag is empty. It appears that all Alpha 12820 # Linux and Compaq Tru64 Unix objects are PIC. 12821 lt_prog_compiler_pic_CXX= 12822 lt_prog_compiler_static_CXX='-non_shared' 12823 ;; 12824 *) 12825 case `$CC -V 2>&1 | sed 5q` in 12826 *Sun\ C*) 12827 # Sun C++ 5.9 12828 lt_prog_compiler_pic_CXX='-KPIC' 12829 lt_prog_compiler_static_CXX='-Bstatic' 12830 lt_prog_compiler_wl_CXX='-Qoption ld ' 12831 ;; 12832 esac 12833 ;; 12834 esac 12835 ;; 12836 lynxos*) 12837 ;; 12838 m88k*) 12839 ;; 12840 mvs*) 12841 case $cc_basename in 12842 cxx*) 12843 lt_prog_compiler_pic_CXX='-W c,exportall' 12844 ;; 12845 *) 12846 ;; 12847 esac 12848 ;; 12849 netbsd*) 12850 ;; 12851 osf3* | osf4* | osf5*) 12852 case $cc_basename in 12853 KCC*) 12854 lt_prog_compiler_wl_CXX='--backend -Wl,' 12855 ;; 12856 RCC*) 12857 # Rational C++ 2.4.1 12858 lt_prog_compiler_pic_CXX='-pic' 12859 ;; 12860 cxx*) 12861 # Digital/Compaq C++ 12862 lt_prog_compiler_wl_CXX='-Wl,' 12863 # Make sure the PIC flag is empty. It appears that all Alpha 12864 # Linux and Compaq Tru64 Unix objects are PIC. 12865 lt_prog_compiler_pic_CXX= 12866 lt_prog_compiler_static_CXX='-non_shared' 12867 ;; 12868 *) 12869 ;; 12870 esac 12871 ;; 12872 psos*) 12873 ;; 12874 solaris*) 12875 case $cc_basename in 12876 CC*) 12877 # Sun C++ 4.2, 5.x and Centerline C++ 12878 lt_prog_compiler_pic_CXX='-KPIC' 12879 lt_prog_compiler_static_CXX='-Bstatic' 12880 lt_prog_compiler_wl_CXX='-Qoption ld ' 12881 ;; 12882 gcx*) 12883 # Green Hills C++ Compiler 12884 lt_prog_compiler_pic_CXX='-PIC' 12885 ;; 12886 *) 12887 ;; 12888 esac 12889 ;; 12890 sunos4*) 12891 case $cc_basename in 12892 CC*) 12893 # Sun C++ 4.x 12894 lt_prog_compiler_pic_CXX='-pic' 12895 lt_prog_compiler_static_CXX='-Bstatic' 12896 ;; 12897 lcc*) 12898 # Lucid 12899 lt_prog_compiler_pic_CXX='-pic' 12900 ;; 12901 *) 12902 ;; 12903 esac 12904 ;; 12905 tandem*) 12906 case $cc_basename in 12907 NCC*) 12908 # NonStop-UX NCC 3.20 12909 lt_prog_compiler_pic_CXX='-KPIC' 12910 ;; 12911 *) 12912 ;; 12913 esac 12914 ;; 12915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12916 case $cc_basename in 12917 CC*) 12918 lt_prog_compiler_wl_CXX='-Wl,' 12919 lt_prog_compiler_pic_CXX='-KPIC' 12920 lt_prog_compiler_static_CXX='-Bstatic' 12921 ;; 12922 esac 12923 ;; 12924 vxworks*) 12925 ;; 12926 *) 12927 lt_prog_compiler_can_build_shared_CXX=no 12928 ;; 12929 esac 12930 fi 12931 12932 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12933 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12934 12935 # 12936 # Check to make sure the PIC flag actually works. 12937 # 12938 if test -n "$lt_prog_compiler_pic_CXX"; then 12939 12940 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12942 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12943 $as_echo_n "(cached) " >&6 12944 else 12945 lt_cv_prog_compiler_pic_works_CXX=no 12946 ac_outfile=conftest.$ac_objext 12947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12948 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12949 # Insert the option either (1) after the last *FLAGS variable, or 12950 # (2) before a word containing "conftest.", or (3) at the end. 12951 # Note that $ac_compile itself does not contain backslashes and begins 12952 # with a dollar sign (not a hyphen), so the echo should work correctly. 12953 # The option is referenced via a variable to avoid confusing sed. 12954 lt_compile=`echo "$ac_compile" | $SED \ 12955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12957 -e 's:$: $lt_compiler_flag:'` 12958 (eval echo "\"\$as_me:12958: $lt_compile\"" >&5) 12959 (eval "$lt_compile" 2>conftest.err) 12960 ac_status=$? 12961 cat conftest.err >&5 12962 echo "$as_me:12962: \$? = $ac_status" >&5 12963 if (exit $ac_status) && test -s "$ac_outfile"; then 12964 # The compiler can only warn and ignore the option if not recognized 12965 # So say no if there are warnings other than the usual output. 12966 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12969 lt_cv_prog_compiler_pic_works_CXX=yes 12970 fi 12971 fi 12972 $rm conftest* 12973 12974 fi 12975 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12976 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12977 12978 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12979 case $lt_prog_compiler_pic_CXX in 12980 "" | " "*) ;; 12981 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12982 esac 12983 else 12984 lt_prog_compiler_pic_CXX= 12985 lt_prog_compiler_can_build_shared_CXX=no 12986 fi 12987 12988 fi 12989 case $host_os in 12990 # For platforms which do not support PIC, -DPIC is meaningless: 12991 *djgpp*) 12992 lt_prog_compiler_pic_CXX= 12993 ;; 12994 *) 12995 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12996 ;; 12997 esac 12998 12999 # 13000 # Check to make sure the static flag actually works. 13001 # 13002 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13003 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13004 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13005 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13006 $as_echo_n "(cached) " >&6 13007 else 13008 lt_cv_prog_compiler_static_works_CXX=no 13009 save_LDFLAGS="$LDFLAGS" 13010 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13011 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13013 # The linker can only warn and ignore the option if not recognized 13014 # So say no if there are warnings 13015 if test -s conftest.err; then 13016 # Append any errors to the config.log. 13017 cat conftest.err 1>&5 13018 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13020 if diff conftest.exp conftest.er2 >/dev/null; then 13021 lt_cv_prog_compiler_static_works_CXX=yes 13022 fi 13023 else 13024 lt_cv_prog_compiler_static_works_CXX=yes 13025 fi 13026 fi 13027 $rm -r conftest* 13028 LDFLAGS="$save_LDFLAGS" 13029 13030 fi 13031 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13032 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13033 13034 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13035 : 13036 else 13037 lt_prog_compiler_static_CXX= 13038 fi 13039 13040 13041 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13043 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13044 $as_echo_n "(cached) " >&6 13045 else 13046 lt_cv_prog_compiler_c_o_CXX=no 13047 $rm -r conftest 2>/dev/null 13048 mkdir conftest 13049 cd conftest 13050 mkdir out 13051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13052 13053 lt_compiler_flag="-o out/conftest2.$ac_objext" 13054 # Insert the option either (1) after the last *FLAGS variable, or 13055 # (2) before a word containing "conftest.", or (3) at the end. 13056 # Note that $ac_compile itself does not contain backslashes and begins 13057 # with a dollar sign (not a hyphen), so the echo should work correctly. 13058 lt_compile=`echo "$ac_compile" | $SED \ 13059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13061 -e 's:$: $lt_compiler_flag:'` 13062 (eval echo "\"\$as_me:13062: $lt_compile\"" >&5) 13063 (eval "$lt_compile" 2>out/conftest.err) 13064 ac_status=$? 13065 cat out/conftest.err >&5 13066 echo "$as_me:13066: \$? = $ac_status" >&5 13067 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13068 then 13069 # The compiler can only warn and ignore the option if not recognized 13070 # So say no if there are warnings 13071 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13074 lt_cv_prog_compiler_c_o_CXX=yes 13075 fi 13076 fi 13077 chmod u+w . 2>&5 13078 $rm conftest* 13079 # SGI C++ compiler will create directory out/ii_files/ for 13080 # template instantiation 13081 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13082 $rm out/* && rmdir out 13083 cd .. 13084 rmdir conftest 13085 $rm conftest* 13086 13087 fi 13088 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13089 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13090 13091 13092 hard_links="nottested" 13093 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13094 # do not overwrite the value of need_locks provided by the user 13095 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13096 $as_echo_n "checking if we can lock with hard links... " >&6; } 13097 hard_links=yes 13098 $rm conftest* 13099 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13100 touch conftest.a 13101 ln conftest.a conftest.b 2>&5 || hard_links=no 13102 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13103 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13104 $as_echo "$hard_links" >&6; } 13105 if test "$hard_links" = no; then 13106 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13107 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13108 need_locks=warn 13109 fi 13110 else 13111 need_locks=no 13112 fi 13113 13114 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13115 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13116 13117 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13118 case $host_os in 13119 aix[4-9]*) 13120 # If we're using GNU nm, then we don't want the "-C" option. 13121 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13122 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13123 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' 13124 else 13125 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' 13126 fi 13127 ;; 13128 pw32*) 13129 export_symbols_cmds_CXX="$ltdll_cmds" 13130 ;; 13131 cygwin* | mingw*) 13132 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' 13133 ;; 13134 *) 13135 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13136 ;; 13137 esac 13138 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13139 13140 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13141 $as_echo "$ld_shlibs_CXX" >&6; } 13142 test "$ld_shlibs_CXX" = no && can_build_shared=no 13143 13144 # 13145 # Do we need to explicitly link libc? 13146 # 13147 case "x$archive_cmds_need_lc_CXX" in 13148 x|xyes) 13149 # Assume -lc should be added 13150 archive_cmds_need_lc_CXX=yes 13151 13152 if test "$enable_shared" = yes && test "$GCC" = yes; then 13153 case $archive_cmds_CXX in 13154 *'~'*) 13155 # FIXME: we may have to deal with multi-command sequences. 13156 ;; 13157 '$CC '*) 13158 # Test whether the compiler implicitly links with -lc since on some 13159 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13160 # to ld, don't add -lc before -lgcc. 13161 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13162 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13163 $rm conftest* 13164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13165 13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13167 (eval $ac_compile) 2>&5 13168 ac_status=$? 13169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13170 (exit $ac_status); } 2>conftest.err; then 13171 soname=conftest 13172 lib=conftest 13173 libobjs=conftest.$ac_objext 13174 deplibs= 13175 wl=$lt_prog_compiler_wl_CXX 13176 pic_flag=$lt_prog_compiler_pic_CXX 13177 compiler_flags=-v 13178 linker_flags=-v 13179 verstring= 13180 output_objdir=. 13181 libname=conftest 13182 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13183 allow_undefined_flag_CXX= 13184 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13185 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13186 ac_status=$? 13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13188 (exit $ac_status); } 13189 then 13190 archive_cmds_need_lc_CXX=no 13191 else 13192 archive_cmds_need_lc_CXX=yes 13193 fi 13194 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13195 else 13196 cat conftest.err 1>&5 13197 fi 13198 $rm conftest* 13199 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13200 $as_echo "$archive_cmds_need_lc_CXX" >&6; } 13201 ;; 13202 esac 13203 fi 13204 ;; 13205 esac 13206 13207 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13208 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13209 library_names_spec= 13210 libname_spec='lib$name' 13211 soname_spec= 13212 shrext_cmds=".so" 13213 postinstall_cmds= 13214 postuninstall_cmds= 13215 finish_cmds= 13216 finish_eval= 13217 shlibpath_var= 13218 shlibpath_overrides_runpath=unknown 13219 version_type=none 13220 dynamic_linker="$host_os ld.so" 13221 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13222 13223 need_lib_prefix=unknown 13224 hardcode_into_libs=no 13225 13226 # when you set need_version to no, make sure it does not cause -set_version 13227 # flags to be left without arguments 13228 need_version=unknown 13229 13230 case $host_os in 13231 aix3*) 13232 version_type=linux 13233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13234 shlibpath_var=LIBPATH 13235 13236 # AIX 3 has no versioning support, so we append a major version to the name. 13237 soname_spec='${libname}${release}${shared_ext}$major' 13238 ;; 13239 13240 aix[4-9]*) 13241 version_type=linux 13242 need_lib_prefix=no 13243 need_version=no 13244 hardcode_into_libs=yes 13245 if test "$host_cpu" = ia64; then 13246 # AIX 5 supports IA64 13247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13248 shlibpath_var=LD_LIBRARY_PATH 13249 else 13250 # With GCC up to 2.95.x, collect2 would create an import file 13251 # for dependence libraries. The import file would start with 13252 # the line `#! .'. This would cause the generated library to 13253 # depend on `.', always an invalid library. This was fixed in 13254 # development snapshots of GCC prior to 3.0. 13255 case $host_os in 13256 aix4 | aix4.[01] | aix4.[01].*) 13257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13258 echo ' yes ' 13259 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13260 : 13261 else 13262 can_build_shared=no 13263 fi 13264 ;; 13265 esac 13266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13267 # soname into executable. Probably we can add versioning support to 13268 # collect2, so additional links can be useful in future. 13269 if test "$aix_use_runtimelinking" = yes; then 13270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13271 # instead of lib<name>.a to let people know that these are not 13272 # typical AIX shared libraries. 13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13274 else 13275 # We preserve .a as extension for shared libraries through AIX4.2 13276 # and later when we are not doing run time linking. 13277 library_names_spec='${libname}${release}.a $libname.a' 13278 soname_spec='${libname}${release}${shared_ext}$major' 13279 fi 13280 shlibpath_var=LIBPATH 13281 fi 13282 ;; 13283 13284 amigaos*) 13285 library_names_spec='$libname.ixlibrary $libname.a' 13286 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13287 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' 13288 ;; 13289 13290 beos*) 13291 library_names_spec='${libname}${shared_ext}' 13292 dynamic_linker="$host_os ld.so" 13293 shlibpath_var=LIBRARY_PATH 13294 ;; 13295 13296 bsdi[45]*) 13297 version_type=linux 13298 need_version=no 13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13300 soname_spec='${libname}${release}${shared_ext}$major' 13301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13302 shlibpath_var=LD_LIBRARY_PATH 13303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13305 # the default ld.so.conf also contains /usr/contrib/lib and 13306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13307 # libtool to hard-code these into programs 13308 ;; 13309 13310 cygwin* | mingw* | pw32*) 13311 version_type=windows 13312 shrext_cmds=".dll" 13313 need_version=no 13314 need_lib_prefix=no 13315 13316 case $GCC,$host_os in 13317 yes,cygwin* | yes,mingw* | yes,pw32*) 13318 library_names_spec='$libname.dll.a' 13319 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13320 postinstall_cmds='base_file=`basename \${file}`~ 13321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13322 dldir=$destdir/`dirname \$dlpath`~ 13323 test -d \$dldir || mkdir -p \$dldir~ 13324 $install_prog $dir/$dlname \$dldir/$dlname~ 13325 chmod a+x \$dldir/$dlname' 13326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13327 dlpath=$dir/\$dldll~ 13328 $rm \$dlpath' 13329 shlibpath_overrides_runpath=yes 13330 13331 case $host_os in 13332 cygwin*) 13333 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13334 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13335 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13336 ;; 13337 mingw*) 13338 # MinGW DLLs use traditional 'lib' prefix 13339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13340 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13341 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13342 # It is most probably a Windows format PATH printed by 13343 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13344 # path with ; separators, and with drive letters. We can handle the 13345 # drive letters (cygwin fileutils understands them), so leave them, 13346 # especially as we might pass files found there to a mingw objdump, 13347 # which wouldn't understand a cygwinified path. Ahh. 13348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13349 else 13350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13351 fi 13352 ;; 13353 pw32*) 13354 # pw32 DLLs use 'pw' prefix rather than 'lib' 13355 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13356 ;; 13357 esac 13358 ;; 13359 13360 *) 13361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13362 ;; 13363 esac 13364 dynamic_linker='Win32 ld.exe' 13365 # FIXME: first we should search . and the directory the executable is in 13366 shlibpath_var=PATH 13367 ;; 13368 13369 darwin* | rhapsody*) 13370 dynamic_linker="$host_os dyld" 13371 version_type=darwin 13372 need_lib_prefix=no 13373 need_version=no 13374 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13375 soname_spec='${libname}${release}${major}$shared_ext' 13376 shlibpath_overrides_runpath=yes 13377 shlibpath_var=DYLD_LIBRARY_PATH 13378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13379 13380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13381 ;; 13382 13383 dgux*) 13384 version_type=linux 13385 need_lib_prefix=no 13386 need_version=no 13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13388 soname_spec='${libname}${release}${shared_ext}$major' 13389 shlibpath_var=LD_LIBRARY_PATH 13390 ;; 13391 13392 freebsd1*) 13393 dynamic_linker=no 13394 ;; 13395 13396 freebsd* | dragonfly*) 13397 # DragonFly does not have aout. When/if they implement a new 13398 # versioning mechanism, adjust this. 13399 if test -x /usr/bin/objformat; then 13400 objformat=`/usr/bin/objformat` 13401 else 13402 case $host_os in 13403 freebsd[123]*) objformat=aout ;; 13404 *) objformat=elf ;; 13405 esac 13406 fi 13407 version_type=freebsd-$objformat 13408 case $version_type in 13409 freebsd-elf*) 13410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13411 need_version=no 13412 need_lib_prefix=no 13413 ;; 13414 freebsd-*) 13415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13416 need_version=yes 13417 ;; 13418 esac 13419 shlibpath_var=LD_LIBRARY_PATH 13420 case $host_os in 13421 freebsd2*) 13422 shlibpath_overrides_runpath=yes 13423 ;; 13424 freebsd3.[01]* | freebsdelf3.[01]*) 13425 shlibpath_overrides_runpath=yes 13426 hardcode_into_libs=yes 13427 ;; 13428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13430 shlibpath_overrides_runpath=no 13431 hardcode_into_libs=yes 13432 ;; 13433 *) # from 4.6 on, and DragonFly 13434 shlibpath_overrides_runpath=yes 13435 hardcode_into_libs=yes 13436 ;; 13437 esac 13438 ;; 13439 13440 gnu*) 13441 version_type=linux 13442 need_lib_prefix=no 13443 need_version=no 13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13445 soname_spec='${libname}${release}${shared_ext}$major' 13446 shlibpath_var=LD_LIBRARY_PATH 13447 hardcode_into_libs=yes 13448 ;; 13449 13450 hpux9* | hpux10* | hpux11*) 13451 # Give a soname corresponding to the major version so that dld.sl refuses to 13452 # link against other versions. 13453 version_type=sunos 13454 need_lib_prefix=no 13455 need_version=no 13456 case $host_cpu in 13457 ia64*) 13458 shrext_cmds='.so' 13459 hardcode_into_libs=yes 13460 dynamic_linker="$host_os dld.so" 13461 shlibpath_var=LD_LIBRARY_PATH 13462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13464 soname_spec='${libname}${release}${shared_ext}$major' 13465 if test "X$HPUX_IA64_MODE" = X32; then 13466 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13467 else 13468 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13469 fi 13470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13471 ;; 13472 hppa*64*) 13473 shrext_cmds='.sl' 13474 hardcode_into_libs=yes 13475 dynamic_linker="$host_os dld.sl" 13476 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13477 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13479 soname_spec='${libname}${release}${shared_ext}$major' 13480 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13482 ;; 13483 *) 13484 shrext_cmds='.sl' 13485 dynamic_linker="$host_os dld.sl" 13486 shlibpath_var=SHLIB_PATH 13487 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13489 soname_spec='${libname}${release}${shared_ext}$major' 13490 ;; 13491 esac 13492 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13493 postinstall_cmds='chmod 555 $lib' 13494 ;; 13495 13496 interix[3-9]*) 13497 version_type=linux 13498 need_lib_prefix=no 13499 need_version=no 13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13501 soname_spec='${libname}${release}${shared_ext}$major' 13502 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13503 shlibpath_var=LD_LIBRARY_PATH 13504 shlibpath_overrides_runpath=no 13505 hardcode_into_libs=yes 13506 ;; 13507 13508 irix5* | irix6* | nonstopux*) 13509 case $host_os in 13510 nonstopux*) version_type=nonstopux ;; 13511 *) 13512 if test "$lt_cv_prog_gnu_ld" = yes; then 13513 version_type=linux 13514 else 13515 version_type=irix 13516 fi ;; 13517 esac 13518 need_lib_prefix=no 13519 need_version=no 13520 soname_spec='${libname}${release}${shared_ext}$major' 13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13522 case $host_os in 13523 irix5* | nonstopux*) 13524 libsuff= shlibsuff= 13525 ;; 13526 *) 13527 case $LD in # libtool.m4 will add one of these switches to LD 13528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13529 libsuff= shlibsuff= libmagic=32-bit;; 13530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13531 libsuff=32 shlibsuff=N32 libmagic=N32;; 13532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13533 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13534 *) libsuff= shlibsuff= libmagic=never-match;; 13535 esac 13536 ;; 13537 esac 13538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13539 shlibpath_overrides_runpath=no 13540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13542 hardcode_into_libs=yes 13543 ;; 13544 13545 # No shared lib support for Linux oldld, aout, or coff. 13546 linux*oldld* | linux*aout* | linux*coff*) 13547 dynamic_linker=no 13548 ;; 13549 13550 # This must be Linux ELF. 13551 linux* | k*bsd*-gnu) 13552 version_type=linux 13553 need_lib_prefix=no 13554 need_version=no 13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13556 soname_spec='${libname}${release}${shared_ext}$major' 13557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13558 shlibpath_var=LD_LIBRARY_PATH 13559 shlibpath_overrides_runpath=no 13560 # This implies no fast_install, which is unacceptable. 13561 # Some rework will be needed to allow for fast_install 13562 # before this can be enabled. 13563 hardcode_into_libs=yes 13564 13565 # Append ld.so.conf contents to the search path 13566 if test -f /etc/ld.so.conf; then 13567 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13568 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13569 fi 13570 13571 # We used to test for /lib/ld.so.1 and disable shared libraries on 13572 # powerpc, because MkLinux only supported shared libraries with the 13573 # GNU dynamic linker. Since this was broken with cross compilers, 13574 # most powerpc-linux boxes support dynamic linking these days and 13575 # people can always --disable-shared, the test was removed, and we 13576 # assume the GNU/Linux dynamic linker is in use. 13577 dynamic_linker='GNU/Linux ld.so' 13578 ;; 13579 13580 netbsd*) 13581 version_type=sunos 13582 need_lib_prefix=no 13583 need_version=no 13584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13587 dynamic_linker='NetBSD (a.out) ld.so' 13588 else 13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13590 soname_spec='${libname}${release}${shared_ext}$major' 13591 dynamic_linker='NetBSD ld.elf_so' 13592 fi 13593 shlibpath_var=LD_LIBRARY_PATH 13594 shlibpath_overrides_runpath=yes 13595 hardcode_into_libs=yes 13596 ;; 13597 13598 newsos6) 13599 version_type=linux 13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13601 shlibpath_var=LD_LIBRARY_PATH 13602 shlibpath_overrides_runpath=yes 13603 ;; 13604 13605 nto-qnx*) 13606 version_type=linux 13607 need_lib_prefix=no 13608 need_version=no 13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13610 soname_spec='${libname}${release}${shared_ext}$major' 13611 shlibpath_var=LD_LIBRARY_PATH 13612 shlibpath_overrides_runpath=yes 13613 ;; 13614 13615 openbsd*) 13616 version_type=sunos 13617 sys_lib_dlsearch_path_spec="/usr/lib" 13618 need_lib_prefix=no 13619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13620 case $host_os in 13621 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13622 *) need_version=no ;; 13623 esac 13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13626 shlibpath_var=LD_LIBRARY_PATH 13627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13628 case $host_os in 13629 openbsd2.[89] | openbsd2.[89].*) 13630 shlibpath_overrides_runpath=no 13631 ;; 13632 *) 13633 shlibpath_overrides_runpath=yes 13634 ;; 13635 esac 13636 else 13637 shlibpath_overrides_runpath=yes 13638 fi 13639 ;; 13640 13641 os2*) 13642 libname_spec='$name' 13643 shrext_cmds=".dll" 13644 need_lib_prefix=no 13645 library_names_spec='$libname${shared_ext} $libname.a' 13646 dynamic_linker='OS/2 ld.exe' 13647 shlibpath_var=LIBPATH 13648 ;; 13649 13650 osf3* | osf4* | osf5*) 13651 version_type=osf 13652 need_lib_prefix=no 13653 need_version=no 13654 soname_spec='${libname}${release}${shared_ext}$major' 13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13656 shlibpath_var=LD_LIBRARY_PATH 13657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13659 ;; 13660 13661 rdos*) 13662 dynamic_linker=no 13663 ;; 13664 13665 solaris*) 13666 version_type=linux 13667 need_lib_prefix=no 13668 need_version=no 13669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13670 soname_spec='${libname}${release}${shared_ext}$major' 13671 shlibpath_var=LD_LIBRARY_PATH 13672 shlibpath_overrides_runpath=yes 13673 hardcode_into_libs=yes 13674 # ldd complains unless libraries are executable 13675 postinstall_cmds='chmod +x $lib' 13676 ;; 13677 13678 sunos4*) 13679 version_type=sunos 13680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13682 shlibpath_var=LD_LIBRARY_PATH 13683 shlibpath_overrides_runpath=yes 13684 if test "$with_gnu_ld" = yes; then 13685 need_lib_prefix=no 13686 fi 13687 need_version=yes 13688 ;; 13689 13690 sysv4 | sysv4.3*) 13691 version_type=linux 13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13693 soname_spec='${libname}${release}${shared_ext}$major' 13694 shlibpath_var=LD_LIBRARY_PATH 13695 case $host_vendor in 13696 sni) 13697 shlibpath_overrides_runpath=no 13698 need_lib_prefix=no 13699 export_dynamic_flag_spec='${wl}-Blargedynsym' 13700 runpath_var=LD_RUN_PATH 13701 ;; 13702 siemens) 13703 need_lib_prefix=no 13704 ;; 13705 motorola) 13706 need_lib_prefix=no 13707 need_version=no 13708 shlibpath_overrides_runpath=no 13709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13710 ;; 13711 esac 13712 ;; 13713 13714 sysv4*MP*) 13715 if test -d /usr/nec ;then 13716 version_type=linux 13717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13718 soname_spec='$libname${shared_ext}.$major' 13719 shlibpath_var=LD_LIBRARY_PATH 13720 fi 13721 ;; 13722 13723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13724 version_type=freebsd-elf 13725 need_lib_prefix=no 13726 need_version=no 13727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13728 soname_spec='${libname}${release}${shared_ext}$major' 13729 shlibpath_var=LD_LIBRARY_PATH 13730 hardcode_into_libs=yes 13731 if test "$with_gnu_ld" = yes; then 13732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13733 shlibpath_overrides_runpath=no 13734 else 13735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13736 shlibpath_overrides_runpath=yes 13737 case $host_os in 13738 sco3.2v5*) 13739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13740 ;; 13741 esac 13742 fi 13743 sys_lib_dlsearch_path_spec='/usr/lib' 13744 ;; 13745 13746 uts4*) 13747 version_type=linux 13748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13749 soname_spec='${libname}${release}${shared_ext}$major' 13750 shlibpath_var=LD_LIBRARY_PATH 13751 ;; 13752 13753 *) 13754 dynamic_linker=no 13755 ;; 13756 esac 13757 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13758 $as_echo "$dynamic_linker" >&6; } 13759 test "$dynamic_linker" = no && can_build_shared=no 13760 13761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13762 $as_echo_n "(cached) " >&6 13763 else 13764 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13765 fi 13766 13767 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13768 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13769 $as_echo_n "(cached) " >&6 13770 else 13771 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13772 fi 13773 13774 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13775 13776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13777 if test "$GCC" = yes; then 13778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13779 fi 13780 13781 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13782 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13783 hardcode_action_CXX= 13784 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13785 test -n "$runpath_var_CXX" || \ 13786 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13787 13788 # We can hardcode non-existant directories. 13789 if test "$hardcode_direct_CXX" != no && 13790 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13791 # have to relink, otherwise we might link with an installed library 13792 # when we should be linking with a yet-to-be-installed one 13793 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13794 test "$hardcode_minus_L_CXX" != no; then 13795 # Linking always hardcodes the temporary library directory. 13796 hardcode_action_CXX=relink 13797 else 13798 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13799 hardcode_action_CXX=immediate 13800 fi 13801 else 13802 # We cannot hardcode anything, or else we can only hardcode existing 13803 # directories. 13804 hardcode_action_CXX=unsupported 13805 fi 13806 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13807 $as_echo "$hardcode_action_CXX" >&6; } 13808 13809 if test "$hardcode_action_CXX" = relink; then 13810 # Fast installation is not supported 13811 enable_fast_install=no 13812 elif test "$shlibpath_overrides_runpath" = yes || 13813 test "$enable_shared" = no; then 13814 # Fast installation is not necessary 13815 enable_fast_install=needless 13816 fi 13817 13818 13819 # The else clause should only fire when bootstrapping the 13820 # libtool distribution, otherwise you forgot to ship ltmain.sh 13821 # with your package, and you will get complaints that there are 13822 # no rules to generate ltmain.sh. 13823 if test -f "$ltmain"; then 13824 # See if we are running on zsh, and set the options which allow our commands through 13825 # without removal of \ escapes. 13826 if test -n "${ZSH_VERSION+set}" ; then 13827 setopt NO_GLOB_SUBST 13828 fi 13829 # Now quote all the things that may contain metacharacters while being 13830 # careful not to overquote the AC_SUBSTed values. We take copies of the 13831 # variables and quote the copies for generation of the libtool script. 13832 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13833 SED SHELL STRIP \ 13834 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13835 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13836 deplibs_check_method reload_flag reload_cmds need_locks \ 13837 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13838 lt_cv_sys_global_symbol_to_c_name_address \ 13839 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13840 old_postinstall_cmds old_postuninstall_cmds \ 13841 compiler_CXX \ 13842 CC_CXX \ 13843 LD_CXX \ 13844 lt_prog_compiler_wl_CXX \ 13845 lt_prog_compiler_pic_CXX \ 13846 lt_prog_compiler_static_CXX \ 13847 lt_prog_compiler_no_builtin_flag_CXX \ 13848 export_dynamic_flag_spec_CXX \ 13849 thread_safe_flag_spec_CXX \ 13850 whole_archive_flag_spec_CXX \ 13851 enable_shared_with_static_runtimes_CXX \ 13852 old_archive_cmds_CXX \ 13853 old_archive_from_new_cmds_CXX \ 13854 predep_objects_CXX \ 13855 postdep_objects_CXX \ 13856 predeps_CXX \ 13857 postdeps_CXX \ 13858 compiler_lib_search_path_CXX \ 13859 compiler_lib_search_dirs_CXX \ 13860 archive_cmds_CXX \ 13861 archive_expsym_cmds_CXX \ 13862 postinstall_cmds_CXX \ 13863 postuninstall_cmds_CXX \ 13864 old_archive_from_expsyms_cmds_CXX \ 13865 allow_undefined_flag_CXX \ 13866 no_undefined_flag_CXX \ 13867 export_symbols_cmds_CXX \ 13868 hardcode_libdir_flag_spec_CXX \ 13869 hardcode_libdir_flag_spec_ld_CXX \ 13870 hardcode_libdir_separator_CXX \ 13871 hardcode_automatic_CXX \ 13872 module_cmds_CXX \ 13873 module_expsym_cmds_CXX \ 13874 lt_cv_prog_compiler_c_o_CXX \ 13875 fix_srcfile_path_CXX \ 13876 exclude_expsyms_CXX \ 13877 include_expsyms_CXX; do 13878 13879 case $var in 13880 old_archive_cmds_CXX | \ 13881 old_archive_from_new_cmds_CXX | \ 13882 archive_cmds_CXX | \ 13883 archive_expsym_cmds_CXX | \ 13884 module_cmds_CXX | \ 13885 module_expsym_cmds_CXX | \ 13886 old_archive_from_expsyms_cmds_CXX | \ 13887 export_symbols_cmds_CXX | \ 13888 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13889 postinstall_cmds | postuninstall_cmds | \ 13890 old_postinstall_cmds | old_postuninstall_cmds | \ 13891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13892 # Double-quote double-evaled strings. 13893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13894 ;; 13895 *) 13896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13897 ;; 13898 esac 13899 done 13900 13901 case $lt_echo in 13902 *'\$0 --fallback-echo"') 13903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13904 ;; 13905 esac 13906 13907 cfgfile="$ofile" 13908 13909 cat <<__EOF__ >> "$cfgfile" 13910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 13911 13912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13913 13914 # Shell to use when invoking shell scripts. 13915 SHELL=$lt_SHELL 13916 13917 # Whether or not to build shared libraries. 13918 build_libtool_libs=$enable_shared 13919 13920 # Whether or not to build static libraries. 13921 build_old_libs=$enable_static 13922 13923 # Whether or not to add -lc for building shared libraries. 13924 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13925 13926 # Whether or not to disallow shared libs when runtime libs are static 13927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13928 13929 # Whether or not to optimize for fast installation. 13930 fast_install=$enable_fast_install 13931 13932 # The host system. 13933 host_alias=$host_alias 13934 host=$host 13935 host_os=$host_os 13936 13937 # The build system. 13938 build_alias=$build_alias 13939 build=$build 13940 build_os=$build_os 13941 13942 # An echo program that does not interpret backslashes. 13943 echo=$lt_echo 13944 13945 # The archiver. 13946 AR=$lt_AR 13947 AR_FLAGS=$lt_AR_FLAGS 13948 13949 # A C compiler. 13950 LTCC=$lt_LTCC 13951 13952 # LTCC compiler flags. 13953 LTCFLAGS=$lt_LTCFLAGS 13954 13955 # A language-specific compiler. 13956 CC=$lt_compiler_CXX 13957 13958 # Is the compiler the GNU C compiler? 13959 with_gcc=$GCC_CXX 13960 13961 # An ERE matcher. 13962 EGREP=$lt_EGREP 13963 13964 # The linker used to build libraries. 13965 LD=$lt_LD_CXX 13966 13967 # Whether we need hard or soft links. 13968 LN_S=$lt_LN_S 13969 13970 # A BSD-compatible nm program. 13971 NM=$lt_NM 13972 13973 # A symbol stripping program 13974 STRIP=$lt_STRIP 13975 13976 # Used to examine libraries when file_magic_cmd begins "file" 13977 MAGIC_CMD=$MAGIC_CMD 13978 13979 # Used on cygwin: DLL creation program. 13980 DLLTOOL="$DLLTOOL" 13981 13982 # Used on cygwin: object dumper. 13983 OBJDUMP="$OBJDUMP" 13984 13985 # Used on cygwin: assembler. 13986 AS="$AS" 13987 13988 # The name of the directory that contains temporary libtool files. 13989 objdir=$objdir 13990 13991 # How to create reloadable object files. 13992 reload_flag=$lt_reload_flag 13993 reload_cmds=$lt_reload_cmds 13994 13995 # How to pass a linker flag through the compiler. 13996 wl=$lt_lt_prog_compiler_wl_CXX 13997 13998 # Object file suffix (normally "o"). 13999 objext="$ac_objext" 14000 14001 # Old archive suffix (normally "a"). 14002 libext="$libext" 14003 14004 # Shared library suffix (normally ".so"). 14005 shrext_cmds='$shrext_cmds' 14006 14007 # Executable file suffix (normally ""). 14008 exeext="$exeext" 14009 14010 # Additional compiler flags for building library objects. 14011 pic_flag=$lt_lt_prog_compiler_pic_CXX 14012 pic_mode=$pic_mode 14013 14014 # What is the maximum length of a command? 14015 max_cmd_len=$lt_cv_sys_max_cmd_len 14016 14017 # Does compiler simultaneously support -c and -o options? 14018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14019 14020 # Must we lock files when doing compilation? 14021 need_locks=$lt_need_locks 14022 14023 # Do we need the lib prefix for modules? 14024 need_lib_prefix=$need_lib_prefix 14025 14026 # Do we need a version for libraries? 14027 need_version=$need_version 14028 14029 # Whether dlopen is supported. 14030 dlopen_support=$enable_dlopen 14031 14032 # Whether dlopen of programs is supported. 14033 dlopen_self=$enable_dlopen_self 14034 14035 # Whether dlopen of statically linked programs is supported. 14036 dlopen_self_static=$enable_dlopen_self_static 14037 14038 # Compiler flag to prevent dynamic linking. 14039 link_static_flag=$lt_lt_prog_compiler_static_CXX 14040 14041 # Compiler flag to turn off builtin functions. 14042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14043 14044 # Compiler flag to allow reflexive dlopens. 14045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14046 14047 # Compiler flag to generate shared objects directly from archives. 14048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14049 14050 # Compiler flag to generate thread-safe objects. 14051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14052 14053 # Library versioning type. 14054 version_type=$version_type 14055 14056 # Format of library name prefix. 14057 libname_spec=$lt_libname_spec 14058 14059 # List of archive names. First name is the real one, the rest are links. 14060 # The last name is the one that the linker finds with -lNAME. 14061 library_names_spec=$lt_library_names_spec 14062 14063 # The coded name of the library, if different from the real name. 14064 soname_spec=$lt_soname_spec 14065 14066 # Commands used to build and install an old-style archive. 14067 RANLIB=$lt_RANLIB 14068 old_archive_cmds=$lt_old_archive_cmds_CXX 14069 old_postinstall_cmds=$lt_old_postinstall_cmds 14070 old_postuninstall_cmds=$lt_old_postuninstall_cmds 14071 14072 # Create an old-style archive from a shared archive. 14073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14074 14075 # Create a temporary old-style archive to link instead of a shared archive. 14076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14077 14078 # Commands used to build and install a shared archive. 14079 archive_cmds=$lt_archive_cmds_CXX 14080 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14081 postinstall_cmds=$lt_postinstall_cmds 14082 postuninstall_cmds=$lt_postuninstall_cmds 14083 14084 # Commands used to build a loadable module (assumed same as above if empty) 14085 module_cmds=$lt_module_cmds_CXX 14086 module_expsym_cmds=$lt_module_expsym_cmds_CXX 14087 14088 # Commands to strip libraries. 14089 old_striplib=$lt_old_striplib 14090 striplib=$lt_striplib 14091 14092 # Dependencies to place before the objects being linked to create a 14093 # shared library. 14094 predep_objects=$lt_predep_objects_CXX 14095 14096 # Dependencies to place after the objects being linked to create a 14097 # shared library. 14098 postdep_objects=$lt_postdep_objects_CXX 14099 14100 # Dependencies to place before the objects being linked to create a 14101 # shared library. 14102 predeps=$lt_predeps_CXX 14103 14104 # Dependencies to place after the objects being linked to create a 14105 # shared library. 14106 postdeps=$lt_postdeps_CXX 14107 14108 # The directories searched by this compiler when creating a shared 14109 # library 14110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14111 14112 # The library search path used internally by the compiler when linking 14113 # a shared library. 14114 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14115 14116 # Method to check whether dependent libraries are shared objects. 14117 deplibs_check_method=$lt_deplibs_check_method 14118 14119 # Command to use when deplibs_check_method == file_magic. 14120 file_magic_cmd=$lt_file_magic_cmd 14121 14122 # Flag that allows shared libraries with undefined symbols to be built. 14123 allow_undefined_flag=$lt_allow_undefined_flag_CXX 14124 14125 # Flag that forces no undefined symbols. 14126 no_undefined_flag=$lt_no_undefined_flag_CXX 14127 14128 # Commands used to finish a libtool library installation in a directory. 14129 finish_cmds=$lt_finish_cmds 14130 14131 # Same as above, but a single script fragment to be evaled but not shown. 14132 finish_eval=$lt_finish_eval 14133 14134 # Take the output of nm and produce a listing of raw symbols and C names. 14135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14136 14137 # Transform the output of nm in a proper C declaration 14138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14139 14140 # Transform the output of nm in a C name address pair 14141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14142 14143 # This is the shared library runtime path variable. 14144 runpath_var=$runpath_var 14145 14146 # This is the shared library path variable. 14147 shlibpath_var=$shlibpath_var 14148 14149 # Is shlibpath searched before the hard-coded library search path? 14150 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14151 14152 # How to hardcode a shared library path into an executable. 14153 hardcode_action=$hardcode_action_CXX 14154 14155 # Whether we should hardcode library paths into libraries. 14156 hardcode_into_libs=$hardcode_into_libs 14157 14158 # Flag to hardcode \$libdir into a binary during linking. 14159 # This must work even if \$libdir does not exist. 14160 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14161 14162 # If ld is used when linking, flag to hardcode \$libdir into 14163 # a binary during linking. This must work even if \$libdir does 14164 # not exist. 14165 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14166 14167 # Whether we need a single -rpath flag with a separated argument. 14168 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14169 14170 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14171 # resulting binary. 14172 hardcode_direct=$hardcode_direct_CXX 14173 14174 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14175 # resulting binary. 14176 hardcode_minus_L=$hardcode_minus_L_CXX 14177 14178 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14179 # the resulting binary. 14180 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14181 14182 # Set to yes if building a shared library automatically hardcodes DIR into the library 14183 # and all subsequent libraries and executables linked against it. 14184 hardcode_automatic=$hardcode_automatic_CXX 14185 14186 # Variables whose values should be saved in libtool wrapper scripts and 14187 # restored at relink time. 14188 variables_saved_for_relink="$variables_saved_for_relink" 14189 14190 # Whether libtool must link a program against all its dependency libraries. 14191 link_all_deplibs=$link_all_deplibs_CXX 14192 14193 # Compile-time system search path for libraries 14194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14195 14196 # Run-time system search path for libraries 14197 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14198 14199 # Fix the shell variable \$srcfile for the compiler. 14200 fix_srcfile_path=$lt_fix_srcfile_path 14201 14202 # Set to yes if exported symbols are required. 14203 always_export_symbols=$always_export_symbols_CXX 14204 14205 # The commands to list exported symbols. 14206 export_symbols_cmds=$lt_export_symbols_cmds_CXX 14207 14208 # The commands to extract the exported symbol list from a shared archive. 14209 extract_expsyms_cmds=$lt_extract_expsyms_cmds 14210 14211 # Symbols that should not be listed in the preloaded symbols. 14212 exclude_expsyms=$lt_exclude_expsyms_CXX 14213 14214 # Symbols that must always be exported. 14215 include_expsyms=$lt_include_expsyms_CXX 14216 14217 # ### END LIBTOOL TAG CONFIG: $tagname 14218 14219 __EOF__ 14220 14221 14222 else 14223 # If there is no Makefile yet, we rely on a make rule to execute 14224 # `config.status --recheck' to rerun these tests and create the 14225 # libtool script then. 14226 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14227 if test -f "$ltmain_in"; then 14228 test -f Makefile && make "$ltmain" 14229 fi 14230 fi 14231 14232 14233 ac_ext=c 14234 ac_cpp='$CPP $CPPFLAGS' 14235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14237 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14238 14239 CC=$lt_save_CC 14240 LDCXX=$LD 14241 LD=$lt_save_LD 14242 GCC=$lt_save_GCC 14243 with_gnu_ldcxx=$with_gnu_ld 14244 with_gnu_ld=$lt_save_with_gnu_ld 14245 lt_cv_path_LDCXX=$lt_cv_path_LD 14246 lt_cv_path_LD=$lt_save_path_LD 14247 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14248 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14249 14250 else 14251 tagname="" 14252 fi 14253 ;; 14254 14255 F77) 14256 if test -n "$F77" && test "X$F77" != "Xno"; then 14257 14258 ac_ext=f 14259 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14260 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14261 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14262 14263 14264 archive_cmds_need_lc_F77=no 14265 allow_undefined_flag_F77= 14266 always_export_symbols_F77=no 14267 archive_expsym_cmds_F77= 14268 export_dynamic_flag_spec_F77= 14269 hardcode_direct_F77=no 14270 hardcode_libdir_flag_spec_F77= 14271 hardcode_libdir_flag_spec_ld_F77= 14272 hardcode_libdir_separator_F77= 14273 hardcode_minus_L_F77=no 14274 hardcode_automatic_F77=no 14275 module_cmds_F77= 14276 module_expsym_cmds_F77= 14277 link_all_deplibs_F77=unknown 14278 old_archive_cmds_F77=$old_archive_cmds 14279 no_undefined_flag_F77= 14280 whole_archive_flag_spec_F77= 14281 enable_shared_with_static_runtimes_F77=no 14282 14283 # Source file extension for f77 test sources. 14284 ac_ext=f 14285 14286 # Object file extension for compiled f77 test sources. 14287 objext=o 14288 objext_F77=$objext 14289 14290 # Code to be used in simple compile tests 14291 lt_simple_compile_test_code="\ 14292 subroutine t 14293 return 14294 end 14295 " 14296 14297 # Code to be used in simple link tests 14298 lt_simple_link_test_code="\ 14299 program t 14300 end 14301 " 14302 14303 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14304 14305 # If no C compiler was specified, use CC. 14306 LTCC=${LTCC-"$CC"} 14307 14308 # If no C compiler flags were specified, use CFLAGS. 14309 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14310 14311 # Allow CC to be a program name with arguments. 14312 compiler=$CC 14313 14314 14315 # save warnings/boilerplate of simple test code 14316 ac_outfile=conftest.$ac_objext 14317 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14318 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14319 _lt_compiler_boilerplate=`cat conftest.err` 14320 $rm conftest* 14321 14322 ac_outfile=conftest.$ac_objext 14323 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14324 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14325 _lt_linker_boilerplate=`cat conftest.err` 14326 $rm -r conftest* 14327 14328 14329 # Allow CC to be a program name with arguments. 14330 lt_save_CC="$CC" 14331 CC=${F77-"f77"} 14332 compiler=$CC 14333 compiler_F77=$CC 14334 for cc_temp in $compiler""; do 14335 case $cc_temp in 14336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14338 \-*) ;; 14339 *) break;; 14340 esac 14341 done 14342 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14343 14344 14345 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14346 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 14347 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14348 $as_echo "$can_build_shared" >&6; } 14349 14350 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14351 $as_echo_n "checking whether to build shared libraries... " >&6; } 14352 test "$can_build_shared" = "no" && enable_shared=no 14353 14354 # On AIX, shared libraries and static libraries use the same namespace, and 14355 # are all built from PIC. 14356 case $host_os in 14357 aix3*) 14358 test "$enable_shared" = yes && enable_static=no 14359 if test -n "$RANLIB"; then 14360 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14361 postinstall_cmds='$RANLIB $lib' 14362 fi 14363 ;; 14364 aix[4-9]*) 14365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14366 test "$enable_shared" = yes && enable_static=no 14367 fi 14368 ;; 14369 esac 14370 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14371 $as_echo "$enable_shared" >&6; } 14372 14373 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14374 $as_echo_n "checking whether to build static libraries... " >&6; } 14375 # Make sure either enable_shared or enable_static is yes. 14376 test "$enable_shared" = yes || enable_static=yes 14377 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14378 $as_echo "$enable_static" >&6; } 14379 14380 GCC_F77="$G77" 14381 LD_F77="$LD" 14382 14383 lt_prog_compiler_wl_F77= 14384 lt_prog_compiler_pic_F77= 14385 lt_prog_compiler_static_F77= 14386 14387 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14388 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14389 14390 if test "$GCC" = yes; then 14391 lt_prog_compiler_wl_F77='-Wl,' 14392 lt_prog_compiler_static_F77='-static' 14393 14394 case $host_os in 14395 aix*) 14396 # All AIX code is PIC. 14397 if test "$host_cpu" = ia64; then 14398 # AIX 5 now supports IA64 processor 14399 lt_prog_compiler_static_F77='-Bstatic' 14400 fi 14401 ;; 14402 14403 amigaos*) 14404 # FIXME: we need at least 68020 code to build shared libraries, but 14405 # adding the `-m68020' flag to GCC prevents building anything better, 14406 # like `-m68040'. 14407 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14408 ;; 14409 14410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14411 # PIC is the default for these OSes. 14412 ;; 14413 14414 mingw* | cygwin* | pw32* | os2*) 14415 # This hack is so that the source file can tell whether it is being 14416 # built for inclusion in a dll (and should export symbols for example). 14417 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14418 # (--disable-auto-import) libraries 14419 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14420 ;; 14421 14422 darwin* | rhapsody*) 14423 # PIC is the default on this platform 14424 # Common symbols not allowed in MH_DYLIB files 14425 lt_prog_compiler_pic_F77='-fno-common' 14426 ;; 14427 14428 interix[3-9]*) 14429 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14430 # Instead, we relocate shared libraries at runtime. 14431 ;; 14432 14433 msdosdjgpp*) 14434 # Just because we use GCC doesn't mean we suddenly get shared libraries 14435 # on systems that don't support them. 14436 lt_prog_compiler_can_build_shared_F77=no 14437 enable_shared=no 14438 ;; 14439 14440 sysv4*MP*) 14441 if test -d /usr/nec; then 14442 lt_prog_compiler_pic_F77=-Kconform_pic 14443 fi 14444 ;; 14445 14446 hpux*) 14447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14448 # not for PA HP-UX. 14449 case $host_cpu in 14450 hppa*64*|ia64*) 14451 # +Z the default 14452 ;; 14453 *) 14454 lt_prog_compiler_pic_F77='-fPIC' 14455 ;; 14456 esac 14457 ;; 14458 14459 *) 14460 lt_prog_compiler_pic_F77='-fPIC' 14461 ;; 14462 esac 14463 else 14464 # PORTME Check for flag to pass linker flags through the system compiler. 14465 case $host_os in 14466 aix*) 14467 lt_prog_compiler_wl_F77='-Wl,' 14468 if test "$host_cpu" = ia64; then 14469 # AIX 5 now supports IA64 processor 14470 lt_prog_compiler_static_F77='-Bstatic' 14471 else 14472 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14473 fi 14474 ;; 14475 darwin*) 14476 # PIC is the default on this platform 14477 # Common symbols not allowed in MH_DYLIB files 14478 case $cc_basename in 14479 xlc*) 14480 lt_prog_compiler_pic_F77='-qnocommon' 14481 lt_prog_compiler_wl_F77='-Wl,' 14482 ;; 14483 esac 14484 ;; 14485 14486 mingw* | cygwin* | pw32* | os2*) 14487 # This hack is so that the source file can tell whether it is being 14488 # built for inclusion in a dll (and should export symbols for example). 14489 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14490 ;; 14491 14492 hpux9* | hpux10* | hpux11*) 14493 lt_prog_compiler_wl_F77='-Wl,' 14494 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14495 # not for PA HP-UX. 14496 case $host_cpu in 14497 hppa*64*|ia64*) 14498 # +Z the default 14499 ;; 14500 *) 14501 lt_prog_compiler_pic_F77='+Z' 14502 ;; 14503 esac 14504 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14505 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14506 ;; 14507 14508 irix5* | irix6* | nonstopux*) 14509 lt_prog_compiler_wl_F77='-Wl,' 14510 # PIC (with -KPIC) is the default. 14511 lt_prog_compiler_static_F77='-non_shared' 14512 ;; 14513 14514 newsos6) 14515 lt_prog_compiler_pic_F77='-KPIC' 14516 lt_prog_compiler_static_F77='-Bstatic' 14517 ;; 14518 14519 linux* | k*bsd*-gnu) 14520 case $cc_basename in 14521 icc* | ecc*) 14522 lt_prog_compiler_wl_F77='-Wl,' 14523 lt_prog_compiler_pic_F77='-KPIC' 14524 lt_prog_compiler_static_F77='-static' 14525 ;; 14526 pgcc* | pgf77* | pgf90* | pgf95*) 14527 # Portland Group compilers (*not* the Pentium gcc compiler, 14528 # which looks to be a dead project) 14529 lt_prog_compiler_wl_F77='-Wl,' 14530 lt_prog_compiler_pic_F77='-fpic' 14531 lt_prog_compiler_static_F77='-Bstatic' 14532 ;; 14533 ccc*) 14534 lt_prog_compiler_wl_F77='-Wl,' 14535 # All Alpha code is PIC. 14536 lt_prog_compiler_static_F77='-non_shared' 14537 ;; 14538 *) 14539 case `$CC -V 2>&1 | sed 5q` in 14540 *Sun\ C*) 14541 # Sun C 5.9 14542 lt_prog_compiler_pic_F77='-KPIC' 14543 lt_prog_compiler_static_F77='-Bstatic' 14544 lt_prog_compiler_wl_F77='-Wl,' 14545 ;; 14546 *Sun\ F*) 14547 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14548 lt_prog_compiler_pic_F77='-KPIC' 14549 lt_prog_compiler_static_F77='-Bstatic' 14550 lt_prog_compiler_wl_F77='' 14551 ;; 14552 esac 14553 ;; 14554 esac 14555 ;; 14556 14557 osf3* | osf4* | osf5*) 14558 lt_prog_compiler_wl_F77='-Wl,' 14559 # All OSF/1 code is PIC. 14560 lt_prog_compiler_static_F77='-non_shared' 14561 ;; 14562 14563 rdos*) 14564 lt_prog_compiler_static_F77='-non_shared' 14565 ;; 14566 14567 solaris*) 14568 lt_prog_compiler_pic_F77='-KPIC' 14569 lt_prog_compiler_static_F77='-Bstatic' 14570 case $cc_basename in 14571 f77* | f90* | f95*) 14572 lt_prog_compiler_wl_F77='-Qoption ld ';; 14573 *) 14574 lt_prog_compiler_wl_F77='-Wl,';; 14575 esac 14576 ;; 14577 14578 sunos4*) 14579 lt_prog_compiler_wl_F77='-Qoption ld ' 14580 lt_prog_compiler_pic_F77='-PIC' 14581 lt_prog_compiler_static_F77='-Bstatic' 14582 ;; 14583 14584 sysv4 | sysv4.2uw2* | sysv4.3*) 14585 lt_prog_compiler_wl_F77='-Wl,' 14586 lt_prog_compiler_pic_F77='-KPIC' 14587 lt_prog_compiler_static_F77='-Bstatic' 14588 ;; 14589 14590 sysv4*MP*) 14591 if test -d /usr/nec ;then 14592 lt_prog_compiler_pic_F77='-Kconform_pic' 14593 lt_prog_compiler_static_F77='-Bstatic' 14594 fi 14595 ;; 14596 14597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14598 lt_prog_compiler_wl_F77='-Wl,' 14599 lt_prog_compiler_pic_F77='-KPIC' 14600 lt_prog_compiler_static_F77='-Bstatic' 14601 ;; 14602 14603 unicos*) 14604 lt_prog_compiler_wl_F77='-Wl,' 14605 lt_prog_compiler_can_build_shared_F77=no 14606 ;; 14607 14608 uts4*) 14609 lt_prog_compiler_pic_F77='-pic' 14610 lt_prog_compiler_static_F77='-Bstatic' 14611 ;; 14612 14613 *) 14614 lt_prog_compiler_can_build_shared_F77=no 14615 ;; 14616 esac 14617 fi 14618 14619 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14620 $as_echo "$lt_prog_compiler_pic_F77" >&6; } 14621 14622 # 14623 # Check to make sure the PIC flag actually works. 14624 # 14625 if test -n "$lt_prog_compiler_pic_F77"; then 14626 14627 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14628 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14629 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14630 $as_echo_n "(cached) " >&6 14631 else 14632 lt_cv_prog_compiler_pic_works_F77=no 14633 ac_outfile=conftest.$ac_objext 14634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14635 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14636 # Insert the option either (1) after the last *FLAGS variable, or 14637 # (2) before a word containing "conftest.", or (3) at the end. 14638 # Note that $ac_compile itself does not contain backslashes and begins 14639 # with a dollar sign (not a hyphen), so the echo should work correctly. 14640 # The option is referenced via a variable to avoid confusing sed. 14641 lt_compile=`echo "$ac_compile" | $SED \ 14642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14644 -e 's:$: $lt_compiler_flag:'` 14645 (eval echo "\"\$as_me:14645: $lt_compile\"" >&5) 14646 (eval "$lt_compile" 2>conftest.err) 14647 ac_status=$? 14648 cat conftest.err >&5 14649 echo "$as_me:14649: \$? = $ac_status" >&5 14650 if (exit $ac_status) && test -s "$ac_outfile"; then 14651 # The compiler can only warn and ignore the option if not recognized 14652 # So say no if there are warnings other than the usual output. 14653 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14656 lt_cv_prog_compiler_pic_works_F77=yes 14657 fi 14658 fi 14659 $rm conftest* 14660 14661 fi 14662 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14663 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14664 14665 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14666 case $lt_prog_compiler_pic_F77 in 14667 "" | " "*) ;; 14668 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14669 esac 14670 else 14671 lt_prog_compiler_pic_F77= 14672 lt_prog_compiler_can_build_shared_F77=no 14673 fi 14674 14675 fi 14676 case $host_os in 14677 # For platforms which do not support PIC, -DPIC is meaningless: 14678 *djgpp*) 14679 lt_prog_compiler_pic_F77= 14680 ;; 14681 *) 14682 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14683 ;; 14684 esac 14685 14686 # 14687 # Check to make sure the static flag actually works. 14688 # 14689 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14690 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14691 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14692 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14693 $as_echo_n "(cached) " >&6 14694 else 14695 lt_cv_prog_compiler_static_works_F77=no 14696 save_LDFLAGS="$LDFLAGS" 14697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14698 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14700 # The linker can only warn and ignore the option if not recognized 14701 # So say no if there are warnings 14702 if test -s conftest.err; then 14703 # Append any errors to the config.log. 14704 cat conftest.err 1>&5 14705 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14707 if diff conftest.exp conftest.er2 >/dev/null; then 14708 lt_cv_prog_compiler_static_works_F77=yes 14709 fi 14710 else 14711 lt_cv_prog_compiler_static_works_F77=yes 14712 fi 14713 fi 14714 $rm -r conftest* 14715 LDFLAGS="$save_LDFLAGS" 14716 14717 fi 14718 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14719 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14720 14721 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14722 : 14723 else 14724 lt_prog_compiler_static_F77= 14725 fi 14726 14727 14728 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14730 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14731 $as_echo_n "(cached) " >&6 14732 else 14733 lt_cv_prog_compiler_c_o_F77=no 14734 $rm -r conftest 2>/dev/null 14735 mkdir conftest 14736 cd conftest 14737 mkdir out 14738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14739 14740 lt_compiler_flag="-o out/conftest2.$ac_objext" 14741 # Insert the option either (1) after the last *FLAGS variable, or 14742 # (2) before a word containing "conftest.", or (3) at the end. 14743 # Note that $ac_compile itself does not contain backslashes and begins 14744 # with a dollar sign (not a hyphen), so the echo should work correctly. 14745 lt_compile=`echo "$ac_compile" | $SED \ 14746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14748 -e 's:$: $lt_compiler_flag:'` 14749 (eval echo "\"\$as_me:14749: $lt_compile\"" >&5) 14750 (eval "$lt_compile" 2>out/conftest.err) 14751 ac_status=$? 14752 cat out/conftest.err >&5 14753 echo "$as_me:14753: \$? = $ac_status" >&5 14754 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14755 then 14756 # The compiler can only warn and ignore the option if not recognized 14757 # So say no if there are warnings 14758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14761 lt_cv_prog_compiler_c_o_F77=yes 14762 fi 14763 fi 14764 chmod u+w . 2>&5 14765 $rm conftest* 14766 # SGI C++ compiler will create directory out/ii_files/ for 14767 # template instantiation 14768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14769 $rm out/* && rmdir out 14770 cd .. 14771 rmdir conftest 14772 $rm conftest* 14773 14774 fi 14775 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14776 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14777 14778 14779 hard_links="nottested" 14780 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14781 # do not overwrite the value of need_locks provided by the user 14782 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14783 $as_echo_n "checking if we can lock with hard links... " >&6; } 14784 hard_links=yes 14785 $rm conftest* 14786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14787 touch conftest.a 14788 ln conftest.a conftest.b 2>&5 || hard_links=no 14789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14790 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14791 $as_echo "$hard_links" >&6; } 14792 if test "$hard_links" = no; then 14793 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14794 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14795 need_locks=warn 14796 fi 14797 else 14798 need_locks=no 14799 fi 14800 14801 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14803 14804 runpath_var= 14805 allow_undefined_flag_F77= 14806 enable_shared_with_static_runtimes_F77=no 14807 archive_cmds_F77= 14808 archive_expsym_cmds_F77= 14809 old_archive_From_new_cmds_F77= 14810 old_archive_from_expsyms_cmds_F77= 14811 export_dynamic_flag_spec_F77= 14812 whole_archive_flag_spec_F77= 14813 thread_safe_flag_spec_F77= 14814 hardcode_libdir_flag_spec_F77= 14815 hardcode_libdir_flag_spec_ld_F77= 14816 hardcode_libdir_separator_F77= 14817 hardcode_direct_F77=no 14818 hardcode_minus_L_F77=no 14819 hardcode_shlibpath_var_F77=unsupported 14820 link_all_deplibs_F77=unknown 14821 hardcode_automatic_F77=no 14822 module_cmds_F77= 14823 module_expsym_cmds_F77= 14824 always_export_symbols_F77=no 14825 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14826 # include_expsyms should be a list of space-separated symbols to be *always* 14827 # included in the symbol list 14828 include_expsyms_F77= 14829 # exclude_expsyms can be an extended regexp of symbols to exclude 14830 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14831 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14832 # as well as any symbol that contains `d'. 14833 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14834 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14835 # platforms (ab)use it in PIC code, but their linkers get confused if 14836 # the symbol is explicitly referenced. Since portable code cannot 14837 # rely on this symbol name, it's probably fine to never include it in 14838 # preloaded symbol tables. 14839 # Exclude shared library initialization/finalization symbols. 14840 extract_expsyms_cmds= 14841 # Just being paranoid about ensuring that cc_basename is set. 14842 for cc_temp in $compiler""; do 14843 case $cc_temp in 14844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14846 \-*) ;; 14847 *) break;; 14848 esac 14849 done 14850 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14851 14852 case $host_os in 14853 cygwin* | mingw* | pw32*) 14854 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14855 # When not using gcc, we currently assume that we are using 14856 # Microsoft Visual C++. 14857 if test "$GCC" != yes; then 14858 with_gnu_ld=no 14859 fi 14860 ;; 14861 interix*) 14862 # we just hope/assume this is gcc and not c89 (= MSVC++) 14863 with_gnu_ld=yes 14864 ;; 14865 openbsd*) 14866 with_gnu_ld=no 14867 ;; 14868 esac 14869 14870 ld_shlibs_F77=yes 14871 if test "$with_gnu_ld" = yes; then 14872 # If archive_cmds runs LD, not CC, wlarc should be empty 14873 wlarc='${wl}' 14874 14875 # Set some defaults for GNU ld with shared library support. These 14876 # are reset later if shared libraries are not supported. Putting them 14877 # here allows them to be overridden if necessary. 14878 runpath_var=LD_RUN_PATH 14879 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14880 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14881 # ancient GNU ld didn't support --whole-archive et. al. 14882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14883 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14884 else 14885 whole_archive_flag_spec_F77= 14886 fi 14887 supports_anon_versioning=no 14888 case `$LD -v 2>/dev/null` in 14889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14892 *\ 2.11.*) ;; # other 2.11 versions 14893 *) supports_anon_versioning=yes ;; 14894 esac 14895 14896 # See if GNU ld supports shared libraries. 14897 case $host_os in 14898 aix[3-9]*) 14899 # On AIX/PPC, the GNU linker is very broken 14900 if test "$host_cpu" != ia64; then 14901 ld_shlibs_F77=no 14902 cat <<EOF 1>&2 14903 14904 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 14905 *** to be unable to reliably create shared libraries on AIX. 14906 *** Therefore, libtool is disabling shared libraries support. If you 14907 *** really care for shared libraries, you may want to modify your PATH 14908 *** so that a non-GNU linker is found, and then restart. 14909 14910 EOF 14911 fi 14912 ;; 14913 14914 amigaos*) 14915 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)' 14916 hardcode_libdir_flag_spec_F77='-L$libdir' 14917 hardcode_minus_L_F77=yes 14918 14919 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 14920 # that the semantics of dynamic libraries on AmigaOS, at least up 14921 # to version 4, is to share data among multiple programs linked 14922 # with the same dynamic library. Since this doesn't match the 14923 # behavior of shared libraries on other platforms, we can't use 14924 # them. 14925 ld_shlibs_F77=no 14926 ;; 14927 14928 beos*) 14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14930 allow_undefined_flag_F77=unsupported 14931 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 14932 # support --undefined. This deserves some investigation. FIXME 14933 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14934 else 14935 ld_shlibs_F77=no 14936 fi 14937 ;; 14938 14939 cygwin* | mingw* | pw32*) 14940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14941 # as there is no search path for DLLs. 14942 hardcode_libdir_flag_spec_F77='-L$libdir' 14943 allow_undefined_flag_F77=unsupported 14944 always_export_symbols_F77=no 14945 enable_shared_with_static_runtimes_F77=yes 14946 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14947 14948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14950 # If the export-symbols file already is a .def file (1st line 14951 # is EXPORTS), use it as is; otherwise, prepend... 14952 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14953 cp $export_symbols $output_objdir/$soname.def; 14954 else 14955 echo EXPORTS > $output_objdir/$soname.def; 14956 cat $export_symbols >> $output_objdir/$soname.def; 14957 fi~ 14958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14959 else 14960 ld_shlibs_F77=no 14961 fi 14962 ;; 14963 14964 interix[3-9]*) 14965 hardcode_direct_F77=no 14966 hardcode_shlibpath_var_F77=no 14967 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14968 export_dynamic_flag_spec_F77='${wl}-E' 14969 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14970 # Instead, shared libraries are loaded at an image base (0x10000000 by 14971 # default) and relocated if they conflict, which is a slow very memory 14972 # consuming and fragmenting process. To avoid this, we pick a random, 14973 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14974 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14975 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' 14976 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' 14977 ;; 14978 14979 gnu* | linux* | k*bsd*-gnu) 14980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14981 tmp_addflag= 14982 case $cc_basename,$host_cpu in 14983 pgcc*) # Portland Group C compiler 14984 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' 14985 tmp_addflag=' $pic_flag' 14986 ;; 14987 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14988 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' 14989 tmp_addflag=' $pic_flag -Mnomain' ;; 14990 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14991 tmp_addflag=' -i_dynamic' ;; 14992 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14993 tmp_addflag=' -i_dynamic -nofor_main' ;; 14994 ifc* | ifort*) # Intel Fortran compiler 14995 tmp_addflag=' -nofor_main' ;; 14996 esac 14997 case `$CC -V 2>&1 | sed 5q` in 14998 *Sun\ C*) # Sun C 5.9 14999 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' 15000 tmp_sharedflag='-G' ;; 15001 *Sun\ F*) # Sun Fortran 8.3 15002 tmp_sharedflag='-G' ;; 15003 *) 15004 tmp_sharedflag='-shared' ;; 15005 esac 15006 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15007 15008 if test $supports_anon_versioning = yes; then 15009 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15011 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15012 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15013 fi 15014 else 15015 ld_shlibs_F77=no 15016 fi 15017 ;; 15018 15019 netbsd*) 15020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15021 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15022 wlarc= 15023 else 15024 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15025 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15026 fi 15027 ;; 15028 15029 solaris*) 15030 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15031 ld_shlibs_F77=no 15032 cat <<EOF 1>&2 15033 15034 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 15035 *** create shared libraries on Solaris systems. Therefore, libtool 15036 *** is disabling shared libraries support. We urge you to upgrade GNU 15037 *** binutils to release 2.9.1 or newer. Another option is to modify 15038 *** your PATH or compiler configuration so that the native linker is 15039 *** used, and then restart. 15040 15041 EOF 15042 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15043 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15044 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15045 else 15046 ld_shlibs_F77=no 15047 fi 15048 ;; 15049 15050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15051 case `$LD -v 2>&1` in 15052 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15053 ld_shlibs_F77=no 15054 cat <<_LT_EOF 1>&2 15055 15056 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15057 *** reliably create shared libraries on SCO systems. Therefore, libtool 15058 *** is disabling shared libraries support. We urge you to upgrade GNU 15059 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15060 *** your PATH or compiler configuration so that the native linker is 15061 *** used, and then restart. 15062 15063 _LT_EOF 15064 ;; 15065 *) 15066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15067 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15068 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15069 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15070 else 15071 ld_shlibs_F77=no 15072 fi 15073 ;; 15074 esac 15075 ;; 15076 15077 sunos4*) 15078 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15079 wlarc= 15080 hardcode_direct_F77=yes 15081 hardcode_shlibpath_var_F77=no 15082 ;; 15083 15084 *) 15085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15086 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15087 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15088 else 15089 ld_shlibs_F77=no 15090 fi 15091 ;; 15092 esac 15093 15094 if test "$ld_shlibs_F77" = no; then 15095 runpath_var= 15096 hardcode_libdir_flag_spec_F77= 15097 export_dynamic_flag_spec_F77= 15098 whole_archive_flag_spec_F77= 15099 fi 15100 else 15101 # PORTME fill in a description of your system's linker (not GNU ld) 15102 case $host_os in 15103 aix3*) 15104 allow_undefined_flag_F77=unsupported 15105 always_export_symbols_F77=yes 15106 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' 15107 # Note: this linker hardcodes the directories in LIBPATH if there 15108 # are no directories specified by -L. 15109 hardcode_minus_L_F77=yes 15110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15111 # Neither direct hardcoding nor static linking is supported with a 15112 # broken collect2. 15113 hardcode_direct_F77=unsupported 15114 fi 15115 ;; 15116 15117 aix[4-9]*) 15118 if test "$host_cpu" = ia64; then 15119 # On IA64, the linker does run time linking by default, so we don't 15120 # have to do anything special. 15121 aix_use_runtimelinking=no 15122 exp_sym_flag='-Bexport' 15123 no_entry_flag="" 15124 else 15125 # If we're using GNU nm, then we don't want the "-C" option. 15126 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15127 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15128 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' 15129 else 15130 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' 15131 fi 15132 aix_use_runtimelinking=no 15133 15134 # Test if we are trying to use run time linking or normal 15135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15136 # need to do runtime linking. 15137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15138 for ld_flag in $LDFLAGS; do 15139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15140 aix_use_runtimelinking=yes 15141 break 15142 fi 15143 done 15144 ;; 15145 esac 15146 15147 exp_sym_flag='-bexport' 15148 no_entry_flag='-bnoentry' 15149 fi 15150 15151 # When large executables or shared objects are built, AIX ld can 15152 # have problems creating the table of contents. If linking a library 15153 # or program results in "error TOC overflow" add -mminimal-toc to 15154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15156 15157 archive_cmds_F77='' 15158 hardcode_direct_F77=yes 15159 hardcode_libdir_separator_F77=':' 15160 link_all_deplibs_F77=yes 15161 15162 if test "$GCC" = yes; then 15163 case $host_os in aix4.[012]|aix4.[012].*) 15164 # We only want to do this on AIX 4.2 and lower, the check 15165 # below for broken collect2 doesn't work under 4.3+ 15166 collect2name=`${CC} -print-prog-name=collect2` 15167 if test -f "$collect2name" && \ 15168 strings "$collect2name" | grep resolve_lib_name >/dev/null 15169 then 15170 # We have reworked collect2 15171 : 15172 else 15173 # We have old collect2 15174 hardcode_direct_F77=unsupported 15175 # It fails to find uninstalled libraries when the uninstalled 15176 # path is not listed in the libpath. Setting hardcode_minus_L 15177 # to unsupported forces relinking 15178 hardcode_minus_L_F77=yes 15179 hardcode_libdir_flag_spec_F77='-L$libdir' 15180 hardcode_libdir_separator_F77= 15181 fi 15182 ;; 15183 esac 15184 shared_flag='-shared' 15185 if test "$aix_use_runtimelinking" = yes; then 15186 shared_flag="$shared_flag "'${wl}-G' 15187 fi 15188 else 15189 # not using gcc 15190 if test "$host_cpu" = ia64; then 15191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15192 # chokes on -Wl,-G. The following line is correct: 15193 shared_flag='-G' 15194 else 15195 if test "$aix_use_runtimelinking" = yes; then 15196 shared_flag='${wl}-G' 15197 else 15198 shared_flag='${wl}-bM:SRE' 15199 fi 15200 fi 15201 fi 15202 15203 # It seems that -bexpall does not export symbols beginning with 15204 # underscore (_), so it is better to generate a list of symbols to export. 15205 always_export_symbols_F77=yes 15206 if test "$aix_use_runtimelinking" = yes; then 15207 # Warning - without using the other runtime loading flags (-brtl), 15208 # -berok will link without error, but may produce a broken library. 15209 allow_undefined_flag_F77='-berok' 15210 # Determine the default libpath from the value encoded in an empty executable. 15211 cat >conftest.$ac_ext <<_ACEOF 15212 program main 15213 15214 end 15215 _ACEOF 15216 rm -f conftest.$ac_objext conftest$ac_exeext 15217 if { (ac_try="$ac_link" 15218 case "(($ac_try" in 15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15220 *) ac_try_echo=$ac_try;; 15221 esac 15222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15223 $as_echo "$ac_try_echo") >&5 15224 (eval "$ac_link") 2>conftest.er1 15225 ac_status=$? 15226 grep -v '^ *+' conftest.er1 >conftest.err 15227 rm -f conftest.er1 15228 cat conftest.err >&5 15229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15230 (exit $ac_status); } && { 15231 test -z "$ac_f77_werror_flag" || 15232 test ! -s conftest.err 15233 } && test -s conftest$ac_exeext && { 15234 test "$cross_compiling" = yes || 15235 $as_test_x conftest$ac_exeext 15236 }; then 15237 15238 lt_aix_libpath_sed=' 15239 /Import File Strings/,/^$/ { 15240 /^0/ { 15241 s/^0 *\(.*\)$/\1/ 15242 p 15243 } 15244 }' 15245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15246 # Check for a 64-bit object if we didn't find anything. 15247 if test -z "$aix_libpath"; then 15248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15249 fi 15250 else 15251 $as_echo "$as_me: failed program was:" >&5 15252 sed 's/^/| /' conftest.$ac_ext >&5 15253 15254 15255 fi 15256 15257 rm -rf conftest.dSYM 15258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15259 conftest$ac_exeext conftest.$ac_ext 15260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15261 15262 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15263 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" 15264 else 15265 if test "$host_cpu" = ia64; then 15266 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15267 allow_undefined_flag_F77="-z nodefs" 15268 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" 15269 else 15270 # Determine the default libpath from the value encoded in an empty executable. 15271 cat >conftest.$ac_ext <<_ACEOF 15272 program main 15273 15274 end 15275 _ACEOF 15276 rm -f conftest.$ac_objext conftest$ac_exeext 15277 if { (ac_try="$ac_link" 15278 case "(($ac_try" in 15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15280 *) ac_try_echo=$ac_try;; 15281 esac 15282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15283 $as_echo "$ac_try_echo") >&5 15284 (eval "$ac_link") 2>conftest.er1 15285 ac_status=$? 15286 grep -v '^ *+' conftest.er1 >conftest.err 15287 rm -f conftest.er1 15288 cat conftest.err >&5 15289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15290 (exit $ac_status); } && { 15291 test -z "$ac_f77_werror_flag" || 15292 test ! -s conftest.err 15293 } && test -s conftest$ac_exeext && { 15294 test "$cross_compiling" = yes || 15295 $as_test_x conftest$ac_exeext 15296 }; then 15297 15298 lt_aix_libpath_sed=' 15299 /Import File Strings/,/^$/ { 15300 /^0/ { 15301 s/^0 *\(.*\)$/\1/ 15302 p 15303 } 15304 }' 15305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15306 # Check for a 64-bit object if we didn't find anything. 15307 if test -z "$aix_libpath"; then 15308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15309 fi 15310 else 15311 $as_echo "$as_me: failed program was:" >&5 15312 sed 's/^/| /' conftest.$ac_ext >&5 15313 15314 15315 fi 15316 15317 rm -rf conftest.dSYM 15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15319 conftest$ac_exeext conftest.$ac_ext 15320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15321 15322 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15323 # Warning - without using the other run time loading flags, 15324 # -berok will link without error, but may produce a broken library. 15325 no_undefined_flag_F77=' ${wl}-bernotok' 15326 allow_undefined_flag_F77=' ${wl}-berok' 15327 # Exported symbols can be pulled into shared objects from archives 15328 whole_archive_flag_spec_F77='$convenience' 15329 archive_cmds_need_lc_F77=yes 15330 # This is similar to how AIX traditionally builds its shared libraries. 15331 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' 15332 fi 15333 fi 15334 ;; 15335 15336 amigaos*) 15337 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)' 15338 hardcode_libdir_flag_spec_F77='-L$libdir' 15339 hardcode_minus_L_F77=yes 15340 # see comment about different semantics on the GNU ld section 15341 ld_shlibs_F77=no 15342 ;; 15343 15344 bsdi[45]*) 15345 export_dynamic_flag_spec_F77=-rdynamic 15346 ;; 15347 15348 cygwin* | mingw* | pw32*) 15349 # When not using gcc, we currently assume that we are using 15350 # Microsoft Visual C++. 15351 # hardcode_libdir_flag_spec is actually meaningless, as there is 15352 # no search path for DLLs. 15353 hardcode_libdir_flag_spec_F77=' ' 15354 allow_undefined_flag_F77=unsupported 15355 # Tell ltmain to make .lib files, not .a files. 15356 libext=lib 15357 # Tell ltmain to make .dll files, not .so files. 15358 shrext_cmds=".dll" 15359 # FIXME: Setting linknames here is a bad hack. 15360 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15361 # The linker will automatically build a .lib file if we build a DLL. 15362 old_archive_From_new_cmds_F77='true' 15363 # FIXME: Should let the user specify the lib program. 15364 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15365 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15366 enable_shared_with_static_runtimes_F77=yes 15367 ;; 15368 15369 darwin* | rhapsody*) 15370 case $host_os in 15371 rhapsody* | darwin1.[012]) 15372 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15373 ;; 15374 *) # Darwin 1.3 on 15375 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15376 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15377 else 15378 case ${MACOSX_DEPLOYMENT_TARGET} in 15379 10.[012]) 15380 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15381 ;; 15382 10.*) 15383 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15384 ;; 15385 esac 15386 fi 15387 ;; 15388 esac 15389 archive_cmds_need_lc_F77=no 15390 hardcode_direct_F77=no 15391 hardcode_automatic_F77=yes 15392 hardcode_shlibpath_var_F77=unsupported 15393 whole_archive_flag_spec_F77='' 15394 link_all_deplibs_F77=yes 15395 if test "$GCC" = yes ; then 15396 output_verbose_link_cmd='echo' 15397 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15398 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15399 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15400 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15401 else 15402 case $cc_basename in 15403 xlc*) 15404 output_verbose_link_cmd='echo' 15405 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15406 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15408 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15409 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}' 15410 ;; 15411 *) 15412 ld_shlibs_F77=no 15413 ;; 15414 esac 15415 fi 15416 ;; 15417 15418 dgux*) 15419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15420 hardcode_libdir_flag_spec_F77='-L$libdir' 15421 hardcode_shlibpath_var_F77=no 15422 ;; 15423 15424 freebsd1*) 15425 ld_shlibs_F77=no 15426 ;; 15427 15428 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15429 # support. Future versions do this automatically, but an explicit c++rt0.o 15430 # does not break anything, and helps significantly (at the cost of a little 15431 # extra space). 15432 freebsd2.2*) 15433 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15434 hardcode_libdir_flag_spec_F77='-R$libdir' 15435 hardcode_direct_F77=yes 15436 hardcode_shlibpath_var_F77=no 15437 ;; 15438 15439 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15440 freebsd2*) 15441 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15442 hardcode_direct_F77=yes 15443 hardcode_minus_L_F77=yes 15444 hardcode_shlibpath_var_F77=no 15445 ;; 15446 15447 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15448 freebsd* | dragonfly*) 15449 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15450 hardcode_libdir_flag_spec_F77='-R$libdir' 15451 hardcode_direct_F77=yes 15452 hardcode_shlibpath_var_F77=no 15453 ;; 15454 15455 hpux9*) 15456 if test "$GCC" = yes; then 15457 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' 15458 else 15459 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' 15460 fi 15461 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15462 hardcode_libdir_separator_F77=: 15463 hardcode_direct_F77=yes 15464 15465 # hardcode_minus_L: Not really in the search PATH, 15466 # but as the default location of the library. 15467 hardcode_minus_L_F77=yes 15468 export_dynamic_flag_spec_F77='${wl}-E' 15469 ;; 15470 15471 hpux10*) 15472 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15473 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15474 else 15475 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15476 fi 15477 if test "$with_gnu_ld" = no; then 15478 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15479 hardcode_libdir_separator_F77=: 15480 15481 hardcode_direct_F77=yes 15482 export_dynamic_flag_spec_F77='${wl}-E' 15483 15484 # hardcode_minus_L: Not really in the search PATH, 15485 # but as the default location of the library. 15486 hardcode_minus_L_F77=yes 15487 fi 15488 ;; 15489 15490 hpux11*) 15491 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15492 case $host_cpu in 15493 hppa*64*) 15494 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15495 ;; 15496 ia64*) 15497 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15498 ;; 15499 *) 15500 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15501 ;; 15502 esac 15503 else 15504 case $host_cpu in 15505 hppa*64*) 15506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15507 ;; 15508 ia64*) 15509 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15510 ;; 15511 *) 15512 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15513 ;; 15514 esac 15515 fi 15516 if test "$with_gnu_ld" = no; then 15517 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15518 hardcode_libdir_separator_F77=: 15519 15520 case $host_cpu in 15521 hppa*64*|ia64*) 15522 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15523 hardcode_direct_F77=no 15524 hardcode_shlibpath_var_F77=no 15525 ;; 15526 *) 15527 hardcode_direct_F77=yes 15528 export_dynamic_flag_spec_F77='${wl}-E' 15529 15530 # hardcode_minus_L: Not really in the search PATH, 15531 # but as the default location of the library. 15532 hardcode_minus_L_F77=yes 15533 ;; 15534 esac 15535 fi 15536 ;; 15537 15538 irix5* | irix6* | nonstopux*) 15539 if test "$GCC" = yes; then 15540 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' 15541 else 15542 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' 15543 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15544 fi 15545 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15546 hardcode_libdir_separator_F77=: 15547 link_all_deplibs_F77=yes 15548 ;; 15549 15550 netbsd*) 15551 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15552 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15553 else 15554 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15555 fi 15556 hardcode_libdir_flag_spec_F77='-R$libdir' 15557 hardcode_direct_F77=yes 15558 hardcode_shlibpath_var_F77=no 15559 ;; 15560 15561 newsos6) 15562 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15563 hardcode_direct_F77=yes 15564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15565 hardcode_libdir_separator_F77=: 15566 hardcode_shlibpath_var_F77=no 15567 ;; 15568 15569 openbsd*) 15570 if test -f /usr/libexec/ld.so; then 15571 hardcode_direct_F77=yes 15572 hardcode_shlibpath_var_F77=no 15573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15574 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15575 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15576 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15577 export_dynamic_flag_spec_F77='${wl}-E' 15578 else 15579 case $host_os in 15580 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15581 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15582 hardcode_libdir_flag_spec_F77='-R$libdir' 15583 ;; 15584 *) 15585 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15586 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15587 ;; 15588 esac 15589 fi 15590 else 15591 ld_shlibs_F77=no 15592 fi 15593 ;; 15594 15595 os2*) 15596 hardcode_libdir_flag_spec_F77='-L$libdir' 15597 hardcode_minus_L_F77=yes 15598 allow_undefined_flag_F77=unsupported 15599 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' 15600 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15601 ;; 15602 15603 osf3*) 15604 if test "$GCC" = yes; then 15605 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15606 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' 15607 else 15608 allow_undefined_flag_F77=' -expect_unresolved \*' 15609 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' 15610 fi 15611 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15612 hardcode_libdir_separator_F77=: 15613 ;; 15614 15615 osf4* | osf5*) # as osf3* with the addition of -msym flag 15616 if test "$GCC" = yes; then 15617 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15618 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' 15619 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15620 else 15621 allow_undefined_flag_F77=' -expect_unresolved \*' 15622 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' 15623 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~ 15624 $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' 15625 15626 # Both c and cxx compiler support -rpath directly 15627 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15628 fi 15629 hardcode_libdir_separator_F77=: 15630 ;; 15631 15632 solaris*) 15633 no_undefined_flag_F77=' -z text' 15634 if test "$GCC" = yes; then 15635 wlarc='${wl}' 15636 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15637 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15638 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15639 else 15640 wlarc='' 15641 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15642 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15643 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15644 fi 15645 hardcode_libdir_flag_spec_F77='-R$libdir' 15646 hardcode_shlibpath_var_F77=no 15647 case $host_os in 15648 solaris2.[0-5] | solaris2.[0-5].*) ;; 15649 *) 15650 # The compiler driver will combine and reorder linker options, 15651 # but understands `-z linker_flag'. GCC discards it without `$wl', 15652 # but is careful enough not to reorder. 15653 # Supported since Solaris 2.6 (maybe 2.5.1?) 15654 if test "$GCC" = yes; then 15655 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15656 else 15657 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15658 fi 15659 ;; 15660 esac 15661 link_all_deplibs_F77=yes 15662 ;; 15663 15664 sunos4*) 15665 if test "x$host_vendor" = xsequent; then 15666 # Use $CC to link under sequent, because it throws in some extra .o 15667 # files that make .init and .fini sections work. 15668 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15669 else 15670 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15671 fi 15672 hardcode_libdir_flag_spec_F77='-L$libdir' 15673 hardcode_direct_F77=yes 15674 hardcode_minus_L_F77=yes 15675 hardcode_shlibpath_var_F77=no 15676 ;; 15677 15678 sysv4) 15679 case $host_vendor in 15680 sni) 15681 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15682 hardcode_direct_F77=yes # is this really true??? 15683 ;; 15684 siemens) 15685 ## LD is ld it makes a PLAMLIB 15686 ## CC just makes a GrossModule. 15687 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15688 reload_cmds_F77='$CC -r -o $output$reload_objs' 15689 hardcode_direct_F77=no 15690 ;; 15691 motorola) 15692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15693 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15694 ;; 15695 esac 15696 runpath_var='LD_RUN_PATH' 15697 hardcode_shlibpath_var_F77=no 15698 ;; 15699 15700 sysv4.3*) 15701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15702 hardcode_shlibpath_var_F77=no 15703 export_dynamic_flag_spec_F77='-Bexport' 15704 ;; 15705 15706 sysv4*MP*) 15707 if test -d /usr/nec; then 15708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15709 hardcode_shlibpath_var_F77=no 15710 runpath_var=LD_RUN_PATH 15711 hardcode_runpath_var=yes 15712 ld_shlibs_F77=yes 15713 fi 15714 ;; 15715 15716 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15717 no_undefined_flag_F77='${wl}-z,text' 15718 archive_cmds_need_lc_F77=no 15719 hardcode_shlibpath_var_F77=no 15720 runpath_var='LD_RUN_PATH' 15721 15722 if test "$GCC" = yes; then 15723 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15724 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15725 else 15726 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15727 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15728 fi 15729 ;; 15730 15731 sysv5* | sco3.2v5* | sco5v6*) 15732 # Note: We can NOT use -z defs as we might desire, because we do not 15733 # link with -lc, and that would cause any symbols used from libc to 15734 # always be unresolved, which means just about no library would 15735 # ever link correctly. If we're not using GNU ld we use -z text 15736 # though, which does catch some bad symbols but isn't as heavy-handed 15737 # as -z defs. 15738 no_undefined_flag_F77='${wl}-z,text' 15739 allow_undefined_flag_F77='${wl}-z,nodefs' 15740 archive_cmds_need_lc_F77=no 15741 hardcode_shlibpath_var_F77=no 15742 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15743 hardcode_libdir_separator_F77=':' 15744 link_all_deplibs_F77=yes 15745 export_dynamic_flag_spec_F77='${wl}-Bexport' 15746 runpath_var='LD_RUN_PATH' 15747 15748 if test "$GCC" = yes; then 15749 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15750 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15751 else 15752 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15753 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15754 fi 15755 ;; 15756 15757 uts4*) 15758 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15759 hardcode_libdir_flag_spec_F77='-L$libdir' 15760 hardcode_shlibpath_var_F77=no 15761 ;; 15762 15763 *) 15764 ld_shlibs_F77=no 15765 ;; 15766 esac 15767 fi 15768 15769 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15770 $as_echo "$ld_shlibs_F77" >&6; } 15771 test "$ld_shlibs_F77" = no && can_build_shared=no 15772 15773 # 15774 # Do we need to explicitly link libc? 15775 # 15776 case "x$archive_cmds_need_lc_F77" in 15777 x|xyes) 15778 # Assume -lc should be added 15779 archive_cmds_need_lc_F77=yes 15780 15781 if test "$enable_shared" = yes && test "$GCC" = yes; then 15782 case $archive_cmds_F77 in 15783 *'~'*) 15784 # FIXME: we may have to deal with multi-command sequences. 15785 ;; 15786 '$CC '*) 15787 # Test whether the compiler implicitly links with -lc since on some 15788 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15789 # to ld, don't add -lc before -lgcc. 15790 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15791 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15792 $rm conftest* 15793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15794 15795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15796 (eval $ac_compile) 2>&5 15797 ac_status=$? 15798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15799 (exit $ac_status); } 2>conftest.err; then 15800 soname=conftest 15801 lib=conftest 15802 libobjs=conftest.$ac_objext 15803 deplibs= 15804 wl=$lt_prog_compiler_wl_F77 15805 pic_flag=$lt_prog_compiler_pic_F77 15806 compiler_flags=-v 15807 linker_flags=-v 15808 verstring= 15809 output_objdir=. 15810 libname=conftest 15811 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15812 allow_undefined_flag_F77= 15813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15814 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15815 ac_status=$? 15816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15817 (exit $ac_status); } 15818 then 15819 archive_cmds_need_lc_F77=no 15820 else 15821 archive_cmds_need_lc_F77=yes 15822 fi 15823 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15824 else 15825 cat conftest.err 1>&5 15826 fi 15827 $rm conftest* 15828 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15829 $as_echo "$archive_cmds_need_lc_F77" >&6; } 15830 ;; 15831 esac 15832 fi 15833 ;; 15834 esac 15835 15836 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15837 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15838 library_names_spec= 15839 libname_spec='lib$name' 15840 soname_spec= 15841 shrext_cmds=".so" 15842 postinstall_cmds= 15843 postuninstall_cmds= 15844 finish_cmds= 15845 finish_eval= 15846 shlibpath_var= 15847 shlibpath_overrides_runpath=unknown 15848 version_type=none 15849 dynamic_linker="$host_os ld.so" 15850 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15851 15852 need_lib_prefix=unknown 15853 hardcode_into_libs=no 15854 15855 # when you set need_version to no, make sure it does not cause -set_version 15856 # flags to be left without arguments 15857 need_version=unknown 15858 15859 case $host_os in 15860 aix3*) 15861 version_type=linux 15862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15863 shlibpath_var=LIBPATH 15864 15865 # AIX 3 has no versioning support, so we append a major version to the name. 15866 soname_spec='${libname}${release}${shared_ext}$major' 15867 ;; 15868 15869 aix[4-9]*) 15870 version_type=linux 15871 need_lib_prefix=no 15872 need_version=no 15873 hardcode_into_libs=yes 15874 if test "$host_cpu" = ia64; then 15875 # AIX 5 supports IA64 15876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15877 shlibpath_var=LD_LIBRARY_PATH 15878 else 15879 # With GCC up to 2.95.x, collect2 would create an import file 15880 # for dependence libraries. The import file would start with 15881 # the line `#! .'. This would cause the generated library to 15882 # depend on `.', always an invalid library. This was fixed in 15883 # development snapshots of GCC prior to 3.0. 15884 case $host_os in 15885 aix4 | aix4.[01] | aix4.[01].*) 15886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15887 echo ' yes ' 15888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15889 : 15890 else 15891 can_build_shared=no 15892 fi 15893 ;; 15894 esac 15895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15896 # soname into executable. Probably we can add versioning support to 15897 # collect2, so additional links can be useful in future. 15898 if test "$aix_use_runtimelinking" = yes; then 15899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15900 # instead of lib<name>.a to let people know that these are not 15901 # typical AIX shared libraries. 15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15903 else 15904 # We preserve .a as extension for shared libraries through AIX4.2 15905 # and later when we are not doing run time linking. 15906 library_names_spec='${libname}${release}.a $libname.a' 15907 soname_spec='${libname}${release}${shared_ext}$major' 15908 fi 15909 shlibpath_var=LIBPATH 15910 fi 15911 ;; 15912 15913 amigaos*) 15914 library_names_spec='$libname.ixlibrary $libname.a' 15915 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15916 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' 15917 ;; 15918 15919 beos*) 15920 library_names_spec='${libname}${shared_ext}' 15921 dynamic_linker="$host_os ld.so" 15922 shlibpath_var=LIBRARY_PATH 15923 ;; 15924 15925 bsdi[45]*) 15926 version_type=linux 15927 need_version=no 15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15929 soname_spec='${libname}${release}${shared_ext}$major' 15930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15931 shlibpath_var=LD_LIBRARY_PATH 15932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15934 # the default ld.so.conf also contains /usr/contrib/lib and 15935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15936 # libtool to hard-code these into programs 15937 ;; 15938 15939 cygwin* | mingw* | pw32*) 15940 version_type=windows 15941 shrext_cmds=".dll" 15942 need_version=no 15943 need_lib_prefix=no 15944 15945 case $GCC,$host_os in 15946 yes,cygwin* | yes,mingw* | yes,pw32*) 15947 library_names_spec='$libname.dll.a' 15948 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15949 postinstall_cmds='base_file=`basename \${file}`~ 15950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15951 dldir=$destdir/`dirname \$dlpath`~ 15952 test -d \$dldir || mkdir -p \$dldir~ 15953 $install_prog $dir/$dlname \$dldir/$dlname~ 15954 chmod a+x \$dldir/$dlname' 15955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15956 dlpath=$dir/\$dldll~ 15957 $rm \$dlpath' 15958 shlibpath_overrides_runpath=yes 15959 15960 case $host_os in 15961 cygwin*) 15962 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15965 ;; 15966 mingw*) 15967 # MinGW DLLs use traditional 'lib' prefix 15968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15971 # It is most probably a Windows format PATH printed by 15972 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15973 # path with ; separators, and with drive letters. We can handle the 15974 # drive letters (cygwin fileutils understands them), so leave them, 15975 # especially as we might pass files found there to a mingw objdump, 15976 # which wouldn't understand a cygwinified path. Ahh. 15977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15978 else 15979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15980 fi 15981 ;; 15982 pw32*) 15983 # pw32 DLLs use 'pw' prefix rather than 'lib' 15984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15985 ;; 15986 esac 15987 ;; 15988 15989 *) 15990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15991 ;; 15992 esac 15993 dynamic_linker='Win32 ld.exe' 15994 # FIXME: first we should search . and the directory the executable is in 15995 shlibpath_var=PATH 15996 ;; 15997 15998 darwin* | rhapsody*) 15999 dynamic_linker="$host_os dyld" 16000 version_type=darwin 16001 need_lib_prefix=no 16002 need_version=no 16003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16004 soname_spec='${libname}${release}${major}$shared_ext' 16005 shlibpath_overrides_runpath=yes 16006 shlibpath_var=DYLD_LIBRARY_PATH 16007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16008 16009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16010 ;; 16011 16012 dgux*) 16013 version_type=linux 16014 need_lib_prefix=no 16015 need_version=no 16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16017 soname_spec='${libname}${release}${shared_ext}$major' 16018 shlibpath_var=LD_LIBRARY_PATH 16019 ;; 16020 16021 freebsd1*) 16022 dynamic_linker=no 16023 ;; 16024 16025 freebsd* | dragonfly*) 16026 # DragonFly does not have aout. When/if they implement a new 16027 # versioning mechanism, adjust this. 16028 if test -x /usr/bin/objformat; then 16029 objformat=`/usr/bin/objformat` 16030 else 16031 case $host_os in 16032 freebsd[123]*) objformat=aout ;; 16033 *) objformat=elf ;; 16034 esac 16035 fi 16036 version_type=freebsd-$objformat 16037 case $version_type in 16038 freebsd-elf*) 16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16040 need_version=no 16041 need_lib_prefix=no 16042 ;; 16043 freebsd-*) 16044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16045 need_version=yes 16046 ;; 16047 esac 16048 shlibpath_var=LD_LIBRARY_PATH 16049 case $host_os in 16050 freebsd2*) 16051 shlibpath_overrides_runpath=yes 16052 ;; 16053 freebsd3.[01]* | freebsdelf3.[01]*) 16054 shlibpath_overrides_runpath=yes 16055 hardcode_into_libs=yes 16056 ;; 16057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16059 shlibpath_overrides_runpath=no 16060 hardcode_into_libs=yes 16061 ;; 16062 *) # from 4.6 on, and DragonFly 16063 shlibpath_overrides_runpath=yes 16064 hardcode_into_libs=yes 16065 ;; 16066 esac 16067 ;; 16068 16069 gnu*) 16070 version_type=linux 16071 need_lib_prefix=no 16072 need_version=no 16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16074 soname_spec='${libname}${release}${shared_ext}$major' 16075 shlibpath_var=LD_LIBRARY_PATH 16076 hardcode_into_libs=yes 16077 ;; 16078 16079 hpux9* | hpux10* | hpux11*) 16080 # Give a soname corresponding to the major version so that dld.sl refuses to 16081 # link against other versions. 16082 version_type=sunos 16083 need_lib_prefix=no 16084 need_version=no 16085 case $host_cpu in 16086 ia64*) 16087 shrext_cmds='.so' 16088 hardcode_into_libs=yes 16089 dynamic_linker="$host_os dld.so" 16090 shlibpath_var=LD_LIBRARY_PATH 16091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16093 soname_spec='${libname}${release}${shared_ext}$major' 16094 if test "X$HPUX_IA64_MODE" = X32; then 16095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16096 else 16097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16098 fi 16099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16100 ;; 16101 hppa*64*) 16102 shrext_cmds='.sl' 16103 hardcode_into_libs=yes 16104 dynamic_linker="$host_os dld.sl" 16105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16108 soname_spec='${libname}${release}${shared_ext}$major' 16109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16111 ;; 16112 *) 16113 shrext_cmds='.sl' 16114 dynamic_linker="$host_os dld.sl" 16115 shlibpath_var=SHLIB_PATH 16116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16118 soname_spec='${libname}${release}${shared_ext}$major' 16119 ;; 16120 esac 16121 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16122 postinstall_cmds='chmod 555 $lib' 16123 ;; 16124 16125 interix[3-9]*) 16126 version_type=linux 16127 need_lib_prefix=no 16128 need_version=no 16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16130 soname_spec='${libname}${release}${shared_ext}$major' 16131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16132 shlibpath_var=LD_LIBRARY_PATH 16133 shlibpath_overrides_runpath=no 16134 hardcode_into_libs=yes 16135 ;; 16136 16137 irix5* | irix6* | nonstopux*) 16138 case $host_os in 16139 nonstopux*) version_type=nonstopux ;; 16140 *) 16141 if test "$lt_cv_prog_gnu_ld" = yes; then 16142 version_type=linux 16143 else 16144 version_type=irix 16145 fi ;; 16146 esac 16147 need_lib_prefix=no 16148 need_version=no 16149 soname_spec='${libname}${release}${shared_ext}$major' 16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16151 case $host_os in 16152 irix5* | nonstopux*) 16153 libsuff= shlibsuff= 16154 ;; 16155 *) 16156 case $LD in # libtool.m4 will add one of these switches to LD 16157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16158 libsuff= shlibsuff= libmagic=32-bit;; 16159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16160 libsuff=32 shlibsuff=N32 libmagic=N32;; 16161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16162 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16163 *) libsuff= shlibsuff= libmagic=never-match;; 16164 esac 16165 ;; 16166 esac 16167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16168 shlibpath_overrides_runpath=no 16169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16171 hardcode_into_libs=yes 16172 ;; 16173 16174 # No shared lib support for Linux oldld, aout, or coff. 16175 linux*oldld* | linux*aout* | linux*coff*) 16176 dynamic_linker=no 16177 ;; 16178 16179 # This must be Linux ELF. 16180 linux* | k*bsd*-gnu) 16181 version_type=linux 16182 need_lib_prefix=no 16183 need_version=no 16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16185 soname_spec='${libname}${release}${shared_ext}$major' 16186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16187 shlibpath_var=LD_LIBRARY_PATH 16188 shlibpath_overrides_runpath=no 16189 # This implies no fast_install, which is unacceptable. 16190 # Some rework will be needed to allow for fast_install 16191 # before this can be enabled. 16192 hardcode_into_libs=yes 16193 16194 # Append ld.so.conf contents to the search path 16195 if test -f /etc/ld.so.conf; then 16196 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16198 fi 16199 16200 # We used to test for /lib/ld.so.1 and disable shared libraries on 16201 # powerpc, because MkLinux only supported shared libraries with the 16202 # GNU dynamic linker. Since this was broken with cross compilers, 16203 # most powerpc-linux boxes support dynamic linking these days and 16204 # people can always --disable-shared, the test was removed, and we 16205 # assume the GNU/Linux dynamic linker is in use. 16206 dynamic_linker='GNU/Linux ld.so' 16207 ;; 16208 16209 netbsd*) 16210 version_type=sunos 16211 need_lib_prefix=no 16212 need_version=no 16213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16216 dynamic_linker='NetBSD (a.out) ld.so' 16217 else 16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16219 soname_spec='${libname}${release}${shared_ext}$major' 16220 dynamic_linker='NetBSD ld.elf_so' 16221 fi 16222 shlibpath_var=LD_LIBRARY_PATH 16223 shlibpath_overrides_runpath=yes 16224 hardcode_into_libs=yes 16225 ;; 16226 16227 newsos6) 16228 version_type=linux 16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16230 shlibpath_var=LD_LIBRARY_PATH 16231 shlibpath_overrides_runpath=yes 16232 ;; 16233 16234 nto-qnx*) 16235 version_type=linux 16236 need_lib_prefix=no 16237 need_version=no 16238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16239 soname_spec='${libname}${release}${shared_ext}$major' 16240 shlibpath_var=LD_LIBRARY_PATH 16241 shlibpath_overrides_runpath=yes 16242 ;; 16243 16244 openbsd*) 16245 version_type=sunos 16246 sys_lib_dlsearch_path_spec="/usr/lib" 16247 need_lib_prefix=no 16248 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16249 case $host_os in 16250 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16251 *) need_version=no ;; 16252 esac 16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16255 shlibpath_var=LD_LIBRARY_PATH 16256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16257 case $host_os in 16258 openbsd2.[89] | openbsd2.[89].*) 16259 shlibpath_overrides_runpath=no 16260 ;; 16261 *) 16262 shlibpath_overrides_runpath=yes 16263 ;; 16264 esac 16265 else 16266 shlibpath_overrides_runpath=yes 16267 fi 16268 ;; 16269 16270 os2*) 16271 libname_spec='$name' 16272 shrext_cmds=".dll" 16273 need_lib_prefix=no 16274 library_names_spec='$libname${shared_ext} $libname.a' 16275 dynamic_linker='OS/2 ld.exe' 16276 shlibpath_var=LIBPATH 16277 ;; 16278 16279 osf3* | osf4* | osf5*) 16280 version_type=osf 16281 need_lib_prefix=no 16282 need_version=no 16283 soname_spec='${libname}${release}${shared_ext}$major' 16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16285 shlibpath_var=LD_LIBRARY_PATH 16286 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16287 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16288 ;; 16289 16290 rdos*) 16291 dynamic_linker=no 16292 ;; 16293 16294 solaris*) 16295 version_type=linux 16296 need_lib_prefix=no 16297 need_version=no 16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16299 soname_spec='${libname}${release}${shared_ext}$major' 16300 shlibpath_var=LD_LIBRARY_PATH 16301 shlibpath_overrides_runpath=yes 16302 hardcode_into_libs=yes 16303 # ldd complains unless libraries are executable 16304 postinstall_cmds='chmod +x $lib' 16305 ;; 16306 16307 sunos4*) 16308 version_type=sunos 16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16310 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16311 shlibpath_var=LD_LIBRARY_PATH 16312 shlibpath_overrides_runpath=yes 16313 if test "$with_gnu_ld" = yes; then 16314 need_lib_prefix=no 16315 fi 16316 need_version=yes 16317 ;; 16318 16319 sysv4 | sysv4.3*) 16320 version_type=linux 16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16322 soname_spec='${libname}${release}${shared_ext}$major' 16323 shlibpath_var=LD_LIBRARY_PATH 16324 case $host_vendor in 16325 sni) 16326 shlibpath_overrides_runpath=no 16327 need_lib_prefix=no 16328 export_dynamic_flag_spec='${wl}-Blargedynsym' 16329 runpath_var=LD_RUN_PATH 16330 ;; 16331 siemens) 16332 need_lib_prefix=no 16333 ;; 16334 motorola) 16335 need_lib_prefix=no 16336 need_version=no 16337 shlibpath_overrides_runpath=no 16338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16339 ;; 16340 esac 16341 ;; 16342 16343 sysv4*MP*) 16344 if test -d /usr/nec ;then 16345 version_type=linux 16346 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16347 soname_spec='$libname${shared_ext}.$major' 16348 shlibpath_var=LD_LIBRARY_PATH 16349 fi 16350 ;; 16351 16352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16353 version_type=freebsd-elf 16354 need_lib_prefix=no 16355 need_version=no 16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16357 soname_spec='${libname}${release}${shared_ext}$major' 16358 shlibpath_var=LD_LIBRARY_PATH 16359 hardcode_into_libs=yes 16360 if test "$with_gnu_ld" = yes; then 16361 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16362 shlibpath_overrides_runpath=no 16363 else 16364 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16365 shlibpath_overrides_runpath=yes 16366 case $host_os in 16367 sco3.2v5*) 16368 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16369 ;; 16370 esac 16371 fi 16372 sys_lib_dlsearch_path_spec='/usr/lib' 16373 ;; 16374 16375 uts4*) 16376 version_type=linux 16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16378 soname_spec='${libname}${release}${shared_ext}$major' 16379 shlibpath_var=LD_LIBRARY_PATH 16380 ;; 16381 16382 *) 16383 dynamic_linker=no 16384 ;; 16385 esac 16386 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16387 $as_echo "$dynamic_linker" >&6; } 16388 test "$dynamic_linker" = no && can_build_shared=no 16389 16390 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16391 $as_echo_n "(cached) " >&6 16392 else 16393 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16394 fi 16395 16396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16398 $as_echo_n "(cached) " >&6 16399 else 16400 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16401 fi 16402 16403 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16404 16405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16406 if test "$GCC" = yes; then 16407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16408 fi 16409 16410 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16411 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16412 hardcode_action_F77= 16413 if test -n "$hardcode_libdir_flag_spec_F77" || \ 16414 test -n "$runpath_var_F77" || \ 16415 test "X$hardcode_automatic_F77" = "Xyes" ; then 16416 16417 # We can hardcode non-existant directories. 16418 if test "$hardcode_direct_F77" != no && 16419 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16420 # have to relink, otherwise we might link with an installed library 16421 # when we should be linking with a yet-to-be-installed one 16422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16423 test "$hardcode_minus_L_F77" != no; then 16424 # Linking always hardcodes the temporary library directory. 16425 hardcode_action_F77=relink 16426 else 16427 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16428 hardcode_action_F77=immediate 16429 fi 16430 else 16431 # We cannot hardcode anything, or else we can only hardcode existing 16432 # directories. 16433 hardcode_action_F77=unsupported 16434 fi 16435 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16436 $as_echo "$hardcode_action_F77" >&6; } 16437 16438 if test "$hardcode_action_F77" = relink; then 16439 # Fast installation is not supported 16440 enable_fast_install=no 16441 elif test "$shlibpath_overrides_runpath" = yes || 16442 test "$enable_shared" = no; then 16443 # Fast installation is not necessary 16444 enable_fast_install=needless 16445 fi 16446 16447 16448 # The else clause should only fire when bootstrapping the 16449 # libtool distribution, otherwise you forgot to ship ltmain.sh 16450 # with your package, and you will get complaints that there are 16451 # no rules to generate ltmain.sh. 16452 if test -f "$ltmain"; then 16453 # See if we are running on zsh, and set the options which allow our commands through 16454 # without removal of \ escapes. 16455 if test -n "${ZSH_VERSION+set}" ; then 16456 setopt NO_GLOB_SUBST 16457 fi 16458 # Now quote all the things that may contain metacharacters while being 16459 # careful not to overquote the AC_SUBSTed values. We take copies of the 16460 # variables and quote the copies for generation of the libtool script. 16461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16462 SED SHELL STRIP \ 16463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16465 deplibs_check_method reload_flag reload_cmds need_locks \ 16466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16467 lt_cv_sys_global_symbol_to_c_name_address \ 16468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16469 old_postinstall_cmds old_postuninstall_cmds \ 16470 compiler_F77 \ 16471 CC_F77 \ 16472 LD_F77 \ 16473 lt_prog_compiler_wl_F77 \ 16474 lt_prog_compiler_pic_F77 \ 16475 lt_prog_compiler_static_F77 \ 16476 lt_prog_compiler_no_builtin_flag_F77 \ 16477 export_dynamic_flag_spec_F77 \ 16478 thread_safe_flag_spec_F77 \ 16479 whole_archive_flag_spec_F77 \ 16480 enable_shared_with_static_runtimes_F77 \ 16481 old_archive_cmds_F77 \ 16482 old_archive_from_new_cmds_F77 \ 16483 predep_objects_F77 \ 16484 postdep_objects_F77 \ 16485 predeps_F77 \ 16486 postdeps_F77 \ 16487 compiler_lib_search_path_F77 \ 16488 compiler_lib_search_dirs_F77 \ 16489 archive_cmds_F77 \ 16490 archive_expsym_cmds_F77 \ 16491 postinstall_cmds_F77 \ 16492 postuninstall_cmds_F77 \ 16493 old_archive_from_expsyms_cmds_F77 \ 16494 allow_undefined_flag_F77 \ 16495 no_undefined_flag_F77 \ 16496 export_symbols_cmds_F77 \ 16497 hardcode_libdir_flag_spec_F77 \ 16498 hardcode_libdir_flag_spec_ld_F77 \ 16499 hardcode_libdir_separator_F77 \ 16500 hardcode_automatic_F77 \ 16501 module_cmds_F77 \ 16502 module_expsym_cmds_F77 \ 16503 lt_cv_prog_compiler_c_o_F77 \ 16504 fix_srcfile_path_F77 \ 16505 exclude_expsyms_F77 \ 16506 include_expsyms_F77; do 16507 16508 case $var in 16509 old_archive_cmds_F77 | \ 16510 old_archive_from_new_cmds_F77 | \ 16511 archive_cmds_F77 | \ 16512 archive_expsym_cmds_F77 | \ 16513 module_cmds_F77 | \ 16514 module_expsym_cmds_F77 | \ 16515 old_archive_from_expsyms_cmds_F77 | \ 16516 export_symbols_cmds_F77 | \ 16517 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16518 postinstall_cmds | postuninstall_cmds | \ 16519 old_postinstall_cmds | old_postuninstall_cmds | \ 16520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16521 # Double-quote double-evaled strings. 16522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16523 ;; 16524 *) 16525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16526 ;; 16527 esac 16528 done 16529 16530 case $lt_echo in 16531 *'\$0 --fallback-echo"') 16532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16533 ;; 16534 esac 16535 16536 cfgfile="$ofile" 16537 16538 cat <<__EOF__ >> "$cfgfile" 16539 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 16540 16541 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16542 16543 # Shell to use when invoking shell scripts. 16544 SHELL=$lt_SHELL 16545 16546 # Whether or not to build shared libraries. 16547 build_libtool_libs=$enable_shared 16548 16549 # Whether or not to build static libraries. 16550 build_old_libs=$enable_static 16551 16552 # Whether or not to add -lc for building shared libraries. 16553 build_libtool_need_lc=$archive_cmds_need_lc_F77 16554 16555 # Whether or not to disallow shared libs when runtime libs are static 16556 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16557 16558 # Whether or not to optimize for fast installation. 16559 fast_install=$enable_fast_install 16560 16561 # The host system. 16562 host_alias=$host_alias 16563 host=$host 16564 host_os=$host_os 16565 16566 # The build system. 16567 build_alias=$build_alias 16568 build=$build 16569 build_os=$build_os 16570 16571 # An echo program that does not interpret backslashes. 16572 echo=$lt_echo 16573 16574 # The archiver. 16575 AR=$lt_AR 16576 AR_FLAGS=$lt_AR_FLAGS 16577 16578 # A C compiler. 16579 LTCC=$lt_LTCC 16580 16581 # LTCC compiler flags. 16582 LTCFLAGS=$lt_LTCFLAGS 16583 16584 # A language-specific compiler. 16585 CC=$lt_compiler_F77 16586 16587 # Is the compiler the GNU C compiler? 16588 with_gcc=$GCC_F77 16589 16590 # An ERE matcher. 16591 EGREP=$lt_EGREP 16592 16593 # The linker used to build libraries. 16594 LD=$lt_LD_F77 16595 16596 # Whether we need hard or soft links. 16597 LN_S=$lt_LN_S 16598 16599 # A BSD-compatible nm program. 16600 NM=$lt_NM 16601 16602 # A symbol stripping program 16603 STRIP=$lt_STRIP 16604 16605 # Used to examine libraries when file_magic_cmd begins "file" 16606 MAGIC_CMD=$MAGIC_CMD 16607 16608 # Used on cygwin: DLL creation program. 16609 DLLTOOL="$DLLTOOL" 16610 16611 # Used on cygwin: object dumper. 16612 OBJDUMP="$OBJDUMP" 16613 16614 # Used on cygwin: assembler. 16615 AS="$AS" 16616 16617 # The name of the directory that contains temporary libtool files. 16618 objdir=$objdir 16619 16620 # How to create reloadable object files. 16621 reload_flag=$lt_reload_flag 16622 reload_cmds=$lt_reload_cmds 16623 16624 # How to pass a linker flag through the compiler. 16625 wl=$lt_lt_prog_compiler_wl_F77 16626 16627 # Object file suffix (normally "o"). 16628 objext="$ac_objext" 16629 16630 # Old archive suffix (normally "a"). 16631 libext="$libext" 16632 16633 # Shared library suffix (normally ".so"). 16634 shrext_cmds='$shrext_cmds' 16635 16636 # Executable file suffix (normally ""). 16637 exeext="$exeext" 16638 16639 # Additional compiler flags for building library objects. 16640 pic_flag=$lt_lt_prog_compiler_pic_F77 16641 pic_mode=$pic_mode 16642 16643 # What is the maximum length of a command? 16644 max_cmd_len=$lt_cv_sys_max_cmd_len 16645 16646 # Does compiler simultaneously support -c and -o options? 16647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16648 16649 # Must we lock files when doing compilation? 16650 need_locks=$lt_need_locks 16651 16652 # Do we need the lib prefix for modules? 16653 need_lib_prefix=$need_lib_prefix 16654 16655 # Do we need a version for libraries? 16656 need_version=$need_version 16657 16658 # Whether dlopen is supported. 16659 dlopen_support=$enable_dlopen 16660 16661 # Whether dlopen of programs is supported. 16662 dlopen_self=$enable_dlopen_self 16663 16664 # Whether dlopen of statically linked programs is supported. 16665 dlopen_self_static=$enable_dlopen_self_static 16666 16667 # Compiler flag to prevent dynamic linking. 16668 link_static_flag=$lt_lt_prog_compiler_static_F77 16669 16670 # Compiler flag to turn off builtin functions. 16671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16672 16673 # Compiler flag to allow reflexive dlopens. 16674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16675 16676 # Compiler flag to generate shared objects directly from archives. 16677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16678 16679 # Compiler flag to generate thread-safe objects. 16680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16681 16682 # Library versioning type. 16683 version_type=$version_type 16684 16685 # Format of library name prefix. 16686 libname_spec=$lt_libname_spec 16687 16688 # List of archive names. First name is the real one, the rest are links. 16689 # The last name is the one that the linker finds with -lNAME. 16690 library_names_spec=$lt_library_names_spec 16691 16692 # The coded name of the library, if different from the real name. 16693 soname_spec=$lt_soname_spec 16694 16695 # Commands used to build and install an old-style archive. 16696 RANLIB=$lt_RANLIB 16697 old_archive_cmds=$lt_old_archive_cmds_F77 16698 old_postinstall_cmds=$lt_old_postinstall_cmds 16699 old_postuninstall_cmds=$lt_old_postuninstall_cmds 16700 16701 # Create an old-style archive from a shared archive. 16702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16703 16704 # Create a temporary old-style archive to link instead of a shared archive. 16705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16706 16707 # Commands used to build and install a shared archive. 16708 archive_cmds=$lt_archive_cmds_F77 16709 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16710 postinstall_cmds=$lt_postinstall_cmds 16711 postuninstall_cmds=$lt_postuninstall_cmds 16712 16713 # Commands used to build a loadable module (assumed same as above if empty) 16714 module_cmds=$lt_module_cmds_F77 16715 module_expsym_cmds=$lt_module_expsym_cmds_F77 16716 16717 # Commands to strip libraries. 16718 old_striplib=$lt_old_striplib 16719 striplib=$lt_striplib 16720 16721 # Dependencies to place before the objects being linked to create a 16722 # shared library. 16723 predep_objects=$lt_predep_objects_F77 16724 16725 # Dependencies to place after the objects being linked to create a 16726 # shared library. 16727 postdep_objects=$lt_postdep_objects_F77 16728 16729 # Dependencies to place before the objects being linked to create a 16730 # shared library. 16731 predeps=$lt_predeps_F77 16732 16733 # Dependencies to place after the objects being linked to create a 16734 # shared library. 16735 postdeps=$lt_postdeps_F77 16736 16737 # The directories searched by this compiler when creating a shared 16738 # library 16739 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16740 16741 # The library search path used internally by the compiler when linking 16742 # a shared library. 16743 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16744 16745 # Method to check whether dependent libraries are shared objects. 16746 deplibs_check_method=$lt_deplibs_check_method 16747 16748 # Command to use when deplibs_check_method == file_magic. 16749 file_magic_cmd=$lt_file_magic_cmd 16750 16751 # Flag that allows shared libraries with undefined symbols to be built. 16752 allow_undefined_flag=$lt_allow_undefined_flag_F77 16753 16754 # Flag that forces no undefined symbols. 16755 no_undefined_flag=$lt_no_undefined_flag_F77 16756 16757 # Commands used to finish a libtool library installation in a directory. 16758 finish_cmds=$lt_finish_cmds 16759 16760 # Same as above, but a single script fragment to be evaled but not shown. 16761 finish_eval=$lt_finish_eval 16762 16763 # Take the output of nm and produce a listing of raw symbols and C names. 16764 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16765 16766 # Transform the output of nm in a proper C declaration 16767 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16768 16769 # Transform the output of nm in a C name address pair 16770 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16771 16772 # This is the shared library runtime path variable. 16773 runpath_var=$runpath_var 16774 16775 # This is the shared library path variable. 16776 shlibpath_var=$shlibpath_var 16777 16778 # Is shlibpath searched before the hard-coded library search path? 16779 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16780 16781 # How to hardcode a shared library path into an executable. 16782 hardcode_action=$hardcode_action_F77 16783 16784 # Whether we should hardcode library paths into libraries. 16785 hardcode_into_libs=$hardcode_into_libs 16786 16787 # Flag to hardcode \$libdir into a binary during linking. 16788 # This must work even if \$libdir does not exist. 16789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16790 16791 # If ld is used when linking, flag to hardcode \$libdir into 16792 # a binary during linking. This must work even if \$libdir does 16793 # not exist. 16794 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16795 16796 # Whether we need a single -rpath flag with a separated argument. 16797 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16798 16799 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16800 # resulting binary. 16801 hardcode_direct=$hardcode_direct_F77 16802 16803 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16804 # resulting binary. 16805 hardcode_minus_L=$hardcode_minus_L_F77 16806 16807 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16808 # the resulting binary. 16809 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16810 16811 # Set to yes if building a shared library automatically hardcodes DIR into the library 16812 # and all subsequent libraries and executables linked against it. 16813 hardcode_automatic=$hardcode_automatic_F77 16814 16815 # Variables whose values should be saved in libtool wrapper scripts and 16816 # restored at relink time. 16817 variables_saved_for_relink="$variables_saved_for_relink" 16818 16819 # Whether libtool must link a program against all its dependency libraries. 16820 link_all_deplibs=$link_all_deplibs_F77 16821 16822 # Compile-time system search path for libraries 16823 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16824 16825 # Run-time system search path for libraries 16826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16827 16828 # Fix the shell variable \$srcfile for the compiler. 16829 fix_srcfile_path=$lt_fix_srcfile_path 16830 16831 # Set to yes if exported symbols are required. 16832 always_export_symbols=$always_export_symbols_F77 16833 16834 # The commands to list exported symbols. 16835 export_symbols_cmds=$lt_export_symbols_cmds_F77 16836 16837 # The commands to extract the exported symbol list from a shared archive. 16838 extract_expsyms_cmds=$lt_extract_expsyms_cmds 16839 16840 # Symbols that should not be listed in the preloaded symbols. 16841 exclude_expsyms=$lt_exclude_expsyms_F77 16842 16843 # Symbols that must always be exported. 16844 include_expsyms=$lt_include_expsyms_F77 16845 16846 # ### END LIBTOOL TAG CONFIG: $tagname 16847 16848 __EOF__ 16849 16850 16851 else 16852 # If there is no Makefile yet, we rely on a make rule to execute 16853 # `config.status --recheck' to rerun these tests and create the 16854 # libtool script then. 16855 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16856 if test -f "$ltmain_in"; then 16857 test -f Makefile && make "$ltmain" 16858 fi 16859 fi 16860 16861 16862 ac_ext=c 16863 ac_cpp='$CPP $CPPFLAGS' 16864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16866 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16867 16868 CC="$lt_save_CC" 16869 16870 else 16871 tagname="" 16872 fi 16873 ;; 16874 16875 GCJ) 16876 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16877 16878 16879 # Source file extension for Java test sources. 16880 ac_ext=java 16881 16882 # Object file extension for compiled Java test sources. 16883 objext=o 16884 objext_GCJ=$objext 16885 16886 # Code to be used in simple compile tests 16887 lt_simple_compile_test_code="class foo {}" 16888 16889 # Code to be used in simple link tests 16890 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16891 16892 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16893 16894 # If no C compiler was specified, use CC. 16895 LTCC=${LTCC-"$CC"} 16896 16897 # If no C compiler flags were specified, use CFLAGS. 16898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16899 16900 # Allow CC to be a program name with arguments. 16901 compiler=$CC 16902 16903 16904 # save warnings/boilerplate of simple test code 16905 ac_outfile=conftest.$ac_objext 16906 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16907 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16908 _lt_compiler_boilerplate=`cat conftest.err` 16909 $rm conftest* 16910 16911 ac_outfile=conftest.$ac_objext 16912 echo "$lt_simple_link_test_code" >conftest.$ac_ext 16913 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16914 _lt_linker_boilerplate=`cat conftest.err` 16915 $rm -r conftest* 16916 16917 16918 # Allow CC to be a program name with arguments. 16919 lt_save_CC="$CC" 16920 CC=${GCJ-"gcj"} 16921 compiler=$CC 16922 compiler_GCJ=$CC 16923 for cc_temp in $compiler""; do 16924 case $cc_temp in 16925 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16926 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16927 \-*) ;; 16928 *) break;; 16929 esac 16930 done 16931 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16932 16933 16934 # GCJ did not exist at the time GCC didn't implicitly link libc in. 16935 archive_cmds_need_lc_GCJ=no 16936 16937 old_archive_cmds_GCJ=$old_archive_cmds 16938 16939 16940 lt_prog_compiler_no_builtin_flag_GCJ= 16941 16942 if test "$GCC" = yes; then 16943 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16944 16945 16946 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16947 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16948 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16949 $as_echo_n "(cached) " >&6 16950 else 16951 lt_cv_prog_compiler_rtti_exceptions=no 16952 ac_outfile=conftest.$ac_objext 16953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16954 lt_compiler_flag="-fno-rtti -fno-exceptions" 16955 # Insert the option either (1) after the last *FLAGS variable, or 16956 # (2) before a word containing "conftest.", or (3) at the end. 16957 # Note that $ac_compile itself does not contain backslashes and begins 16958 # with a dollar sign (not a hyphen), so the echo should work correctly. 16959 # The option is referenced via a variable to avoid confusing sed. 16960 lt_compile=`echo "$ac_compile" | $SED \ 16961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16963 -e 's:$: $lt_compiler_flag:'` 16964 (eval echo "\"\$as_me:16964: $lt_compile\"" >&5) 16965 (eval "$lt_compile" 2>conftest.err) 16966 ac_status=$? 16967 cat conftest.err >&5 16968 echo "$as_me:16968: \$? = $ac_status" >&5 16969 if (exit $ac_status) && test -s "$ac_outfile"; then 16970 # The compiler can only warn and ignore the option if not recognized 16971 # So say no if there are warnings other than the usual output. 16972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16975 lt_cv_prog_compiler_rtti_exceptions=yes 16976 fi 16977 fi 16978 $rm conftest* 16979 16980 fi 16981 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16982 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16983 16984 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16985 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16986 else 16987 : 16988 fi 16989 16990 fi 16991 16992 lt_prog_compiler_wl_GCJ= 16993 lt_prog_compiler_pic_GCJ= 16994 lt_prog_compiler_static_GCJ= 16995 16996 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16997 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16998 16999 if test "$GCC" = yes; then 17000 lt_prog_compiler_wl_GCJ='-Wl,' 17001 lt_prog_compiler_static_GCJ='-static' 17002 17003 case $host_os in 17004 aix*) 17005 # All AIX code is PIC. 17006 if test "$host_cpu" = ia64; then 17007 # AIX 5 now supports IA64 processor 17008 lt_prog_compiler_static_GCJ='-Bstatic' 17009 fi 17010 ;; 17011 17012 amigaos*) 17013 # FIXME: we need at least 68020 code to build shared libraries, but 17014 # adding the `-m68020' flag to GCC prevents building anything better, 17015 # like `-m68040'. 17016 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17017 ;; 17018 17019 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17020 # PIC is the default for these OSes. 17021 ;; 17022 17023 mingw* | cygwin* | pw32* | os2*) 17024 # This hack is so that the source file can tell whether it is being 17025 # built for inclusion in a dll (and should export symbols for example). 17026 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17027 # (--disable-auto-import) libraries 17028 17029 ;; 17030 17031 darwin* | rhapsody*) 17032 # PIC is the default on this platform 17033 # Common symbols not allowed in MH_DYLIB files 17034 lt_prog_compiler_pic_GCJ='-fno-common' 17035 ;; 17036 17037 interix[3-9]*) 17038 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17039 # Instead, we relocate shared libraries at runtime. 17040 ;; 17041 17042 msdosdjgpp*) 17043 # Just because we use GCC doesn't mean we suddenly get shared libraries 17044 # on systems that don't support them. 17045 lt_prog_compiler_can_build_shared_GCJ=no 17046 enable_shared=no 17047 ;; 17048 17049 sysv4*MP*) 17050 if test -d /usr/nec; then 17051 lt_prog_compiler_pic_GCJ=-Kconform_pic 17052 fi 17053 ;; 17054 17055 hpux*) 17056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17057 # not for PA HP-UX. 17058 case $host_cpu in 17059 hppa*64*|ia64*) 17060 # +Z the default 17061 ;; 17062 *) 17063 lt_prog_compiler_pic_GCJ='-fPIC' 17064 ;; 17065 esac 17066 ;; 17067 17068 *) 17069 lt_prog_compiler_pic_GCJ='-fPIC' 17070 ;; 17071 esac 17072 else 17073 # PORTME Check for flag to pass linker flags through the system compiler. 17074 case $host_os in 17075 aix*) 17076 lt_prog_compiler_wl_GCJ='-Wl,' 17077 if test "$host_cpu" = ia64; then 17078 # AIX 5 now supports IA64 processor 17079 lt_prog_compiler_static_GCJ='-Bstatic' 17080 else 17081 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17082 fi 17083 ;; 17084 darwin*) 17085 # PIC is the default on this platform 17086 # Common symbols not allowed in MH_DYLIB files 17087 case $cc_basename in 17088 xlc*) 17089 lt_prog_compiler_pic_GCJ='-qnocommon' 17090 lt_prog_compiler_wl_GCJ='-Wl,' 17091 ;; 17092 esac 17093 ;; 17094 17095 mingw* | cygwin* | pw32* | os2*) 17096 # This hack is so that the source file can tell whether it is being 17097 # built for inclusion in a dll (and should export symbols for example). 17098 17099 ;; 17100 17101 hpux9* | hpux10* | hpux11*) 17102 lt_prog_compiler_wl_GCJ='-Wl,' 17103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17104 # not for PA HP-UX. 17105 case $host_cpu in 17106 hppa*64*|ia64*) 17107 # +Z the default 17108 ;; 17109 *) 17110 lt_prog_compiler_pic_GCJ='+Z' 17111 ;; 17112 esac 17113 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17114 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17115 ;; 17116 17117 irix5* | irix6* | nonstopux*) 17118 lt_prog_compiler_wl_GCJ='-Wl,' 17119 # PIC (with -KPIC) is the default. 17120 lt_prog_compiler_static_GCJ='-non_shared' 17121 ;; 17122 17123 newsos6) 17124 lt_prog_compiler_pic_GCJ='-KPIC' 17125 lt_prog_compiler_static_GCJ='-Bstatic' 17126 ;; 17127 17128 linux* | k*bsd*-gnu) 17129 case $cc_basename in 17130 icc* | ecc*) 17131 lt_prog_compiler_wl_GCJ='-Wl,' 17132 lt_prog_compiler_pic_GCJ='-KPIC' 17133 lt_prog_compiler_static_GCJ='-static' 17134 ;; 17135 pgcc* | pgf77* | pgf90* | pgf95*) 17136 # Portland Group compilers (*not* the Pentium gcc compiler, 17137 # which looks to be a dead project) 17138 lt_prog_compiler_wl_GCJ='-Wl,' 17139 lt_prog_compiler_pic_GCJ='-fpic' 17140 lt_prog_compiler_static_GCJ='-Bstatic' 17141 ;; 17142 ccc*) 17143 lt_prog_compiler_wl_GCJ='-Wl,' 17144 # All Alpha code is PIC. 17145 lt_prog_compiler_static_GCJ='-non_shared' 17146 ;; 17147 *) 17148 case `$CC -V 2>&1 | sed 5q` in 17149 *Sun\ C*) 17150 # Sun C 5.9 17151 lt_prog_compiler_pic_GCJ='-KPIC' 17152 lt_prog_compiler_static_GCJ='-Bstatic' 17153 lt_prog_compiler_wl_GCJ='-Wl,' 17154 ;; 17155 *Sun\ F*) 17156 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17157 lt_prog_compiler_pic_GCJ='-KPIC' 17158 lt_prog_compiler_static_GCJ='-Bstatic' 17159 lt_prog_compiler_wl_GCJ='' 17160 ;; 17161 esac 17162 ;; 17163 esac 17164 ;; 17165 17166 osf3* | osf4* | osf5*) 17167 lt_prog_compiler_wl_GCJ='-Wl,' 17168 # All OSF/1 code is PIC. 17169 lt_prog_compiler_static_GCJ='-non_shared' 17170 ;; 17171 17172 rdos*) 17173 lt_prog_compiler_static_GCJ='-non_shared' 17174 ;; 17175 17176 solaris*) 17177 lt_prog_compiler_pic_GCJ='-KPIC' 17178 lt_prog_compiler_static_GCJ='-Bstatic' 17179 case $cc_basename in 17180 f77* | f90* | f95*) 17181 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17182 *) 17183 lt_prog_compiler_wl_GCJ='-Wl,';; 17184 esac 17185 ;; 17186 17187 sunos4*) 17188 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17189 lt_prog_compiler_pic_GCJ='-PIC' 17190 lt_prog_compiler_static_GCJ='-Bstatic' 17191 ;; 17192 17193 sysv4 | sysv4.2uw2* | sysv4.3*) 17194 lt_prog_compiler_wl_GCJ='-Wl,' 17195 lt_prog_compiler_pic_GCJ='-KPIC' 17196 lt_prog_compiler_static_GCJ='-Bstatic' 17197 ;; 17198 17199 sysv4*MP*) 17200 if test -d /usr/nec ;then 17201 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17202 lt_prog_compiler_static_GCJ='-Bstatic' 17203 fi 17204 ;; 17205 17206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17207 lt_prog_compiler_wl_GCJ='-Wl,' 17208 lt_prog_compiler_pic_GCJ='-KPIC' 17209 lt_prog_compiler_static_GCJ='-Bstatic' 17210 ;; 17211 17212 unicos*) 17213 lt_prog_compiler_wl_GCJ='-Wl,' 17214 lt_prog_compiler_can_build_shared_GCJ=no 17215 ;; 17216 17217 uts4*) 17218 lt_prog_compiler_pic_GCJ='-pic' 17219 lt_prog_compiler_static_GCJ='-Bstatic' 17220 ;; 17221 17222 *) 17223 lt_prog_compiler_can_build_shared_GCJ=no 17224 ;; 17225 esac 17226 fi 17227 17228 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17229 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17230 17231 # 17232 # Check to make sure the PIC flag actually works. 17233 # 17234 if test -n "$lt_prog_compiler_pic_GCJ"; then 17235 17236 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17238 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17239 $as_echo_n "(cached) " >&6 17240 else 17241 lt_cv_prog_compiler_pic_works_GCJ=no 17242 ac_outfile=conftest.$ac_objext 17243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17244 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17245 # Insert the option either (1) after the last *FLAGS variable, or 17246 # (2) before a word containing "conftest.", or (3) at the end. 17247 # Note that $ac_compile itself does not contain backslashes and begins 17248 # with a dollar sign (not a hyphen), so the echo should work correctly. 17249 # The option is referenced via a variable to avoid confusing sed. 17250 lt_compile=`echo "$ac_compile" | $SED \ 17251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17253 -e 's:$: $lt_compiler_flag:'` 17254 (eval echo "\"\$as_me:17254: $lt_compile\"" >&5) 17255 (eval "$lt_compile" 2>conftest.err) 17256 ac_status=$? 17257 cat conftest.err >&5 17258 echo "$as_me:17258: \$? = $ac_status" >&5 17259 if (exit $ac_status) && test -s "$ac_outfile"; then 17260 # The compiler can only warn and ignore the option if not recognized 17261 # So say no if there are warnings other than the usual output. 17262 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17265 lt_cv_prog_compiler_pic_works_GCJ=yes 17266 fi 17267 fi 17268 $rm conftest* 17269 17270 fi 17271 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17272 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17273 17274 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17275 case $lt_prog_compiler_pic_GCJ in 17276 "" | " "*) ;; 17277 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17278 esac 17279 else 17280 lt_prog_compiler_pic_GCJ= 17281 lt_prog_compiler_can_build_shared_GCJ=no 17282 fi 17283 17284 fi 17285 case $host_os in 17286 # For platforms which do not support PIC, -DPIC is meaningless: 17287 *djgpp*) 17288 lt_prog_compiler_pic_GCJ= 17289 ;; 17290 *) 17291 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17292 ;; 17293 esac 17294 17295 # 17296 # Check to make sure the static flag actually works. 17297 # 17298 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17299 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17300 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17301 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17302 $as_echo_n "(cached) " >&6 17303 else 17304 lt_cv_prog_compiler_static_works_GCJ=no 17305 save_LDFLAGS="$LDFLAGS" 17306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17307 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17309 # The linker can only warn and ignore the option if not recognized 17310 # So say no if there are warnings 17311 if test -s conftest.err; then 17312 # Append any errors to the config.log. 17313 cat conftest.err 1>&5 17314 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17316 if diff conftest.exp conftest.er2 >/dev/null; then 17317 lt_cv_prog_compiler_static_works_GCJ=yes 17318 fi 17319 else 17320 lt_cv_prog_compiler_static_works_GCJ=yes 17321 fi 17322 fi 17323 $rm -r conftest* 17324 LDFLAGS="$save_LDFLAGS" 17325 17326 fi 17327 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17328 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17329 17330 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17331 : 17332 else 17333 lt_prog_compiler_static_GCJ= 17334 fi 17335 17336 17337 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17339 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17340 $as_echo_n "(cached) " >&6 17341 else 17342 lt_cv_prog_compiler_c_o_GCJ=no 17343 $rm -r conftest 2>/dev/null 17344 mkdir conftest 17345 cd conftest 17346 mkdir out 17347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17348 17349 lt_compiler_flag="-o out/conftest2.$ac_objext" 17350 # Insert the option either (1) after the last *FLAGS variable, or 17351 # (2) before a word containing "conftest.", or (3) at the end. 17352 # Note that $ac_compile itself does not contain backslashes and begins 17353 # with a dollar sign (not a hyphen), so the echo should work correctly. 17354 lt_compile=`echo "$ac_compile" | $SED \ 17355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17357 -e 's:$: $lt_compiler_flag:'` 17358 (eval echo "\"\$as_me:17358: $lt_compile\"" >&5) 17359 (eval "$lt_compile" 2>out/conftest.err) 17360 ac_status=$? 17361 cat out/conftest.err >&5 17362 echo "$as_me:17362: \$? = $ac_status" >&5 17363 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17364 then 17365 # The compiler can only warn and ignore the option if not recognized 17366 # So say no if there are warnings 17367 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17370 lt_cv_prog_compiler_c_o_GCJ=yes 17371 fi 17372 fi 17373 chmod u+w . 2>&5 17374 $rm conftest* 17375 # SGI C++ compiler will create directory out/ii_files/ for 17376 # template instantiation 17377 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17378 $rm out/* && rmdir out 17379 cd .. 17380 rmdir conftest 17381 $rm conftest* 17382 17383 fi 17384 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17385 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17386 17387 17388 hard_links="nottested" 17389 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17390 # do not overwrite the value of need_locks provided by the user 17391 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17392 $as_echo_n "checking if we can lock with hard links... " >&6; } 17393 hard_links=yes 17394 $rm conftest* 17395 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17396 touch conftest.a 17397 ln conftest.a conftest.b 2>&5 || hard_links=no 17398 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17399 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17400 $as_echo "$hard_links" >&6; } 17401 if test "$hard_links" = no; then 17402 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17403 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17404 need_locks=warn 17405 fi 17406 else 17407 need_locks=no 17408 fi 17409 17410 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17411 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17412 17413 runpath_var= 17414 allow_undefined_flag_GCJ= 17415 enable_shared_with_static_runtimes_GCJ=no 17416 archive_cmds_GCJ= 17417 archive_expsym_cmds_GCJ= 17418 old_archive_From_new_cmds_GCJ= 17419 old_archive_from_expsyms_cmds_GCJ= 17420 export_dynamic_flag_spec_GCJ= 17421 whole_archive_flag_spec_GCJ= 17422 thread_safe_flag_spec_GCJ= 17423 hardcode_libdir_flag_spec_GCJ= 17424 hardcode_libdir_flag_spec_ld_GCJ= 17425 hardcode_libdir_separator_GCJ= 17426 hardcode_direct_GCJ=no 17427 hardcode_minus_L_GCJ=no 17428 hardcode_shlibpath_var_GCJ=unsupported 17429 link_all_deplibs_GCJ=unknown 17430 hardcode_automatic_GCJ=no 17431 module_cmds_GCJ= 17432 module_expsym_cmds_GCJ= 17433 always_export_symbols_GCJ=no 17434 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17435 # include_expsyms should be a list of space-separated symbols to be *always* 17436 # included in the symbol list 17437 include_expsyms_GCJ= 17438 # exclude_expsyms can be an extended regexp of symbols to exclude 17439 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17440 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17441 # as well as any symbol that contains `d'. 17442 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17443 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17444 # platforms (ab)use it in PIC code, but their linkers get confused if 17445 # the symbol is explicitly referenced. Since portable code cannot 17446 # rely on this symbol name, it's probably fine to never include it in 17447 # preloaded symbol tables. 17448 # Exclude shared library initialization/finalization symbols. 17449 extract_expsyms_cmds= 17450 # Just being paranoid about ensuring that cc_basename is set. 17451 for cc_temp in $compiler""; do 17452 case $cc_temp in 17453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17455 \-*) ;; 17456 *) break;; 17457 esac 17458 done 17459 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17460 17461 case $host_os in 17462 cygwin* | mingw* | pw32*) 17463 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17464 # When not using gcc, we currently assume that we are using 17465 # Microsoft Visual C++. 17466 if test "$GCC" != yes; then 17467 with_gnu_ld=no 17468 fi 17469 ;; 17470 interix*) 17471 # we just hope/assume this is gcc and not c89 (= MSVC++) 17472 with_gnu_ld=yes 17473 ;; 17474 openbsd*) 17475 with_gnu_ld=no 17476 ;; 17477 esac 17478 17479 ld_shlibs_GCJ=yes 17480 if test "$with_gnu_ld" = yes; then 17481 # If archive_cmds runs LD, not CC, wlarc should be empty 17482 wlarc='${wl}' 17483 17484 # Set some defaults for GNU ld with shared library support. These 17485 # are reset later if shared libraries are not supported. Putting them 17486 # here allows them to be overridden if necessary. 17487 runpath_var=LD_RUN_PATH 17488 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17489 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17490 # ancient GNU ld didn't support --whole-archive et. al. 17491 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17492 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17493 else 17494 whole_archive_flag_spec_GCJ= 17495 fi 17496 supports_anon_versioning=no 17497 case `$LD -v 2>/dev/null` in 17498 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17499 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17500 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17501 *\ 2.11.*) ;; # other 2.11 versions 17502 *) supports_anon_versioning=yes ;; 17503 esac 17504 17505 # See if GNU ld supports shared libraries. 17506 case $host_os in 17507 aix[3-9]*) 17508 # On AIX/PPC, the GNU linker is very broken 17509 if test "$host_cpu" != ia64; then 17510 ld_shlibs_GCJ=no 17511 cat <<EOF 1>&2 17512 17513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 17514 *** to be unable to reliably create shared libraries on AIX. 17515 *** Therefore, libtool is disabling shared libraries support. If you 17516 *** really care for shared libraries, you may want to modify your PATH 17517 *** so that a non-GNU linker is found, and then restart. 17518 17519 EOF 17520 fi 17521 ;; 17522 17523 amigaos*) 17524 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)' 17525 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17526 hardcode_minus_L_GCJ=yes 17527 17528 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports 17529 # that the semantics of dynamic libraries on AmigaOS, at least up 17530 # to version 4, is to share data among multiple programs linked 17531 # with the same dynamic library. Since this doesn't match the 17532 # behavior of shared libraries on other platforms, we can't use 17533 # them. 17534 ld_shlibs_GCJ=no 17535 ;; 17536 17537 beos*) 17538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17539 allow_undefined_flag_GCJ=unsupported 17540 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 17541 # support --undefined. This deserves some investigation. FIXME 17542 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17543 else 17544 ld_shlibs_GCJ=no 17545 fi 17546 ;; 17547 17548 cygwin* | mingw* | pw32*) 17549 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17550 # as there is no search path for DLLs. 17551 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17552 allow_undefined_flag_GCJ=unsupported 17553 always_export_symbols_GCJ=no 17554 enable_shared_with_static_runtimes_GCJ=yes 17555 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17556 17557 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17559 # If the export-symbols file already is a .def file (1st line 17560 # is EXPORTS), use it as is; otherwise, prepend... 17561 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17562 cp $export_symbols $output_objdir/$soname.def; 17563 else 17564 echo EXPORTS > $output_objdir/$soname.def; 17565 cat $export_symbols >> $output_objdir/$soname.def; 17566 fi~ 17567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17568 else 17569 ld_shlibs_GCJ=no 17570 fi 17571 ;; 17572 17573 interix[3-9]*) 17574 hardcode_direct_GCJ=no 17575 hardcode_shlibpath_var_GCJ=no 17576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17577 export_dynamic_flag_spec_GCJ='${wl}-E' 17578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17579 # Instead, shared libraries are loaded at an image base (0x10000000 by 17580 # default) and relocated if they conflict, which is a slow very memory 17581 # consuming and fragmenting process. To avoid this, we pick a random, 17582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17583 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17584 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' 17585 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' 17586 ;; 17587 17588 gnu* | linux* | k*bsd*-gnu) 17589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17590 tmp_addflag= 17591 case $cc_basename,$host_cpu in 17592 pgcc*) # Portland Group C compiler 17593 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' 17594 tmp_addflag=' $pic_flag' 17595 ;; 17596 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17597 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' 17598 tmp_addflag=' $pic_flag -Mnomain' ;; 17599 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17600 tmp_addflag=' -i_dynamic' ;; 17601 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17602 tmp_addflag=' -i_dynamic -nofor_main' ;; 17603 ifc* | ifort*) # Intel Fortran compiler 17604 tmp_addflag=' -nofor_main' ;; 17605 esac 17606 case `$CC -V 2>&1 | sed 5q` in 17607 *Sun\ C*) # Sun C 5.9 17608 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' 17609 tmp_sharedflag='-G' ;; 17610 *Sun\ F*) # Sun Fortran 8.3 17611 tmp_sharedflag='-G' ;; 17612 *) 17613 tmp_sharedflag='-shared' ;; 17614 esac 17615 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17616 17617 if test $supports_anon_versioning = yes; then 17618 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17620 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17621 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17622 fi 17623 else 17624 ld_shlibs_GCJ=no 17625 fi 17626 ;; 17627 17628 netbsd*) 17629 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17630 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17631 wlarc= 17632 else 17633 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17634 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17635 fi 17636 ;; 17637 17638 solaris*) 17639 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17640 ld_shlibs_GCJ=no 17641 cat <<EOF 1>&2 17642 17643 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 17644 *** create shared libraries on Solaris systems. Therefore, libtool 17645 *** is disabling shared libraries support. We urge you to upgrade GNU 17646 *** binutils to release 2.9.1 or newer. Another option is to modify 17647 *** your PATH or compiler configuration so that the native linker is 17648 *** used, and then restart. 17649 17650 EOF 17651 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17652 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17653 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17654 else 17655 ld_shlibs_GCJ=no 17656 fi 17657 ;; 17658 17659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17660 case `$LD -v 2>&1` in 17661 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17662 ld_shlibs_GCJ=no 17663 cat <<_LT_EOF 1>&2 17664 17665 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17666 *** reliably create shared libraries on SCO systems. Therefore, libtool 17667 *** is disabling shared libraries support. We urge you to upgrade GNU 17668 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17669 *** your PATH or compiler configuration so that the native linker is 17670 *** used, and then restart. 17671 17672 _LT_EOF 17673 ;; 17674 *) 17675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17676 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17677 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17678 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17679 else 17680 ld_shlibs_GCJ=no 17681 fi 17682 ;; 17683 esac 17684 ;; 17685 17686 sunos4*) 17687 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17688 wlarc= 17689 hardcode_direct_GCJ=yes 17690 hardcode_shlibpath_var_GCJ=no 17691 ;; 17692 17693 *) 17694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17695 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17696 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17697 else 17698 ld_shlibs_GCJ=no 17699 fi 17700 ;; 17701 esac 17702 17703 if test "$ld_shlibs_GCJ" = no; then 17704 runpath_var= 17705 hardcode_libdir_flag_spec_GCJ= 17706 export_dynamic_flag_spec_GCJ= 17707 whole_archive_flag_spec_GCJ= 17708 fi 17709 else 17710 # PORTME fill in a description of your system's linker (not GNU ld) 17711 case $host_os in 17712 aix3*) 17713 allow_undefined_flag_GCJ=unsupported 17714 always_export_symbols_GCJ=yes 17715 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' 17716 # Note: this linker hardcodes the directories in LIBPATH if there 17717 # are no directories specified by -L. 17718 hardcode_minus_L_GCJ=yes 17719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17720 # Neither direct hardcoding nor static linking is supported with a 17721 # broken collect2. 17722 hardcode_direct_GCJ=unsupported 17723 fi 17724 ;; 17725 17726 aix[4-9]*) 17727 if test "$host_cpu" = ia64; then 17728 # On IA64, the linker does run time linking by default, so we don't 17729 # have to do anything special. 17730 aix_use_runtimelinking=no 17731 exp_sym_flag='-Bexport' 17732 no_entry_flag="" 17733 else 17734 # If we're using GNU nm, then we don't want the "-C" option. 17735 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17736 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17737 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' 17738 else 17739 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' 17740 fi 17741 aix_use_runtimelinking=no 17742 17743 # Test if we are trying to use run time linking or normal 17744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17745 # need to do runtime linking. 17746 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17747 for ld_flag in $LDFLAGS; do 17748 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17749 aix_use_runtimelinking=yes 17750 break 17751 fi 17752 done 17753 ;; 17754 esac 17755 17756 exp_sym_flag='-bexport' 17757 no_entry_flag='-bnoentry' 17758 fi 17759 17760 # When large executables or shared objects are built, AIX ld can 17761 # have problems creating the table of contents. If linking a library 17762 # or program results in "error TOC overflow" add -mminimal-toc to 17763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17765 17766 archive_cmds_GCJ='' 17767 hardcode_direct_GCJ=yes 17768 hardcode_libdir_separator_GCJ=':' 17769 link_all_deplibs_GCJ=yes 17770 17771 if test "$GCC" = yes; then 17772 case $host_os in aix4.[012]|aix4.[012].*) 17773 # We only want to do this on AIX 4.2 and lower, the check 17774 # below for broken collect2 doesn't work under 4.3+ 17775 collect2name=`${CC} -print-prog-name=collect2` 17776 if test -f "$collect2name" && \ 17777 strings "$collect2name" | grep resolve_lib_name >/dev/null 17778 then 17779 # We have reworked collect2 17780 : 17781 else 17782 # We have old collect2 17783 hardcode_direct_GCJ=unsupported 17784 # It fails to find uninstalled libraries when the uninstalled 17785 # path is not listed in the libpath. Setting hardcode_minus_L 17786 # to unsupported forces relinking 17787 hardcode_minus_L_GCJ=yes 17788 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17789 hardcode_libdir_separator_GCJ= 17790 fi 17791 ;; 17792 esac 17793 shared_flag='-shared' 17794 if test "$aix_use_runtimelinking" = yes; then 17795 shared_flag="$shared_flag "'${wl}-G' 17796 fi 17797 else 17798 # not using gcc 17799 if test "$host_cpu" = ia64; then 17800 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17801 # chokes on -Wl,-G. The following line is correct: 17802 shared_flag='-G' 17803 else 17804 if test "$aix_use_runtimelinking" = yes; then 17805 shared_flag='${wl}-G' 17806 else 17807 shared_flag='${wl}-bM:SRE' 17808 fi 17809 fi 17810 fi 17811 17812 # It seems that -bexpall does not export symbols beginning with 17813 # underscore (_), so it is better to generate a list of symbols to export. 17814 always_export_symbols_GCJ=yes 17815 if test "$aix_use_runtimelinking" = yes; then 17816 # Warning - without using the other runtime loading flags (-brtl), 17817 # -berok will link without error, but may produce a broken library. 17818 allow_undefined_flag_GCJ='-berok' 17819 # Determine the default libpath from the value encoded in an empty executable. 17820 cat >conftest.$ac_ext <<_ACEOF 17821 /* confdefs.h. */ 17822 _ACEOF 17823 cat confdefs.h >>conftest.$ac_ext 17824 cat >>conftest.$ac_ext <<_ACEOF 17825 /* end confdefs.h. */ 17826 17827 int 17828 main () 17829 { 17830 17831 ; 17832 return 0; 17833 } 17834 _ACEOF 17835 rm -f conftest.$ac_objext conftest$ac_exeext 17836 if { (ac_try="$ac_link" 17837 case "(($ac_try" in 17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17839 *) ac_try_echo=$ac_try;; 17840 esac 17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17842 $as_echo "$ac_try_echo") >&5 17843 (eval "$ac_link") 2>conftest.er1 17844 ac_status=$? 17845 grep -v '^ *+' conftest.er1 >conftest.err 17846 rm -f conftest.er1 17847 cat conftest.err >&5 17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17849 (exit $ac_status); } && { 17850 test -z "$ac_c_werror_flag" || 17851 test ! -s conftest.err 17852 } && test -s conftest$ac_exeext && { 17853 test "$cross_compiling" = yes || 17854 $as_test_x conftest$ac_exeext 17855 }; then 17856 17857 lt_aix_libpath_sed=' 17858 /Import File Strings/,/^$/ { 17859 /^0/ { 17860 s/^0 *\(.*\)$/\1/ 17861 p 17862 } 17863 }' 17864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17865 # Check for a 64-bit object if we didn't find anything. 17866 if test -z "$aix_libpath"; then 17867 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17868 fi 17869 else 17870 $as_echo "$as_me: failed program was:" >&5 17871 sed 's/^/| /' conftest.$ac_ext >&5 17872 17873 17874 fi 17875 17876 rm -rf conftest.dSYM 17877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17878 conftest$ac_exeext conftest.$ac_ext 17879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17880 17881 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17882 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" 17883 else 17884 if test "$host_cpu" = ia64; then 17885 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17886 allow_undefined_flag_GCJ="-z nodefs" 17887 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" 17888 else 17889 # Determine the default libpath from the value encoded in an empty executable. 17890 cat >conftest.$ac_ext <<_ACEOF 17891 /* confdefs.h. */ 17892 _ACEOF 17893 cat confdefs.h >>conftest.$ac_ext 17894 cat >>conftest.$ac_ext <<_ACEOF 17895 /* end confdefs.h. */ 17896 17897 int 17898 main () 17899 { 17900 17901 ; 17902 return 0; 17903 } 17904 _ACEOF 17905 rm -f conftest.$ac_objext conftest$ac_exeext 17906 if { (ac_try="$ac_link" 17907 case "(($ac_try" in 17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17909 *) ac_try_echo=$ac_try;; 17910 esac 17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17912 $as_echo "$ac_try_echo") >&5 17913 (eval "$ac_link") 2>conftest.er1 17914 ac_status=$? 17915 grep -v '^ *+' conftest.er1 >conftest.err 17916 rm -f conftest.er1 17917 cat conftest.err >&5 17918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17919 (exit $ac_status); } && { 17920 test -z "$ac_c_werror_flag" || 17921 test ! -s conftest.err 17922 } && test -s conftest$ac_exeext && { 17923 test "$cross_compiling" = yes || 17924 $as_test_x conftest$ac_exeext 17925 }; then 17926 17927 lt_aix_libpath_sed=' 17928 /Import File Strings/,/^$/ { 17929 /^0/ { 17930 s/^0 *\(.*\)$/\1/ 17931 p 17932 } 17933 }' 17934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17935 # Check for a 64-bit object if we didn't find anything. 17936 if test -z "$aix_libpath"; then 17937 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17938 fi 17939 else 17940 $as_echo "$as_me: failed program was:" >&5 17941 sed 's/^/| /' conftest.$ac_ext >&5 17942 17943 17944 fi 17945 17946 rm -rf conftest.dSYM 17947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17948 conftest$ac_exeext conftest.$ac_ext 17949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17950 17951 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17952 # Warning - without using the other run time loading flags, 17953 # -berok will link without error, but may produce a broken library. 17954 no_undefined_flag_GCJ=' ${wl}-bernotok' 17955 allow_undefined_flag_GCJ=' ${wl}-berok' 17956 # Exported symbols can be pulled into shared objects from archives 17957 whole_archive_flag_spec_GCJ='$convenience' 17958 archive_cmds_need_lc_GCJ=yes 17959 # This is similar to how AIX traditionally builds its shared libraries. 17960 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' 17961 fi 17962 fi 17963 ;; 17964 17965 amigaos*) 17966 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)' 17967 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17968 hardcode_minus_L_GCJ=yes 17969 # see comment about different semantics on the GNU ld section 17970 ld_shlibs_GCJ=no 17971 ;; 17972 17973 bsdi[45]*) 17974 export_dynamic_flag_spec_GCJ=-rdynamic 17975 ;; 17976 17977 cygwin* | mingw* | pw32*) 17978 # When not using gcc, we currently assume that we are using 17979 # Microsoft Visual C++. 17980 # hardcode_libdir_flag_spec is actually meaningless, as there is 17981 # no search path for DLLs. 17982 hardcode_libdir_flag_spec_GCJ=' ' 17983 allow_undefined_flag_GCJ=unsupported 17984 # Tell ltmain to make .lib files, not .a files. 17985 libext=lib 17986 # Tell ltmain to make .dll files, not .so files. 17987 shrext_cmds=".dll" 17988 # FIXME: Setting linknames here is a bad hack. 17989 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17990 # The linker will automatically build a .lib file if we build a DLL. 17991 old_archive_From_new_cmds_GCJ='true' 17992 # FIXME: Should let the user specify the lib program. 17993 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17994 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17995 enable_shared_with_static_runtimes_GCJ=yes 17996 ;; 17997 17998 darwin* | rhapsody*) 17999 case $host_os in 18000 rhapsody* | darwin1.[012]) 18001 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18002 ;; 18003 *) # Darwin 1.3 on 18004 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18005 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18006 else 18007 case ${MACOSX_DEPLOYMENT_TARGET} in 18008 10.[012]) 18009 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18010 ;; 18011 10.*) 18012 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18013 ;; 18014 esac 18015 fi 18016 ;; 18017 esac 18018 archive_cmds_need_lc_GCJ=no 18019 hardcode_direct_GCJ=no 18020 hardcode_automatic_GCJ=yes 18021 hardcode_shlibpath_var_GCJ=unsupported 18022 whole_archive_flag_spec_GCJ='' 18023 link_all_deplibs_GCJ=yes 18024 if test "$GCC" = yes ; then 18025 output_verbose_link_cmd='echo' 18026 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 18027 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18028 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 18029 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 18030 else 18031 case $cc_basename in 18032 xlc*) 18033 output_verbose_link_cmd='echo' 18034 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18035 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18037 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18038 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}' 18039 ;; 18040 *) 18041 ld_shlibs_GCJ=no 18042 ;; 18043 esac 18044 fi 18045 ;; 18046 18047 dgux*) 18048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18049 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18050 hardcode_shlibpath_var_GCJ=no 18051 ;; 18052 18053 freebsd1*) 18054 ld_shlibs_GCJ=no 18055 ;; 18056 18057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18058 # support. Future versions do this automatically, but an explicit c++rt0.o 18059 # does not break anything, and helps significantly (at the cost of a little 18060 # extra space). 18061 freebsd2.2*) 18062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18063 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18064 hardcode_direct_GCJ=yes 18065 hardcode_shlibpath_var_GCJ=no 18066 ;; 18067 18068 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18069 freebsd2*) 18070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18071 hardcode_direct_GCJ=yes 18072 hardcode_minus_L_GCJ=yes 18073 hardcode_shlibpath_var_GCJ=no 18074 ;; 18075 18076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18077 freebsd* | dragonfly*) 18078 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18079 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18080 hardcode_direct_GCJ=yes 18081 hardcode_shlibpath_var_GCJ=no 18082 ;; 18083 18084 hpux9*) 18085 if test "$GCC" = yes; then 18086 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' 18087 else 18088 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' 18089 fi 18090 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18091 hardcode_libdir_separator_GCJ=: 18092 hardcode_direct_GCJ=yes 18093 18094 # hardcode_minus_L: Not really in the search PATH, 18095 # but as the default location of the library. 18096 hardcode_minus_L_GCJ=yes 18097 export_dynamic_flag_spec_GCJ='${wl}-E' 18098 ;; 18099 18100 hpux10*) 18101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18102 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18103 else 18104 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18105 fi 18106 if test "$with_gnu_ld" = no; then 18107 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18108 hardcode_libdir_separator_GCJ=: 18109 18110 hardcode_direct_GCJ=yes 18111 export_dynamic_flag_spec_GCJ='${wl}-E' 18112 18113 # hardcode_minus_L: Not really in the search PATH, 18114 # but as the default location of the library. 18115 hardcode_minus_L_GCJ=yes 18116 fi 18117 ;; 18118 18119 hpux11*) 18120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18121 case $host_cpu in 18122 hppa*64*) 18123 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18124 ;; 18125 ia64*) 18126 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18127 ;; 18128 *) 18129 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18130 ;; 18131 esac 18132 else 18133 case $host_cpu in 18134 hppa*64*) 18135 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18136 ;; 18137 ia64*) 18138 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18139 ;; 18140 *) 18141 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18142 ;; 18143 esac 18144 fi 18145 if test "$with_gnu_ld" = no; then 18146 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18147 hardcode_libdir_separator_GCJ=: 18148 18149 case $host_cpu in 18150 hppa*64*|ia64*) 18151 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18152 hardcode_direct_GCJ=no 18153 hardcode_shlibpath_var_GCJ=no 18154 ;; 18155 *) 18156 hardcode_direct_GCJ=yes 18157 export_dynamic_flag_spec_GCJ='${wl}-E' 18158 18159 # hardcode_minus_L: Not really in the search PATH, 18160 # but as the default location of the library. 18161 hardcode_minus_L_GCJ=yes 18162 ;; 18163 esac 18164 fi 18165 ;; 18166 18167 irix5* | irix6* | nonstopux*) 18168 if test "$GCC" = yes; then 18169 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' 18170 else 18171 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' 18172 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18173 fi 18174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18175 hardcode_libdir_separator_GCJ=: 18176 link_all_deplibs_GCJ=yes 18177 ;; 18178 18179 netbsd*) 18180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18181 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18182 else 18183 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18184 fi 18185 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18186 hardcode_direct_GCJ=yes 18187 hardcode_shlibpath_var_GCJ=no 18188 ;; 18189 18190 newsos6) 18191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18192 hardcode_direct_GCJ=yes 18193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18194 hardcode_libdir_separator_GCJ=: 18195 hardcode_shlibpath_var_GCJ=no 18196 ;; 18197 18198 openbsd*) 18199 if test -f /usr/libexec/ld.so; then 18200 hardcode_direct_GCJ=yes 18201 hardcode_shlibpath_var_GCJ=no 18202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18203 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18204 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18206 export_dynamic_flag_spec_GCJ='${wl}-E' 18207 else 18208 case $host_os in 18209 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18211 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18212 ;; 18213 *) 18214 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18215 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18216 ;; 18217 esac 18218 fi 18219 else 18220 ld_shlibs_GCJ=no 18221 fi 18222 ;; 18223 18224 os2*) 18225 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18226 hardcode_minus_L_GCJ=yes 18227 allow_undefined_flag_GCJ=unsupported 18228 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' 18229 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18230 ;; 18231 18232 osf3*) 18233 if test "$GCC" = yes; then 18234 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18235 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' 18236 else 18237 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18238 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' 18239 fi 18240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18241 hardcode_libdir_separator_GCJ=: 18242 ;; 18243 18244 osf4* | osf5*) # as osf3* with the addition of -msym flag 18245 if test "$GCC" = yes; then 18246 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18247 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' 18248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18249 else 18250 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18251 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' 18252 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~ 18253 $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' 18254 18255 # Both c and cxx compiler support -rpath directly 18256 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18257 fi 18258 hardcode_libdir_separator_GCJ=: 18259 ;; 18260 18261 solaris*) 18262 no_undefined_flag_GCJ=' -z text' 18263 if test "$GCC" = yes; then 18264 wlarc='${wl}' 18265 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18266 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18267 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18268 else 18269 wlarc='' 18270 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18271 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18273 fi 18274 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18275 hardcode_shlibpath_var_GCJ=no 18276 case $host_os in 18277 solaris2.[0-5] | solaris2.[0-5].*) ;; 18278 *) 18279 # The compiler driver will combine and reorder linker options, 18280 # but understands `-z linker_flag'. GCC discards it without `$wl', 18281 # but is careful enough not to reorder. 18282 # Supported since Solaris 2.6 (maybe 2.5.1?) 18283 if test "$GCC" = yes; then 18284 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18285 else 18286 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18287 fi 18288 ;; 18289 esac 18290 link_all_deplibs_GCJ=yes 18291 ;; 18292 18293 sunos4*) 18294 if test "x$host_vendor" = xsequent; then 18295 # Use $CC to link under sequent, because it throws in some extra .o 18296 # files that make .init and .fini sections work. 18297 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18298 else 18299 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18300 fi 18301 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18302 hardcode_direct_GCJ=yes 18303 hardcode_minus_L_GCJ=yes 18304 hardcode_shlibpath_var_GCJ=no 18305 ;; 18306 18307 sysv4) 18308 case $host_vendor in 18309 sni) 18310 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18311 hardcode_direct_GCJ=yes # is this really true??? 18312 ;; 18313 siemens) 18314 ## LD is ld it makes a PLAMLIB 18315 ## CC just makes a GrossModule. 18316 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18317 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18318 hardcode_direct_GCJ=no 18319 ;; 18320 motorola) 18321 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18322 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18323 ;; 18324 esac 18325 runpath_var='LD_RUN_PATH' 18326 hardcode_shlibpath_var_GCJ=no 18327 ;; 18328 18329 sysv4.3*) 18330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18331 hardcode_shlibpath_var_GCJ=no 18332 export_dynamic_flag_spec_GCJ='-Bexport' 18333 ;; 18334 18335 sysv4*MP*) 18336 if test -d /usr/nec; then 18337 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18338 hardcode_shlibpath_var_GCJ=no 18339 runpath_var=LD_RUN_PATH 18340 hardcode_runpath_var=yes 18341 ld_shlibs_GCJ=yes 18342 fi 18343 ;; 18344 18345 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18346 no_undefined_flag_GCJ='${wl}-z,text' 18347 archive_cmds_need_lc_GCJ=no 18348 hardcode_shlibpath_var_GCJ=no 18349 runpath_var='LD_RUN_PATH' 18350 18351 if test "$GCC" = yes; then 18352 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18353 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18354 else 18355 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18356 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18357 fi 18358 ;; 18359 18360 sysv5* | sco3.2v5* | sco5v6*) 18361 # Note: We can NOT use -z defs as we might desire, because we do not 18362 # link with -lc, and that would cause any symbols used from libc to 18363 # always be unresolved, which means just about no library would 18364 # ever link correctly. If we're not using GNU ld we use -z text 18365 # though, which does catch some bad symbols but isn't as heavy-handed 18366 # as -z defs. 18367 no_undefined_flag_GCJ='${wl}-z,text' 18368 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18369 archive_cmds_need_lc_GCJ=no 18370 hardcode_shlibpath_var_GCJ=no 18371 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18372 hardcode_libdir_separator_GCJ=':' 18373 link_all_deplibs_GCJ=yes 18374 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18375 runpath_var='LD_RUN_PATH' 18376 18377 if test "$GCC" = yes; then 18378 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18379 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18380 else 18381 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18382 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18383 fi 18384 ;; 18385 18386 uts4*) 18387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18388 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18389 hardcode_shlibpath_var_GCJ=no 18390 ;; 18391 18392 *) 18393 ld_shlibs_GCJ=no 18394 ;; 18395 esac 18396 fi 18397 18398 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18399 $as_echo "$ld_shlibs_GCJ" >&6; } 18400 test "$ld_shlibs_GCJ" = no && can_build_shared=no 18401 18402 # 18403 # Do we need to explicitly link libc? 18404 # 18405 case "x$archive_cmds_need_lc_GCJ" in 18406 x|xyes) 18407 # Assume -lc should be added 18408 archive_cmds_need_lc_GCJ=yes 18409 18410 if test "$enable_shared" = yes && test "$GCC" = yes; then 18411 case $archive_cmds_GCJ in 18412 *'~'*) 18413 # FIXME: we may have to deal with multi-command sequences. 18414 ;; 18415 '$CC '*) 18416 # Test whether the compiler implicitly links with -lc since on some 18417 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18418 # to ld, don't add -lc before -lgcc. 18419 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18420 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18421 $rm conftest* 18422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18423 18424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18425 (eval $ac_compile) 2>&5 18426 ac_status=$? 18427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18428 (exit $ac_status); } 2>conftest.err; then 18429 soname=conftest 18430 lib=conftest 18431 libobjs=conftest.$ac_objext 18432 deplibs= 18433 wl=$lt_prog_compiler_wl_GCJ 18434 pic_flag=$lt_prog_compiler_pic_GCJ 18435 compiler_flags=-v 18436 linker_flags=-v 18437 verstring= 18438 output_objdir=. 18439 libname=conftest 18440 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18441 allow_undefined_flag_GCJ= 18442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18443 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18444 ac_status=$? 18445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18446 (exit $ac_status); } 18447 then 18448 archive_cmds_need_lc_GCJ=no 18449 else 18450 archive_cmds_need_lc_GCJ=yes 18451 fi 18452 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18453 else 18454 cat conftest.err 1>&5 18455 fi 18456 $rm conftest* 18457 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18458 $as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18459 ;; 18460 esac 18461 fi 18462 ;; 18463 esac 18464 18465 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18466 $as_echo_n "checking dynamic linker characteristics... " >&6; } 18467 library_names_spec= 18468 libname_spec='lib$name' 18469 soname_spec= 18470 shrext_cmds=".so" 18471 postinstall_cmds= 18472 postuninstall_cmds= 18473 finish_cmds= 18474 finish_eval= 18475 shlibpath_var= 18476 shlibpath_overrides_runpath=unknown 18477 version_type=none 18478 dynamic_linker="$host_os ld.so" 18479 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18480 18481 need_lib_prefix=unknown 18482 hardcode_into_libs=no 18483 18484 # when you set need_version to no, make sure it does not cause -set_version 18485 # flags to be left without arguments 18486 need_version=unknown 18487 18488 case $host_os in 18489 aix3*) 18490 version_type=linux 18491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18492 shlibpath_var=LIBPATH 18493 18494 # AIX 3 has no versioning support, so we append a major version to the name. 18495 soname_spec='${libname}${release}${shared_ext}$major' 18496 ;; 18497 18498 aix[4-9]*) 18499 version_type=linux 18500 need_lib_prefix=no 18501 need_version=no 18502 hardcode_into_libs=yes 18503 if test "$host_cpu" = ia64; then 18504 # AIX 5 supports IA64 18505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18506 shlibpath_var=LD_LIBRARY_PATH 18507 else 18508 # With GCC up to 2.95.x, collect2 would create an import file 18509 # for dependence libraries. The import file would start with 18510 # the line `#! .'. This would cause the generated library to 18511 # depend on `.', always an invalid library. This was fixed in 18512 # development snapshots of GCC prior to 3.0. 18513 case $host_os in 18514 aix4 | aix4.[01] | aix4.[01].*) 18515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18516 echo ' yes ' 18517 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18518 : 18519 else 18520 can_build_shared=no 18521 fi 18522 ;; 18523 esac 18524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18525 # soname into executable. Probably we can add versioning support to 18526 # collect2, so additional links can be useful in future. 18527 if test "$aix_use_runtimelinking" = yes; then 18528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18529 # instead of lib<name>.a to let people know that these are not 18530 # typical AIX shared libraries. 18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18532 else 18533 # We preserve .a as extension for shared libraries through AIX4.2 18534 # and later when we are not doing run time linking. 18535 library_names_spec='${libname}${release}.a $libname.a' 18536 soname_spec='${libname}${release}${shared_ext}$major' 18537 fi 18538 shlibpath_var=LIBPATH 18539 fi 18540 ;; 18541 18542 amigaos*) 18543 library_names_spec='$libname.ixlibrary $libname.a' 18544 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18545 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' 18546 ;; 18547 18548 beos*) 18549 library_names_spec='${libname}${shared_ext}' 18550 dynamic_linker="$host_os ld.so" 18551 shlibpath_var=LIBRARY_PATH 18552 ;; 18553 18554 bsdi[45]*) 18555 version_type=linux 18556 need_version=no 18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18558 soname_spec='${libname}${release}${shared_ext}$major' 18559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18560 shlibpath_var=LD_LIBRARY_PATH 18561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18563 # the default ld.so.conf also contains /usr/contrib/lib and 18564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18565 # libtool to hard-code these into programs 18566 ;; 18567 18568 cygwin* | mingw* | pw32*) 18569 version_type=windows 18570 shrext_cmds=".dll" 18571 need_version=no 18572 need_lib_prefix=no 18573 18574 case $GCC,$host_os in 18575 yes,cygwin* | yes,mingw* | yes,pw32*) 18576 library_names_spec='$libname.dll.a' 18577 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18578 postinstall_cmds='base_file=`basename \${file}`~ 18579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18580 dldir=$destdir/`dirname \$dlpath`~ 18581 test -d \$dldir || mkdir -p \$dldir~ 18582 $install_prog $dir/$dlname \$dldir/$dlname~ 18583 chmod a+x \$dldir/$dlname' 18584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18585 dlpath=$dir/\$dldll~ 18586 $rm \$dlpath' 18587 shlibpath_overrides_runpath=yes 18588 18589 case $host_os in 18590 cygwin*) 18591 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18593 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18594 ;; 18595 mingw*) 18596 # MinGW DLLs use traditional 'lib' prefix 18597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18599 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18600 # It is most probably a Windows format PATH printed by 18601 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18602 # path with ; separators, and with drive letters. We can handle the 18603 # drive letters (cygwin fileutils understands them), so leave them, 18604 # especially as we might pass files found there to a mingw objdump, 18605 # which wouldn't understand a cygwinified path. Ahh. 18606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18607 else 18608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18609 fi 18610 ;; 18611 pw32*) 18612 # pw32 DLLs use 'pw' prefix rather than 'lib' 18613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18614 ;; 18615 esac 18616 ;; 18617 18618 *) 18619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18620 ;; 18621 esac 18622 dynamic_linker='Win32 ld.exe' 18623 # FIXME: first we should search . and the directory the executable is in 18624 shlibpath_var=PATH 18625 ;; 18626 18627 darwin* | rhapsody*) 18628 dynamic_linker="$host_os dyld" 18629 version_type=darwin 18630 need_lib_prefix=no 18631 need_version=no 18632 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18633 soname_spec='${libname}${release}${major}$shared_ext' 18634 shlibpath_overrides_runpath=yes 18635 shlibpath_var=DYLD_LIBRARY_PATH 18636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18637 18638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18639 ;; 18640 18641 dgux*) 18642 version_type=linux 18643 need_lib_prefix=no 18644 need_version=no 18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18646 soname_spec='${libname}${release}${shared_ext}$major' 18647 shlibpath_var=LD_LIBRARY_PATH 18648 ;; 18649 18650 freebsd1*) 18651 dynamic_linker=no 18652 ;; 18653 18654 freebsd* | dragonfly*) 18655 # DragonFly does not have aout. When/if they implement a new 18656 # versioning mechanism, adjust this. 18657 if test -x /usr/bin/objformat; then 18658 objformat=`/usr/bin/objformat` 18659 else 18660 case $host_os in 18661 freebsd[123]*) objformat=aout ;; 18662 *) objformat=elf ;; 18663 esac 18664 fi 18665 version_type=freebsd-$objformat 18666 case $version_type in 18667 freebsd-elf*) 18668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18669 need_version=no 18670 need_lib_prefix=no 18671 ;; 18672 freebsd-*) 18673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18674 need_version=yes 18675 ;; 18676 esac 18677 shlibpath_var=LD_LIBRARY_PATH 18678 case $host_os in 18679 freebsd2*) 18680 shlibpath_overrides_runpath=yes 18681 ;; 18682 freebsd3.[01]* | freebsdelf3.[01]*) 18683 shlibpath_overrides_runpath=yes 18684 hardcode_into_libs=yes 18685 ;; 18686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18688 shlibpath_overrides_runpath=no 18689 hardcode_into_libs=yes 18690 ;; 18691 *) # from 4.6 on, and DragonFly 18692 shlibpath_overrides_runpath=yes 18693 hardcode_into_libs=yes 18694 ;; 18695 esac 18696 ;; 18697 18698 gnu*) 18699 version_type=linux 18700 need_lib_prefix=no 18701 need_version=no 18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18703 soname_spec='${libname}${release}${shared_ext}$major' 18704 shlibpath_var=LD_LIBRARY_PATH 18705 hardcode_into_libs=yes 18706 ;; 18707 18708 hpux9* | hpux10* | hpux11*) 18709 # Give a soname corresponding to the major version so that dld.sl refuses to 18710 # link against other versions. 18711 version_type=sunos 18712 need_lib_prefix=no 18713 need_version=no 18714 case $host_cpu in 18715 ia64*) 18716 shrext_cmds='.so' 18717 hardcode_into_libs=yes 18718 dynamic_linker="$host_os dld.so" 18719 shlibpath_var=LD_LIBRARY_PATH 18720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18722 soname_spec='${libname}${release}${shared_ext}$major' 18723 if test "X$HPUX_IA64_MODE" = X32; then 18724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18725 else 18726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18727 fi 18728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18729 ;; 18730 hppa*64*) 18731 shrext_cmds='.sl' 18732 hardcode_into_libs=yes 18733 dynamic_linker="$host_os dld.sl" 18734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18737 soname_spec='${libname}${release}${shared_ext}$major' 18738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18740 ;; 18741 *) 18742 shrext_cmds='.sl' 18743 dynamic_linker="$host_os dld.sl" 18744 shlibpath_var=SHLIB_PATH 18745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18747 soname_spec='${libname}${release}${shared_ext}$major' 18748 ;; 18749 esac 18750 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18751 postinstall_cmds='chmod 555 $lib' 18752 ;; 18753 18754 interix[3-9]*) 18755 version_type=linux 18756 need_lib_prefix=no 18757 need_version=no 18758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18759 soname_spec='${libname}${release}${shared_ext}$major' 18760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18761 shlibpath_var=LD_LIBRARY_PATH 18762 shlibpath_overrides_runpath=no 18763 hardcode_into_libs=yes 18764 ;; 18765 18766 irix5* | irix6* | nonstopux*) 18767 case $host_os in 18768 nonstopux*) version_type=nonstopux ;; 18769 *) 18770 if test "$lt_cv_prog_gnu_ld" = yes; then 18771 version_type=linux 18772 else 18773 version_type=irix 18774 fi ;; 18775 esac 18776 need_lib_prefix=no 18777 need_version=no 18778 soname_spec='${libname}${release}${shared_ext}$major' 18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18780 case $host_os in 18781 irix5* | nonstopux*) 18782 libsuff= shlibsuff= 18783 ;; 18784 *) 18785 case $LD in # libtool.m4 will add one of these switches to LD 18786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18787 libsuff= shlibsuff= libmagic=32-bit;; 18788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18789 libsuff=32 shlibsuff=N32 libmagic=N32;; 18790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18791 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18792 *) libsuff= shlibsuff= libmagic=never-match;; 18793 esac 18794 ;; 18795 esac 18796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18797 shlibpath_overrides_runpath=no 18798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18800 hardcode_into_libs=yes 18801 ;; 18802 18803 # No shared lib support for Linux oldld, aout, or coff. 18804 linux*oldld* | linux*aout* | linux*coff*) 18805 dynamic_linker=no 18806 ;; 18807 18808 # This must be Linux ELF. 18809 linux* | k*bsd*-gnu) 18810 version_type=linux 18811 need_lib_prefix=no 18812 need_version=no 18813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18814 soname_spec='${libname}${release}${shared_ext}$major' 18815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18816 shlibpath_var=LD_LIBRARY_PATH 18817 shlibpath_overrides_runpath=no 18818 # This implies no fast_install, which is unacceptable. 18819 # Some rework will be needed to allow for fast_install 18820 # before this can be enabled. 18821 hardcode_into_libs=yes 18822 18823 # Append ld.so.conf contents to the search path 18824 if test -f /etc/ld.so.conf; then 18825 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18827 fi 18828 18829 # We used to test for /lib/ld.so.1 and disable shared libraries on 18830 # powerpc, because MkLinux only supported shared libraries with the 18831 # GNU dynamic linker. Since this was broken with cross compilers, 18832 # most powerpc-linux boxes support dynamic linking these days and 18833 # people can always --disable-shared, the test was removed, and we 18834 # assume the GNU/Linux dynamic linker is in use. 18835 dynamic_linker='GNU/Linux ld.so' 18836 ;; 18837 18838 netbsd*) 18839 version_type=sunos 18840 need_lib_prefix=no 18841 need_version=no 18842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18845 dynamic_linker='NetBSD (a.out) ld.so' 18846 else 18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18848 soname_spec='${libname}${release}${shared_ext}$major' 18849 dynamic_linker='NetBSD ld.elf_so' 18850 fi 18851 shlibpath_var=LD_LIBRARY_PATH 18852 shlibpath_overrides_runpath=yes 18853 hardcode_into_libs=yes 18854 ;; 18855 18856 newsos6) 18857 version_type=linux 18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18859 shlibpath_var=LD_LIBRARY_PATH 18860 shlibpath_overrides_runpath=yes 18861 ;; 18862 18863 nto-qnx*) 18864 version_type=linux 18865 need_lib_prefix=no 18866 need_version=no 18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18868 soname_spec='${libname}${release}${shared_ext}$major' 18869 shlibpath_var=LD_LIBRARY_PATH 18870 shlibpath_overrides_runpath=yes 18871 ;; 18872 18873 openbsd*) 18874 version_type=sunos 18875 sys_lib_dlsearch_path_spec="/usr/lib" 18876 need_lib_prefix=no 18877 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18878 case $host_os in 18879 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18880 *) need_version=no ;; 18881 esac 18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18884 shlibpath_var=LD_LIBRARY_PATH 18885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18886 case $host_os in 18887 openbsd2.[89] | openbsd2.[89].*) 18888 shlibpath_overrides_runpath=no 18889 ;; 18890 *) 18891 shlibpath_overrides_runpath=yes 18892 ;; 18893 esac 18894 else 18895 shlibpath_overrides_runpath=yes 18896 fi 18897 ;; 18898 18899 os2*) 18900 libname_spec='$name' 18901 shrext_cmds=".dll" 18902 need_lib_prefix=no 18903 library_names_spec='$libname${shared_ext} $libname.a' 18904 dynamic_linker='OS/2 ld.exe' 18905 shlibpath_var=LIBPATH 18906 ;; 18907 18908 osf3* | osf4* | osf5*) 18909 version_type=osf 18910 need_lib_prefix=no 18911 need_version=no 18912 soname_spec='${libname}${release}${shared_ext}$major' 18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18914 shlibpath_var=LD_LIBRARY_PATH 18915 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18916 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18917 ;; 18918 18919 rdos*) 18920 dynamic_linker=no 18921 ;; 18922 18923 solaris*) 18924 version_type=linux 18925 need_lib_prefix=no 18926 need_version=no 18927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18928 soname_spec='${libname}${release}${shared_ext}$major' 18929 shlibpath_var=LD_LIBRARY_PATH 18930 shlibpath_overrides_runpath=yes 18931 hardcode_into_libs=yes 18932 # ldd complains unless libraries are executable 18933 postinstall_cmds='chmod +x $lib' 18934 ;; 18935 18936 sunos4*) 18937 version_type=sunos 18938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18939 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18940 shlibpath_var=LD_LIBRARY_PATH 18941 shlibpath_overrides_runpath=yes 18942 if test "$with_gnu_ld" = yes; then 18943 need_lib_prefix=no 18944 fi 18945 need_version=yes 18946 ;; 18947 18948 sysv4 | sysv4.3*) 18949 version_type=linux 18950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18951 soname_spec='${libname}${release}${shared_ext}$major' 18952 shlibpath_var=LD_LIBRARY_PATH 18953 case $host_vendor in 18954 sni) 18955 shlibpath_overrides_runpath=no 18956 need_lib_prefix=no 18957 export_dynamic_flag_spec='${wl}-Blargedynsym' 18958 runpath_var=LD_RUN_PATH 18959 ;; 18960 siemens) 18961 need_lib_prefix=no 18962 ;; 18963 motorola) 18964 need_lib_prefix=no 18965 need_version=no 18966 shlibpath_overrides_runpath=no 18967 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18968 ;; 18969 esac 18970 ;; 18971 18972 sysv4*MP*) 18973 if test -d /usr/nec ;then 18974 version_type=linux 18975 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18976 soname_spec='$libname${shared_ext}.$major' 18977 shlibpath_var=LD_LIBRARY_PATH 18978 fi 18979 ;; 18980 18981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18982 version_type=freebsd-elf 18983 need_lib_prefix=no 18984 need_version=no 18985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18986 soname_spec='${libname}${release}${shared_ext}$major' 18987 shlibpath_var=LD_LIBRARY_PATH 18988 hardcode_into_libs=yes 18989 if test "$with_gnu_ld" = yes; then 18990 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18991 shlibpath_overrides_runpath=no 18992 else 18993 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18994 shlibpath_overrides_runpath=yes 18995 case $host_os in 18996 sco3.2v5*) 18997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18998 ;; 18999 esac 19000 fi 19001 sys_lib_dlsearch_path_spec='/usr/lib' 19002 ;; 19003 19004 uts4*) 19005 version_type=linux 19006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19007 soname_spec='${libname}${release}${shared_ext}$major' 19008 shlibpath_var=LD_LIBRARY_PATH 19009 ;; 19010 19011 *) 19012 dynamic_linker=no 19013 ;; 19014 esac 19015 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19016 $as_echo "$dynamic_linker" >&6; } 19017 test "$dynamic_linker" = no && can_build_shared=no 19018 19019 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19020 $as_echo_n "(cached) " >&6 19021 else 19022 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19023 fi 19024 19025 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19026 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19027 $as_echo_n "(cached) " >&6 19028 else 19029 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19030 fi 19031 19032 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19033 19034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19035 if test "$GCC" = yes; then 19036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19037 fi 19038 19039 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19040 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19041 hardcode_action_GCJ= 19042 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19043 test -n "$runpath_var_GCJ" || \ 19044 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19045 19046 # We can hardcode non-existant directories. 19047 if test "$hardcode_direct_GCJ" != no && 19048 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19049 # have to relink, otherwise we might link with an installed library 19050 # when we should be linking with a yet-to-be-installed one 19051 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19052 test "$hardcode_minus_L_GCJ" != no; then 19053 # Linking always hardcodes the temporary library directory. 19054 hardcode_action_GCJ=relink 19055 else 19056 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19057 hardcode_action_GCJ=immediate 19058 fi 19059 else 19060 # We cannot hardcode anything, or else we can only hardcode existing 19061 # directories. 19062 hardcode_action_GCJ=unsupported 19063 fi 19064 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19065 $as_echo "$hardcode_action_GCJ" >&6; } 19066 19067 if test "$hardcode_action_GCJ" = relink; then 19068 # Fast installation is not supported 19069 enable_fast_install=no 19070 elif test "$shlibpath_overrides_runpath" = yes || 19071 test "$enable_shared" = no; then 19072 # Fast installation is not necessary 19073 enable_fast_install=needless 19074 fi 19075 19076 19077 # The else clause should only fire when bootstrapping the 19078 # libtool distribution, otherwise you forgot to ship ltmain.sh 19079 # with your package, and you will get complaints that there are 19080 # no rules to generate ltmain.sh. 19081 if test -f "$ltmain"; then 19082 # See if we are running on zsh, and set the options which allow our commands through 19083 # without removal of \ escapes. 19084 if test -n "${ZSH_VERSION+set}" ; then 19085 setopt NO_GLOB_SUBST 19086 fi 19087 # Now quote all the things that may contain metacharacters while being 19088 # careful not to overquote the AC_SUBSTed values. We take copies of the 19089 # variables and quote the copies for generation of the libtool script. 19090 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19091 SED SHELL STRIP \ 19092 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19093 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19094 deplibs_check_method reload_flag reload_cmds need_locks \ 19095 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19096 lt_cv_sys_global_symbol_to_c_name_address \ 19097 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19098 old_postinstall_cmds old_postuninstall_cmds \ 19099 compiler_GCJ \ 19100 CC_GCJ \ 19101 LD_GCJ \ 19102 lt_prog_compiler_wl_GCJ \ 19103 lt_prog_compiler_pic_GCJ \ 19104 lt_prog_compiler_static_GCJ \ 19105 lt_prog_compiler_no_builtin_flag_GCJ \ 19106 export_dynamic_flag_spec_GCJ \ 19107 thread_safe_flag_spec_GCJ \ 19108 whole_archive_flag_spec_GCJ \ 19109 enable_shared_with_static_runtimes_GCJ \ 19110 old_archive_cmds_GCJ \ 19111 old_archive_from_new_cmds_GCJ \ 19112 predep_objects_GCJ \ 19113 postdep_objects_GCJ \ 19114 predeps_GCJ \ 19115 postdeps_GCJ \ 19116 compiler_lib_search_path_GCJ \ 19117 compiler_lib_search_dirs_GCJ \ 19118 archive_cmds_GCJ \ 19119 archive_expsym_cmds_GCJ \ 19120 postinstall_cmds_GCJ \ 19121 postuninstall_cmds_GCJ \ 19122 old_archive_from_expsyms_cmds_GCJ \ 19123 allow_undefined_flag_GCJ \ 19124 no_undefined_flag_GCJ \ 19125 export_symbols_cmds_GCJ \ 19126 hardcode_libdir_flag_spec_GCJ \ 19127 hardcode_libdir_flag_spec_ld_GCJ \ 19128 hardcode_libdir_separator_GCJ \ 19129 hardcode_automatic_GCJ \ 19130 module_cmds_GCJ \ 19131 module_expsym_cmds_GCJ \ 19132 lt_cv_prog_compiler_c_o_GCJ \ 19133 fix_srcfile_path_GCJ \ 19134 exclude_expsyms_GCJ \ 19135 include_expsyms_GCJ; do 19136 19137 case $var in 19138 old_archive_cmds_GCJ | \ 19139 old_archive_from_new_cmds_GCJ | \ 19140 archive_cmds_GCJ | \ 19141 archive_expsym_cmds_GCJ | \ 19142 module_cmds_GCJ | \ 19143 module_expsym_cmds_GCJ | \ 19144 old_archive_from_expsyms_cmds_GCJ | \ 19145 export_symbols_cmds_GCJ | \ 19146 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19147 postinstall_cmds | postuninstall_cmds | \ 19148 old_postinstall_cmds | old_postuninstall_cmds | \ 19149 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19150 # Double-quote double-evaled strings. 19151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19152 ;; 19153 *) 19154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19155 ;; 19156 esac 19157 done 19158 19159 case $lt_echo in 19160 *'\$0 --fallback-echo"') 19161 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19162 ;; 19163 esac 19164 19165 cfgfile="$ofile" 19166 19167 cat <<__EOF__ >> "$cfgfile" 19168 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19169 19170 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19171 19172 # Shell to use when invoking shell scripts. 19173 SHELL=$lt_SHELL 19174 19175 # Whether or not to build shared libraries. 19176 build_libtool_libs=$enable_shared 19177 19178 # Whether or not to build static libraries. 19179 build_old_libs=$enable_static 19180 19181 # Whether or not to add -lc for building shared libraries. 19182 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19183 19184 # Whether or not to disallow shared libs when runtime libs are static 19185 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19186 19187 # Whether or not to optimize for fast installation. 19188 fast_install=$enable_fast_install 19189 19190 # The host system. 19191 host_alias=$host_alias 19192 host=$host 19193 host_os=$host_os 19194 19195 # The build system. 19196 build_alias=$build_alias 19197 build=$build 19198 build_os=$build_os 19199 19200 # An echo program that does not interpret backslashes. 19201 echo=$lt_echo 19202 19203 # The archiver. 19204 AR=$lt_AR 19205 AR_FLAGS=$lt_AR_FLAGS 19206 19207 # A C compiler. 19208 LTCC=$lt_LTCC 19209 19210 # LTCC compiler flags. 19211 LTCFLAGS=$lt_LTCFLAGS 19212 19213 # A language-specific compiler. 19214 CC=$lt_compiler_GCJ 19215 19216 # Is the compiler the GNU C compiler? 19217 with_gcc=$GCC_GCJ 19218 19219 # An ERE matcher. 19220 EGREP=$lt_EGREP 19221 19222 # The linker used to build libraries. 19223 LD=$lt_LD_GCJ 19224 19225 # Whether we need hard or soft links. 19226 LN_S=$lt_LN_S 19227 19228 # A BSD-compatible nm program. 19229 NM=$lt_NM 19230 19231 # A symbol stripping program 19232 STRIP=$lt_STRIP 19233 19234 # Used to examine libraries when file_magic_cmd begins "file" 19235 MAGIC_CMD=$MAGIC_CMD 19236 19237 # Used on cygwin: DLL creation program. 19238 DLLTOOL="$DLLTOOL" 19239 19240 # Used on cygwin: object dumper. 19241 OBJDUMP="$OBJDUMP" 19242 19243 # Used on cygwin: assembler. 19244 AS="$AS" 19245 19246 # The name of the directory that contains temporary libtool files. 19247 objdir=$objdir 19248 19249 # How to create reloadable object files. 19250 reload_flag=$lt_reload_flag 19251 reload_cmds=$lt_reload_cmds 19252 19253 # How to pass a linker flag through the compiler. 19254 wl=$lt_lt_prog_compiler_wl_GCJ 19255 19256 # Object file suffix (normally "o"). 19257 objext="$ac_objext" 19258 19259 # Old archive suffix (normally "a"). 19260 libext="$libext" 19261 19262 # Shared library suffix (normally ".so"). 19263 shrext_cmds='$shrext_cmds' 19264 19265 # Executable file suffix (normally ""). 19266 exeext="$exeext" 19267 19268 # Additional compiler flags for building library objects. 19269 pic_flag=$lt_lt_prog_compiler_pic_GCJ 19270 pic_mode=$pic_mode 19271 19272 # What is the maximum length of a command? 19273 max_cmd_len=$lt_cv_sys_max_cmd_len 19274 19275 # Does compiler simultaneously support -c and -o options? 19276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19277 19278 # Must we lock files when doing compilation? 19279 need_locks=$lt_need_locks 19280 19281 # Do we need the lib prefix for modules? 19282 need_lib_prefix=$need_lib_prefix 19283 19284 # Do we need a version for libraries? 19285 need_version=$need_version 19286 19287 # Whether dlopen is supported. 19288 dlopen_support=$enable_dlopen 19289 19290 # Whether dlopen of programs is supported. 19291 dlopen_self=$enable_dlopen_self 19292 19293 # Whether dlopen of statically linked programs is supported. 19294 dlopen_self_static=$enable_dlopen_self_static 19295 19296 # Compiler flag to prevent dynamic linking. 19297 link_static_flag=$lt_lt_prog_compiler_static_GCJ 19298 19299 # Compiler flag to turn off builtin functions. 19300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19301 19302 # Compiler flag to allow reflexive dlopens. 19303 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19304 19305 # Compiler flag to generate shared objects directly from archives. 19306 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19307 19308 # Compiler flag to generate thread-safe objects. 19309 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19310 19311 # Library versioning type. 19312 version_type=$version_type 19313 19314 # Format of library name prefix. 19315 libname_spec=$lt_libname_spec 19316 19317 # List of archive names. First name is the real one, the rest are links. 19318 # The last name is the one that the linker finds with -lNAME. 19319 library_names_spec=$lt_library_names_spec 19320 19321 # The coded name of the library, if different from the real name. 19322 soname_spec=$lt_soname_spec 19323 19324 # Commands used to build and install an old-style archive. 19325 RANLIB=$lt_RANLIB 19326 old_archive_cmds=$lt_old_archive_cmds_GCJ 19327 old_postinstall_cmds=$lt_old_postinstall_cmds 19328 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19329 19330 # Create an old-style archive from a shared archive. 19331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19332 19333 # Create a temporary old-style archive to link instead of a shared archive. 19334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19335 19336 # Commands used to build and install a shared archive. 19337 archive_cmds=$lt_archive_cmds_GCJ 19338 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19339 postinstall_cmds=$lt_postinstall_cmds 19340 postuninstall_cmds=$lt_postuninstall_cmds 19341 19342 # Commands used to build a loadable module (assumed same as above if empty) 19343 module_cmds=$lt_module_cmds_GCJ 19344 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19345 19346 # Commands to strip libraries. 19347 old_striplib=$lt_old_striplib 19348 striplib=$lt_striplib 19349 19350 # Dependencies to place before the objects being linked to create a 19351 # shared library. 19352 predep_objects=$lt_predep_objects_GCJ 19353 19354 # Dependencies to place after the objects being linked to create a 19355 # shared library. 19356 postdep_objects=$lt_postdep_objects_GCJ 19357 19358 # Dependencies to place before the objects being linked to create a 19359 # shared library. 19360 predeps=$lt_predeps_GCJ 19361 19362 # Dependencies to place after the objects being linked to create a 19363 # shared library. 19364 postdeps=$lt_postdeps_GCJ 19365 19366 # The directories searched by this compiler when creating a shared 19367 # library 19368 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19369 19370 # The library search path used internally by the compiler when linking 19371 # a shared library. 19372 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19373 19374 # Method to check whether dependent libraries are shared objects. 19375 deplibs_check_method=$lt_deplibs_check_method 19376 19377 # Command to use when deplibs_check_method == file_magic. 19378 file_magic_cmd=$lt_file_magic_cmd 19379 19380 # Flag that allows shared libraries with undefined symbols to be built. 19381 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19382 19383 # Flag that forces no undefined symbols. 19384 no_undefined_flag=$lt_no_undefined_flag_GCJ 19385 19386 # Commands used to finish a libtool library installation in a directory. 19387 finish_cmds=$lt_finish_cmds 19388 19389 # Same as above, but a single script fragment to be evaled but not shown. 19390 finish_eval=$lt_finish_eval 19391 19392 # Take the output of nm and produce a listing of raw symbols and C names. 19393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19394 19395 # Transform the output of nm in a proper C declaration 19396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19397 19398 # Transform the output of nm in a C name address pair 19399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19400 19401 # This is the shared library runtime path variable. 19402 runpath_var=$runpath_var 19403 19404 # This is the shared library path variable. 19405 shlibpath_var=$shlibpath_var 19406 19407 # Is shlibpath searched before the hard-coded library search path? 19408 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19409 19410 # How to hardcode a shared library path into an executable. 19411 hardcode_action=$hardcode_action_GCJ 19412 19413 # Whether we should hardcode library paths into libraries. 19414 hardcode_into_libs=$hardcode_into_libs 19415 19416 # Flag to hardcode \$libdir into a binary during linking. 19417 # This must work even if \$libdir does not exist. 19418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19419 19420 # If ld is used when linking, flag to hardcode \$libdir into 19421 # a binary during linking. This must work even if \$libdir does 19422 # not exist. 19423 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19424 19425 # Whether we need a single -rpath flag with a separated argument. 19426 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19427 19428 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19429 # resulting binary. 19430 hardcode_direct=$hardcode_direct_GCJ 19431 19432 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19433 # resulting binary. 19434 hardcode_minus_L=$hardcode_minus_L_GCJ 19435 19436 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19437 # the resulting binary. 19438 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19439 19440 # Set to yes if building a shared library automatically hardcodes DIR into the library 19441 # and all subsequent libraries and executables linked against it. 19442 hardcode_automatic=$hardcode_automatic_GCJ 19443 19444 # Variables whose values should be saved in libtool wrapper scripts and 19445 # restored at relink time. 19446 variables_saved_for_relink="$variables_saved_for_relink" 19447 19448 # Whether libtool must link a program against all its dependency libraries. 19449 link_all_deplibs=$link_all_deplibs_GCJ 19450 19451 # Compile-time system search path for libraries 19452 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19453 19454 # Run-time system search path for libraries 19455 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19456 19457 # Fix the shell variable \$srcfile for the compiler. 19458 fix_srcfile_path=$lt_fix_srcfile_path 19459 19460 # Set to yes if exported symbols are required. 19461 always_export_symbols=$always_export_symbols_GCJ 19462 19463 # The commands to list exported symbols. 19464 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19465 19466 # The commands to extract the exported symbol list from a shared archive. 19467 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19468 19469 # Symbols that should not be listed in the preloaded symbols. 19470 exclude_expsyms=$lt_exclude_expsyms_GCJ 19471 19472 # Symbols that must always be exported. 19473 include_expsyms=$lt_include_expsyms_GCJ 19474 19475 # ### END LIBTOOL TAG CONFIG: $tagname 19476 19477 __EOF__ 19478 19479 19480 else 19481 # If there is no Makefile yet, we rely on a make rule to execute 19482 # `config.status --recheck' to rerun these tests and create the 19483 # libtool script then. 19484 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19485 if test -f "$ltmain_in"; then 19486 test -f Makefile && make "$ltmain" 19487 fi 19488 fi 19489 19490 19491 ac_ext=c 19492 ac_cpp='$CPP $CPPFLAGS' 19493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19495 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19496 19497 CC="$lt_save_CC" 19498 19499 else 19500 tagname="" 19501 fi 19502 ;; 19503 19504 RC) 19505 19506 19507 # Source file extension for RC test sources. 19508 ac_ext=rc 19509 19510 # Object file extension for compiled RC test sources. 19511 objext=o 19512 objext_RC=$objext 19513 19514 # Code to be used in simple compile tests 19515 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19516 19517 # Code to be used in simple link tests 19518 lt_simple_link_test_code="$lt_simple_compile_test_code" 19519 19520 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19521 19522 # If no C compiler was specified, use CC. 19523 LTCC=${LTCC-"$CC"} 19524 19525 # If no C compiler flags were specified, use CFLAGS. 19526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19527 19528 # Allow CC to be a program name with arguments. 19529 compiler=$CC 19530 19531 19532 # save warnings/boilerplate of simple test code 19533 ac_outfile=conftest.$ac_objext 19534 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19536 _lt_compiler_boilerplate=`cat conftest.err` 19537 $rm conftest* 19538 19539 ac_outfile=conftest.$ac_objext 19540 echo "$lt_simple_link_test_code" >conftest.$ac_ext 19541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19542 _lt_linker_boilerplate=`cat conftest.err` 19543 $rm -r conftest* 19544 19545 19546 # Allow CC to be a program name with arguments. 19547 lt_save_CC="$CC" 19548 CC=${RC-"windres"} 19549 compiler=$CC 19550 compiler_RC=$CC 19551 for cc_temp in $compiler""; do 19552 case $cc_temp in 19553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19555 \-*) ;; 19556 *) break;; 19557 esac 19558 done 19559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19560 19561 lt_cv_prog_compiler_c_o_RC=yes 19562 19563 # The else clause should only fire when bootstrapping the 19564 # libtool distribution, otherwise you forgot to ship ltmain.sh 19565 # with your package, and you will get complaints that there are 19566 # no rules to generate ltmain.sh. 19567 if test -f "$ltmain"; then 19568 # See if we are running on zsh, and set the options which allow our commands through 19569 # without removal of \ escapes. 19570 if test -n "${ZSH_VERSION+set}" ; then 19571 setopt NO_GLOB_SUBST 19572 fi 19573 # Now quote all the things that may contain metacharacters while being 19574 # careful not to overquote the AC_SUBSTed values. We take copies of the 19575 # variables and quote the copies for generation of the libtool script. 19576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19577 SED SHELL STRIP \ 19578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19580 deplibs_check_method reload_flag reload_cmds need_locks \ 19581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19582 lt_cv_sys_global_symbol_to_c_name_address \ 19583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19584 old_postinstall_cmds old_postuninstall_cmds \ 19585 compiler_RC \ 19586 CC_RC \ 19587 LD_RC \ 19588 lt_prog_compiler_wl_RC \ 19589 lt_prog_compiler_pic_RC \ 19590 lt_prog_compiler_static_RC \ 19591 lt_prog_compiler_no_builtin_flag_RC \ 19592 export_dynamic_flag_spec_RC \ 19593 thread_safe_flag_spec_RC \ 19594 whole_archive_flag_spec_RC \ 19595 enable_shared_with_static_runtimes_RC \ 19596 old_archive_cmds_RC \ 19597 old_archive_from_new_cmds_RC \ 19598 predep_objects_RC \ 19599 postdep_objects_RC \ 19600 predeps_RC \ 19601 postdeps_RC \ 19602 compiler_lib_search_path_RC \ 19603 compiler_lib_search_dirs_RC \ 19604 archive_cmds_RC \ 19605 archive_expsym_cmds_RC \ 19606 postinstall_cmds_RC \ 19607 postuninstall_cmds_RC \ 19608 old_archive_from_expsyms_cmds_RC \ 19609 allow_undefined_flag_RC \ 19610 no_undefined_flag_RC \ 19611 export_symbols_cmds_RC \ 19612 hardcode_libdir_flag_spec_RC \ 19613 hardcode_libdir_flag_spec_ld_RC \ 19614 hardcode_libdir_separator_RC \ 19615 hardcode_automatic_RC \ 19616 module_cmds_RC \ 19617 module_expsym_cmds_RC \ 19618 lt_cv_prog_compiler_c_o_RC \ 19619 fix_srcfile_path_RC \ 19620 exclude_expsyms_RC \ 19621 include_expsyms_RC; do 19622 19623 case $var in 19624 old_archive_cmds_RC | \ 19625 old_archive_from_new_cmds_RC | \ 19626 archive_cmds_RC | \ 19627 archive_expsym_cmds_RC | \ 19628 module_cmds_RC | \ 19629 module_expsym_cmds_RC | \ 19630 old_archive_from_expsyms_cmds_RC | \ 19631 export_symbols_cmds_RC | \ 19632 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19633 postinstall_cmds | postuninstall_cmds | \ 19634 old_postinstall_cmds | old_postuninstall_cmds | \ 19635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19636 # Double-quote double-evaled strings. 19637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19638 ;; 19639 *) 19640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19641 ;; 19642 esac 19643 done 19644 19645 case $lt_echo in 19646 *'\$0 --fallback-echo"') 19647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19648 ;; 19649 esac 19650 19651 cfgfile="$ofile" 19652 19653 cat <<__EOF__ >> "$cfgfile" 19654 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19655 19656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19657 19658 # Shell to use when invoking shell scripts. 19659 SHELL=$lt_SHELL 19660 19661 # Whether or not to build shared libraries. 19662 build_libtool_libs=$enable_shared 19663 19664 # Whether or not to build static libraries. 19665 build_old_libs=$enable_static 19666 19667 # Whether or not to add -lc for building shared libraries. 19668 build_libtool_need_lc=$archive_cmds_need_lc_RC 19669 19670 # Whether or not to disallow shared libs when runtime libs are static 19671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19672 19673 # Whether or not to optimize for fast installation. 19674 fast_install=$enable_fast_install 19675 19676 # The host system. 19677 host_alias=$host_alias 19678 host=$host 19679 host_os=$host_os 19680 19681 # The build system. 19682 build_alias=$build_alias 19683 build=$build 19684 build_os=$build_os 19685 19686 # An echo program that does not interpret backslashes. 19687 echo=$lt_echo 19688 19689 # The archiver. 19690 AR=$lt_AR 19691 AR_FLAGS=$lt_AR_FLAGS 19692 19693 # A C compiler. 19694 LTCC=$lt_LTCC 19695 19696 # LTCC compiler flags. 19697 LTCFLAGS=$lt_LTCFLAGS 19698 19699 # A language-specific compiler. 19700 CC=$lt_compiler_RC 19701 19702 # Is the compiler the GNU C compiler? 19703 with_gcc=$GCC_RC 19704 19705 # An ERE matcher. 19706 EGREP=$lt_EGREP 19707 19708 # The linker used to build libraries. 19709 LD=$lt_LD_RC 19710 19711 # Whether we need hard or soft links. 19712 LN_S=$lt_LN_S 19713 19714 # A BSD-compatible nm program. 19715 NM=$lt_NM 19716 19717 # A symbol stripping program 19718 STRIP=$lt_STRIP 19719 19720 # Used to examine libraries when file_magic_cmd begins "file" 19721 MAGIC_CMD=$MAGIC_CMD 19722 19723 # Used on cygwin: DLL creation program. 19724 DLLTOOL="$DLLTOOL" 19725 19726 # Used on cygwin: object dumper. 19727 OBJDUMP="$OBJDUMP" 19728 19729 # Used on cygwin: assembler. 19730 AS="$AS" 19731 19732 # The name of the directory that contains temporary libtool files. 19733 objdir=$objdir 19734 19735 # How to create reloadable object files. 19736 reload_flag=$lt_reload_flag 19737 reload_cmds=$lt_reload_cmds 19738 19739 # How to pass a linker flag through the compiler. 19740 wl=$lt_lt_prog_compiler_wl_RC 19741 19742 # Object file suffix (normally "o"). 19743 objext="$ac_objext" 19744 19745 # Old archive suffix (normally "a"). 19746 libext="$libext" 19747 19748 # Shared library suffix (normally ".so"). 19749 shrext_cmds='$shrext_cmds' 19750 19751 # Executable file suffix (normally ""). 19752 exeext="$exeext" 19753 19754 # Additional compiler flags for building library objects. 19755 pic_flag=$lt_lt_prog_compiler_pic_RC 19756 pic_mode=$pic_mode 19757 19758 # What is the maximum length of a command? 19759 max_cmd_len=$lt_cv_sys_max_cmd_len 19760 19761 # Does compiler simultaneously support -c and -o options? 19762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19763 19764 # Must we lock files when doing compilation? 19765 need_locks=$lt_need_locks 19766 19767 # Do we need the lib prefix for modules? 19768 need_lib_prefix=$need_lib_prefix 19769 19770 # Do we need a version for libraries? 19771 need_version=$need_version 19772 19773 # Whether dlopen is supported. 19774 dlopen_support=$enable_dlopen 19775 19776 # Whether dlopen of programs is supported. 19777 dlopen_self=$enable_dlopen_self 19778 19779 # Whether dlopen of statically linked programs is supported. 19780 dlopen_self_static=$enable_dlopen_self_static 19781 19782 # Compiler flag to prevent dynamic linking. 19783 link_static_flag=$lt_lt_prog_compiler_static_RC 19784 19785 # Compiler flag to turn off builtin functions. 19786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19787 19788 # Compiler flag to allow reflexive dlopens. 19789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19790 19791 # Compiler flag to generate shared objects directly from archives. 19792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19793 19794 # Compiler flag to generate thread-safe objects. 19795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19796 19797 # Library versioning type. 19798 version_type=$version_type 19799 19800 # Format of library name prefix. 19801 libname_spec=$lt_libname_spec 19802 19803 # List of archive names. First name is the real one, the rest are links. 19804 # The last name is the one that the linker finds with -lNAME. 19805 library_names_spec=$lt_library_names_spec 19806 19807 # The coded name of the library, if different from the real name. 19808 soname_spec=$lt_soname_spec 19809 19810 # Commands used to build and install an old-style archive. 19811 RANLIB=$lt_RANLIB 19812 old_archive_cmds=$lt_old_archive_cmds_RC 19813 old_postinstall_cmds=$lt_old_postinstall_cmds 19814 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19815 19816 # Create an old-style archive from a shared archive. 19817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19818 19819 # Create a temporary old-style archive to link instead of a shared archive. 19820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19821 19822 # Commands used to build and install a shared archive. 19823 archive_cmds=$lt_archive_cmds_RC 19824 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19825 postinstall_cmds=$lt_postinstall_cmds 19826 postuninstall_cmds=$lt_postuninstall_cmds 19827 19828 # Commands used to build a loadable module (assumed same as above if empty) 19829 module_cmds=$lt_module_cmds_RC 19830 module_expsym_cmds=$lt_module_expsym_cmds_RC 19831 19832 # Commands to strip libraries. 19833 old_striplib=$lt_old_striplib 19834 striplib=$lt_striplib 19835 19836 # Dependencies to place before the objects being linked to create a 19837 # shared library. 19838 predep_objects=$lt_predep_objects_RC 19839 19840 # Dependencies to place after the objects being linked to create a 19841 # shared library. 19842 postdep_objects=$lt_postdep_objects_RC 19843 19844 # Dependencies to place before the objects being linked to create a 19845 # shared library. 19846 predeps=$lt_predeps_RC 19847 19848 # Dependencies to place after the objects being linked to create a 19849 # shared library. 19850 postdeps=$lt_postdeps_RC 19851 19852 # The directories searched by this compiler when creating a shared 19853 # library 19854 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19855 19856 # The library search path used internally by the compiler when linking 19857 # a shared library. 19858 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19859 19860 # Method to check whether dependent libraries are shared objects. 19861 deplibs_check_method=$lt_deplibs_check_method 19862 19863 # Command to use when deplibs_check_method == file_magic. 19864 file_magic_cmd=$lt_file_magic_cmd 19865 19866 # Flag that allows shared libraries with undefined symbols to be built. 19867 allow_undefined_flag=$lt_allow_undefined_flag_RC 19868 19869 # Flag that forces no undefined symbols. 19870 no_undefined_flag=$lt_no_undefined_flag_RC 19871 19872 # Commands used to finish a libtool library installation in a directory. 19873 finish_cmds=$lt_finish_cmds 19874 19875 # Same as above, but a single script fragment to be evaled but not shown. 19876 finish_eval=$lt_finish_eval 19877 19878 # Take the output of nm and produce a listing of raw symbols and C names. 19879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19880 19881 # Transform the output of nm in a proper C declaration 19882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19883 19884 # Transform the output of nm in a C name address pair 19885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19886 19887 # This is the shared library runtime path variable. 19888 runpath_var=$runpath_var 19889 19890 # This is the shared library path variable. 19891 shlibpath_var=$shlibpath_var 19892 19893 # Is shlibpath searched before the hard-coded library search path? 19894 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19895 19896 # How to hardcode a shared library path into an executable. 19897 hardcode_action=$hardcode_action_RC 19898 19899 # Whether we should hardcode library paths into libraries. 19900 hardcode_into_libs=$hardcode_into_libs 19901 19902 # Flag to hardcode \$libdir into a binary during linking. 19903 # This must work even if \$libdir does not exist. 19904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19905 19906 # If ld is used when linking, flag to hardcode \$libdir into 19907 # a binary during linking. This must work even if \$libdir does 19908 # not exist. 19909 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19910 19911 # Whether we need a single -rpath flag with a separated argument. 19912 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19913 19914 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19915 # resulting binary. 19916 hardcode_direct=$hardcode_direct_RC 19917 19918 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19919 # resulting binary. 19920 hardcode_minus_L=$hardcode_minus_L_RC 19921 19922 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19923 # the resulting binary. 19924 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19925 19926 # Set to yes if building a shared library automatically hardcodes DIR into the library 19927 # and all subsequent libraries and executables linked against it. 19928 hardcode_automatic=$hardcode_automatic_RC 19929 19930 # Variables whose values should be saved in libtool wrapper scripts and 19931 # restored at relink time. 19932 variables_saved_for_relink="$variables_saved_for_relink" 19933 19934 # Whether libtool must link a program against all its dependency libraries. 19935 link_all_deplibs=$link_all_deplibs_RC 19936 19937 # Compile-time system search path for libraries 19938 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19939 19940 # Run-time system search path for libraries 19941 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19942 19943 # Fix the shell variable \$srcfile for the compiler. 19944 fix_srcfile_path=$lt_fix_srcfile_path 19945 19946 # Set to yes if exported symbols are required. 19947 always_export_symbols=$always_export_symbols_RC 19948 19949 # The commands to list exported symbols. 19950 export_symbols_cmds=$lt_export_symbols_cmds_RC 19951 19952 # The commands to extract the exported symbol list from a shared archive. 19953 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19954 19955 # Symbols that should not be listed in the preloaded symbols. 19956 exclude_expsyms=$lt_exclude_expsyms_RC 19957 19958 # Symbols that must always be exported. 19959 include_expsyms=$lt_include_expsyms_RC 19960 19961 # ### END LIBTOOL TAG CONFIG: $tagname 19962 19963 __EOF__ 19964 19965 19966 else 19967 # If there is no Makefile yet, we rely on a make rule to execute 19968 # `config.status --recheck' to rerun these tests and create the 19969 # libtool script then. 19970 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19971 if test -f "$ltmain_in"; then 19972 test -f Makefile && make "$ltmain" 19973 fi 19974 fi 19975 19976 19977 ac_ext=c 19978 ac_cpp='$CPP $CPPFLAGS' 19979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19981 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19982 19983 CC="$lt_save_CC" 19984 19985 ;; 19986 19987 *) 19988 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19989 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19990 { (exit 1); exit 1; }; } 19991 ;; 19992 esac 19993 19994 # Append the new tag name to the list of available tags. 19995 if test -n "$tagname" ; then 19996 available_tags="$available_tags $tagname" 19997 fi 19998 fi 19999 done 20000 IFS="$lt_save_ifs" 20001 20002 # Now substitute the updated list of available tags. 20003 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20004 mv "${ofile}T" "$ofile" 20005 chmod +x "$ofile" 20006 else 20007 rm -f "${ofile}T" 20008 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20009 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20010 { (exit 1); exit 1; }; } 20011 fi 20012 fi 20013 20014 20015 20016 # This can be used to rebuild libtool when needed 20017 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20018 20019 # Always use our own libtool. 20020 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20021 20022 # Prevent multiple expansion 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 20045 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 20046 if test "${ac_cv_prog_cc_c99+set}" = set; then 20047 $as_echo_n "(cached) " >&6 20048 else 20049 ac_cv_prog_cc_c99=no 20050 ac_save_CC=$CC 20051 cat >conftest.$ac_ext <<_ACEOF 20052 /* confdefs.h. */ 20053 _ACEOF 20054 cat confdefs.h >>conftest.$ac_ext 20055 cat >>conftest.$ac_ext <<_ACEOF 20056 /* end confdefs.h. */ 20057 #include <stdarg.h> 20058 #include <stdbool.h> 20059 #include <stdlib.h> 20060 #include <wchar.h> 20061 #include <stdio.h> 20062 20063 // Check varargs macros. These examples are taken from C99 6.10.3.5. 20064 #define debug(...) fprintf (stderr, __VA_ARGS__) 20065 #define showlist(...) puts (#__VA_ARGS__) 20066 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 20067 static void 20068 test_varargs_macros (void) 20069 { 20070 int x = 1234; 20071 int y = 5678; 20072 debug ("Flag"); 20073 debug ("X = %d\n", x); 20074 showlist (The first, second, and third items.); 20075 report (x>y, "x is %d but y is %d", x, y); 20076 } 20077 20078 // Check long long types. 20079 #define BIG64 18446744073709551615ull 20080 #define BIG32 4294967295ul 20081 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 20082 #if !BIG_OK 20083 your preprocessor is broken; 20084 #endif 20085 #if BIG_OK 20086 #else 20087 your preprocessor is broken; 20088 #endif 20089 static long long int bignum = -9223372036854775807LL; 20090 static unsigned long long int ubignum = BIG64; 20091 20092 struct incomplete_array 20093 { 20094 int datasize; 20095 double data[]; 20096 }; 20097 20098 struct named_init { 20099 int number; 20100 const wchar_t *name; 20101 double average; 20102 }; 20103 20104 typedef const char *ccp; 20105 20106 static inline int 20107 test_restrict (ccp restrict text) 20108 { 20109 // See if C++-style comments work. 20110 // Iterate through items via the restricted pointer. 20111 // Also check for declarations in for loops. 20112 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 20113 continue; 20114 return 0; 20115 } 20116 20117 // Check varargs and va_copy. 20118 static void 20119 test_varargs (const char *format, ...) 20120 { 20121 va_list args; 20122 va_start (args, format); 20123 va_list args_copy; 20124 va_copy (args_copy, args); 20125 20126 const char *str; 20127 int number; 20128 float fnumber; 20129 20130 while (*format) 20131 { 20132 switch (*format++) 20133 { 20134 case 's': // string 20135 str = va_arg (args_copy, const char *); 20136 break; 20137 case 'd': // int 20138 number = va_arg (args_copy, int); 20139 break; 20140 case 'f': // float 20141 fnumber = va_arg (args_copy, double); 20142 break; 20143 default: 20144 break; 20145 } 20146 } 20147 va_end (args_copy); 20148 va_end (args); 20149 } 20150 20151 int 20152 main () 20153 { 20154 20155 // Check bool. 20156 _Bool success = false; 20157 20158 // Check restrict. 20159 if (test_restrict ("String literal") == 0) 20160 success = true; 20161 char *restrict newvar = "Another string"; 20162 20163 // Check varargs. 20164 test_varargs ("s, d' f .", "string", 65, 34.234); 20165 test_varargs_macros (); 20166 20167 // Check flexible array members. 20168 struct incomplete_array *ia = 20169 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 20170 ia->datasize = 10; 20171 for (int i = 0; i < ia->datasize; ++i) 20172 ia->data[i] = i * 1.234; 20173 20174 // Check named initializers. 20175 struct named_init ni = { 20176 .number = 34, 20177 .name = L"Test wide string", 20178 .average = 543.34343, 20179 }; 20180 20181 ni.number = 58; 20182 20183 int dynamic_array[ni.number]; 20184 dynamic_array[ni.number - 1] = 543; 20185 20186 // work around unused variable warnings 20187 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 20188 || dynamic_array[ni.number - 1] != 543); 20189 20190 ; 20191 return 0; 20192 } 20193 _ACEOF 20194 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 20195 do 20196 CC="$ac_save_CC $ac_arg" 20197 rm -f conftest.$ac_objext 20198 if { (ac_try="$ac_compile" 20199 case "(($ac_try" in 20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20201 *) ac_try_echo=$ac_try;; 20202 esac 20203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20204 $as_echo "$ac_try_echo") >&5 20205 (eval "$ac_compile") 2>conftest.er1 20206 ac_status=$? 20207 grep -v '^ *+' conftest.er1 >conftest.err 20208 rm -f conftest.er1 20209 cat conftest.err >&5 20210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20211 (exit $ac_status); } && { 20212 test -z "$ac_c_werror_flag" || 20213 test ! -s conftest.err 20214 } && test -s conftest.$ac_objext; then 20215 ac_cv_prog_cc_c99=$ac_arg 20216 else 20217 $as_echo "$as_me: failed program was:" >&5 20218 sed 's/^/| /' conftest.$ac_ext >&5 20219 20220 20221 fi 20222 20223 rm -f core conftest.err conftest.$ac_objext 20224 test "x$ac_cv_prog_cc_c99" != "xno" && break 20225 done 20226 rm -f conftest.$ac_ext 20227 CC=$ac_save_CC 20228 20229 fi 20230 # AC_CACHE_VAL 20231 case "x$ac_cv_prog_cc_c99" in 20232 x) 20233 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20234 $as_echo "none needed" >&6; } ;; 20235 xno) 20236 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20237 $as_echo "unsupported" >&6; } ;; 20238 *) 20239 CC="$CC $ac_cv_prog_cc_c99" 20240 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 20241 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 20242 esac 20243 20244 20245 20246 20247 20248 20249 if test "x$GCC" = xyes ; then 20250 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 20251 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 20252 -Wbad-function-cast" 20253 case `$CC -dumpversion` in 20254 3.4.* | 4.*) 20255 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 20256 ;; 20257 esac 20258 else 20259 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20260 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20261 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20262 $as_echo_n "(cached) " >&6 20263 else 20264 cat >conftest.$ac_ext <<_ACEOF 20265 /* confdefs.h. */ 20266 _ACEOF 20267 cat confdefs.h >>conftest.$ac_ext 20268 cat >>conftest.$ac_ext <<_ACEOF 20269 /* end confdefs.h. */ 20270 $ac_includes_default 20271 int 20272 main () 20273 { 20274 #ifndef __SUNPRO_C 20275 (void) __SUNPRO_C; 20276 #endif 20277 20278 ; 20279 return 0; 20280 } 20281 _ACEOF 20282 rm -f conftest.$ac_objext 20283 if { (ac_try="$ac_compile" 20284 case "(($ac_try" in 20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20286 *) ac_try_echo=$ac_try;; 20287 esac 20288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20289 $as_echo "$ac_try_echo") >&5 20290 (eval "$ac_compile") 2>conftest.er1 20291 ac_status=$? 20292 grep -v '^ *+' conftest.er1 >conftest.err 20293 rm -f conftest.er1 20294 cat conftest.err >&5 20295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20296 (exit $ac_status); } && { 20297 test -z "$ac_c_werror_flag" || 20298 test ! -s conftest.err 20299 } && test -s conftest.$ac_objext; then 20300 ac_cv_have_decl___SUNPRO_C=yes 20301 else 20302 $as_echo "$as_me: failed program was:" >&5 20303 sed 's/^/| /' conftest.$ac_ext >&5 20304 20305 ac_cv_have_decl___SUNPRO_C=no 20306 fi 20307 20308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20309 fi 20310 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20311 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20312 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 20313 SUNCC="yes" 20314 else 20315 SUNCC="no" 20316 fi 20317 20318 if test "x$SUNCC" = "xyes"; then 20319 CWARNFLAGS="-v" 20320 fi 20321 fi 20322 20323 # Check whether --enable-silent-rules was given. 20324 if test "${enable_silent_rules+set}" = set; then 20325 enableval=$enable_silent_rules; 20326 fi 20327 20328 case $enable_silent_rules in 20329 yes) AM_DEFAULT_VERBOSITY=0;; 20330 no) AM_DEFAULT_VERBOSITY=1;; 20331 *) AM_DEFAULT_VERBOSITY=0;; 20332 esac 20333 AM_BACKSLASH='\' 20334 20335 20336 20337 20338 20339 20340 20341 # Check whether --enable-strict-compilation was given. 20342 if test "${enable_strict_compilation+set}" = set; then 20343 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20344 else 20345 STRICT_COMPILE=no 20346 fi 20347 20348 if test "x$STRICT_COMPILE" = "xyes"; then 20349 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20350 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20351 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20352 $as_echo_n "(cached) " >&6 20353 else 20354 cat >conftest.$ac_ext <<_ACEOF 20355 /* confdefs.h. */ 20356 _ACEOF 20357 cat confdefs.h >>conftest.$ac_ext 20358 cat >>conftest.$ac_ext <<_ACEOF 20359 /* end confdefs.h. */ 20360 $ac_includes_default 20361 int 20362 main () 20363 { 20364 #ifndef __SUNPRO_C 20365 (void) __SUNPRO_C; 20366 #endif 20367 20368 ; 20369 return 0; 20370 } 20371 _ACEOF 20372 rm -f conftest.$ac_objext 20373 if { (ac_try="$ac_compile" 20374 case "(($ac_try" in 20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20376 *) ac_try_echo=$ac_try;; 20377 esac 20378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20379 $as_echo "$ac_try_echo") >&5 20380 (eval "$ac_compile") 2>conftest.er1 20381 ac_status=$? 20382 grep -v '^ *+' conftest.er1 >conftest.err 20383 rm -f conftest.er1 20384 cat conftest.err >&5 20385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20386 (exit $ac_status); } && { 20387 test -z "$ac_c_werror_flag" || 20388 test ! -s conftest.err 20389 } && test -s conftest.$ac_objext; then 20390 ac_cv_have_decl___SUNPRO_C=yes 20391 else 20392 $as_echo "$as_me: failed program was:" >&5 20393 sed 's/^/| /' conftest.$ac_ext >&5 20394 20395 ac_cv_have_decl___SUNPRO_C=no 20396 fi 20397 20398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20399 fi 20400 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20401 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20402 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 20403 SUNCC="yes" 20404 else 20405 SUNCC="no" 20406 fi 20407 20408 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 20409 $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 20410 if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 20411 $as_echo_n "(cached) " >&6 20412 else 20413 cat >conftest.$ac_ext <<_ACEOF 20414 /* confdefs.h. */ 20415 _ACEOF 20416 cat confdefs.h >>conftest.$ac_ext 20417 cat >>conftest.$ac_ext <<_ACEOF 20418 /* end confdefs.h. */ 20419 $ac_includes_default 20420 int 20421 main () 20422 { 20423 #ifndef __INTEL_COMPILER 20424 (void) __INTEL_COMPILER; 20425 #endif 20426 20427 ; 20428 return 0; 20429 } 20430 _ACEOF 20431 rm -f conftest.$ac_objext 20432 if { (ac_try="$ac_compile" 20433 case "(($ac_try" in 20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20435 *) ac_try_echo=$ac_try;; 20436 esac 20437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20438 $as_echo "$ac_try_echo") >&5 20439 (eval "$ac_compile") 2>conftest.er1 20440 ac_status=$? 20441 grep -v '^ *+' conftest.er1 >conftest.err 20442 rm -f conftest.er1 20443 cat conftest.err >&5 20444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20445 (exit $ac_status); } && { 20446 test -z "$ac_c_werror_flag" || 20447 test ! -s conftest.err 20448 } && test -s conftest.$ac_objext; then 20449 ac_cv_have_decl___INTEL_COMPILER=yes 20450 else 20451 $as_echo "$as_me: failed program was:" >&5 20452 sed 's/^/| /' conftest.$ac_ext >&5 20453 20454 ac_cv_have_decl___INTEL_COMPILER=no 20455 fi 20456 20457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20458 fi 20459 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 20460 $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 20461 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 20462 INTELCC="yes" 20463 else 20464 INTELCC="no" 20465 fi 20466 20467 if test "x$GCC" = xyes ; then 20468 STRICT_CFLAGS="-pedantic -Werror" 20469 elif test "x$SUNCC" = "xyes"; then 20470 STRICT_CFLAGS="-errwarn" 20471 elif test "x$INTELCC" = "xyes"; then 20472 STRICT_CFLAGS="-Werror" 20473 fi 20474 fi 20475 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20476 20477 20478 20479 20480 # Check whether --with-release-version was given. 20481 if test "${with_release_version+set}" = set; then 20482 withval=$with_release_version; RELEASE_VERSION="$withval" 20483 else 20484 RELEASE_VERSION="" 20485 fi 20486 20487 if test "x$RELEASE_VERSION" != "x"; then 20488 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20489 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20490 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20491 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20492 fi 20493 20494 cat >>confdefs.h <<_ACEOF 20495 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20496 _ACEOF 20497 20498 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20499 if test "x$PVM" = "x"; then 20500 PVM="0" 20501 fi 20502 20503 cat >>confdefs.h <<_ACEOF 20504 #define PACKAGE_VERSION_MINOR $PVM 20505 _ACEOF 20506 20507 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20508 if test "x$PVP" = "x"; then 20509 PVP="0" 20510 fi 20511 20512 cat >>confdefs.h <<_ACEOF 20513 #define PACKAGE_VERSION_PATCHLEVEL $PVP 20514 _ACEOF 20515 20516 20517 20518 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 20519 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 20520 echo 'git directory not found: installing possibly empty changelog.' >&2)" 20521 20522 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 20523 20524 20525 20526 20527 20528 if test x$APP_MAN_SUFFIX = x ; then 20529 APP_MAN_SUFFIX=1 20530 fi 20531 if test x$APP_MAN_DIR = x ; then 20532 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20533 fi 20534 20535 if test x$LIB_MAN_SUFFIX = x ; then 20536 LIB_MAN_SUFFIX=3 20537 fi 20538 if test x$LIB_MAN_DIR = x ; then 20539 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20540 fi 20541 20542 if test x$FILE_MAN_SUFFIX = x ; then 20543 case $host_os in 20544 solaris*) FILE_MAN_SUFFIX=4 ;; 20545 *) FILE_MAN_SUFFIX=5 ;; 20546 esac 20547 fi 20548 if test x$FILE_MAN_DIR = x ; then 20549 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20550 fi 20551 20552 if test x$MISC_MAN_SUFFIX = x ; then 20553 case $host_os in 20554 solaris*) MISC_MAN_SUFFIX=5 ;; 20555 *) MISC_MAN_SUFFIX=7 ;; 20556 esac 20557 fi 20558 if test x$MISC_MAN_DIR = x ; then 20559 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20560 fi 20561 20562 if test x$DRIVER_MAN_SUFFIX = x ; then 20563 case $host_os in 20564 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20565 *) DRIVER_MAN_SUFFIX=4 ;; 20566 esac 20567 fi 20568 if test x$DRIVER_MAN_DIR = x ; then 20569 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20570 fi 20571 20572 if test x$ADMIN_MAN_SUFFIX = x ; then 20573 case $host_os in 20574 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20575 *) ADMIN_MAN_SUFFIX=8 ;; 20576 esac 20577 fi 20578 if test x$ADMIN_MAN_DIR = x ; then 20579 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20580 fi 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 # Check for dependencies 20599 20600 20601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20602 if test -n "$ac_tool_prefix"; then 20603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20606 $as_echo_n "checking for $ac_word... " >&6; } 20607 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20608 $as_echo_n "(cached) " >&6 20609 else 20610 case $PKG_CONFIG in 20611 [\\/]* | ?:[\\/]*) 20612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20613 ;; 20614 *) 20615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20616 for as_dir in $PATH 20617 do 20618 IFS=$as_save_IFS 20619 test -z "$as_dir" && as_dir=. 20620 for ac_exec_ext in '' $ac_executable_extensions; do 20621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20624 break 2 20625 fi 20626 done 20627 done 20628 IFS=$as_save_IFS 20629 20630 ;; 20631 esac 20632 fi 20633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20634 if test -n "$PKG_CONFIG"; then 20635 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20636 $as_echo "$PKG_CONFIG" >&6; } 20637 else 20638 { $as_echo "$as_me:$LINENO: result: no" >&5 20639 $as_echo "no" >&6; } 20640 fi 20641 20642 20643 fi 20644 if test -z "$ac_cv_path_PKG_CONFIG"; then 20645 ac_pt_PKG_CONFIG=$PKG_CONFIG 20646 # Extract the first word of "pkg-config", so it can be a program name with args. 20647 set dummy pkg-config; ac_word=$2 20648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20649 $as_echo_n "checking for $ac_word... " >&6; } 20650 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20651 $as_echo_n "(cached) " >&6 20652 else 20653 case $ac_pt_PKG_CONFIG in 20654 [\\/]* | ?:[\\/]*) 20655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20656 ;; 20657 *) 20658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20659 for as_dir in $PATH 20660 do 20661 IFS=$as_save_IFS 20662 test -z "$as_dir" && as_dir=. 20663 for ac_exec_ext in '' $ac_executable_extensions; do 20664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20666 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20667 break 2 20668 fi 20669 done 20670 done 20671 IFS=$as_save_IFS 20672 20673 ;; 20674 esac 20675 fi 20676 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20677 if test -n "$ac_pt_PKG_CONFIG"; then 20678 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20679 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 20680 else 20681 { $as_echo "$as_me:$LINENO: result: no" >&5 20682 $as_echo "no" >&6; } 20683 fi 20684 20685 if test "x$ac_pt_PKG_CONFIG" = x; then 20686 PKG_CONFIG="" 20687 else 20688 case $cross_compiling:$ac_tool_warned in 20689 yes:) 20690 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20692 ac_tool_warned=yes ;; 20693 esac 20694 PKG_CONFIG=$ac_pt_PKG_CONFIG 20695 fi 20696 else 20697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20698 fi 20699 20700 fi 20701 if test -n "$PKG_CONFIG"; then 20702 _pkg_min_version=0.9.0 20703 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20704 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20706 { $as_echo "$as_me:$LINENO: result: yes" >&5 20707 $as_echo "yes" >&6; } 20708 else 20709 { $as_echo "$as_me:$LINENO: result: no" >&5 20710 $as_echo "no" >&6; } 20711 PKG_CONFIG="" 20712 fi 20713 20714 fi 20715 20716 pkg_failed=no 20717 { $as_echo "$as_me:$LINENO: checking for XFONTCACHE" >&5 20718 $as_echo_n "checking for XFONTCACHE... " >&6; } 20719 20720 if test -n "$XFONTCACHE_CFLAGS"; then 20721 pkg_cv_XFONTCACHE_CFLAGS="$XFONTCACHE_CFLAGS" 20722 elif test -n "$PKG_CONFIG"; then 20723 if test -n "$PKG_CONFIG" && \ 20724 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto fontcacheproto\"") >&5 20725 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto fontcacheproto") 2>&5 20726 ac_status=$? 20727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20728 (exit $ac_status); }; then 20729 pkg_cv_XFONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto fontcacheproto" 2>/dev/null` 20730 else 20731 pkg_failed=yes 20732 fi 20733 else 20734 pkg_failed=untried 20735 fi 20736 if test -n "$XFONTCACHE_LIBS"; then 20737 pkg_cv_XFONTCACHE_LIBS="$XFONTCACHE_LIBS" 20738 elif test -n "$PKG_CONFIG"; then 20739 if test -n "$PKG_CONFIG" && \ 20740 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto fontcacheproto\"") >&5 20741 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto fontcacheproto") 2>&5 20742 ac_status=$? 20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20744 (exit $ac_status); }; then 20745 pkg_cv_XFONTCACHE_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto fontcacheproto" 2>/dev/null` 20746 else 20747 pkg_failed=yes 20748 fi 20749 else 20750 pkg_failed=untried 20751 fi 20752 20753 20754 20755 if test $pkg_failed = yes; then 20756 20757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20758 _pkg_short_errors_supported=yes 20759 else 20760 _pkg_short_errors_supported=no 20761 fi 20762 if test $_pkg_short_errors_supported = yes; then 20763 XFONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto fontcacheproto" 2>&1` 20764 else 20765 XFONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto fontcacheproto" 2>&1` 20766 fi 20767 # Put the nasty error message in config.log where it belongs 20768 echo "$XFONTCACHE_PKG_ERRORS" >&5 20769 20770 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto fontcacheproto) were not met: 20771 20772 $XFONTCACHE_PKG_ERRORS 20773 20774 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20775 installed software in a non-standard prefix. 20776 20777 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS 20778 and XFONTCACHE_LIBS to avoid the need to call pkg-config. 20779 See the pkg-config man page for more details. 20780 " >&5 20781 $as_echo "$as_me: error: Package requirements (x11 xext xextproto fontcacheproto) were not met: 20782 20783 $XFONTCACHE_PKG_ERRORS 20784 20785 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20786 installed software in a non-standard prefix. 20787 20788 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS 20789 and XFONTCACHE_LIBS to avoid the need to call pkg-config. 20790 See the pkg-config man page for more details. 20791 " >&2;} 20792 { (exit 1); exit 1; }; } 20793 elif test $pkg_failed = untried; then 20794 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20796 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20797 is in your PATH or set the PKG_CONFIG environment variable to the full 20798 path to pkg-config. 20799 20800 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS 20801 and XFONTCACHE_LIBS to avoid the need to call pkg-config. 20802 See the pkg-config man page for more details. 20803 20804 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20805 See \`config.log' for more details." >&5 20806 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20807 is in your PATH or set the PKG_CONFIG environment variable to the full 20808 path to pkg-config. 20809 20810 Alternatively, you may set the environment variables XFONTCACHE_CFLAGS 20811 and XFONTCACHE_LIBS to avoid the need to call pkg-config. 20812 See the pkg-config man page for more details. 20813 20814 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20815 See \`config.log' for more details." >&2;} 20816 { (exit 1); exit 1; }; }; } 20817 else 20818 XFONTCACHE_CFLAGS=$pkg_cv_XFONTCACHE_CFLAGS 20819 XFONTCACHE_LIBS=$pkg_cv_XFONTCACHE_LIBS 20820 { $as_echo "$as_me:$LINENO: result: yes" >&5 20821 $as_echo "yes" >&6; } 20822 : 20823 fi 20824 20825 20826 20827 20828 # Check whether --enable-malloc0returnsnull was given. 20829 if test "${enable_malloc0returnsnull+set}" = set; then 20830 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20831 else 20832 MALLOC_ZERO_RETURNS_NULL=auto 20833 fi 20834 20835 20836 { $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 20837 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 20838 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20839 if test "$cross_compiling" = yes; then 20840 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20842 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20843 See \`config.log' for more details." >&5 20844 $as_echo "$as_me: error: cannot run test program while cross compiling 20845 See \`config.log' for more details." >&2;} 20846 { (exit 1); exit 1; }; }; } 20847 else 20848 cat >conftest.$ac_ext <<_ACEOF 20849 20850 char *malloc(); 20851 char *realloc(); 20852 char *calloc(); 20853 main() { 20854 char *m0, *r0, *c0, *p; 20855 m0 = malloc(0); 20856 p = malloc(10); 20857 r0 = realloc(p,0); 20858 c0 = calloc(0); 20859 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 20860 } 20861 _ACEOF 20862 rm -f conftest$ac_exeext 20863 if { (ac_try="$ac_link" 20864 case "(($ac_try" in 20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20866 *) ac_try_echo=$ac_try;; 20867 esac 20868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20869 $as_echo "$ac_try_echo") >&5 20870 (eval "$ac_link") 2>&5 20871 ac_status=$? 20872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20874 { (case "(($ac_try" in 20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20876 *) ac_try_echo=$ac_try;; 20877 esac 20878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20879 $as_echo "$ac_try_echo") >&5 20880 (eval "$ac_try") 2>&5 20881 ac_status=$? 20882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20883 (exit $ac_status); }; }; then 20884 MALLOC_ZERO_RETURNS_NULL=yes 20885 else 20886 $as_echo "$as_me: program exited with status $ac_status" >&5 20887 $as_echo "$as_me: failed program was:" >&5 20888 sed 's/^/| /' conftest.$ac_ext >&5 20889 20890 ( exit $ac_status ) 20891 MALLOC_ZERO_RETURNS_NULL=no 20892 fi 20893 rm -rf conftest.dSYM 20894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20895 fi 20896 20897 20898 fi 20899 { $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20900 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20901 20902 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20903 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20904 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20905 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20906 else 20907 MALLOC_ZERO_CFLAGS="" 20908 XMALLOC_ZERO_CFLAGS="" 20909 XTMALLOC_ZERO_CFLAGS="" 20910 fi 20911 20912 20913 20914 20915 20916 20917 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfontcache.pc" 20918 20919 cat >confcache <<\_ACEOF 20920 # This file is a shell script that caches the results of configure 20921 # tests run on this system so they can be shared between configure 20922 # scripts and configure runs, see configure's option --config-cache. 20923 # It is not useful on other systems. If it contains results you don't 20924 # want to keep, you may remove or edit it. 20925 # 20926 # config.status only pays attention to the cache file if you give it 20927 # the --recheck option to rerun configure. 20928 # 20929 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20930 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20931 # following values. 20932 20933 _ACEOF 20934 20935 # The following way of writing the cache mishandles newlines in values, 20936 # but we know of no workaround that is simple, portable, and efficient. 20937 # So, we kill variables containing newlines. 20938 # Ultrix sh set writes to stderr and can't be redirected directly, 20939 # and sets the high bit in the cache file unless we assign to the vars. 20940 ( 20941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20942 eval ac_val=\$$ac_var 20943 case $ac_val in #( 20944 *${as_nl}*) 20945 case $ac_var in #( 20946 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 20947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20948 esac 20949 case $ac_var in #( 20950 _ | IFS | as_nl) ;; #( 20951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20952 *) $as_unset $ac_var ;; 20953 esac ;; 20954 esac 20955 done 20956 20957 (set) 2>&1 | 20958 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20959 *${as_nl}ac_space=\ *) 20960 # `set' does not quote correctly, so add quotes (double-quote 20961 # substitution turns \\\\ into \\, and sed turns \\ into \). 20962 sed -n \ 20963 "s/'/'\\\\''/g; 20964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20965 ;; #( 20966 *) 20967 # `set' quotes correctly as required by POSIX, so do not add quotes. 20968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20969 ;; 20970 esac | 20971 sort 20972 ) | 20973 sed ' 20974 /^ac_cv_env_/b end 20975 t clear 20976 :clear 20977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20978 t end 20979 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20980 :end' >>confcache 20981 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20982 if test -w "$cache_file"; then 20983 test "x$cache_file" != "x/dev/null" && 20984 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 20985 $as_echo "$as_me: updating cache $cache_file" >&6;} 20986 cat confcache >$cache_file 20987 else 20988 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20990 fi 20991 fi 20992 rm -f confcache 20993 20994 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20995 # Let make expand exec_prefix. 20996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20997 20998 DEFS=-DHAVE_CONFIG_H 20999 21000 ac_libobjs= 21001 ac_ltlibobjs= 21002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21003 # 1. Remove the extension, and $U if already installed. 21004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21007 # will be set to the directory where LIBOBJS objects are built. 21008 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21009 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21010 done 21011 LIBOBJS=$ac_libobjs 21012 21013 LTLIBOBJS=$ac_ltlibobjs 21014 21015 21016 if test -n "$EXEEXT"; then 21017 am__EXEEXT_TRUE= 21018 am__EXEEXT_FALSE='#' 21019 else 21020 am__EXEEXT_TRUE='#' 21021 am__EXEEXT_FALSE= 21022 fi 21023 21024 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21025 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21026 Usually this means the macro was only invoked conditionally." >&5 21027 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21028 Usually this means the macro was only invoked conditionally." >&2;} 21029 { (exit 1); exit 1; }; } 21030 fi 21031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21032 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21033 Usually this means the macro was only invoked conditionally." >&5 21034 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21035 Usually this means the macro was only invoked conditionally." >&2;} 21036 { (exit 1); exit 1; }; } 21037 fi 21038 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21039 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21040 Usually this means the macro was only invoked conditionally." >&5 21041 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21042 Usually this means the macro was only invoked conditionally." >&2;} 21043 { (exit 1); exit 1; }; } 21044 fi 21045 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21046 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21047 Usually this means the macro was only invoked conditionally." >&5 21048 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21049 Usually this means the macro was only invoked conditionally." >&2;} 21050 { (exit 1); exit 1; }; } 21051 fi 21052 21053 : ${CONFIG_STATUS=./config.status} 21054 ac_write_fail=0 21055 ac_clean_files_save=$ac_clean_files 21056 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21057 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21058 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21059 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21060 #! $SHELL 21061 # Generated by $as_me. 21062 # Run this file to recreate the current configuration. 21063 # Compiler output produced by configure, useful for debugging 21064 # configure, is in config.log if it exists. 21065 21066 debug=false 21067 ac_cs_recheck=false 21068 ac_cs_silent=false 21069 SHELL=\${CONFIG_SHELL-$SHELL} 21070 _ACEOF 21071 21072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21073 ## --------------------- ## 21074 ## M4sh Initialization. ## 21075 ## --------------------- ## 21076 21077 # Be more Bourne compatible 21078 DUALCASE=1; export DUALCASE # for MKS sh 21079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21080 emulate sh 21081 NULLCMD=: 21082 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21083 # is contrary to our usage. Disable this feature. 21084 alias -g '${1+"$@"}'='"$@"' 21085 setopt NO_GLOB_SUBST 21086 else 21087 case `(set -o) 2>/dev/null` in 21088 *posix*) set -o posix ;; 21089 esac 21090 21091 fi 21092 21093 21094 21095 21096 # PATH needs CR 21097 # Avoid depending upon Character Ranges. 21098 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21101 as_cr_digits='0123456789' 21102 as_cr_alnum=$as_cr_Letters$as_cr_digits 21103 21104 as_nl=' 21105 ' 21106 export as_nl 21107 # Printing a long string crashes Solaris 7 /usr/bin/printf. 21108 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21111 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21112 as_echo='printf %s\n' 21113 as_echo_n='printf %s' 21114 else 21115 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21116 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21117 as_echo_n='/usr/ucb/echo -n' 21118 else 21119 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21120 as_echo_n_body='eval 21121 arg=$1; 21122 case $arg in 21123 *"$as_nl"*) 21124 expr "X$arg" : "X\\(.*\\)$as_nl"; 21125 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21126 esac; 21127 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21128 ' 21129 export as_echo_n_body 21130 as_echo_n='sh -c $as_echo_n_body as_echo' 21131 fi 21132 export as_echo_body 21133 as_echo='sh -c $as_echo_body as_echo' 21134 fi 21135 21136 # The user is always right. 21137 if test "${PATH_SEPARATOR+set}" != set; then 21138 PATH_SEPARATOR=: 21139 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21140 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21141 PATH_SEPARATOR=';' 21142 } 21143 fi 21144 21145 # Support unset when possible. 21146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21147 as_unset=unset 21148 else 21149 as_unset=false 21150 fi 21151 21152 21153 # IFS 21154 # We need space, tab and new line, in precisely that order. Quoting is 21155 # there to prevent editors from complaining about space-tab. 21156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 21157 # splitting by setting IFS to empty value.) 21158 IFS=" "" $as_nl" 21159 21160 # Find who we are. Look in the path if we contain no directory separator. 21161 case $0 in 21162 *[\\/]* ) as_myself=$0 ;; 21163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21164 for as_dir in $PATH 21165 do 21166 IFS=$as_save_IFS 21167 test -z "$as_dir" && as_dir=. 21168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21169 done 21170 IFS=$as_save_IFS 21171 21172 ;; 21173 esac 21174 # We did not find ourselves, most probably we were run as `sh COMMAND' 21175 # in which case we are not to be found in the path. 21176 if test "x$as_myself" = x; then 21177 as_myself=$0 21178 fi 21179 if test ! -f "$as_myself"; then 21180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21181 { (exit 1); exit 1; } 21182 fi 21183 21184 # Work around bugs in pre-3.0 UWIN ksh. 21185 for as_var in ENV MAIL MAILPATH 21186 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21187 done 21188 PS1='$ ' 21189 PS2='> ' 21190 PS4='+ ' 21191 21192 # NLS nuisances. 21193 LC_ALL=C 21194 export LC_ALL 21195 LANGUAGE=C 21196 export LANGUAGE 21197 21198 # Required to use basename. 21199 if expr a : '\(a\)' >/dev/null 2>&1 && 21200 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21201 as_expr=expr 21202 else 21203 as_expr=false 21204 fi 21205 21206 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21207 as_basename=basename 21208 else 21209 as_basename=false 21210 fi 21211 21212 21213 # Name of the executable. 21214 as_me=`$as_basename -- "$0" || 21215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21216 X"$0" : 'X\(//\)$' \| \ 21217 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21218 $as_echo X/"$0" | 21219 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21220 s//\1/ 21221 q 21222 } 21223 /^X\/\(\/\/\)$/{ 21224 s//\1/ 21225 q 21226 } 21227 /^X\/\(\/\).*/{ 21228 s//\1/ 21229 q 21230 } 21231 s/.*/./; q'` 21232 21233 # CDPATH. 21234 $as_unset CDPATH 21235 21236 21237 21238 as_lineno_1=$LINENO 21239 as_lineno_2=$LINENO 21240 test "x$as_lineno_1" != "x$as_lineno_2" && 21241 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21242 21243 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21244 # uniformly replaced by the line number. The first 'sed' inserts a 21245 # line-number line after each line using $LINENO; the second 'sed' 21246 # does the real work. The second script uses 'N' to pair each 21247 # line-number line with the line containing $LINENO, and appends 21248 # trailing '-' during substitution so that $LINENO is not a special 21249 # case at line end. 21250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21251 # scripts with optimization help from Paolo Bonzini. Blame Lee 21252 # E. McMahon (1931-1989) for sed's syntax. :-) 21253 sed -n ' 21254 p 21255 /[$]LINENO/= 21256 ' <$as_myself | 21257 sed ' 21258 s/[$]LINENO.*/&-/ 21259 t lineno 21260 b 21261 :lineno 21262 N 21263 :loop 21264 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21265 t loop 21266 s/-\n.*// 21267 ' >$as_me.lineno && 21268 chmod +x "$as_me.lineno" || 21269 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21270 { (exit 1); exit 1; }; } 21271 21272 # Don't try to exec as it changes $[0], causing all sort of problems 21273 # (the dirname of $[0] is not the place where we might find the 21274 # original and so on. Autoconf is especially sensitive to this). 21275 . "./$as_me.lineno" 21276 # Exit status is that of the last command. 21277 exit 21278 } 21279 21280 21281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21282 as_dirname=dirname 21283 else 21284 as_dirname=false 21285 fi 21286 21287 ECHO_C= ECHO_N= ECHO_T= 21288 case `echo -n x` in 21289 -n*) 21290 case `echo 'x\c'` in 21291 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21292 *) ECHO_C='\c';; 21293 esac;; 21294 *) 21295 ECHO_N='-n';; 21296 esac 21297 if expr a : '\(a\)' >/dev/null 2>&1 && 21298 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21299 as_expr=expr 21300 else 21301 as_expr=false 21302 fi 21303 21304 rm -f conf$$ conf$$.exe conf$$.file 21305 if test -d conf$$.dir; then 21306 rm -f conf$$.dir/conf$$.file 21307 else 21308 rm -f conf$$.dir 21309 mkdir conf$$.dir 2>/dev/null 21310 fi 21311 if (echo >conf$$.file) 2>/dev/null; then 21312 if ln -s conf$$.file conf$$ 2>/dev/null; then 21313 as_ln_s='ln -s' 21314 # ... but there are two gotchas: 21315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21317 # In both cases, we have to default to `cp -p'. 21318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21319 as_ln_s='cp -p' 21320 elif ln conf$$.file conf$$ 2>/dev/null; then 21321 as_ln_s=ln 21322 else 21323 as_ln_s='cp -p' 21324 fi 21325 else 21326 as_ln_s='cp -p' 21327 fi 21328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21329 rmdir conf$$.dir 2>/dev/null 21330 21331 if mkdir -p . 2>/dev/null; then 21332 as_mkdir_p=: 21333 else 21334 test -d ./-p && rmdir ./-p 21335 as_mkdir_p=false 21336 fi 21337 21338 if test -x / >/dev/null 2>&1; then 21339 as_test_x='test -x' 21340 else 21341 if ls -dL / >/dev/null 2>&1; then 21342 as_ls_L_option=L 21343 else 21344 as_ls_L_option= 21345 fi 21346 as_test_x=' 21347 eval sh -c '\'' 21348 if test -d "$1"; then 21349 test -d "$1/."; 21350 else 21351 case $1 in 21352 -*)set "./$1";; 21353 esac; 21354 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21355 ???[sx]*):;;*)false;;esac;fi 21356 '\'' sh 21357 ' 21358 fi 21359 as_executable_p=$as_test_x 21360 21361 # Sed expression to map a string onto a valid CPP name. 21362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21363 21364 # Sed expression to map a string onto a valid variable name. 21365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21366 21367 21368 exec 6>&1 21369 21370 # Save the log message, to keep $[0] and so on meaningful, and to 21371 # report actual input values of CONFIG_FILES etc. instead of their 21372 # values after options handling. 21373 ac_log=" 21374 This file was extended by libXfontcache $as_me 1.0.5, which was 21375 generated by GNU Autoconf 2.63. Invocation command line was 21376 21377 CONFIG_FILES = $CONFIG_FILES 21378 CONFIG_HEADERS = $CONFIG_HEADERS 21379 CONFIG_LINKS = $CONFIG_LINKS 21380 CONFIG_COMMANDS = $CONFIG_COMMANDS 21381 $ $0 $@ 21382 21383 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21384 " 21385 21386 _ACEOF 21387 21388 case $ac_config_files in *" 21389 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21390 esac 21391 21392 case $ac_config_headers in *" 21393 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21394 esac 21395 21396 21397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21398 # Files that config.status was made for. 21399 config_files="$ac_config_files" 21400 config_headers="$ac_config_headers" 21401 config_commands="$ac_config_commands" 21402 21403 _ACEOF 21404 21405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21406 ac_cs_usage="\ 21407 \`$as_me' instantiates files from templates according to the 21408 current configuration. 21409 21410 Usage: $0 [OPTION]... [FILE]... 21411 21412 -h, --help print this help, then exit 21413 -V, --version print version number and configuration settings, then exit 21414 -q, --quiet, --silent 21415 do not print progress messages 21416 -d, --debug don't remove temporary files 21417 --recheck update $as_me by reconfiguring in the same conditions 21418 --file=FILE[:TEMPLATE] 21419 instantiate the configuration file FILE 21420 --header=FILE[:TEMPLATE] 21421 instantiate the configuration header FILE 21422 21423 Configuration files: 21424 $config_files 21425 21426 Configuration headers: 21427 $config_headers 21428 21429 Configuration commands: 21430 $config_commands 21431 21432 Report bugs to <bug-autoconf (at] gnu.org>." 21433 21434 _ACEOF 21435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21436 ac_cs_version="\\ 21437 libXfontcache config.status 1.0.5 21438 configured by $0, generated by GNU Autoconf 2.63, 21439 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21440 21441 Copyright (C) 2008 Free Software Foundation, Inc. 21442 This config.status script is free software; the Free Software Foundation 21443 gives unlimited permission to copy, distribute and modify it." 21444 21445 ac_pwd='$ac_pwd' 21446 srcdir='$srcdir' 21447 INSTALL='$INSTALL' 21448 MKDIR_P='$MKDIR_P' 21449 AWK='$AWK' 21450 test -n "\$AWK" || AWK=awk 21451 _ACEOF 21452 21453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21454 # The default lists apply if the user does not specify any file. 21455 ac_need_defaults=: 21456 while test $# != 0 21457 do 21458 case $1 in 21459 --*=*) 21460 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21461 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21462 ac_shift=: 21463 ;; 21464 *) 21465 ac_option=$1 21466 ac_optarg=$2 21467 ac_shift=shift 21468 ;; 21469 esac 21470 21471 case $ac_option in 21472 # Handling of the options. 21473 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21474 ac_cs_recheck=: ;; 21475 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21476 $as_echo "$ac_cs_version"; exit ;; 21477 --debug | --debu | --deb | --de | --d | -d ) 21478 debug=: ;; 21479 --file | --fil | --fi | --f ) 21480 $ac_shift 21481 case $ac_optarg in 21482 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21483 esac 21484 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21485 ac_need_defaults=false;; 21486 --header | --heade | --head | --hea ) 21487 $ac_shift 21488 case $ac_optarg in 21489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21490 esac 21491 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21492 ac_need_defaults=false;; 21493 --he | --h) 21494 # Conflict between --help and --header 21495 { $as_echo "$as_me: error: ambiguous option: $1 21496 Try \`$0 --help' for more information." >&2 21497 { (exit 1); exit 1; }; };; 21498 --help | --hel | -h ) 21499 $as_echo "$ac_cs_usage"; exit ;; 21500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21501 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21502 ac_cs_silent=: ;; 21503 21504 # This is an error. 21505 -*) { $as_echo "$as_me: error: unrecognized option: $1 21506 Try \`$0 --help' for more information." >&2 21507 { (exit 1); exit 1; }; } ;; 21508 21509 *) ac_config_targets="$ac_config_targets $1" 21510 ac_need_defaults=false ;; 21511 21512 esac 21513 shift 21514 done 21515 21516 ac_configure_extra_args= 21517 21518 if $ac_cs_silent; then 21519 exec 6>/dev/null 21520 ac_configure_extra_args="$ac_configure_extra_args --silent" 21521 fi 21522 21523 _ACEOF 21524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21525 if \$ac_cs_recheck; then 21526 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21527 shift 21528 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21529 CONFIG_SHELL='$SHELL' 21530 export CONFIG_SHELL 21531 exec "\$@" 21532 fi 21533 21534 _ACEOF 21535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21536 exec 5>>config.log 21537 { 21538 echo 21539 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21540 ## Running $as_me. ## 21541 _ASBOX 21542 $as_echo "$ac_log" 21543 } >&5 21544 21545 _ACEOF 21546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21547 # 21548 # INIT-COMMANDS 21549 # 21550 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21551 21552 _ACEOF 21553 21554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21555 21556 # Handling of arguments. 21557 for ac_config_target in $ac_config_targets 21558 do 21559 case $ac_config_target in 21560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21561 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21562 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21563 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21564 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21565 "xfontcache.pc") CONFIG_FILES="$CONFIG_FILES xfontcache.pc" ;; 21566 21567 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21568 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21569 { (exit 1); exit 1; }; };; 21570 esac 21571 done 21572 21573 21574 # If the user did not use the arguments to specify the items to instantiate, 21575 # then the envvar interface is used. Set only those that are not. 21576 # We use the long form for the default assignment because of an extremely 21577 # bizarre bug on SunOS 4.1.3. 21578 if $ac_need_defaults; then 21579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21580 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21581 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21582 fi 21583 21584 # Have a temporary directory for convenience. Make it in the build tree 21585 # simply because there is no reason against having it here, and in addition, 21586 # creating and moving files from /tmp can sometimes cause problems. 21587 # Hook for its removal unless debugging. 21588 # Note that there is a small window in which the directory will not be cleaned: 21589 # after its creation but before its name has been assigned to `$tmp'. 21590 $debug || 21591 { 21592 tmp= 21593 trap 'exit_status=$? 21594 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21595 ' 0 21596 trap '{ (exit 1); exit 1; }' 1 2 13 15 21597 } 21598 # Create a (secure) tmp directory for tmp files. 21599 21600 { 21601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21602 test -n "$tmp" && test -d "$tmp" 21603 } || 21604 { 21605 tmp=./conf$$-$RANDOM 21606 (umask 077 && mkdir "$tmp") 21607 } || 21608 { 21609 $as_echo "$as_me: cannot create a temporary directory in ." >&2 21610 { (exit 1); exit 1; } 21611 } 21612 21613 # Set up the scripts for CONFIG_FILES section. 21614 # No need to generate them if there are no CONFIG_FILES. 21615 # This happens for instance with `./config.status config.h'. 21616 if test -n "$CONFIG_FILES"; then 21617 21618 21619 ac_cr=' ' 21621 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21622 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21623 ac_cs_awk_cr='\\r' 21624 else 21625 ac_cs_awk_cr=$ac_cr 21626 fi 21627 21628 echo 'BEGIN {' >"$tmp/subs1.awk" && 21629 _ACEOF 21630 21631 21632 { 21633 echo "cat >conf$$subs.awk <<_ACEOF" && 21634 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21635 echo "_ACEOF" 21636 } >conf$$subs.sh || 21637 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21638 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21639 { (exit 1); exit 1; }; } 21640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21641 ac_delim='%!_!# ' 21642 for ac_last_try in false false false false false :; do 21643 . ./conf$$subs.sh || 21644 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21645 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21646 { (exit 1); exit 1; }; } 21647 21648 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21649 if test $ac_delim_n = $ac_delim_num; then 21650 break 21651 elif $ac_last_try; then 21652 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21653 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21654 { (exit 1); exit 1; }; } 21655 else 21656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21657 fi 21658 done 21659 rm -f conf$$subs.sh 21660 21661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21662 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21663 _ACEOF 21664 sed -n ' 21665 h 21666 s/^/S["/; s/!.*/"]=/ 21667 p 21668 g 21669 s/^[^!]*!// 21670 :repl 21671 t repl 21672 s/'"$ac_delim"'$// 21673 t delim 21674 :nl 21675 h 21676 s/\(.\{148\}\).*/\1/ 21677 t more1 21678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21679 p 21680 n 21681 b repl 21682 :more1 21683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21684 p 21685 g 21686 s/.\{148\}// 21687 t nl 21688 :delim 21689 h 21690 s/\(.\{148\}\).*/\1/ 21691 t more2 21692 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21693 p 21694 b 21695 :more2 21696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21697 p 21698 g 21699 s/.\{148\}// 21700 t delim 21701 ' <conf$$subs.awk | sed ' 21702 /^[^""]/{ 21703 N 21704 s/\n// 21705 } 21706 ' >>$CONFIG_STATUS || ac_write_fail=1 21707 rm -f conf$$subs.awk 21708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21709 _ACAWK 21710 cat >>"\$tmp/subs1.awk" <<_ACAWK && 21711 for (key in S) S_is_set[key] = 1 21712 FS = "" 21713 21714 } 21715 { 21716 line = $ 0 21717 nfields = split(line, field, "@") 21718 substed = 0 21719 len = length(field[1]) 21720 for (i = 2; i < nfields; i++) { 21721 key = field[i] 21722 keylen = length(key) 21723 if (S_is_set[key]) { 21724 value = S[key] 21725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21726 len += length(value) + length(field[++i]) 21727 substed = 1 21728 } else 21729 len += 1 + keylen 21730 } 21731 21732 print line 21733 } 21734 21735 _ACAWK 21736 _ACEOF 21737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21740 else 21741 cat 21742 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21743 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 21744 $as_echo "$as_me: error: could not setup config files machinery" >&2;} 21745 { (exit 1); exit 1; }; } 21746 _ACEOF 21747 21748 # VPATH may cause trouble with some makes, so we remove $(srcdir), 21749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21750 # trailing colons and then remove the whole line if VPATH becomes empty 21751 # (actually we leave an empty line to preserve line numbers). 21752 if test "x$srcdir" = x.; then 21753 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21754 s/:*\$(srcdir):*/:/ 21755 s/:*\${srcdir}:*/:/ 21756 s/:*@srcdir@:*/:/ 21757 s/^\([^=]*=[ ]*\):*/\1/ 21758 s/:*$// 21759 s/^[^=]*=[ ]*$// 21760 }' 21761 fi 21762 21763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21764 fi # test -n "$CONFIG_FILES" 21765 21766 # Set up the scripts for CONFIG_HEADERS section. 21767 # No need to generate them if there are no CONFIG_HEADERS. 21768 # This happens for instance with `./config.status Makefile'. 21769 if test -n "$CONFIG_HEADERS"; then 21770 cat >"$tmp/defines.awk" <<\_ACAWK || 21771 BEGIN { 21772 _ACEOF 21773 21774 # Transform confdefs.h into an awk script `defines.awk', embedded as 21775 # here-document in config.status, that substitutes the proper values into 21776 # config.h.in to produce config.h. 21777 21778 # Create a delimiter string that does not exist in confdefs.h, to ease 21779 # handling of long lines. 21780 ac_delim='%!_!# ' 21781 for ac_last_try in false false :; do 21782 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 21783 if test -z "$ac_t"; then 21784 break 21785 elif $ac_last_try; then 21786 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 21787 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 21788 { (exit 1); exit 1; }; } 21789 else 21790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21791 fi 21792 done 21793 21794 # For the awk script, D is an array of macro values keyed by name, 21795 # likewise P contains macro parameters if any. Preserve backslash 21796 # newline sequences. 21797 21798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21799 sed -n ' 21800 s/.\{148\}/&'"$ac_delim"'/g 21801 t rset 21802 :rset 21803 s/^[ ]*#[ ]*define[ ][ ]*/ / 21804 t def 21805 d 21806 :def 21807 s/\\$// 21808 t bsnl 21809 s/["\\]/\\&/g 21810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21811 D["\1"]=" \3"/p 21812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21813 d 21814 :bsnl 21815 s/["\\]/\\&/g 21816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21817 D["\1"]=" \3\\\\\\n"\\/p 21818 t cont 21819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21820 t cont 21821 d 21822 :cont 21823 n 21824 s/.\{148\}/&'"$ac_delim"'/g 21825 t clear 21826 :clear 21827 s/\\$// 21828 t bsnlc 21829 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21830 d 21831 :bsnlc 21832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21833 b cont 21834 ' <confdefs.h | sed ' 21835 s/'"$ac_delim"'/"\\\ 21836 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21837 21838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21839 for (key in D) D_is_set[key] = 1 21840 FS = "" 21841 } 21842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21843 line = \$ 0 21844 split(line, arg, " ") 21845 if (arg[1] == "#") { 21846 defundef = arg[2] 21847 mac1 = arg[3] 21848 } else { 21849 defundef = substr(arg[1], 2) 21850 mac1 = arg[2] 21851 } 21852 split(mac1, mac2, "(") #) 21853 macro = mac2[1] 21854 prefix = substr(line, 1, index(line, defundef) - 1) 21855 if (D_is_set[macro]) { 21856 # Preserve the white space surrounding the "#". 21857 print prefix "define", macro P[macro] D[macro] 21858 next 21859 } else { 21860 # Replace #undef with comments. This is necessary, for example, 21861 # in the case of _POSIX_SOURCE, which is predefined and required 21862 # on some systems where configure will not decide to define it. 21863 if (defundef == "undef") { 21864 print "/*", prefix defundef, macro, "*/" 21865 next 21866 } 21867 } 21868 } 21869 { print } 21870 _ACAWK 21871 _ACEOF 21872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21873 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 21874 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} 21875 { (exit 1); exit 1; }; } 21876 fi # test -n "$CONFIG_HEADERS" 21877 21878 21879 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21880 shift 21881 for ac_tag 21882 do 21883 case $ac_tag in 21884 :[FHLC]) ac_mode=$ac_tag; continue;; 21885 esac 21886 case $ac_mode$ac_tag in 21887 :[FHL]*:*);; 21888 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 21889 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 21890 { (exit 1); exit 1; }; };; 21891 :[FH]-) ac_tag=-:-;; 21892 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21893 esac 21894 ac_save_IFS=$IFS 21895 IFS=: 21896 set x $ac_tag 21897 IFS=$ac_save_IFS 21898 shift 21899 ac_file=$1 21900 shift 21901 21902 case $ac_mode in 21903 :L) ac_source=$1;; 21904 :[FH]) 21905 ac_file_inputs= 21906 for ac_f 21907 do 21908 case $ac_f in 21909 -) ac_f="$tmp/stdin";; 21910 *) # Look for the file first in the build tree, then in the source tree 21911 # (if the path is not absolute). The absolute path cannot be DOS-style, 21912 # because $ac_f cannot contain `:'. 21913 test -f "$ac_f" || 21914 case $ac_f in 21915 [\\/$]*) false;; 21916 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21917 esac || 21918 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21919 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21920 { (exit 1); exit 1; }; };; 21921 esac 21922 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21923 ac_file_inputs="$ac_file_inputs '$ac_f'" 21924 done 21925 21926 # Let's still pretend it is `configure' which instantiates (i.e., don't 21927 # use $as_me), people would be surprised to read: 21928 # /* config.h. Generated by config.status. */ 21929 configure_input='Generated from '` 21930 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21931 `' by configure.' 21932 if test x"$ac_file" != x-; then 21933 configure_input="$ac_file. $configure_input" 21934 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 21935 $as_echo "$as_me: creating $ac_file" >&6;} 21936 fi 21937 # Neutralize special characters interpreted by sed in replacement strings. 21938 case $configure_input in #( 21939 *\&* | *\|* | *\\* ) 21940 ac_sed_conf_input=`$as_echo "$configure_input" | 21941 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21942 *) ac_sed_conf_input=$configure_input;; 21943 esac 21944 21945 case $ac_tag in 21946 *:-:* | *:-) cat >"$tmp/stdin" \ 21947 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 21948 $as_echo "$as_me: error: could not create $ac_file" >&2;} 21949 { (exit 1); exit 1; }; } ;; 21950 esac 21951 ;; 21952 esac 21953 21954 ac_dir=`$as_dirname -- "$ac_file" || 21955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21956 X"$ac_file" : 'X\(//\)[^/]' \| \ 21957 X"$ac_file" : 'X\(//\)$' \| \ 21958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21959 $as_echo X"$ac_file" | 21960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21961 s//\1/ 21962 q 21963 } 21964 /^X\(\/\/\)[^/].*/{ 21965 s//\1/ 21966 q 21967 } 21968 /^X\(\/\/\)$/{ 21969 s//\1/ 21970 q 21971 } 21972 /^X\(\/\).*/{ 21973 s//\1/ 21974 q 21975 } 21976 s/.*/./; q'` 21977 { as_dir="$ac_dir" 21978 case $as_dir in #( 21979 -*) as_dir=./$as_dir;; 21980 esac 21981 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21982 as_dirs= 21983 while :; do 21984 case $as_dir in #( 21985 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21986 *) as_qdir=$as_dir;; 21987 esac 21988 as_dirs="'$as_qdir' $as_dirs" 21989 as_dir=`$as_dirname -- "$as_dir" || 21990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21991 X"$as_dir" : 'X\(//\)[^/]' \| \ 21992 X"$as_dir" : 'X\(//\)$' \| \ 21993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21994 $as_echo X"$as_dir" | 21995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21996 s//\1/ 21997 q 21998 } 21999 /^X\(\/\/\)[^/].*/{ 22000 s//\1/ 22001 q 22002 } 22003 /^X\(\/\/\)$/{ 22004 s//\1/ 22005 q 22006 } 22007 /^X\(\/\).*/{ 22008 s//\1/ 22009 q 22010 } 22011 s/.*/./; q'` 22012 test -d "$as_dir" && break 22013 done 22014 test -z "$as_dirs" || eval "mkdir $as_dirs" 22015 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22016 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22017 { (exit 1); exit 1; }; }; } 22018 ac_builddir=. 22019 22020 case "$ac_dir" in 22021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22022 *) 22023 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22024 # A ".." for each directory in $ac_dir_suffix. 22025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22026 case $ac_top_builddir_sub in 22027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22029 esac ;; 22030 esac 22031 ac_abs_top_builddir=$ac_pwd 22032 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22033 # for backward compatibility: 22034 ac_top_builddir=$ac_top_build_prefix 22035 22036 case $srcdir in 22037 .) # We are building in place. 22038 ac_srcdir=. 22039 ac_top_srcdir=$ac_top_builddir_sub 22040 ac_abs_top_srcdir=$ac_pwd ;; 22041 [\\/]* | ?:[\\/]* ) # Absolute name. 22042 ac_srcdir=$srcdir$ac_dir_suffix; 22043 ac_top_srcdir=$srcdir 22044 ac_abs_top_srcdir=$srcdir ;; 22045 *) # Relative name. 22046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22047 ac_top_srcdir=$ac_top_build_prefix$srcdir 22048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22049 esac 22050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22051 22052 22053 case $ac_mode in 22054 :F) 22055 # 22056 # CONFIG_FILE 22057 # 22058 22059 case $INSTALL in 22060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22061 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22062 esac 22063 ac_MKDIR_P=$MKDIR_P 22064 case $MKDIR_P in 22065 [\\/$]* | ?:[\\/]* ) ;; 22066 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22067 esac 22068 _ACEOF 22069 22070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22071 # If the template does not know about datarootdir, expand it. 22072 # FIXME: This hack should be removed a few years after 2.60. 22073 ac_datarootdir_hack=; ac_datarootdir_seen= 22074 22075 ac_sed_dataroot=' 22076 /datarootdir/ { 22077 p 22078 q 22079 } 22080 /@datadir@/p 22081 /@docdir@/p 22082 /@infodir@/p 22083 /@localedir@/p 22084 /@mandir@/p 22085 ' 22086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22087 *datarootdir*) ac_datarootdir_seen=yes;; 22088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22089 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22091 _ACEOF 22092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22093 ac_datarootdir_hack=' 22094 s&@datadir@&$datadir&g 22095 s&@docdir@&$docdir&g 22096 s&@infodir@&$infodir&g 22097 s&@localedir@&$localedir&g 22098 s&@mandir@&$mandir&g 22099 s&\\\${datarootdir}&$datarootdir&g' ;; 22100 esac 22101 _ACEOF 22102 22103 # Neutralize VPATH when `$srcdir' = `.'. 22104 # Shell code in configure.ac might set extrasub. 22105 # FIXME: do we really want to maintain this feature? 22106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22107 ac_sed_extra="$ac_vpsub 22108 $extrasub 22109 _ACEOF 22110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22111 :t 22112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22113 s|@configure_input@|$ac_sed_conf_input|;t t 22114 s&@top_builddir@&$ac_top_builddir_sub&;t t 22115 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22116 s&@srcdir@&$ac_srcdir&;t t 22117 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22118 s&@top_srcdir@&$ac_top_srcdir&;t t 22119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22120 s&@builddir@&$ac_builddir&;t t 22121 s&@abs_builddir@&$ac_abs_builddir&;t t 22122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22123 s&@INSTALL@&$ac_INSTALL&;t t 22124 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22125 $ac_datarootdir_hack 22126 " 22127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22128 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22129 $as_echo "$as_me: error: could not create $ac_file" >&2;} 22130 { (exit 1); exit 1; }; } 22131 22132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22133 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22135 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22136 which seems to be undefined. Please make sure it is defined." >&5 22137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22138 which seems to be undefined. Please make sure it is defined." >&2;} 22139 22140 rm -f "$tmp/stdin" 22141 case $ac_file in 22142 -) cat "$tmp/out" && rm -f "$tmp/out";; 22143 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22144 esac \ 22145 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22146 $as_echo "$as_me: error: could not create $ac_file" >&2;} 22147 { (exit 1); exit 1; }; } 22148 ;; 22149 :H) 22150 # 22151 # CONFIG_HEADER 22152 # 22153 if test x"$ac_file" != x-; then 22154 { 22155 $as_echo "/* $configure_input */" \ 22156 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22157 } >"$tmp/config.h" \ 22158 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22159 $as_echo "$as_me: error: could not create $ac_file" >&2;} 22160 { (exit 1); exit 1; }; } 22161 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22162 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22163 $as_echo "$as_me: $ac_file is unchanged" >&6;} 22164 else 22165 rm -f "$ac_file" 22166 mv "$tmp/config.h" "$ac_file" \ 22167 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22168 $as_echo "$as_me: error: could not create $ac_file" >&2;} 22169 { (exit 1); exit 1; }; } 22170 fi 22171 else 22172 $as_echo "/* $configure_input */" \ 22173 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22174 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22175 $as_echo "$as_me: error: could not create -" >&2;} 22176 { (exit 1); exit 1; }; } 22177 fi 22178 # Compute "$ac_file"'s index in $config_headers. 22179 _am_arg="$ac_file" 22180 _am_stamp_count=1 22181 for _am_header in $config_headers :; do 22182 case $_am_header in 22183 $_am_arg | $_am_arg:* ) 22184 break ;; 22185 * ) 22186 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22187 esac 22188 done 22189 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22190 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22191 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22192 X"$_am_arg" : 'X\(//\)$' \| \ 22193 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22194 $as_echo X"$_am_arg" | 22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22196 s//\1/ 22197 q 22198 } 22199 /^X\(\/\/\)[^/].*/{ 22200 s//\1/ 22201 q 22202 } 22203 /^X\(\/\/\)$/{ 22204 s//\1/ 22205 q 22206 } 22207 /^X\(\/\).*/{ 22208 s//\1/ 22209 q 22210 } 22211 s/.*/./; q'`/stamp-h$_am_stamp_count 22212 ;; 22213 22214 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22215 $as_echo "$as_me: executing $ac_file commands" >&6;} 22216 ;; 22217 esac 22218 22219 22220 case $ac_file$ac_mode in 22221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22222 # Autoconf 2.62 quotes --file arguments for eval, but not when files 22223 # are listed without --file. Let's play safe and only enable the eval 22224 # if we detect the quoting. 22225 case $CONFIG_FILES in 22226 *\'*) eval set x "$CONFIG_FILES" ;; 22227 *) set x $CONFIG_FILES ;; 22228 esac 22229 shift 22230 for mf 22231 do 22232 # Strip MF so we end up with the name of the file. 22233 mf=`echo "$mf" | sed -e 's/:.*$//'` 22234 # Check whether this is an Automake generated Makefile or not. 22235 # We used to match only the files named `Makefile.in', but 22236 # some people rename them; so instead we look at the file content. 22237 # Grep'ing the first line is not enough: some people post-process 22238 # each Makefile.in and add a new line on top of each file to say so. 22239 # Grep'ing the whole file is not good either: AIX grep has a line 22240 # limit of 2048, but all sed's we know have understand at least 4000. 22241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22242 dirpart=`$as_dirname -- "$mf" || 22243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22244 X"$mf" : 'X\(//\)[^/]' \| \ 22245 X"$mf" : 'X\(//\)$' \| \ 22246 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22247 $as_echo X"$mf" | 22248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22249 s//\1/ 22250 q 22251 } 22252 /^X\(\/\/\)[^/].*/{ 22253 s//\1/ 22254 q 22255 } 22256 /^X\(\/\/\)$/{ 22257 s//\1/ 22258 q 22259 } 22260 /^X\(\/\).*/{ 22261 s//\1/ 22262 q 22263 } 22264 s/.*/./; q'` 22265 else 22266 continue 22267 fi 22268 # Extract the definition of DEPDIR, am__include, and am__quote 22269 # from the Makefile without running `make'. 22270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22271 test -z "$DEPDIR" && continue 22272 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22273 test -z "am__include" && continue 22274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22275 # When using ansi2knr, U may be empty or an underscore; expand it 22276 U=`sed -n 's/^U = //p' < "$mf"` 22277 # Find all dependency output files, they are included files with 22278 # $(DEPDIR) in their names. We invoke sed twice because it is the 22279 # simplest approach to changing $(DEPDIR) to its actual value in the 22280 # expansion. 22281 for file in `sed -n " 22282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22284 # Make sure the directory exists. 22285 test -f "$dirpart/$file" && continue 22286 fdir=`$as_dirname -- "$file" || 22287 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22288 X"$file" : 'X\(//\)[^/]' \| \ 22289 X"$file" : 'X\(//\)$' \| \ 22290 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22291 $as_echo X"$file" | 22292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22293 s//\1/ 22294 q 22295 } 22296 /^X\(\/\/\)[^/].*/{ 22297 s//\1/ 22298 q 22299 } 22300 /^X\(\/\/\)$/{ 22301 s//\1/ 22302 q 22303 } 22304 /^X\(\/\).*/{ 22305 s//\1/ 22306 q 22307 } 22308 s/.*/./; q'` 22309 { as_dir=$dirpart/$fdir 22310 case $as_dir in #( 22311 -*) as_dir=./$as_dir;; 22312 esac 22313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22314 as_dirs= 22315 while :; do 22316 case $as_dir in #( 22317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22318 *) as_qdir=$as_dir;; 22319 esac 22320 as_dirs="'$as_qdir' $as_dirs" 22321 as_dir=`$as_dirname -- "$as_dir" || 22322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22323 X"$as_dir" : 'X\(//\)[^/]' \| \ 22324 X"$as_dir" : 'X\(//\)$' \| \ 22325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22326 $as_echo X"$as_dir" | 22327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22328 s//\1/ 22329 q 22330 } 22331 /^X\(\/\/\)[^/].*/{ 22332 s//\1/ 22333 q 22334 } 22335 /^X\(\/\/\)$/{ 22336 s//\1/ 22337 q 22338 } 22339 /^X\(\/\).*/{ 22340 s//\1/ 22341 q 22342 } 22343 s/.*/./; q'` 22344 test -d "$as_dir" && break 22345 done 22346 test -z "$as_dirs" || eval "mkdir $as_dirs" 22347 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22348 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22349 { (exit 1); exit 1; }; }; } 22350 # echo "creating $dirpart/$file" 22351 echo '# dummy' > "$dirpart/$file" 22352 done 22353 done 22354 } 22355 ;; 22356 22357 esac 22358 done # for ac_tag 22359 22360 22361 { (exit 0); exit 0; } 22362 _ACEOF 22363 chmod +x $CONFIG_STATUS 22364 ac_clean_files=$ac_clean_files_save 22365 22366 test $ac_write_fail = 0 || 22367 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22368 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22369 { (exit 1); exit 1; }; } 22370 22371 22372 # configure is writing to config.log, and then calls config.status. 22373 # config.status does its own redirection, appending to config.log. 22374 # Unfortunately, on DOS this fails, as config.log is still kept open 22375 # by configure, so config.status won't be able to write to it; its 22376 # output is simply discarded. So we exec the FD to /dev/null, 22377 # effectively closing config.log, so it can be properly (re)opened and 22378 # appended to by config.status. When coming back to configure, we 22379 # need to make the FD available again. 22380 if test "$no_create" != yes; then 22381 ac_cs_success=: 22382 ac_config_status_args= 22383 test "$silent" = yes && 22384 ac_config_status_args="$ac_config_status_args --quiet" 22385 exec 5>/dev/null 22386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22387 exec 5>>config.log 22388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22389 # would make configure fail if this is the last instruction. 22390 $ac_cs_success || { (exit 1); exit 1; } 22391 fi 22392 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22393 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22394 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22395 fi 22396 22397