configure revision 5bcb6992
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libXres 1.0.4. 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 16DUALCASE=1; export DUALCASE # for MKS sh 17if 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 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (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' 52else 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' 72fi 73 74# The user is always right. 75if 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 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 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.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 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. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if 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; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_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 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$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 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 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 253done 254IFS=$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 261if 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 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 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 282if 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 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $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 357fi 358 359fi 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+"$@"} 369fi 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; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$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 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `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';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (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 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 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 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_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. 572as_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. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587echo=${ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606$* 607EOF 608 exit 0 609fi 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 615if test -z "$ECHO"; then 616if 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 627fi 628 629if 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 : 633else 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 713fi 714fi 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. 718ECHO=$echo 719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721fi 722 723 724 725 726tagnames=${tagnames+${tagnames},}CXX 727 728tagnames=${tagnames+${tagnames},}F77 729 730exec 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. 735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737# 738# Initializations. 739# 740ac_default_prefix=/usr/local 741ac_clean_files= 742ac_config_libobj_dir=. 743LIBOBJS= 744cross_compiling=no 745subdirs= 746MFLAGS= 747MAKEFLAGS= 748SHELL=${CONFIG_SHELL-/bin/sh} 749 750# Identity of this package. 751PACKAGE_NAME='libXres' 752PACKAGE_TARNAME='libXres' 753PACKAGE_VERSION='1.0.4' 754PACKAGE_STRING='libXres 1.0.4' 755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 756 757# Factoring default headers for most tests. 758ac_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 793ac_subst_vars='am__EXEEXT_FALSE 794am__EXEEXT_TRUE 795LTLIBOBJS 796LIBOBJS 797XTMALLOC_ZERO_CFLAGS 798XMALLOC_ZERO_CFLAGS 799MALLOC_ZERO_CFLAGS 800XRES_LIBS 801XRES_CFLAGS 802PKG_CONFIG 803ADMIN_MAN_DIR 804DRIVER_MAN_DIR 805MISC_MAN_DIR 806FILE_MAN_DIR 807LIB_MAN_DIR 808APP_MAN_DIR 809ADMIN_MAN_SUFFIX 810DRIVER_MAN_SUFFIX 811MISC_MAN_SUFFIX 812FILE_MAN_SUFFIX 813LIB_MAN_SUFFIX 814APP_MAN_SUFFIX 815distcleancheck_listfiles 816CHANGELOG_CMD 817AM_BACKSLASH 818AM_DEFAULT_VERBOSITY 819CWARNFLAGS 820LIBTOOL 821ac_ct_F77 822FFLAGS 823F77 824CXXCPP 825am__fastdepCXX_FALSE 826am__fastdepCXX_TRUE 827CXXDEPMODE 828ac_ct_CXX 829CXXFLAGS 830CXX 831CPP 832NMEDIT 833DSYMUTIL 834RANLIB 835AR 836ECHO 837LN_S 838EGREP 839GREP 840SED 841host_os 842host_vendor 843host_cpu 844host 845build_os 846build_vendor 847build_cpu 848build 849am__fastdepCC_FALSE 850am__fastdepCC_TRUE 851CCDEPMODE 852AMDEPBACKSLASH 853AMDEP_FALSE 854AMDEP_TRUE 855am__quote 856am__include 857DEPDIR 858OBJEXT 859EXEEXT 860ac_ct_CC 861CPPFLAGS 862LDFLAGS 863CFLAGS 864CC 865am__untar 866am__tar 867AMTAR 868am__leading_dot 869SET_MAKE 870AWK 871mkdir_p 872MKDIR_P 873INSTALL_STRIP_PROGRAM 874STRIP 875install_sh 876MAKEINFO 877AUTOHEADER 878AUTOMAKE 879AUTOCONF 880ACLOCAL 881VERSION 882PACKAGE 883CYGPATH_W 884am__isrc 885INSTALL_DATA 886INSTALL_SCRIPT 887INSTALL_PROGRAM 888target_alias 889host_alias 890build_alias 891LIBS 892ECHO_T 893ECHO_N 894ECHO_C 895DEFS 896mandir 897localedir 898libdir 899psdir 900pdfdir 901dvidir 902htmldir 903infodir 904docdir 905oldincludedir 906includedir 907localstatedir 908sharedstatedir 909sysconfdir 910datadir 911datarootdir 912libexecdir 913sbindir 914bindir 915program_transform_name 916prefix 917exec_prefix 918PACKAGE_BUGREPORT 919PACKAGE_STRING 920PACKAGE_VERSION 921PACKAGE_TARNAME 922PACKAGE_NAME 923PATH_SEPARATOR 924SHELL' 925ac_subst_files='' 926ac_user_opts=' 927enable_option_checking 928enable_dependency_tracking 929enable_shared 930enable_static 931enable_fast_install 932with_gnu_ld 933enable_libtool_lock 934with_pic 935with_tags 936enable_silent_rules 937enable_strict_compilation 938with_release_version 939enable_malloc0returnsnull 940' 941 ac_precious_vars='build_alias 942host_alias 943target_alias 944CC 945CFLAGS 946LDFLAGS 947LIBS 948CPPFLAGS 949CPP 950CXX 951CXXFLAGS 952CCC 953CXXCPP 954F77 955FFLAGS 956PKG_CONFIG 957XRES_CFLAGS 958XRES_LIBS' 959 960 961# Initialize some variables set by options. 962ac_init_help= 963ac_init_version=false 964ac_unrecognized_opts= 965ac_unrecognized_sep= 966# The variables have the same names as the options, with 967# dashes changed to underlines. 968cache_file=/dev/null 969exec_prefix=NONE 970no_create= 971no_recursion= 972prefix=NONE 973program_prefix=NONE 974program_suffix=NONE 975program_transform_name=s,x,x, 976silent= 977site= 978srcdir= 979verbose= 980x_includes=NONE 981x_libraries=NONE 982 983# Installation directory options. 984# These are left unexpanded so users can "make install exec_prefix=/foo" 985# and all the variables that are supposed to be based on exec_prefix 986# by default will actually change. 987# Use braces instead of parens because sh, perl, etc. also accept them. 988# (The list follows the same order as the GNU Coding Standards.) 989bindir='${exec_prefix}/bin' 990sbindir='${exec_prefix}/sbin' 991libexecdir='${exec_prefix}/libexec' 992datarootdir='${prefix}/share' 993datadir='${datarootdir}' 994sysconfdir='${prefix}/etc' 995sharedstatedir='${prefix}/com' 996localstatedir='${prefix}/var' 997includedir='${prefix}/include' 998oldincludedir='/usr/include' 999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1000infodir='${datarootdir}/info' 1001htmldir='${docdir}' 1002dvidir='${docdir}' 1003pdfdir='${docdir}' 1004psdir='${docdir}' 1005libdir='${exec_prefix}/lib' 1006localedir='${datarootdir}/locale' 1007mandir='${datarootdir}/man' 1008 1009ac_prev= 1010ac_dashdash= 1011for ac_option 1012do 1013 # If the previous option needs an argument, assign it. 1014 if test -n "$ac_prev"; then 1015 eval $ac_prev=\$ac_option 1016 ac_prev= 1017 continue 1018 fi 1019 1020 case $ac_option in 1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1022 *) ac_optarg=yes ;; 1023 esac 1024 1025 # Accept the important Cygnus configure options, so we can diagnose typos. 1026 1027 case $ac_dashdash$ac_option in 1028 --) 1029 ac_dashdash=yes ;; 1030 1031 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1032 ac_prev=bindir ;; 1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1034 bindir=$ac_optarg ;; 1035 1036 -build | --build | --buil | --bui | --bu) 1037 ac_prev=build_alias ;; 1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1039 build_alias=$ac_optarg ;; 1040 1041 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1043 ac_prev=cache_file ;; 1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1046 cache_file=$ac_optarg ;; 1047 1048 --config-cache | -C) 1049 cache_file=config.cache ;; 1050 1051 -datadir | --datadir | --datadi | --datad) 1052 ac_prev=datadir ;; 1053 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1054 datadir=$ac_optarg ;; 1055 1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1057 | --dataroo | --dataro | --datar) 1058 ac_prev=datarootdir ;; 1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1061 datarootdir=$ac_optarg ;; 1062 1063 -disable-* | --disable-*) 1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1065 # Reject names that are not valid shell variable names. 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1068 { (exit 1); exit 1; }; } 1069 ac_useropt_orig=$ac_useropt 1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1071 case $ac_user_opts in 1072 *" 1073"enable_$ac_useropt" 1074"*) ;; 1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1076 ac_unrecognized_sep=', ';; 1077 esac 1078 eval enable_$ac_useropt=no ;; 1079 1080 -docdir | --docdir | --docdi | --doc | --do) 1081 ac_prev=docdir ;; 1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1083 docdir=$ac_optarg ;; 1084 1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1086 ac_prev=dvidir ;; 1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1088 dvidir=$ac_optarg ;; 1089 1090 -enable-* | --enable-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1095 { (exit 1); exit 1; }; } 1096 ac_useropt_orig=$ac_useropt 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1098 case $ac_user_opts in 1099 *" 1100"enable_$ac_useropt" 1101"*) ;; 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1103 ac_unrecognized_sep=', ';; 1104 esac 1105 eval enable_$ac_useropt=\$ac_optarg ;; 1106 1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1109 | --exec | --exe | --ex) 1110 ac_prev=exec_prefix ;; 1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1113 | --exec=* | --exe=* | --ex=*) 1114 exec_prefix=$ac_optarg ;; 1115 1116 -gas | --gas | --ga | --g) 1117 # Obsolete; use --with-gas. 1118 with_gas=yes ;; 1119 1120 -help | --help | --hel | --he | -h) 1121 ac_init_help=long ;; 1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1123 ac_init_help=recursive ;; 1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1125 ac_init_help=short ;; 1126 1127 -host | --host | --hos | --ho) 1128 ac_prev=host_alias ;; 1129 -host=* | --host=* | --hos=* | --ho=*) 1130 host_alias=$ac_optarg ;; 1131 1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1133 ac_prev=htmldir ;; 1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1135 | --ht=*) 1136 htmldir=$ac_optarg ;; 1137 1138 -includedir | --includedir | --includedi | --included | --include \ 1139 | --includ | --inclu | --incl | --inc) 1140 ac_prev=includedir ;; 1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1142 | --includ=* | --inclu=* | --incl=* | --inc=*) 1143 includedir=$ac_optarg ;; 1144 1145 -infodir | --infodir | --infodi | --infod | --info | --inf) 1146 ac_prev=infodir ;; 1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1148 infodir=$ac_optarg ;; 1149 1150 -libdir | --libdir | --libdi | --libd) 1151 ac_prev=libdir ;; 1152 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1153 libdir=$ac_optarg ;; 1154 1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1156 | --libexe | --libex | --libe) 1157 ac_prev=libexecdir ;; 1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1159 | --libexe=* | --libex=* | --libe=*) 1160 libexecdir=$ac_optarg ;; 1161 1162 -localedir | --localedir | --localedi | --localed | --locale) 1163 ac_prev=localedir ;; 1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1165 localedir=$ac_optarg ;; 1166 1167 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1168 | --localstate | --localstat | --localsta | --localst | --locals) 1169 ac_prev=localstatedir ;; 1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1172 localstatedir=$ac_optarg ;; 1173 1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1175 ac_prev=mandir ;; 1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1177 mandir=$ac_optarg ;; 1178 1179 -nfp | --nfp | --nf) 1180 # Obsolete; use --without-fp. 1181 with_fp=no ;; 1182 1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1184 | --no-cr | --no-c | -n) 1185 no_create=yes ;; 1186 1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1189 no_recursion=yes ;; 1190 1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1193 | --oldin | --oldi | --old | --ol | --o) 1194 ac_prev=oldincludedir ;; 1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1198 oldincludedir=$ac_optarg ;; 1199 1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1201 ac_prev=prefix ;; 1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1203 prefix=$ac_optarg ;; 1204 1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1206 | --program-pre | --program-pr | --program-p) 1207 ac_prev=program_prefix ;; 1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1210 program_prefix=$ac_optarg ;; 1211 1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1213 | --program-suf | --program-su | --program-s) 1214 ac_prev=program_suffix ;; 1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1217 program_suffix=$ac_optarg ;; 1218 1219 -program-transform-name | --program-transform-name \ 1220 | --program-transform-nam | --program-transform-na \ 1221 | --program-transform-n | --program-transform- \ 1222 | --program-transform | --program-transfor \ 1223 | --program-transfo | --program-transf \ 1224 | --program-trans | --program-tran \ 1225 | --progr-tra | --program-tr | --program-t) 1226 ac_prev=program_transform_name ;; 1227 -program-transform-name=* | --program-transform-name=* \ 1228 | --program-transform-nam=* | --program-transform-na=* \ 1229 | --program-transform-n=* | --program-transform-=* \ 1230 | --program-transform=* | --program-transfor=* \ 1231 | --program-transfo=* | --program-transf=* \ 1232 | --program-trans=* | --program-tran=* \ 1233 | --progr-tra=* | --program-tr=* | --program-t=*) 1234 program_transform_name=$ac_optarg ;; 1235 1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1237 ac_prev=pdfdir ;; 1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1239 pdfdir=$ac_optarg ;; 1240 1241 -psdir | --psdir | --psdi | --psd | --ps) 1242 ac_prev=psdir ;; 1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1244 psdir=$ac_optarg ;; 1245 1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1247 | -silent | --silent | --silen | --sile | --sil) 1248 silent=yes ;; 1249 1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1251 ac_prev=sbindir ;; 1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1253 | --sbi=* | --sb=*) 1254 sbindir=$ac_optarg ;; 1255 1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1258 | --sharedst | --shareds | --shared | --share | --shar \ 1259 | --sha | --sh) 1260 ac_prev=sharedstatedir ;; 1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1264 | --sha=* | --sh=*) 1265 sharedstatedir=$ac_optarg ;; 1266 1267 -site | --site | --sit) 1268 ac_prev=site ;; 1269 -site=* | --site=* | --sit=*) 1270 site=$ac_optarg ;; 1271 1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1273 ac_prev=srcdir ;; 1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1275 srcdir=$ac_optarg ;; 1276 1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1278 | --syscon | --sysco | --sysc | --sys | --sy) 1279 ac_prev=sysconfdir ;; 1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1282 sysconfdir=$ac_optarg ;; 1283 1284 -target | --target | --targe | --targ | --tar | --ta | --t) 1285 ac_prev=target_alias ;; 1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1287 target_alias=$ac_optarg ;; 1288 1289 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1290 verbose=yes ;; 1291 1292 -version | --version | --versio | --versi | --vers | -V) 1293 ac_init_version=: ;; 1294 1295 -with-* | --with-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1300 { (exit 1); exit 1; }; } 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"with_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval with_$ac_useropt=\$ac_optarg ;; 1311 1312 -without-* | --without-*) 1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1314 # Reject names that are not valid shell variable names. 1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1316 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1317 { (exit 1); exit 1; }; } 1318 ac_useropt_orig=$ac_useropt 1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1320 case $ac_user_opts in 1321 *" 1322"with_$ac_useropt" 1323"*) ;; 1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1325 ac_unrecognized_sep=', ';; 1326 esac 1327 eval with_$ac_useropt=no ;; 1328 1329 --x) 1330 # Obsolete; use --with-x. 1331 with_x=yes ;; 1332 1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1334 | --x-incl | --x-inc | --x-in | --x-i) 1335 ac_prev=x_includes ;; 1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1338 x_includes=$ac_optarg ;; 1339 1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1342 ac_prev=x_libraries ;; 1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1345 x_libraries=$ac_optarg ;; 1346 1347 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1348Try \`$0 --help' for more information." >&2 1349 { (exit 1); exit 1; }; } 1350 ;; 1351 1352 *=*) 1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1354 # Reject names that are not valid shell variable names. 1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1356 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1357 { (exit 1); exit 1; }; } 1358 eval $ac_envvar=\$ac_optarg 1359 export $ac_envvar ;; 1360 1361 *) 1362 # FIXME: should be removed in autoconf 3.0. 1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1367 ;; 1368 1369 esac 1370done 1371 1372if test -n "$ac_prev"; then 1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1374 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1375 { (exit 1); exit 1; }; } 1376fi 1377 1378if test -n "$ac_unrecognized_opts"; then 1379 case $enable_option_checking in 1380 no) ;; 1381 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1382 { (exit 1); exit 1; }; } ;; 1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1384 esac 1385fi 1386 1387# Check all directory arguments for consistency. 1388for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1389 datadir sysconfdir sharedstatedir localstatedir includedir \ 1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1391 libdir localedir mandir 1392do 1393 eval ac_val=\$$ac_var 1394 # Remove trailing slashes. 1395 case $ac_val in 1396 */ ) 1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1398 eval $ac_var=\$ac_val;; 1399 esac 1400 # Be sure to have absolute directory names. 1401 case $ac_val in 1402 [\\/$]* | ?:[\\/]* ) continue;; 1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1404 esac 1405 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1406 { (exit 1); exit 1; }; } 1407done 1408 1409# There might be people who depend on the old broken behavior: `$host' 1410# used to hold the argument of --host etc. 1411# FIXME: To remove some day. 1412build=$build_alias 1413host=$host_alias 1414target=$target_alias 1415 1416# FIXME: To remove some day. 1417if test "x$host_alias" != x; then 1418 if test "x$build_alias" = x; then 1419 cross_compiling=maybe 1420 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1421 If a cross compiler is detected then cross compile mode will be used." >&2 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1437 { (exit 1); exit 1; }; } 1438test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1439 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1440 { (exit 1); exit 1; }; } 1441 1442 1443# Find the source files, if location was not specified. 1444if test -z "$srcdir"; then 1445 ac_srcdir_defaulted=yes 1446 # Try the directory containing this script, then the parent directory. 1447 ac_confdir=`$as_dirname -- "$as_myself" || 1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1449 X"$as_myself" : 'X\(//\)[^/]' \| \ 1450 X"$as_myself" : 'X\(//\)$' \| \ 1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1452$as_echo X"$as_myself" | 1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)[^/].*/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\/\)$/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\).*/{ 1466 s//\1/ 1467 q 1468 } 1469 s/.*/./; q'` 1470 srcdir=$ac_confdir 1471 if test ! -r "$srcdir/$ac_unique_file"; then 1472 srcdir=.. 1473 fi 1474else 1475 ac_srcdir_defaulted=no 1476fi 1477if test ! -r "$srcdir/$ac_unique_file"; then 1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1479 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1480 { (exit 1); exit 1; }; } 1481fi 1482ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1483ac_abs_confdir=`( 1484 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1485 { (exit 1); exit 1; }; } 1486 pwd)` 1487# When building in place, set srcdir=. 1488if test "$ac_abs_confdir" = "$ac_pwd"; then 1489 srcdir=. 1490fi 1491# Remove unnecessary trailing slashes from srcdir. 1492# Double slashes in file names in object file debugging info 1493# mess up M-x gdb in Emacs. 1494case $srcdir in 1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1496esac 1497for ac_var in $ac_precious_vars; do 1498 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_env_${ac_var}_value=\$${ac_var} 1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1502done 1503 1504# 1505# Report the --help message. 1506# 1507if test "$ac_init_help" = "long"; then 1508 # Omit some internal or obsolete options to make the list less imposing. 1509 # This message is too long to be a string in the A/UX 3.1 sh. 1510 cat <<_ACEOF 1511\`configure' configures libXres 1.0.4 to adapt to many kinds of systems. 1512 1513Usage: $0 [OPTION]... [VAR=VALUE]... 1514 1515To assign environment variables (e.g., CC, CFLAGS...), specify them as 1516VAR=VALUE. See below for descriptions of some of the useful variables. 1517 1518Defaults for the options are specified in brackets. 1519 1520Configuration: 1521 -h, --help display this help and exit 1522 --help=short display options specific to this package 1523 --help=recursive display the short help of all the included packages 1524 -V, --version display version information and exit 1525 -q, --quiet, --silent do not print \`checking...' messages 1526 --cache-file=FILE cache test results in FILE [disabled] 1527 -C, --config-cache alias for \`--cache-file=config.cache' 1528 -n, --no-create do not create output files 1529 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1530 1531Installation directories: 1532 --prefix=PREFIX install architecture-independent files in PREFIX 1533 [$ac_default_prefix] 1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1535 [PREFIX] 1536 1537By default, \`make install' will install all the files in 1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1539an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1540for instance \`--prefix=\$HOME'. 1541 1542For better control, use the options below. 1543 1544Fine tuning of the installation directories: 1545 --bindir=DIR user executables [EPREFIX/bin] 1546 --sbindir=DIR system admin executables [EPREFIX/sbin] 1547 --libexecdir=DIR program executables [EPREFIX/libexec] 1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1551 --libdir=DIR object code libraries [EPREFIX/lib] 1552 --includedir=DIR C header files [PREFIX/include] 1553 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1556 --infodir=DIR info documentation [DATAROOTDIR/info] 1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1558 --mandir=DIR man documentation [DATAROOTDIR/man] 1559 --docdir=DIR documentation root [DATAROOTDIR/doc/libXres] 1560 --htmldir=DIR html documentation [DOCDIR] 1561 --dvidir=DIR dvi documentation [DOCDIR] 1562 --pdfdir=DIR pdf documentation [DOCDIR] 1563 --psdir=DIR ps documentation [DOCDIR] 1564_ACEOF 1565 1566 cat <<\_ACEOF 1567 1568Program names: 1569 --program-prefix=PREFIX prepend PREFIX to installed program names 1570 --program-suffix=SUFFIX append SUFFIX to installed program names 1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1572 1573System types: 1574 --build=BUILD configure for building on BUILD [guessed] 1575 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1576_ACEOF 1577fi 1578 1579if test -n "$ac_init_help"; then 1580 case $ac_init_help in 1581 short | recursive ) echo "Configuration of libXres 1.0.4:";; 1582 esac 1583 cat <<\_ACEOF 1584 1585Optional Features: 1586 --disable-option-checking ignore unrecognized --enable/--with options 1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1589 --disable-dependency-tracking speeds up one-time build 1590 --enable-dependency-tracking do not reject slow dependency extractors 1591 --enable-shared[=PKGS] build shared libraries [default=yes] 1592 --enable-static[=PKGS] build static libraries [default=yes] 1593 --enable-fast-install[=PKGS] 1594 optimize for fast installation [default=yes] 1595 --disable-libtool-lock avoid locking (might break parallel builds) 1596 --enable-silent-rules less verbose build output (undo: `make V=1') 1597 --disable-silent-rules verbose build output (undo: `make V=0') 1598 --enable-strict-compilation 1599 Enable all warnings from compiler and make them 1600 errors (default: disabled) 1601 --enable-malloc0returnsnull 1602 malloc(0) returns NULL (default: auto) 1603 1604Optional Packages: 1605 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1606 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1608 --with-pic try to use only PIC/non-PIC objects [default=use 1609 both] 1610 --with-tags[=TAGS] include additional configurations [automatic] 1611 --with-release-version=STRING 1612 Use release version string in package name 1613 1614Some influential environment variables: 1615 CC C compiler command 1616 CFLAGS C compiler flags 1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1618 nonstandard directory <lib dir> 1619 LIBS libraries to pass to the linker, e.g. -l<library> 1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1621 you have headers in a nonstandard directory <include dir> 1622 CPP C preprocessor 1623 CXX C++ compiler command 1624 CXXFLAGS C++ compiler flags 1625 CXXCPP C++ preprocessor 1626 F77 Fortran 77 compiler command 1627 FFLAGS Fortran 77 compiler flags 1628 PKG_CONFIG path to pkg-config utility 1629 XRES_CFLAGS C compiler flags for XRES, overriding pkg-config 1630 XRES_LIBS linker flags for XRES, overriding pkg-config 1631 1632Use these variables to override the choices made by `configure' or to help 1633it to find libraries and programs with nonstandard names/locations. 1634 1635Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1636_ACEOF 1637ac_status=$? 1638fi 1639 1640if test "$ac_init_help" = "recursive"; then 1641 # If there are subdirs, report their specific --help. 1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1643 test -d "$ac_dir" || 1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1645 continue 1646 ac_builddir=. 1647 1648case "$ac_dir" in 1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1650*) 1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1652 # A ".." for each directory in $ac_dir_suffix. 1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1654 case $ac_top_builddir_sub in 1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1657 esac ;; 1658esac 1659ac_abs_top_builddir=$ac_pwd 1660ac_abs_builddir=$ac_pwd$ac_dir_suffix 1661# for backward compatibility: 1662ac_top_builddir=$ac_top_build_prefix 1663 1664case $srcdir in 1665 .) # We are building in place. 1666 ac_srcdir=. 1667 ac_top_srcdir=$ac_top_builddir_sub 1668 ac_abs_top_srcdir=$ac_pwd ;; 1669 [\\/]* | ?:[\\/]* ) # Absolute name. 1670 ac_srcdir=$srcdir$ac_dir_suffix; 1671 ac_top_srcdir=$srcdir 1672 ac_abs_top_srcdir=$srcdir ;; 1673 *) # Relative name. 1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1675 ac_top_srcdir=$ac_top_build_prefix$srcdir 1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1677esac 1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1679 1680 cd "$ac_dir" || { ac_status=$?; continue; } 1681 # Check for guested configure. 1682 if test -f "$ac_srcdir/configure.gnu"; then 1683 echo && 1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1685 elif test -f "$ac_srcdir/configure"; then 1686 echo && 1687 $SHELL "$ac_srcdir/configure" --help=recursive 1688 else 1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1690 fi || ac_status=$? 1691 cd "$ac_pwd" || { ac_status=$?; break; } 1692 done 1693fi 1694 1695test -n "$ac_init_help" && exit $ac_status 1696if $ac_init_version; then 1697 cat <<\_ACEOF 1698libXres configure 1.0.4 1699generated by GNU Autoconf 2.63 1700 1701Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17022002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1703This configure script is free software; the Free Software Foundation 1704gives unlimited permission to copy, distribute and modify it. 1705_ACEOF 1706 exit 1707fi 1708cat >config.log <<_ACEOF 1709This file contains any messages produced by compilers while 1710running configure, to aid debugging if configure makes a mistake. 1711 1712It was created by libXres $as_me 1.0.4, which was 1713generated by GNU Autoconf 2.63. Invocation command line was 1714 1715 $ $0 $@ 1716 1717_ACEOF 1718exec 5>>config.log 1719{ 1720cat <<_ASUNAME 1721## --------- ## 1722## Platform. ## 1723## --------- ## 1724 1725hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1726uname -m = `(uname -m) 2>/dev/null || echo unknown` 1727uname -r = `(uname -r) 2>/dev/null || echo unknown` 1728uname -s = `(uname -s) 2>/dev/null || echo unknown` 1729uname -v = `(uname -v) 2>/dev/null || echo unknown` 1730 1731/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1732/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1733 1734/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1735/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1736/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1737/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1738/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1739/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1740/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1741 1742_ASUNAME 1743 1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1745for as_dir in $PATH 1746do 1747 IFS=$as_save_IFS 1748 test -z "$as_dir" && as_dir=. 1749 $as_echo "PATH: $as_dir" 1750done 1751IFS=$as_save_IFS 1752 1753} >&5 1754 1755cat >&5 <<_ACEOF 1756 1757 1758## ----------- ## 1759## Core tests. ## 1760## ----------- ## 1761 1762_ACEOF 1763 1764 1765# Keep a trace of the command line. 1766# Strip out --no-create and --no-recursion so they do not pile up. 1767# Strip out --silent because we don't want to record it for future runs. 1768# Also quote any args containing shell meta-characters. 1769# Make two passes to allow for proper duplicate-argument suppression. 1770ac_configure_args= 1771ac_configure_args0= 1772ac_configure_args1= 1773ac_must_keep_next=false 1774for ac_pass in 1 2 1775do 1776 for ac_arg 1777 do 1778 case $ac_arg in 1779 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1781 | -silent | --silent | --silen | --sile | --sil) 1782 continue ;; 1783 *\'*) 1784 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1785 esac 1786 case $ac_pass in 1787 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1788 2) 1789 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1790 if test $ac_must_keep_next = true; then 1791 ac_must_keep_next=false # Got value, back to normal. 1792 else 1793 case $ac_arg in 1794 *=* | --config-cache | -C | -disable-* | --disable-* \ 1795 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1796 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1797 | -with-* | --with-* | -without-* | --without-* | --x) 1798 case "$ac_configure_args0 " in 1799 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1800 esac 1801 ;; 1802 -* ) ac_must_keep_next=true ;; 1803 esac 1804 fi 1805 ac_configure_args="$ac_configure_args '$ac_arg'" 1806 ;; 1807 esac 1808 done 1809done 1810$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1811$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1812 1813# When interrupted or exit'd, cleanup temporary files, and complete 1814# config.log. We remove comments because anyway the quotes in there 1815# would cause problems or look ugly. 1816# WARNING: Use '\'' to represent an apostrophe within the trap. 1817# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1818trap 'exit_status=$? 1819 # Save into config.log some information that might help in debugging. 1820 { 1821 echo 1822 1823 cat <<\_ASBOX 1824## ---------------- ## 1825## Cache variables. ## 1826## ---------------- ## 1827_ASBOX 1828 echo 1829 # The following way of writing the cache mishandles newlines in values, 1830( 1831 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1832 eval ac_val=\$$ac_var 1833 case $ac_val in #( 1834 *${as_nl}*) 1835 case $ac_var in #( 1836 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1837$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1838 esac 1839 case $ac_var in #( 1840 _ | IFS | as_nl) ;; #( 1841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1842 *) $as_unset $ac_var ;; 1843 esac ;; 1844 esac 1845 done 1846 (set) 2>&1 | 1847 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1848 *${as_nl}ac_space=\ *) 1849 sed -n \ 1850 "s/'\''/'\''\\\\'\'''\''/g; 1851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1852 ;; #( 1853 *) 1854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1855 ;; 1856 esac | 1857 sort 1858) 1859 echo 1860 1861 cat <<\_ASBOX 1862## ----------------- ## 1863## Output variables. ## 1864## ----------------- ## 1865_ASBOX 1866 echo 1867 for ac_var in $ac_subst_vars 1868 do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in 1871 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1872 esac 1873 $as_echo "$ac_var='\''$ac_val'\''" 1874 done | sort 1875 echo 1876 1877 if test -n "$ac_subst_files"; then 1878 cat <<\_ASBOX 1879## ------------------- ## 1880## File substitutions. ## 1881## ------------------- ## 1882_ASBOX 1883 echo 1884 for ac_var in $ac_subst_files 1885 do 1886 eval ac_val=\$$ac_var 1887 case $ac_val in 1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1889 esac 1890 $as_echo "$ac_var='\''$ac_val'\''" 1891 done | sort 1892 echo 1893 fi 1894 1895 if test -s confdefs.h; then 1896 cat <<\_ASBOX 1897## ----------- ## 1898## confdefs.h. ## 1899## ----------- ## 1900_ASBOX 1901 echo 1902 cat confdefs.h 1903 echo 1904 fi 1905 test "$ac_signal" != 0 && 1906 $as_echo "$as_me: caught signal $ac_signal" 1907 $as_echo "$as_me: exit $exit_status" 1908 } >&5 1909 rm -f core *.core core.conftest.* && 1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1911 exit $exit_status 1912' 0 1913for ac_signal in 1 2 13 15; do 1914 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1915done 1916ac_signal=0 1917 1918# confdefs.h avoids OS command line length limits that DEFS can exceed. 1919rm -f -r conftest* confdefs.h 1920 1921# Predefined preprocessor variables. 1922 1923cat >>confdefs.h <<_ACEOF 1924#define PACKAGE_NAME "$PACKAGE_NAME" 1925_ACEOF 1926 1927 1928cat >>confdefs.h <<_ACEOF 1929#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1930_ACEOF 1931 1932 1933cat >>confdefs.h <<_ACEOF 1934#define PACKAGE_VERSION "$PACKAGE_VERSION" 1935_ACEOF 1936 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_STRING "$PACKAGE_STRING" 1940_ACEOF 1941 1942 1943cat >>confdefs.h <<_ACEOF 1944#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1945_ACEOF 1946 1947 1948# Let the site file select an alternate cache file if it wants to. 1949# Prefer an explicitly selected file to automatically selected ones. 1950ac_site_file1=NONE 1951ac_site_file2=NONE 1952if test -n "$CONFIG_SITE"; then 1953 ac_site_file1=$CONFIG_SITE 1954elif test "x$prefix" != xNONE; then 1955 ac_site_file1=$prefix/share/config.site 1956 ac_site_file2=$prefix/etc/config.site 1957else 1958 ac_site_file1=$ac_default_prefix/share/config.site 1959 ac_site_file2=$ac_default_prefix/etc/config.site 1960fi 1961for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1962do 1963 test "x$ac_site_file" = xNONE && continue 1964 if test -r "$ac_site_file"; then 1965 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1966$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1967 sed 's/^/| /' "$ac_site_file" >&5 1968 . "$ac_site_file" 1969 fi 1970done 1971 1972if test -r "$cache_file"; then 1973 # Some versions of bash will fail to source /dev/null (special 1974 # files actually), so we avoid doing that. 1975 if test -f "$cache_file"; then 1976 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1977$as_echo "$as_me: loading cache $cache_file" >&6;} 1978 case $cache_file in 1979 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1980 *) . "./$cache_file";; 1981 esac 1982 fi 1983else 1984 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1985$as_echo "$as_me: creating cache $cache_file" >&6;} 1986 >$cache_file 1987fi 1988 1989# Check that the precious variables saved in the cache have kept the same 1990# value. 1991ac_cache_corrupted=false 1992for ac_var in $ac_precious_vars; do 1993 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1994 eval ac_new_set=\$ac_env_${ac_var}_set 1995 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1996 eval ac_new_val=\$ac_env_${ac_var}_value 1997 case $ac_old_set,$ac_new_set in 1998 set,) 1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2000$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2001 ac_cache_corrupted=: ;; 2002 ,set) 2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2004$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2005 ac_cache_corrupted=: ;; 2006 ,);; 2007 *) 2008 if test "x$ac_old_val" != "x$ac_new_val"; then 2009 # differences in whitespace do not lead to failure. 2010 ac_old_val_w=`echo x $ac_old_val` 2011 ac_new_val_w=`echo x $ac_new_val` 2012 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2013 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2014$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2015 ac_cache_corrupted=: 2016 else 2017 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2018$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2019 eval $ac_var=\$ac_old_val 2020 fi 2021 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2022$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2023 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2024$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2025 fi;; 2026 esac 2027 # Pass precious variables to config.status. 2028 if test "$ac_new_set" = set; then 2029 case $ac_new_val in 2030 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2031 *) ac_arg=$ac_var=$ac_new_val ;; 2032 esac 2033 case " $ac_configure_args " in 2034 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2035 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2036 esac 2037 fi 2038done 2039if $ac_cache_corrupted; then 2040 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2042 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2043$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2044 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2045$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2046 { (exit 1); exit 1; }; } 2047fi 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073ac_ext=c 2074ac_cpp='$CPP $CPPFLAGS' 2075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2077ac_compiler_gnu=$ac_cv_c_compiler_gnu 2078 2079 2080ac_aux_dir= 2081for ac_dir in . "$srcdir"/.; do 2082 if test -f "$ac_dir/install-sh"; then 2083 ac_aux_dir=$ac_dir 2084 ac_install_sh="$ac_aux_dir/install-sh -c" 2085 break 2086 elif test -f "$ac_dir/install.sh"; then 2087 ac_aux_dir=$ac_dir 2088 ac_install_sh="$ac_aux_dir/install.sh -c" 2089 break 2090 elif test -f "$ac_dir/shtool"; then 2091 ac_aux_dir=$ac_dir 2092 ac_install_sh="$ac_aux_dir/shtool install -c" 2093 break 2094 fi 2095done 2096if test -z "$ac_aux_dir"; then 2097 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2098$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2099 { (exit 1); exit 1; }; } 2100fi 2101 2102# These three variables are undocumented and unsupported, 2103# and are intended to be withdrawn in a future Autoconf release. 2104# They can cause serious problems if a builder's source tree is in a directory 2105# whose full name contains unusual characters. 2106ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2107ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2108ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2109 2110 2111am__api_version='1.11' 2112 2113# Find a good install program. We prefer a C program (faster), 2114# so one script is as good as another. But avoid the broken or 2115# incompatible versions: 2116# SysV /etc/install, /usr/sbin/install 2117# SunOS /usr/etc/install 2118# IRIX /sbin/install 2119# AIX /bin/install 2120# AmigaOS /C/install, which installs bootblocks on floppy discs 2121# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2122# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2123# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2124# OS/2's system install, which has a completely different semantic 2125# ./install, which can be erroneously created by make from ./install.sh. 2126# Reject install programs that cannot install multiple files. 2127{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2128$as_echo_n "checking for a BSD-compatible install... " >&6; } 2129if test -z "$INSTALL"; then 2130if test "${ac_cv_path_install+set}" = set; then 2131 $as_echo_n "(cached) " >&6 2132else 2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2134for as_dir in $PATH 2135do 2136 IFS=$as_save_IFS 2137 test -z "$as_dir" && as_dir=. 2138 # Account for people who put trailing slashes in PATH elements. 2139case $as_dir/ in 2140 ./ | .// | /cC/* | \ 2141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2142 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2143 /usr/ucb/* ) ;; 2144 *) 2145 # OSF1 and SCO ODT 3.0 have their own names for install. 2146 # Don't use installbsd from OSF since it installs stuff as root 2147 # by default. 2148 for ac_prog in ginstall scoinst install; do 2149 for ac_exec_ext in '' $ac_executable_extensions; do 2150 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2151 if test $ac_prog = install && 2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2153 # AIX install. It has an incompatible calling convention. 2154 : 2155 elif test $ac_prog = install && 2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2157 # program-specific install script used by HP pwplus--don't use. 2158 : 2159 else 2160 rm -rf conftest.one conftest.two conftest.dir 2161 echo one > conftest.one 2162 echo two > conftest.two 2163 mkdir conftest.dir 2164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2165 test -s conftest.one && test -s conftest.two && 2166 test -s conftest.dir/conftest.one && 2167 test -s conftest.dir/conftest.two 2168 then 2169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2170 break 3 2171 fi 2172 fi 2173 fi 2174 done 2175 done 2176 ;; 2177esac 2178 2179done 2180IFS=$as_save_IFS 2181 2182rm -rf conftest.one conftest.two conftest.dir 2183 2184fi 2185 if test "${ac_cv_path_install+set}" = set; then 2186 INSTALL=$ac_cv_path_install 2187 else 2188 # As a last resort, use the slow shell script. Don't cache a 2189 # value for INSTALL within a source directory, because that will 2190 # break other packages using the cache if that directory is 2191 # removed, or if the value is a relative name. 2192 INSTALL=$ac_install_sh 2193 fi 2194fi 2195{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2196$as_echo "$INSTALL" >&6; } 2197 2198# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2199# It thinks the first close brace ends the variable substitution. 2200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2201 2202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2203 2204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2205 2206{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2207$as_echo_n "checking whether build environment is sane... " >&6; } 2208# Just in case 2209sleep 1 2210echo timestamp > conftest.file 2211# Reject unsafe characters in $srcdir or the absolute working directory 2212# name. Accept space and tab only in the latter. 2213am_lf=' 2214' 2215case `pwd` in 2216 *[\\\"\#\$\&\'\`$am_lf]*) 2217 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2218$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2219 { (exit 1); exit 1; }; };; 2220esac 2221case $srcdir in 2222 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2223 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2224$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2225 { (exit 1); exit 1; }; };; 2226esac 2227 2228# Do `set' in a subshell so we don't clobber the current shell's 2229# arguments. Must try -L first in case configure is actually a 2230# symlink; some systems play weird games with the mod time of symlinks 2231# (eg FreeBSD returns the mod time of the symlink's containing 2232# directory). 2233if ( 2234 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2235 if test "$*" = "X"; then 2236 # -L didn't work. 2237 set X `ls -t "$srcdir/configure" conftest.file` 2238 fi 2239 rm -f conftest.file 2240 if test "$*" != "X $srcdir/configure conftest.file" \ 2241 && test "$*" != "X conftest.file $srcdir/configure"; then 2242 2243 # If neither matched, then we have a broken ls. This can happen 2244 # if, for instance, CONFIG_SHELL is bash and it inherits a 2245 # broken ls alias from the environment. This has actually 2246 # happened. Such a system could not be considered "sane". 2247 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2248alias in your environment" >&5 2249$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2250alias in your environment" >&2;} 2251 { (exit 1); exit 1; }; } 2252 fi 2253 2254 test "$2" = conftest.file 2255 ) 2256then 2257 # Ok. 2258 : 2259else 2260 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2261Check your system clock" >&5 2262$as_echo "$as_me: error: newly created file is older than distributed files! 2263Check your system clock" >&2;} 2264 { (exit 1); exit 1; }; } 2265fi 2266{ $as_echo "$as_me:$LINENO: result: yes" >&5 2267$as_echo "yes" >&6; } 2268test "$program_prefix" != NONE && 2269 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2270# Use a double $ so make ignores it. 2271test "$program_suffix" != NONE && 2272 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2273# Double any \ or $. 2274# By default was `s,x,x', remove it if useless. 2275ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2276program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2277 2278# expand $ac_aux_dir to an absolute path 2279am_aux_dir=`cd $ac_aux_dir && pwd` 2280 2281if test x"${MISSING+set}" != xset; then 2282 case $am_aux_dir in 2283 *\ * | *\ *) 2284 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2285 *) 2286 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2287 esac 2288fi 2289# Use eval to expand $SHELL 2290if eval "$MISSING --run true"; then 2291 am_missing_run="$MISSING --run " 2292else 2293 am_missing_run= 2294 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2295$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2296fi 2297 2298if test x"${install_sh}" != xset; then 2299 case $am_aux_dir in 2300 *\ * | *\ *) 2301 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2302 *) 2303 install_sh="\${SHELL} $am_aux_dir/install-sh" 2304 esac 2305fi 2306 2307# Installed binaries are usually stripped using `strip' when the user 2308# run `make install-strip'. However `strip' might not be the right 2309# tool to use in cross-compilation environments, therefore Automake 2310# will honor the `STRIP' environment variable to overrule this program. 2311if test "$cross_compiling" != no; then 2312 if test -n "$ac_tool_prefix"; then 2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2314set dummy ${ac_tool_prefix}strip; ac_word=$2 2315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2316$as_echo_n "checking for $ac_word... " >&6; } 2317if test "${ac_cv_prog_STRIP+set}" = set; then 2318 $as_echo_n "(cached) " >&6 2319else 2320 if test -n "$STRIP"; then 2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2322else 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 for ac_exec_ext in '' $ac_executable_extensions; do 2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2332 break 2 2333 fi 2334done 2335done 2336IFS=$as_save_IFS 2337 2338fi 2339fi 2340STRIP=$ac_cv_prog_STRIP 2341if test -n "$STRIP"; then 2342 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2343$as_echo "$STRIP" >&6; } 2344else 2345 { $as_echo "$as_me:$LINENO: result: no" >&5 2346$as_echo "no" >&6; } 2347fi 2348 2349 2350fi 2351if test -z "$ac_cv_prog_STRIP"; then 2352 ac_ct_STRIP=$STRIP 2353 # Extract the first word of "strip", so it can be a program name with args. 2354set dummy strip; ac_word=$2 2355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2356$as_echo_n "checking for $ac_word... " >&6; } 2357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2358 $as_echo_n "(cached) " >&6 2359else 2360 if test -n "$ac_ct_STRIP"; then 2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2362else 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2370 ac_cv_prog_ac_ct_STRIP="strip" 2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2372 break 2 2373 fi 2374done 2375done 2376IFS=$as_save_IFS 2377 2378fi 2379fi 2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2381if test -n "$ac_ct_STRIP"; then 2382 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2383$as_echo "$ac_ct_STRIP" >&6; } 2384else 2385 { $as_echo "$as_me:$LINENO: result: no" >&5 2386$as_echo "no" >&6; } 2387fi 2388 2389 if test "x$ac_ct_STRIP" = x; then 2390 STRIP=":" 2391 else 2392 case $cross_compiling:$ac_tool_warned in 2393yes:) 2394{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2396ac_tool_warned=yes ;; 2397esac 2398 STRIP=$ac_ct_STRIP 2399 fi 2400else 2401 STRIP="$ac_cv_prog_STRIP" 2402fi 2403 2404fi 2405INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2406 2407{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2408$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2409if test -z "$MKDIR_P"; then 2410 if test "${ac_cv_path_mkdir+set}" = set; then 2411 $as_echo_n "(cached) " >&6 2412else 2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2415do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 for ac_prog in mkdir gmkdir; do 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2421 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2422 'mkdir (GNU coreutils) '* | \ 2423 'mkdir (coreutils) '* | \ 2424 'mkdir (fileutils) '4.1*) 2425 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2426 break 3;; 2427 esac 2428 done 2429 done 2430done 2431IFS=$as_save_IFS 2432 2433fi 2434 2435 if test "${ac_cv_path_mkdir+set}" = set; then 2436 MKDIR_P="$ac_cv_path_mkdir -p" 2437 else 2438 # As a last resort, use the slow shell script. Don't cache a 2439 # value for MKDIR_P within a source directory, because that will 2440 # break other packages using the cache if that directory is 2441 # removed, or if the value is a relative name. 2442 test -d ./--version && rmdir ./--version 2443 MKDIR_P="$ac_install_sh -d" 2444 fi 2445fi 2446{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2447$as_echo "$MKDIR_P" >&6; } 2448 2449mkdir_p="$MKDIR_P" 2450case $mkdir_p in 2451 [\\/$]* | ?:[\\/]*) ;; 2452 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2453esac 2454 2455for ac_prog in gawk mawk nawk awk 2456do 2457 # Extract the first word of "$ac_prog", so it can be a program name with args. 2458set dummy $ac_prog; ac_word=$2 2459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2460$as_echo_n "checking for $ac_word... " >&6; } 2461if test "${ac_cv_prog_AWK+set}" = set; then 2462 $as_echo_n "(cached) " >&6 2463else 2464 if test -n "$AWK"; then 2465 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2466else 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468for as_dir in $PATH 2469do 2470 IFS=$as_save_IFS 2471 test -z "$as_dir" && as_dir=. 2472 for ac_exec_ext in '' $ac_executable_extensions; do 2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2474 ac_cv_prog_AWK="$ac_prog" 2475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2476 break 2 2477 fi 2478done 2479done 2480IFS=$as_save_IFS 2481 2482fi 2483fi 2484AWK=$ac_cv_prog_AWK 2485if test -n "$AWK"; then 2486 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2487$as_echo "$AWK" >&6; } 2488else 2489 { $as_echo "$as_me:$LINENO: result: no" >&5 2490$as_echo "no" >&6; } 2491fi 2492 2493 2494 test -n "$AWK" && break 2495done 2496 2497{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2498$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2499set x ${MAKE-make} 2500ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2501if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2502 $as_echo_n "(cached) " >&6 2503else 2504 cat >conftest.make <<\_ACEOF 2505SHELL = /bin/sh 2506all: 2507 @echo '@@@%%%=$(MAKE)=@@@%%%' 2508_ACEOF 2509# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2510case `${MAKE-make} -f conftest.make 2>/dev/null` in 2511 *@@@%%%=?*=@@@%%%*) 2512 eval ac_cv_prog_make_${ac_make}_set=yes;; 2513 *) 2514 eval ac_cv_prog_make_${ac_make}_set=no;; 2515esac 2516rm -f conftest.make 2517fi 2518if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2519 { $as_echo "$as_me:$LINENO: result: yes" >&5 2520$as_echo "yes" >&6; } 2521 SET_MAKE= 2522else 2523 { $as_echo "$as_me:$LINENO: result: no" >&5 2524$as_echo "no" >&6; } 2525 SET_MAKE="MAKE=${MAKE-make}" 2526fi 2527 2528rm -rf .tst 2>/dev/null 2529mkdir .tst 2>/dev/null 2530if test -d .tst; then 2531 am__leading_dot=. 2532else 2533 am__leading_dot=_ 2534fi 2535rmdir .tst 2>/dev/null 2536 2537if test "`cd $srcdir && pwd`" != "`pwd`"; then 2538 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2539 # is not polluted with repeated "-I." 2540 am__isrc=' -I$(srcdir)' 2541 # test to see if srcdir already configured 2542 if test -f $srcdir/config.status; then 2543 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2544$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2545 { (exit 1); exit 1; }; } 2546 fi 2547fi 2548 2549# test whether we have cygpath 2550if test -z "$CYGPATH_W"; then 2551 if (cygpath --version) >/dev/null 2>/dev/null; then 2552 CYGPATH_W='cygpath -w' 2553 else 2554 CYGPATH_W=echo 2555 fi 2556fi 2557 2558 2559# Define the identity of the package. 2560 PACKAGE='libXres' 2561 VERSION='1.0.4' 2562 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE "$PACKAGE" 2566_ACEOF 2567 2568 2569cat >>confdefs.h <<_ACEOF 2570#define VERSION "$VERSION" 2571_ACEOF 2572 2573# Some tools Automake needs. 2574 2575ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2576 2577 2578AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2579 2580 2581AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2582 2583 2584AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2585 2586 2587MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2588 2589# We need awk for the "check" target. The system "awk" is bad on 2590# some platforms. 2591# Always define AMTAR for backward compatibility. 2592 2593AMTAR=${AMTAR-"${am_missing_run}tar"} 2594 2595am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2596 2597 2598 2599 2600 2601 2602# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615ac_config_headers="$ac_config_headers config.h" 2616 2617 2618# Check for progs 2619ac_ext=c 2620ac_cpp='$CPP $CPPFLAGS' 2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2623ac_compiler_gnu=$ac_cv_c_compiler_gnu 2624if test -n "$ac_tool_prefix"; then 2625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2626set dummy ${ac_tool_prefix}gcc; ac_word=$2 2627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2628$as_echo_n "checking for $ac_word... " >&6; } 2629if test "${ac_cv_prog_CC+set}" = set; then 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test -n "$CC"; then 2633 ac_cv_prog_CC="$CC" # Let the user override the test. 2634else 2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636for as_dir in $PATH 2637do 2638 IFS=$as_save_IFS 2639 test -z "$as_dir" && as_dir=. 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2642 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647done 2648IFS=$as_save_IFS 2649 2650fi 2651fi 2652CC=$ac_cv_prog_CC 2653if test -n "$CC"; then 2654 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2655$as_echo "$CC" >&6; } 2656else 2657 { $as_echo "$as_me:$LINENO: result: no" >&5 2658$as_echo "no" >&6; } 2659fi 2660 2661 2662fi 2663if test -z "$ac_cv_prog_CC"; then 2664 ac_ct_CC=$CC 2665 # Extract the first word of "gcc", so it can be a program name with args. 2666set dummy gcc; ac_word=$2 2667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$ac_ct_CC"; then 2673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2682 ac_cv_prog_ac_ct_CC="gcc" 2683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692ac_ct_CC=$ac_cv_prog_ac_ct_CC 2693if test -n "$ac_ct_CC"; then 2694 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2695$as_echo "$ac_ct_CC" >&6; } 2696else 2697 { $as_echo "$as_me:$LINENO: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 if test "x$ac_ct_CC" = x; then 2702 CC="" 2703 else 2704 case $cross_compiling:$ac_tool_warned in 2705yes:) 2706{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2708ac_tool_warned=yes ;; 2709esac 2710 CC=$ac_ct_CC 2711 fi 2712else 2713 CC="$ac_cv_prog_CC" 2714fi 2715 2716if test -z "$CC"; then 2717 if test -n "$ac_tool_prefix"; then 2718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2719set dummy ${ac_tool_prefix}cc; ac_word=$2 2720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2721$as_echo_n "checking for $ac_word... " >&6; } 2722if test "${ac_cv_prog_CC+set}" = set; then 2723 $as_echo_n "(cached) " >&6 2724else 2725 if test -n "$CC"; then 2726 ac_cv_prog_CC="$CC" # Let the user override the test. 2727else 2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 test -z "$as_dir" && as_dir=. 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2735 ac_cv_prog_CC="${ac_tool_prefix}cc" 2736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2737 break 2 2738 fi 2739done 2740done 2741IFS=$as_save_IFS 2742 2743fi 2744fi 2745CC=$ac_cv_prog_CC 2746if test -n "$CC"; then 2747 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2748$as_echo "$CC" >&6; } 2749else 2750 { $as_echo "$as_me:$LINENO: result: no" >&5 2751$as_echo "no" >&6; } 2752fi 2753 2754 2755 fi 2756fi 2757if test -z "$CC"; then 2758 # Extract the first word of "cc", so it can be a program name with args. 2759set dummy cc; ac_word=$2 2760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if test "${ac_cv_prog_CC+set}" = set; then 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$CC"; then 2766 ac_cv_prog_CC="$CC" # Let the user override the test. 2767else 2768 ac_prog_rejected=no 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2777 ac_prog_rejected=yes 2778 continue 2779 fi 2780 ac_cv_prog_CC="cc" 2781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785done 2786IFS=$as_save_IFS 2787 2788if test $ac_prog_rejected = yes; then 2789 # We found a bogon in the path, so make sure we never use it. 2790 set dummy $ac_cv_prog_CC 2791 shift 2792 if test $# != 0; then 2793 # We chose a different compiler from the bogus one. 2794 # However, it has the same basename, so the bogon will be chosen 2795 # first if we set CC to just the basename; use the full file name. 2796 shift 2797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2798 fi 2799fi 2800fi 2801fi 2802CC=$ac_cv_prog_CC 2803if test -n "$CC"; then 2804 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2805$as_echo "$CC" >&6; } 2806else 2807 { $as_echo "$as_me:$LINENO: result: no" >&5 2808$as_echo "no" >&6; } 2809fi 2810 2811 2812fi 2813if test -z "$CC"; then 2814 if test -n "$ac_tool_prefix"; then 2815 for ac_prog in cl.exe 2816 do 2817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2818set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if test "${ac_cv_prog_CC+set}" = set; then 2822 $as_echo_n "(cached) " >&6 2823else 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826else 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828for as_dir in $PATH 2829do 2830 IFS=$as_save_IFS 2831 test -z "$as_dir" && as_dir=. 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844CC=$ac_cv_prog_CC 2845if test -n "$CC"; then 2846 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2847$as_echo "$CC" >&6; } 2848else 2849 { $as_echo "$as_me:$LINENO: result: no" >&5 2850$as_echo "no" >&6; } 2851fi 2852 2853 2854 test -n "$CC" && break 2855 done 2856fi 2857if test -z "$CC"; then 2858 ac_ct_CC=$CC 2859 for ac_prog in cl.exe 2860do 2861 # Extract the first word of "$ac_prog", so it can be a program name with args. 2862set dummy $ac_prog; ac_word=$2 2863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$ac_ct_CC"; then 2869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2878 ac_cv_prog_ac_ct_CC="$ac_prog" 2879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888ac_ct_CC=$ac_cv_prog_ac_ct_CC 2889if test -n "$ac_ct_CC"; then 2890 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2891$as_echo "$ac_ct_CC" >&6; } 2892else 2893 { $as_echo "$as_me:$LINENO: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898 test -n "$ac_ct_CC" && break 2899done 2900 2901 if test "x$ac_ct_CC" = x; then 2902 CC="" 2903 else 2904 case $cross_compiling:$ac_tool_warned in 2905yes:) 2906{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2908ac_tool_warned=yes ;; 2909esac 2910 CC=$ac_ct_CC 2911 fi 2912fi 2913 2914fi 2915 2916 2917test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2919{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2920See \`config.log' for more details." >&5 2921$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2922See \`config.log' for more details." >&2;} 2923 { (exit 1); exit 1; }; }; } 2924 2925# Provide some information about the compiler. 2926$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2927set X $ac_compile 2928ac_compiler=$2 2929{ (ac_try="$ac_compiler --version >&5" 2930case "(($ac_try" in 2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2932 *) ac_try_echo=$ac_try;; 2933esac 2934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2935$as_echo "$ac_try_echo") >&5 2936 (eval "$ac_compiler --version >&5") 2>&5 2937 ac_status=$? 2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); } 2940{ (ac_try="$ac_compiler -v >&5" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2946$as_echo "$ac_try_echo") >&5 2947 (eval "$ac_compiler -v >&5") 2>&5 2948 ac_status=$? 2949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2950 (exit $ac_status); } 2951{ (ac_try="$ac_compiler -V >&5" 2952case "(($ac_try" in 2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2954 *) ac_try_echo=$ac_try;; 2955esac 2956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2957$as_echo "$ac_try_echo") >&5 2958 (eval "$ac_compiler -V >&5") 2>&5 2959 ac_status=$? 2960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2961 (exit $ac_status); } 2962 2963cat >conftest.$ac_ext <<_ACEOF 2964/* confdefs.h. */ 2965_ACEOF 2966cat confdefs.h >>conftest.$ac_ext 2967cat >>conftest.$ac_ext <<_ACEOF 2968/* end confdefs.h. */ 2969 2970int 2971main () 2972{ 2973 2974 ; 2975 return 0; 2976} 2977_ACEOF 2978ac_clean_files_save=$ac_clean_files 2979ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2980# Try to create an executable without -o first, disregard a.out. 2981# It will help us diagnose broken compilers, and finding out an intuition 2982# of exeext. 2983{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2984$as_echo_n "checking for C compiler default output file name... " >&6; } 2985ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2986 2987# The possible output files: 2988ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2989 2990ac_rmfiles= 2991for ac_file in $ac_files 2992do 2993 case $ac_file in 2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2996 esac 2997done 2998rm -f $ac_rmfiles 2999 3000if { (ac_try="$ac_link_default" 3001case "(($ac_try" in 3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3003 *) ac_try_echo=$ac_try;; 3004esac 3005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3006$as_echo "$ac_try_echo") >&5 3007 (eval "$ac_link_default") 2>&5 3008 ac_status=$? 3009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; then 3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3012# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3013# in a Makefile. We should not override ac_cv_exeext if it was cached, 3014# so that the user can short-circuit this test for compilers unknown to 3015# Autoconf. 3016for ac_file in $ac_files '' 3017do 3018 test -f "$ac_file" || continue 3019 case $ac_file in 3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3021 ;; 3022 [ab].out ) 3023 # We found the default executable, but exeext='' is most 3024 # certainly right. 3025 break;; 3026 *.* ) 3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3028 then :; else 3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3030 fi 3031 # We set ac_cv_exeext here because the later test for it is not 3032 # safe: cross compilers may not add the suffix if given an `-o' 3033 # argument, so we may need to know it at that point already. 3034 # Even if this section looks crufty: it has the advantage of 3035 # actually working. 3036 break;; 3037 * ) 3038 break;; 3039 esac 3040done 3041test "$ac_cv_exeext" = no && ac_cv_exeext= 3042 3043else 3044 ac_file='' 3045fi 3046 3047{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3048$as_echo "$ac_file" >&6; } 3049if test -z "$ac_file"; then 3050 $as_echo "$as_me: failed program was:" >&5 3051sed 's/^/| /' conftest.$ac_ext >&5 3052 3053{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3055{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3056See \`config.log' for more details." >&5 3057$as_echo "$as_me: error: C compiler cannot create executables 3058See \`config.log' for more details." >&2;} 3059 { (exit 77); exit 77; }; }; } 3060fi 3061 3062ac_exeext=$ac_cv_exeext 3063 3064# Check that the compiler produces executables we can run. If not, either 3065# the compiler is broken, or we cross compile. 3066{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3067$as_echo_n "checking whether the C compiler works... " >&6; } 3068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3069# If not cross compiling, check that we can run a simple program. 3070if test "$cross_compiling" != yes; then 3071 if { ac_try='./$ac_file' 3072 { (case "(($ac_try" in 3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3074 *) ac_try_echo=$ac_try;; 3075esac 3076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3077$as_echo "$ac_try_echo") >&5 3078 (eval "$ac_try") 2>&5 3079 ac_status=$? 3080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3081 (exit $ac_status); }; }; then 3082 cross_compiling=no 3083 else 3084 if test "$cross_compiling" = maybe; then 3085 cross_compiling=yes 3086 else 3087 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3089{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3090If you meant to cross compile, use \`--host'. 3091See \`config.log' for more details." >&5 3092$as_echo "$as_me: error: cannot run C compiled programs. 3093If you meant to cross compile, use \`--host'. 3094See \`config.log' for more details." >&2;} 3095 { (exit 1); exit 1; }; }; } 3096 fi 3097 fi 3098fi 3099{ $as_echo "$as_me:$LINENO: result: yes" >&5 3100$as_echo "yes" >&6; } 3101 3102rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3103ac_clean_files=$ac_clean_files_save 3104# Check that the compiler produces executables we can run. If not, either 3105# the compiler is broken, or we cross compile. 3106{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3107$as_echo_n "checking whether we are cross compiling... " >&6; } 3108{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3109$as_echo "$cross_compiling" >&6; } 3110 3111{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3112$as_echo_n "checking for suffix of executables... " >&6; } 3113if { (ac_try="$ac_link" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3119$as_echo "$ac_try_echo") >&5 3120 (eval "$ac_link") 2>&5 3121 ac_status=$? 3122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); }; then 3124 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3125# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3126# work properly (i.e., refer to `conftest.exe'), while it won't with 3127# `rm'. 3128for ac_file in conftest.exe conftest conftest.*; do 3129 test -f "$ac_file" || continue 3130 case $ac_file in 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3132 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3133 break;; 3134 * ) break;; 3135 esac 3136done 3137else 3138 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3140{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3141See \`config.log' for more details." >&5 3142$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3143See \`config.log' for more details." >&2;} 3144 { (exit 1); exit 1; }; }; } 3145fi 3146 3147rm -f conftest$ac_cv_exeext 3148{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3149$as_echo "$ac_cv_exeext" >&6; } 3150 3151rm -f conftest.$ac_ext 3152EXEEXT=$ac_cv_exeext 3153ac_exeext=$EXEEXT 3154{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3155$as_echo_n "checking for suffix of object files... " >&6; } 3156if test "${ac_cv_objext+set}" = set; then 3157 $as_echo_n "(cached) " >&6 3158else 3159 cat >conftest.$ac_ext <<_ACEOF 3160/* confdefs.h. */ 3161_ACEOF 3162cat confdefs.h >>conftest.$ac_ext 3163cat >>conftest.$ac_ext <<_ACEOF 3164/* end confdefs.h. */ 3165 3166int 3167main () 3168{ 3169 3170 ; 3171 return 0; 3172} 3173_ACEOF 3174rm -f conftest.o conftest.obj 3175if { (ac_try="$ac_compile" 3176case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3181$as_echo "$ac_try_echo") >&5 3182 (eval "$ac_compile") 2>&5 3183 ac_status=$? 3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); }; then 3186 for ac_file in conftest.o conftest.obj conftest.*; do 3187 test -f "$ac_file" || continue; 3188 case $ac_file in 3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3191 break;; 3192 esac 3193done 3194else 3195 $as_echo "$as_me: failed program was:" >&5 3196sed 's/^/| /' conftest.$ac_ext >&5 3197 3198{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3200{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3201See \`config.log' for more details." >&5 3202$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3203See \`config.log' for more details." >&2;} 3204 { (exit 1); exit 1; }; }; } 3205fi 3206 3207rm -f conftest.$ac_cv_objext conftest.$ac_ext 3208fi 3209{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3210$as_echo "$ac_cv_objext" >&6; } 3211OBJEXT=$ac_cv_objext 3212ac_objext=$OBJEXT 3213{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3214$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3215if test "${ac_cv_c_compiler_gnu+set}" = set; then 3216 $as_echo_n "(cached) " >&6 3217else 3218 cat >conftest.$ac_ext <<_ACEOF 3219/* confdefs.h. */ 3220_ACEOF 3221cat confdefs.h >>conftest.$ac_ext 3222cat >>conftest.$ac_ext <<_ACEOF 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228#ifndef __GNUC__ 3229 choke me 3230#endif 3231 3232 ; 3233 return 0; 3234} 3235_ACEOF 3236rm -f conftest.$ac_objext 3237if { (ac_try="$ac_compile" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3243$as_echo "$ac_try_echo") >&5 3244 (eval "$ac_compile") 2>conftest.er1 3245 ac_status=$? 3246 grep -v '^ *+' conftest.er1 >conftest.err 3247 rm -f conftest.er1 3248 cat conftest.err >&5 3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3250 (exit $ac_status); } && { 3251 test -z "$ac_c_werror_flag" || 3252 test ! -s conftest.err 3253 } && test -s conftest.$ac_objext; then 3254 ac_compiler_gnu=yes 3255else 3256 $as_echo "$as_me: failed program was:" >&5 3257sed 's/^/| /' conftest.$ac_ext >&5 3258 3259 ac_compiler_gnu=no 3260fi 3261 3262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3263ac_cv_c_compiler_gnu=$ac_compiler_gnu 3264 3265fi 3266{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3267$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3268if test $ac_compiler_gnu = yes; then 3269 GCC=yes 3270else 3271 GCC= 3272fi 3273ac_test_CFLAGS=${CFLAGS+set} 3274ac_save_CFLAGS=$CFLAGS 3275{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3276$as_echo_n "checking whether $CC accepts -g... " >&6; } 3277if test "${ac_cv_prog_cc_g+set}" = set; then 3278 $as_echo_n "(cached) " >&6 3279else 3280 ac_save_c_werror_flag=$ac_c_werror_flag 3281 ac_c_werror_flag=yes 3282 ac_cv_prog_cc_g=no 3283 CFLAGS="-g" 3284 cat >conftest.$ac_ext <<_ACEOF 3285/* confdefs.h. */ 3286_ACEOF 3287cat confdefs.h >>conftest.$ac_ext 3288cat >>conftest.$ac_ext <<_ACEOF 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299rm -f conftest.$ac_objext 3300if { (ac_try="$ac_compile" 3301case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3306$as_echo "$ac_try_echo") >&5 3307 (eval "$ac_compile") 2>conftest.er1 3308 ac_status=$? 3309 grep -v '^ *+' conftest.er1 >conftest.err 3310 rm -f conftest.er1 3311 cat conftest.err >&5 3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 (exit $ac_status); } && { 3314 test -z "$ac_c_werror_flag" || 3315 test ! -s conftest.err 3316 } && test -s conftest.$ac_objext; then 3317 ac_cv_prog_cc_g=yes 3318else 3319 $as_echo "$as_me: failed program was:" >&5 3320sed 's/^/| /' conftest.$ac_ext >&5 3321 3322 CFLAGS="" 3323 cat >conftest.$ac_ext <<_ACEOF 3324/* confdefs.h. */ 3325_ACEOF 3326cat confdefs.h >>conftest.$ac_ext 3327cat >>conftest.$ac_ext <<_ACEOF 3328/* end confdefs.h. */ 3329 3330int 3331main () 3332{ 3333 3334 ; 3335 return 0; 3336} 3337_ACEOF 3338rm -f conftest.$ac_objext 3339if { (ac_try="$ac_compile" 3340case "(($ac_try" in 3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *) ac_try_echo=$ac_try;; 3343esac 3344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3345$as_echo "$ac_try_echo") >&5 3346 (eval "$ac_compile") 2>conftest.er1 3347 ac_status=$? 3348 grep -v '^ *+' conftest.er1 >conftest.err 3349 rm -f conftest.er1 3350 cat conftest.err >&5 3351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3352 (exit $ac_status); } && { 3353 test -z "$ac_c_werror_flag" || 3354 test ! -s conftest.err 3355 } && test -s conftest.$ac_objext; then 3356 : 3357else 3358 $as_echo "$as_me: failed program was:" >&5 3359sed 's/^/| /' conftest.$ac_ext >&5 3360 3361 ac_c_werror_flag=$ac_save_c_werror_flag 3362 CFLAGS="-g" 3363 cat >conftest.$ac_ext <<_ACEOF 3364/* confdefs.h. */ 3365_ACEOF 3366cat confdefs.h >>conftest.$ac_ext 3367cat >>conftest.$ac_ext <<_ACEOF 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378rm -f conftest.$ac_objext 3379if { (ac_try="$ac_compile" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3385$as_echo "$ac_try_echo") >&5 3386 (eval "$ac_compile") 2>conftest.er1 3387 ac_status=$? 3388 grep -v '^ *+' conftest.er1 >conftest.err 3389 rm -f conftest.er1 3390 cat conftest.err >&5 3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3392 (exit $ac_status); } && { 3393 test -z "$ac_c_werror_flag" || 3394 test ! -s conftest.err 3395 } && test -s conftest.$ac_objext; then 3396 ac_cv_prog_cc_g=yes 3397else 3398 $as_echo "$as_me: failed program was:" >&5 3399sed 's/^/| /' conftest.$ac_ext >&5 3400 3401 3402fi 3403 3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3405fi 3406 3407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3408fi 3409 3410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3411 ac_c_werror_flag=$ac_save_c_werror_flag 3412fi 3413{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3414$as_echo "$ac_cv_prog_cc_g" >&6; } 3415if test "$ac_test_CFLAGS" = set; then 3416 CFLAGS=$ac_save_CFLAGS 3417elif test $ac_cv_prog_cc_g = yes; then 3418 if test "$GCC" = yes; then 3419 CFLAGS="-g -O2" 3420 else 3421 CFLAGS="-g" 3422 fi 3423else 3424 if test "$GCC" = yes; then 3425 CFLAGS="-O2" 3426 else 3427 CFLAGS= 3428 fi 3429fi 3430{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3431$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3432if test "${ac_cv_prog_cc_c89+set}" = set; then 3433 $as_echo_n "(cached) " >&6 3434else 3435 ac_cv_prog_cc_c89=no 3436ac_save_CC=$CC 3437cat >conftest.$ac_ext <<_ACEOF 3438/* confdefs.h. */ 3439_ACEOF 3440cat confdefs.h >>conftest.$ac_ext 3441cat >>conftest.$ac_ext <<_ACEOF 3442/* end confdefs.h. */ 3443#include <stdarg.h> 3444#include <stdio.h> 3445#include <sys/types.h> 3446#include <sys/stat.h> 3447/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3448struct buf { int x; }; 3449FILE * (*rcsopen) (struct buf *, struct stat *, int); 3450static char *e (p, i) 3451 char **p; 3452 int i; 3453{ 3454 return p[i]; 3455} 3456static char *f (char * (*g) (char **, int), char **p, ...) 3457{ 3458 char *s; 3459 va_list v; 3460 va_start (v,p); 3461 s = g (p, va_arg (v,int)); 3462 va_end (v); 3463 return s; 3464} 3465 3466/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3467 function prototypes and stuff, but not '\xHH' hex character constants. 3468 These don't provoke an error unfortunately, instead are silently treated 3469 as 'x'. The following induces an error, until -std is added to get 3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3471 array size at least. It's necessary to write '\x00'==0 to get something 3472 that's true only with -std. */ 3473int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3474 3475/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3476 inside strings and character constants. */ 3477#define FOO(x) 'x' 3478int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3479 3480int test (int i, double x); 3481struct s1 {int (*f) (int a);}; 3482struct s2 {int (*f) (double a);}; 3483int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3484int argc; 3485char **argv; 3486int 3487main () 3488{ 3489return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3496do 3497 CC="$ac_save_CC $ac_arg" 3498 rm -f conftest.$ac_objext 3499if { (ac_try="$ac_compile" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3505$as_echo "$ac_try_echo") >&5 3506 (eval "$ac_compile") 2>conftest.er1 3507 ac_status=$? 3508 grep -v '^ *+' conftest.er1 >conftest.err 3509 rm -f conftest.er1 3510 cat conftest.err >&5 3511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3512 (exit $ac_status); } && { 3513 test -z "$ac_c_werror_flag" || 3514 test ! -s conftest.err 3515 } && test -s conftest.$ac_objext; then 3516 ac_cv_prog_cc_c89=$ac_arg 3517else 3518 $as_echo "$as_me: failed program was:" >&5 3519sed 's/^/| /' conftest.$ac_ext >&5 3520 3521 3522fi 3523 3524rm -f core conftest.err conftest.$ac_objext 3525 test "x$ac_cv_prog_cc_c89" != "xno" && break 3526done 3527rm -f conftest.$ac_ext 3528CC=$ac_save_CC 3529 3530fi 3531# AC_CACHE_VAL 3532case "x$ac_cv_prog_cc_c89" in 3533 x) 3534 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3535$as_echo "none needed" >&6; } ;; 3536 xno) 3537 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3538$as_echo "unsupported" >&6; } ;; 3539 *) 3540 CC="$CC $ac_cv_prog_cc_c89" 3541 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3542$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3543esac 3544 3545 3546ac_ext=c 3547ac_cpp='$CPP $CPPFLAGS' 3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3550ac_compiler_gnu=$ac_cv_c_compiler_gnu 3551DEPDIR="${am__leading_dot}deps" 3552 3553ac_config_commands="$ac_config_commands depfiles" 3554 3555 3556am_make=${MAKE-make} 3557cat > confinc << 'END' 3558am__doit: 3559 @echo this is the am__doit target 3560.PHONY: am__doit 3561END 3562# If we don't find an include directive, just comment out the code. 3563{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3564$as_echo_n "checking for style of include used by $am_make... " >&6; } 3565am__include="#" 3566am__quote= 3567_am_result=none 3568# First try GNU make style include. 3569echo "include confinc" > confmf 3570# Ignore all kinds of additional output from `make'. 3571case `$am_make -s -f confmf 2> /dev/null` in #( 3572*the\ am__doit\ target*) 3573 am__include=include 3574 am__quote= 3575 _am_result=GNU 3576 ;; 3577esac 3578# Now try BSD make style include. 3579if test "$am__include" = "#"; then 3580 echo '.include "confinc"' > confmf 3581 case `$am_make -s -f confmf 2> /dev/null` in #( 3582 *the\ am__doit\ target*) 3583 am__include=.include 3584 am__quote="\"" 3585 _am_result=BSD 3586 ;; 3587 esac 3588fi 3589 3590 3591{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3592$as_echo "$_am_result" >&6; } 3593rm -f confinc confmf 3594 3595# Check whether --enable-dependency-tracking was given. 3596if test "${enable_dependency_tracking+set}" = set; then 3597 enableval=$enable_dependency_tracking; 3598fi 3599 3600if test "x$enable_dependency_tracking" != xno; then 3601 am_depcomp="$ac_aux_dir/depcomp" 3602 AMDEPBACKSLASH='\' 3603fi 3604 if test "x$enable_dependency_tracking" != xno; then 3605 AMDEP_TRUE= 3606 AMDEP_FALSE='#' 3607else 3608 AMDEP_TRUE='#' 3609 AMDEP_FALSE= 3610fi 3611 3612 3613 3614depcc="$CC" am_compiler_list= 3615 3616{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3617$as_echo_n "checking dependency style of $depcc... " >&6; } 3618if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3619 $as_echo_n "(cached) " >&6 3620else 3621 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3622 # We make a subdir and do the tests there. Otherwise we can end up 3623 # making bogus files that we don't know about and never remove. For 3624 # instance it was reported that on HP-UX the gcc test will end up 3625 # making a dummy file named `D' -- because `-MD' means `put the output 3626 # in D'. 3627 mkdir conftest.dir 3628 # Copy depcomp to subdir because otherwise we won't find it if we're 3629 # using a relative directory. 3630 cp "$am_depcomp" conftest.dir 3631 cd conftest.dir 3632 # We will build objects and dependencies in a subdirectory because 3633 # it helps to detect inapplicable dependency modes. For instance 3634 # both Tru64's cc and ICC support -MD to output dependencies as a 3635 # side effect of compilation, but ICC will put the dependencies in 3636 # the current directory while Tru64 will put them in the object 3637 # directory. 3638 mkdir sub 3639 3640 am_cv_CC_dependencies_compiler_type=none 3641 if test "$am_compiler_list" = ""; then 3642 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3643 fi 3644 am__universal=false 3645 case " $depcc " in #( 3646 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3647 esac 3648 3649 for depmode in $am_compiler_list; do 3650 # Setup a source with many dependencies, because some compilers 3651 # like to wrap large dependency lists on column 80 (with \), and 3652 # we should not choose a depcomp mode which is confused by this. 3653 # 3654 # We need to recreate these files for each test, as the compiler may 3655 # overwrite some of them when testing with obscure command lines. 3656 # This happens at least with the AIX C compiler. 3657 : > sub/conftest.c 3658 for i in 1 2 3 4 5 6; do 3659 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3661 # Solaris 8's {/usr,}/bin/sh. 3662 touch sub/conftst$i.h 3663 done 3664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3665 3666 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3667 # mode. It turns out that the SunPro C++ compiler does not properly 3668 # handle `-M -o', and we need to detect this. Also, some Intel 3669 # versions had trouble with output in subdirs 3670 am__obj=sub/conftest.${OBJEXT-o} 3671 am__minus_obj="-o $am__obj" 3672 case $depmode in 3673 gcc) 3674 # This depmode causes a compiler race in universal mode. 3675 test "$am__universal" = false || continue 3676 ;; 3677 nosideeffect) 3678 # after this tag, mechanisms are not by side-effect, so they'll 3679 # only be used when explicitly requested 3680 if test "x$enable_dependency_tracking" = xyes; then 3681 continue 3682 else 3683 break 3684 fi 3685 ;; 3686 msvisualcpp | msvcmsys) 3687 # This compiler won't grok `-c -o', but also, the minuso test has 3688 # not run yet. These depmodes are late enough in the game, and 3689 # so weak that their functioning should not be impacted. 3690 am__obj=conftest.${OBJEXT-o} 3691 am__minus_obj= 3692 ;; 3693 none) break ;; 3694 esac 3695 if depmode=$depmode \ 3696 source=sub/conftest.c object=$am__obj \ 3697 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3698 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3699 >/dev/null 2>conftest.err && 3700 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3701 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3702 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3703 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3704 # icc doesn't choke on unknown options, it will just issue warnings 3705 # or remarks (even with -Werror). So we grep stderr for any message 3706 # that says an option was ignored or not supported. 3707 # When given -MP, icc 7.0 and 7.1 complain thusly: 3708 # icc: Command line warning: ignoring option '-M'; no argument required 3709 # The diagnosis changed in icc 8.0: 3710 # icc: Command line remark: option '-MP' not supported 3711 if (grep 'ignoring option' conftest.err || 3712 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3713 am_cv_CC_dependencies_compiler_type=$depmode 3714 break 3715 fi 3716 fi 3717 done 3718 3719 cd .. 3720 rm -rf conftest.dir 3721else 3722 am_cv_CC_dependencies_compiler_type=none 3723fi 3724 3725fi 3726{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3727$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3728CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3729 3730 if 3731 test "x$enable_dependency_tracking" != xno \ 3732 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3733 am__fastdepCC_TRUE= 3734 am__fastdepCC_FALSE='#' 3735else 3736 am__fastdepCC_TRUE='#' 3737 am__fastdepCC_FALSE= 3738fi 3739 3740 3741# Check whether --enable-shared was given. 3742if test "${enable_shared+set}" = set; then 3743 enableval=$enable_shared; p=${PACKAGE-default} 3744 case $enableval in 3745 yes) enable_shared=yes ;; 3746 no) enable_shared=no ;; 3747 *) 3748 enable_shared=no 3749 # Look at the argument we got. We use all the common list separators. 3750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3751 for pkg in $enableval; do 3752 IFS="$lt_save_ifs" 3753 if test "X$pkg" = "X$p"; then 3754 enable_shared=yes 3755 fi 3756 done 3757 IFS="$lt_save_ifs" 3758 ;; 3759 esac 3760else 3761 enable_shared=yes 3762fi 3763 3764 3765# Check whether --enable-static was given. 3766if test "${enable_static+set}" = set; then 3767 enableval=$enable_static; p=${PACKAGE-default} 3768 case $enableval in 3769 yes) enable_static=yes ;; 3770 no) enable_static=no ;; 3771 *) 3772 enable_static=no 3773 # Look at the argument we got. We use all the common list separators. 3774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3775 for pkg in $enableval; do 3776 IFS="$lt_save_ifs" 3777 if test "X$pkg" = "X$p"; then 3778 enable_static=yes 3779 fi 3780 done 3781 IFS="$lt_save_ifs" 3782 ;; 3783 esac 3784else 3785 enable_static=yes 3786fi 3787 3788 3789# Check whether --enable-fast-install was given. 3790if test "${enable_fast_install+set}" = set; then 3791 enableval=$enable_fast_install; p=${PACKAGE-default} 3792 case $enableval in 3793 yes) enable_fast_install=yes ;; 3794 no) enable_fast_install=no ;; 3795 *) 3796 enable_fast_install=no 3797 # Look at the argument we got. We use all the common list separators. 3798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3799 for pkg in $enableval; do 3800 IFS="$lt_save_ifs" 3801 if test "X$pkg" = "X$p"; then 3802 enable_fast_install=yes 3803 fi 3804 done 3805 IFS="$lt_save_ifs" 3806 ;; 3807 esac 3808else 3809 enable_fast_install=yes 3810fi 3811 3812 3813# Make sure we can run config.sub. 3814$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3815 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3816$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3817 { (exit 1); exit 1; }; } 3818 3819{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3820$as_echo_n "checking build system type... " >&6; } 3821if test "${ac_cv_build+set}" = set; then 3822 $as_echo_n "(cached) " >&6 3823else 3824 ac_build_alias=$build_alias 3825test "x$ac_build_alias" = x && 3826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3827test "x$ac_build_alias" = x && 3828 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3829$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3830 { (exit 1); exit 1; }; } 3831ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3832 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3833$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3834 { (exit 1); exit 1; }; } 3835 3836fi 3837{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3838$as_echo "$ac_cv_build" >&6; } 3839case $ac_cv_build in 3840*-*-*) ;; 3841*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3842$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3843 { (exit 1); exit 1; }; };; 3844esac 3845build=$ac_cv_build 3846ac_save_IFS=$IFS; IFS='-' 3847set x $ac_cv_build 3848shift 3849build_cpu=$1 3850build_vendor=$2 3851shift; shift 3852# Remember, the first character of IFS is used to create $*, 3853# except with old shells: 3854build_os=$* 3855IFS=$ac_save_IFS 3856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3857 3858 3859{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3860$as_echo_n "checking host system type... " >&6; } 3861if test "${ac_cv_host+set}" = set; then 3862 $as_echo_n "(cached) " >&6 3863else 3864 if test "x$host_alias" = x; then 3865 ac_cv_host=$ac_cv_build 3866else 3867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3868 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3869$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3870 { (exit 1); exit 1; }; } 3871fi 3872 3873fi 3874{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3875$as_echo "$ac_cv_host" >&6; } 3876case $ac_cv_host in 3877*-*-*) ;; 3878*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3879$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3880 { (exit 1); exit 1; }; };; 3881esac 3882host=$ac_cv_host 3883ac_save_IFS=$IFS; IFS='-' 3884set x $ac_cv_host 3885shift 3886host_cpu=$1 3887host_vendor=$2 3888shift; shift 3889# Remember, the first character of IFS is used to create $*, 3890# except with old shells: 3891host_os=$* 3892IFS=$ac_save_IFS 3893case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3894 3895 3896{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3897$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3898if test "${lt_cv_path_SED+set}" = set; then 3899 $as_echo_n "(cached) " >&6 3900else 3901 # Loop through the user's path and test for sed and gsed. 3902# Then use that list of sed's as ones to test for truncation. 3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904for as_dir in $PATH 3905do 3906 IFS=$as_save_IFS 3907 test -z "$as_dir" && as_dir=. 3908 for lt_ac_prog in sed gsed; do 3909 for ac_exec_ext in '' $ac_executable_extensions; do 3910 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3911 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3912 fi 3913 done 3914 done 3915done 3916IFS=$as_save_IFS 3917lt_ac_max=0 3918lt_ac_count=0 3919# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3920# along with /bin/sed that truncates output. 3921for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3922 test ! -f $lt_ac_sed && continue 3923 cat /dev/null > conftest.in 3924 lt_ac_count=0 3925 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3926 # Check for GNU sed and select it if it is found. 3927 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3928 lt_cv_path_SED=$lt_ac_sed 3929 break 3930 fi 3931 while true; do 3932 cat conftest.in conftest.in >conftest.tmp 3933 mv conftest.tmp conftest.in 3934 cp conftest.in conftest.nl 3935 echo >>conftest.nl 3936 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3937 cmp -s conftest.out conftest.nl || break 3938 # 10000 chars as input seems more than enough 3939 test $lt_ac_count -gt 10 && break 3940 lt_ac_count=`expr $lt_ac_count + 1` 3941 if test $lt_ac_count -gt $lt_ac_max; then 3942 lt_ac_max=$lt_ac_count 3943 lt_cv_path_SED=$lt_ac_sed 3944 fi 3945 done 3946done 3947 3948fi 3949 3950SED=$lt_cv_path_SED 3951 3952{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3953$as_echo "$SED" >&6; } 3954 3955{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3956$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3957if test "${ac_cv_path_GREP+set}" = set; then 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -z "$GREP"; then 3961 ac_path_GREP_found=false 3962 # Loop through the user's path and test for each of PROGNAME-LIST 3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_prog in grep ggrep; do 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3971 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3972# Check for GNU ac_path_GREP and select it if it is found. 3973 # Check for GNU $ac_path_GREP 3974case `"$ac_path_GREP" --version 2>&1` in 3975*GNU*) 3976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3977*) 3978 ac_count=0 3979 $as_echo_n 0123456789 >"conftest.in" 3980 while : 3981 do 3982 cat "conftest.in" "conftest.in" >"conftest.tmp" 3983 mv "conftest.tmp" "conftest.in" 3984 cp "conftest.in" "conftest.nl" 3985 $as_echo 'GREP' >> "conftest.nl" 3986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3988 ac_count=`expr $ac_count + 1` 3989 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3990 # Best one so far, save it but keep looking for a better one 3991 ac_cv_path_GREP="$ac_path_GREP" 3992 ac_path_GREP_max=$ac_count 3993 fi 3994 # 10*(2^10) chars as input seems more than enough 3995 test $ac_count -gt 10 && break 3996 done 3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3998esac 3999 4000 $ac_path_GREP_found && break 3 4001 done 4002 done 4003done 4004IFS=$as_save_IFS 4005 if test -z "$ac_cv_path_GREP"; then 4006 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4007$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4008 { (exit 1); exit 1; }; } 4009 fi 4010else 4011 ac_cv_path_GREP=$GREP 4012fi 4013 4014fi 4015{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4016$as_echo "$ac_cv_path_GREP" >&6; } 4017 GREP="$ac_cv_path_GREP" 4018 4019 4020{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4021$as_echo_n "checking for egrep... " >&6; } 4022if test "${ac_cv_path_EGREP+set}" = set; then 4023 $as_echo_n "(cached) " >&6 4024else 4025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4026 then ac_cv_path_EGREP="$GREP -E" 4027 else 4028 if test -z "$EGREP"; then 4029 ac_path_EGREP_found=false 4030 # Loop through the user's path and test for each of PROGNAME-LIST 4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4032for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4033do 4034 IFS=$as_save_IFS 4035 test -z "$as_dir" && as_dir=. 4036 for ac_prog in egrep; do 4037 for ac_exec_ext in '' $ac_executable_extensions; do 4038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4039 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4040# Check for GNU ac_path_EGREP and select it if it is found. 4041 # Check for GNU $ac_path_EGREP 4042case `"$ac_path_EGREP" --version 2>&1` in 4043*GNU*) 4044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4045*) 4046 ac_count=0 4047 $as_echo_n 0123456789 >"conftest.in" 4048 while : 4049 do 4050 cat "conftest.in" "conftest.in" >"conftest.tmp" 4051 mv "conftest.tmp" "conftest.in" 4052 cp "conftest.in" "conftest.nl" 4053 $as_echo 'EGREP' >> "conftest.nl" 4054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4056 ac_count=`expr $ac_count + 1` 4057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4058 # Best one so far, save it but keep looking for a better one 4059 ac_cv_path_EGREP="$ac_path_EGREP" 4060 ac_path_EGREP_max=$ac_count 4061 fi 4062 # 10*(2^10) chars as input seems more than enough 4063 test $ac_count -gt 10 && break 4064 done 4065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4066esac 4067 4068 $ac_path_EGREP_found && break 3 4069 done 4070 done 4071done 4072IFS=$as_save_IFS 4073 if test -z "$ac_cv_path_EGREP"; then 4074 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4075$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4076 { (exit 1); exit 1; }; } 4077 fi 4078else 4079 ac_cv_path_EGREP=$EGREP 4080fi 4081 4082 fi 4083fi 4084{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4085$as_echo "$ac_cv_path_EGREP" >&6; } 4086 EGREP="$ac_cv_path_EGREP" 4087 4088 4089 4090# Check whether --with-gnu-ld was given. 4091if test "${with_gnu_ld+set}" = set; then 4092 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4093else 4094 with_gnu_ld=no 4095fi 4096 4097ac_prog=ld 4098if test "$GCC" = yes; then 4099 # Check if gcc -print-prog-name=ld gives a path. 4100 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4101$as_echo_n "checking for ld used by $CC... " >&6; } 4102 case $host in 4103 *-*-mingw*) 4104 # gcc leaves a trailing carriage return which upsets mingw 4105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4106 *) 4107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4108 esac 4109 case $ac_prog in 4110 # Accept absolute paths. 4111 [\\/]* | ?:[\\/]*) 4112 re_direlt='/[^/][^/]*/\.\./' 4113 # Canonicalize the pathname of ld 4114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4117 done 4118 test -z "$LD" && LD="$ac_prog" 4119 ;; 4120 "") 4121 # If it fails, then pretend we aren't using GCC. 4122 ac_prog=ld 4123 ;; 4124 *) 4125 # If it is relative, then search for the first ld in PATH. 4126 with_gnu_ld=unknown 4127 ;; 4128 esac 4129elif test "$with_gnu_ld" = yes; then 4130 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4131$as_echo_n "checking for GNU ld... " >&6; } 4132else 4133 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4134$as_echo_n "checking for non-GNU ld... " >&6; } 4135fi 4136if test "${lt_cv_path_LD+set}" = set; then 4137 $as_echo_n "(cached) " >&6 4138else 4139 if test -z "$LD"; then 4140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4141 for ac_dir in $PATH; do 4142 IFS="$lt_save_ifs" 4143 test -z "$ac_dir" && ac_dir=. 4144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4145 lt_cv_path_LD="$ac_dir/$ac_prog" 4146 # Check to see if the program is GNU ld. I'd rather use --version, 4147 # but apparently some variants of GNU ld only accept -v. 4148 # Break only if it was the GNU/non-GNU ld that we prefer. 4149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4150 *GNU* | *'with BFD'*) 4151 test "$with_gnu_ld" != no && break 4152 ;; 4153 *) 4154 test "$with_gnu_ld" != yes && break 4155 ;; 4156 esac 4157 fi 4158 done 4159 IFS="$lt_save_ifs" 4160else 4161 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4162fi 4163fi 4164 4165LD="$lt_cv_path_LD" 4166if test -n "$LD"; then 4167 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4168$as_echo "$LD" >&6; } 4169else 4170 { $as_echo "$as_me:$LINENO: result: no" >&5 4171$as_echo "no" >&6; } 4172fi 4173test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4174$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4175 { (exit 1); exit 1; }; } 4176{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4177$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4178if test "${lt_cv_prog_gnu_ld+set}" = set; then 4179 $as_echo_n "(cached) " >&6 4180else 4181 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4182case `$LD -v 2>&1 </dev/null` in 4183*GNU* | *'with BFD'*) 4184 lt_cv_prog_gnu_ld=yes 4185 ;; 4186*) 4187 lt_cv_prog_gnu_ld=no 4188 ;; 4189esac 4190fi 4191{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4192$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4193with_gnu_ld=$lt_cv_prog_gnu_ld 4194 4195 4196{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4197$as_echo_n "checking for $LD option to reload object files... " >&6; } 4198if test "${lt_cv_ld_reload_flag+set}" = set; then 4199 $as_echo_n "(cached) " >&6 4200else 4201 lt_cv_ld_reload_flag='-r' 4202fi 4203{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4204$as_echo "$lt_cv_ld_reload_flag" >&6; } 4205reload_flag=$lt_cv_ld_reload_flag 4206case $reload_flag in 4207"" | " "*) ;; 4208*) reload_flag=" $reload_flag" ;; 4209esac 4210reload_cmds='$LD$reload_flag -o $output$reload_objs' 4211case $host_os in 4212 darwin*) 4213 if test "$GCC" = yes; then 4214 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4215 else 4216 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4217 fi 4218 ;; 4219esac 4220 4221{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4222$as_echo_n "checking for BSD-compatible nm... " >&6; } 4223if test "${lt_cv_path_NM+set}" = set; then 4224 $as_echo_n "(cached) " >&6 4225else 4226 if test -n "$NM"; then 4227 # Let the user override the test. 4228 lt_cv_path_NM="$NM" 4229else 4230 lt_nm_to_check="${ac_tool_prefix}nm" 4231 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4232 lt_nm_to_check="$lt_nm_to_check nm" 4233 fi 4234 for lt_tmp_nm in $lt_nm_to_check; do 4235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4236 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4237 IFS="$lt_save_ifs" 4238 test -z "$ac_dir" && ac_dir=. 4239 tmp_nm="$ac_dir/$lt_tmp_nm" 4240 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4241 # Check to see if the nm accepts a BSD-compat flag. 4242 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4243 # nm: unknown option "B" ignored 4244 # Tru64's nm complains that /dev/null is an invalid object file 4245 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4246 */dev/null* | *'Invalid file or object type'*) 4247 lt_cv_path_NM="$tmp_nm -B" 4248 break 4249 ;; 4250 *) 4251 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4252 */dev/null*) 4253 lt_cv_path_NM="$tmp_nm -p" 4254 break 4255 ;; 4256 *) 4257 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4258 continue # so that we can try to find one that supports BSD flags 4259 ;; 4260 esac 4261 ;; 4262 esac 4263 fi 4264 done 4265 IFS="$lt_save_ifs" 4266 done 4267 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4268fi 4269fi 4270{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4271$as_echo "$lt_cv_path_NM" >&6; } 4272NM="$lt_cv_path_NM" 4273 4274{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4275$as_echo_n "checking whether ln -s works... " >&6; } 4276LN_S=$as_ln_s 4277if test "$LN_S" = "ln -s"; then 4278 { $as_echo "$as_me:$LINENO: result: yes" >&5 4279$as_echo "yes" >&6; } 4280else 4281 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4282$as_echo "no, using $LN_S" >&6; } 4283fi 4284 4285{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4286$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4287if test "${lt_cv_deplibs_check_method+set}" = set; then 4288 $as_echo_n "(cached) " >&6 4289else 4290 lt_cv_file_magic_cmd='$MAGIC_CMD' 4291lt_cv_file_magic_test_file= 4292lt_cv_deplibs_check_method='unknown' 4293# Need to set the preceding variable on all platforms that support 4294# interlibrary dependencies. 4295# 'none' -- dependencies not supported. 4296# `unknown' -- same as none, but documents that we really don't know. 4297# 'pass_all' -- all dependencies passed with no checks. 4298# 'test_compile' -- check by making test program. 4299# 'file_magic [[regex]]' -- check by looking for files in library path 4300# which responds to the $file_magic_cmd with a given extended regex. 4301# If you have `file' or equivalent on your system and you're not sure 4302# whether `pass_all' will *always* work, you probably want this one. 4303 4304case $host_os in 4305aix[4-9]*) 4306 lt_cv_deplibs_check_method=pass_all 4307 ;; 4308 4309beos*) 4310 lt_cv_deplibs_check_method=pass_all 4311 ;; 4312 4313bsdi[45]*) 4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4315 lt_cv_file_magic_cmd='/usr/bin/file -L' 4316 lt_cv_file_magic_test_file=/shlib/libc.so 4317 ;; 4318 4319cygwin*) 4320 # func_win32_libid is a shell function defined in ltmain.sh 4321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4322 lt_cv_file_magic_cmd='func_win32_libid' 4323 ;; 4324 4325mingw* | pw32*) 4326 # Base MSYS/MinGW do not provide the 'file' command needed by 4327 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4328 # unless we find 'file', for example because we are cross-compiling. 4329 if ( file / ) >/dev/null 2>&1; then 4330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4331 lt_cv_file_magic_cmd='func_win32_libid' 4332 else 4333 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4334 lt_cv_file_magic_cmd='$OBJDUMP -f' 4335 fi 4336 ;; 4337 4338darwin* | rhapsody*) 4339 lt_cv_deplibs_check_method=pass_all 4340 ;; 4341 4342freebsd* | dragonfly*) 4343 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4344 case $host_cpu in 4345 i*86 ) 4346 # Not sure whether the presence of OpenBSD here was a mistake. 4347 # Let's accept both of them until this is cleared up. 4348 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4349 lt_cv_file_magic_cmd=/usr/bin/file 4350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4351 ;; 4352 esac 4353 else 4354 lt_cv_deplibs_check_method=pass_all 4355 fi 4356 ;; 4357 4358gnu*) 4359 lt_cv_deplibs_check_method=pass_all 4360 ;; 4361 4362hpux10.20* | hpux11*) 4363 lt_cv_file_magic_cmd=/usr/bin/file 4364 case $host_cpu in 4365 ia64*) 4366 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4368 ;; 4369 hppa*64*) 4370 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]' 4371 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4372 ;; 4373 *) 4374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4375 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4376 ;; 4377 esac 4378 ;; 4379 4380interix[3-9]*) 4381 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4383 ;; 4384 4385irix5* | irix6* | nonstopux*) 4386 case $LD in 4387 *-32|*"-32 ") libmagic=32-bit;; 4388 *-n32|*"-n32 ") libmagic=N32;; 4389 *-64|*"-64 ") libmagic=64-bit;; 4390 *) libmagic=never-match;; 4391 esac 4392 lt_cv_deplibs_check_method=pass_all 4393 ;; 4394 4395# This must be Linux ELF. 4396linux* | k*bsd*-gnu) 4397 lt_cv_deplibs_check_method=pass_all 4398 ;; 4399 4400netbsd*) 4401 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4403 else 4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4405 fi 4406 ;; 4407 4408newos6*) 4409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4410 lt_cv_file_magic_cmd=/usr/bin/file 4411 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4412 ;; 4413 4414nto-qnx*) 4415 lt_cv_deplibs_check_method=unknown 4416 ;; 4417 4418openbsd*) 4419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4421 else 4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4423 fi 4424 ;; 4425 4426osf3* | osf4* | osf5*) 4427 lt_cv_deplibs_check_method=pass_all 4428 ;; 4429 4430rdos*) 4431 lt_cv_deplibs_check_method=pass_all 4432 ;; 4433 4434solaris*) 4435 lt_cv_deplibs_check_method=pass_all 4436 ;; 4437 4438sysv4 | sysv4.3*) 4439 case $host_vendor in 4440 motorola) 4441 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]' 4442 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4443 ;; 4444 ncr) 4445 lt_cv_deplibs_check_method=pass_all 4446 ;; 4447 sequent) 4448 lt_cv_file_magic_cmd='/bin/file' 4449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4450 ;; 4451 sni) 4452 lt_cv_file_magic_cmd='/bin/file' 4453 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4454 lt_cv_file_magic_test_file=/lib/libc.so 4455 ;; 4456 siemens) 4457 lt_cv_deplibs_check_method=pass_all 4458 ;; 4459 pc) 4460 lt_cv_deplibs_check_method=pass_all 4461 ;; 4462 esac 4463 ;; 4464 4465sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4466 lt_cv_deplibs_check_method=pass_all 4467 ;; 4468esac 4469 4470fi 4471{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4472$as_echo "$lt_cv_deplibs_check_method" >&6; } 4473file_magic_cmd=$lt_cv_file_magic_cmd 4474deplibs_check_method=$lt_cv_deplibs_check_method 4475test -z "$deplibs_check_method" && deplibs_check_method=unknown 4476 4477 4478 4479 4480# If no C compiler was specified, use CC. 4481LTCC=${LTCC-"$CC"} 4482 4483# If no C compiler flags were specified, use CFLAGS. 4484LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4485 4486# Allow CC to be a program name with arguments. 4487compiler=$CC 4488 4489 4490# Check whether --enable-libtool-lock was given. 4491if test "${enable_libtool_lock+set}" = set; then 4492 enableval=$enable_libtool_lock; 4493fi 4494 4495test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4496 4497# Some flags need to be propagated to the compiler or linker for good 4498# libtool support. 4499case $host in 4500ia64-*-hpux*) 4501 # Find out which ABI we are using. 4502 echo 'int i;' > conftest.$ac_ext 4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4504 (eval $ac_compile) 2>&5 4505 ac_status=$? 4506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4507 (exit $ac_status); }; then 4508 case `/usr/bin/file conftest.$ac_objext` in 4509 *ELF-32*) 4510 HPUX_IA64_MODE="32" 4511 ;; 4512 *ELF-64*) 4513 HPUX_IA64_MODE="64" 4514 ;; 4515 esac 4516 fi 4517 rm -rf conftest* 4518 ;; 4519*-*-irix6*) 4520 # Find out which ABI we are using. 4521 echo '#line 4521 "configure"' > conftest.$ac_ext 4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4523 (eval $ac_compile) 2>&5 4524 ac_status=$? 4525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4526 (exit $ac_status); }; then 4527 if test "$lt_cv_prog_gnu_ld" = yes; then 4528 case `/usr/bin/file conftest.$ac_objext` in 4529 *32-bit*) 4530 LD="${LD-ld} -melf32bsmip" 4531 ;; 4532 *N32*) 4533 LD="${LD-ld} -melf32bmipn32" 4534 ;; 4535 *64-bit*) 4536 LD="${LD-ld} -melf64bmip" 4537 ;; 4538 esac 4539 else 4540 case `/usr/bin/file conftest.$ac_objext` in 4541 *32-bit*) 4542 LD="${LD-ld} -32" 4543 ;; 4544 *N32*) 4545 LD="${LD-ld} -n32" 4546 ;; 4547 *64-bit*) 4548 LD="${LD-ld} -64" 4549 ;; 4550 esac 4551 fi 4552 fi 4553 rm -rf conftest* 4554 ;; 4555 4556x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4557s390*-*linux*|sparc*-*linux*) 4558 # Find out which ABI we are using. 4559 echo 'int i;' > conftest.$ac_ext 4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4561 (eval $ac_compile) 2>&5 4562 ac_status=$? 4563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); }; then 4565 case `/usr/bin/file conftest.o` in 4566 *32-bit*) 4567 case $host in 4568 x86_64-*kfreebsd*-gnu) 4569 LD="${LD-ld} -m elf_i386_fbsd" 4570 ;; 4571 x86_64-*linux*) 4572 LD="${LD-ld} -m elf_i386" 4573 ;; 4574 ppc64-*linux*|powerpc64-*linux*) 4575 LD="${LD-ld} -m elf32ppclinux" 4576 ;; 4577 s390x-*linux*) 4578 LD="${LD-ld} -m elf_s390" 4579 ;; 4580 sparc64-*linux*) 4581 LD="${LD-ld} -m elf32_sparc" 4582 ;; 4583 esac 4584 ;; 4585 *64-bit*) 4586 case $host in 4587 x86_64-*kfreebsd*-gnu) 4588 LD="${LD-ld} -m elf_x86_64_fbsd" 4589 ;; 4590 x86_64-*linux*) 4591 LD="${LD-ld} -m elf_x86_64" 4592 ;; 4593 ppc*-*linux*|powerpc*-*linux*) 4594 LD="${LD-ld} -m elf64ppc" 4595 ;; 4596 s390*-*linux*) 4597 LD="${LD-ld} -m elf64_s390" 4598 ;; 4599 sparc*-*linux*) 4600 LD="${LD-ld} -m elf64_sparc" 4601 ;; 4602 esac 4603 ;; 4604 esac 4605 fi 4606 rm -rf conftest* 4607 ;; 4608 4609*-*-sco3.2v5*) 4610 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4611 SAVE_CFLAGS="$CFLAGS" 4612 CFLAGS="$CFLAGS -belf" 4613 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4614$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4615if test "${lt_cv_cc_needs_belf+set}" = set; then 4616 $as_echo_n "(cached) " >&6 4617else 4618 ac_ext=c 4619ac_cpp='$CPP $CPPFLAGS' 4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4622ac_compiler_gnu=$ac_cv_c_compiler_gnu 4623 4624 cat >conftest.$ac_ext <<_ACEOF 4625/* confdefs.h. */ 4626_ACEOF 4627cat confdefs.h >>conftest.$ac_ext 4628cat >>conftest.$ac_ext <<_ACEOF 4629/* end confdefs.h. */ 4630 4631int 4632main () 4633{ 4634 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639rm -f conftest.$ac_objext conftest$ac_exeext 4640if { (ac_try="$ac_link" 4641case "(($ac_try" in 4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4643 *) ac_try_echo=$ac_try;; 4644esac 4645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4646$as_echo "$ac_try_echo") >&5 4647 (eval "$ac_link") 2>conftest.er1 4648 ac_status=$? 4649 grep -v '^ *+' conftest.er1 >conftest.err 4650 rm -f conftest.er1 4651 cat conftest.err >&5 4652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); } && { 4654 test -z "$ac_c_werror_flag" || 4655 test ! -s conftest.err 4656 } && test -s conftest$ac_exeext && { 4657 test "$cross_compiling" = yes || 4658 $as_test_x conftest$ac_exeext 4659 }; then 4660 lt_cv_cc_needs_belf=yes 4661else 4662 $as_echo "$as_me: failed program was:" >&5 4663sed 's/^/| /' conftest.$ac_ext >&5 4664 4665 lt_cv_cc_needs_belf=no 4666fi 4667 4668rm -rf conftest.dSYM 4669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4670 conftest$ac_exeext conftest.$ac_ext 4671 ac_ext=c 4672ac_cpp='$CPP $CPPFLAGS' 4673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4675ac_compiler_gnu=$ac_cv_c_compiler_gnu 4676 4677fi 4678{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4679$as_echo "$lt_cv_cc_needs_belf" >&6; } 4680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4682 CFLAGS="$SAVE_CFLAGS" 4683 fi 4684 ;; 4685sparc*-*solaris*) 4686 # Find out which ABI we are using. 4687 echo 'int i;' > conftest.$ac_ext 4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4689 (eval $ac_compile) 2>&5 4690 ac_status=$? 4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); }; then 4693 case `/usr/bin/file conftest.o` in 4694 *64-bit*) 4695 case $lt_cv_prog_gnu_ld in 4696 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4697 *) 4698 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4699 LD="${LD-ld} -64" 4700 fi 4701 ;; 4702 esac 4703 ;; 4704 esac 4705 fi 4706 rm -rf conftest* 4707 ;; 4708 4709 4710esac 4711 4712need_locks="$enable_libtool_lock" 4713 4714 4715ac_ext=c 4716ac_cpp='$CPP $CPPFLAGS' 4717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4719ac_compiler_gnu=$ac_cv_c_compiler_gnu 4720{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4721$as_echo_n "checking how to run the C preprocessor... " >&6; } 4722# On Suns, sometimes $CPP names a directory. 4723if test -n "$CPP" && test -d "$CPP"; then 4724 CPP= 4725fi 4726if test -z "$CPP"; then 4727 if test "${ac_cv_prog_CPP+set}" = set; then 4728 $as_echo_n "(cached) " >&6 4729else 4730 # Double quotes because CPP needs to be expanded 4731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4732 do 4733 ac_preproc_ok=false 4734for ac_c_preproc_warn_flag in '' yes 4735do 4736 # Use a header file that comes with gcc, so configuring glibc 4737 # with a fresh cross-compiler works. 4738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4739 # <limits.h> exists even on freestanding compilers. 4740 # On the NeXT, cc -E runs the code through the compiler's parser, 4741 # not just through cpp. "Syntax error" is here to catch this case. 4742 cat >conftest.$ac_ext <<_ACEOF 4743/* confdefs.h. */ 4744_ACEOF 4745cat confdefs.h >>conftest.$ac_ext 4746cat >>conftest.$ac_ext <<_ACEOF 4747/* end confdefs.h. */ 4748#ifdef __STDC__ 4749# include <limits.h> 4750#else 4751# include <assert.h> 4752#endif 4753 Syntax error 4754_ACEOF 4755if { (ac_try="$ac_cpp conftest.$ac_ext" 4756case "(($ac_try" in 4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4758 *) ac_try_echo=$ac_try;; 4759esac 4760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4761$as_echo "$ac_try_echo") >&5 4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4763 ac_status=$? 4764 grep -v '^ *+' conftest.er1 >conftest.err 4765 rm -f conftest.er1 4766 cat conftest.err >&5 4767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); } >/dev/null && { 4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4770 test ! -s conftest.err 4771 }; then 4772 : 4773else 4774 $as_echo "$as_me: failed program was:" >&5 4775sed 's/^/| /' conftest.$ac_ext >&5 4776 4777 # Broken: fails on valid input. 4778continue 4779fi 4780 4781rm -f conftest.err conftest.$ac_ext 4782 4783 # OK, works on sane cases. Now check whether nonexistent headers 4784 # can be detected and how. 4785 cat >conftest.$ac_ext <<_ACEOF 4786/* confdefs.h. */ 4787_ACEOF 4788cat confdefs.h >>conftest.$ac_ext 4789cat >>conftest.$ac_ext <<_ACEOF 4790/* end confdefs.h. */ 4791#include <ac_nonexistent.h> 4792_ACEOF 4793if { (ac_try="$ac_cpp conftest.$ac_ext" 4794case "(($ac_try" in 4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4796 *) ac_try_echo=$ac_try;; 4797esac 4798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4799$as_echo "$ac_try_echo") >&5 4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4801 ac_status=$? 4802 grep -v '^ *+' conftest.er1 >conftest.err 4803 rm -f conftest.er1 4804 cat conftest.err >&5 4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); } >/dev/null && { 4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4808 test ! -s conftest.err 4809 }; then 4810 # Broken: success on invalid input. 4811continue 4812else 4813 $as_echo "$as_me: failed program was:" >&5 4814sed 's/^/| /' conftest.$ac_ext >&5 4815 4816 # Passes both tests. 4817ac_preproc_ok=: 4818break 4819fi 4820 4821rm -f conftest.err conftest.$ac_ext 4822 4823done 4824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4825rm -f conftest.err conftest.$ac_ext 4826if $ac_preproc_ok; then 4827 break 4828fi 4829 4830 done 4831 ac_cv_prog_CPP=$CPP 4832 4833fi 4834 CPP=$ac_cv_prog_CPP 4835else 4836 ac_cv_prog_CPP=$CPP 4837fi 4838{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4839$as_echo "$CPP" >&6; } 4840ac_preproc_ok=false 4841for ac_c_preproc_warn_flag in '' yes 4842do 4843 # Use a header file that comes with gcc, so configuring glibc 4844 # with a fresh cross-compiler works. 4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4846 # <limits.h> exists even on freestanding compilers. 4847 # On the NeXT, cc -E runs the code through the compiler's parser, 4848 # not just through cpp. "Syntax error" is here to catch this case. 4849 cat >conftest.$ac_ext <<_ACEOF 4850/* confdefs.h. */ 4851_ACEOF 4852cat confdefs.h >>conftest.$ac_ext 4853cat >>conftest.$ac_ext <<_ACEOF 4854/* end confdefs.h. */ 4855#ifdef __STDC__ 4856# include <limits.h> 4857#else 4858# include <assert.h> 4859#endif 4860 Syntax error 4861_ACEOF 4862if { (ac_try="$ac_cpp conftest.$ac_ext" 4863case "(($ac_try" in 4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4865 *) ac_try_echo=$ac_try;; 4866esac 4867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4868$as_echo "$ac_try_echo") >&5 4869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4870 ac_status=$? 4871 grep -v '^ *+' conftest.er1 >conftest.err 4872 rm -f conftest.er1 4873 cat conftest.err >&5 4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 (exit $ac_status); } >/dev/null && { 4876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4877 test ! -s conftest.err 4878 }; then 4879 : 4880else 4881 $as_echo "$as_me: failed program was:" >&5 4882sed 's/^/| /' conftest.$ac_ext >&5 4883 4884 # Broken: fails on valid input. 4885continue 4886fi 4887 4888rm -f conftest.err conftest.$ac_ext 4889 4890 # OK, works on sane cases. Now check whether nonexistent headers 4891 # can be detected and how. 4892 cat >conftest.$ac_ext <<_ACEOF 4893/* confdefs.h. */ 4894_ACEOF 4895cat confdefs.h >>conftest.$ac_ext 4896cat >>conftest.$ac_ext <<_ACEOF 4897/* end confdefs.h. */ 4898#include <ac_nonexistent.h> 4899_ACEOF 4900if { (ac_try="$ac_cpp conftest.$ac_ext" 4901case "(($ac_try" in 4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4903 *) ac_try_echo=$ac_try;; 4904esac 4905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4906$as_echo "$ac_try_echo") >&5 4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4908 ac_status=$? 4909 grep -v '^ *+' conftest.er1 >conftest.err 4910 rm -f conftest.er1 4911 cat conftest.err >&5 4912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4913 (exit $ac_status); } >/dev/null && { 4914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4915 test ! -s conftest.err 4916 }; then 4917 # Broken: success on invalid input. 4918continue 4919else 4920 $as_echo "$as_me: failed program was:" >&5 4921sed 's/^/| /' conftest.$ac_ext >&5 4922 4923 # Passes both tests. 4924ac_preproc_ok=: 4925break 4926fi 4927 4928rm -f conftest.err conftest.$ac_ext 4929 4930done 4931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4932rm -f conftest.err conftest.$ac_ext 4933if $ac_preproc_ok; then 4934 : 4935else 4936 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4938{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4939See \`config.log' for more details." >&5 4940$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4941See \`config.log' for more details." >&2;} 4942 { (exit 1); exit 1; }; }; } 4943fi 4944 4945ac_ext=c 4946ac_cpp='$CPP $CPPFLAGS' 4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4949ac_compiler_gnu=$ac_cv_c_compiler_gnu 4950 4951 4952{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4953$as_echo_n "checking for ANSI C header files... " >&6; } 4954if test "${ac_cv_header_stdc+set}" = set; then 4955 $as_echo_n "(cached) " >&6 4956else 4957 cat >conftest.$ac_ext <<_ACEOF 4958/* confdefs.h. */ 4959_ACEOF 4960cat confdefs.h >>conftest.$ac_ext 4961cat >>conftest.$ac_ext <<_ACEOF 4962/* end confdefs.h. */ 4963#include <stdlib.h> 4964#include <stdarg.h> 4965#include <string.h> 4966#include <float.h> 4967 4968int 4969main () 4970{ 4971 4972 ; 4973 return 0; 4974} 4975_ACEOF 4976rm -f conftest.$ac_objext 4977if { (ac_try="$ac_compile" 4978case "(($ac_try" in 4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4980 *) ac_try_echo=$ac_try;; 4981esac 4982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4983$as_echo "$ac_try_echo") >&5 4984 (eval "$ac_compile") 2>conftest.er1 4985 ac_status=$? 4986 grep -v '^ *+' conftest.er1 >conftest.err 4987 rm -f conftest.er1 4988 cat conftest.err >&5 4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4990 (exit $ac_status); } && { 4991 test -z "$ac_c_werror_flag" || 4992 test ! -s conftest.err 4993 } && test -s conftest.$ac_objext; then 4994 ac_cv_header_stdc=yes 4995else 4996 $as_echo "$as_me: failed program was:" >&5 4997sed 's/^/| /' conftest.$ac_ext >&5 4998 4999 ac_cv_header_stdc=no 5000fi 5001 5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5003 5004if test $ac_cv_header_stdc = yes; then 5005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5006 cat >conftest.$ac_ext <<_ACEOF 5007/* confdefs.h. */ 5008_ACEOF 5009cat confdefs.h >>conftest.$ac_ext 5010cat >>conftest.$ac_ext <<_ACEOF 5011/* end confdefs.h. */ 5012#include <string.h> 5013 5014_ACEOF 5015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5016 $EGREP "memchr" >/dev/null 2>&1; then 5017 : 5018else 5019 ac_cv_header_stdc=no 5020fi 5021rm -f conftest* 5022 5023fi 5024 5025if test $ac_cv_header_stdc = yes; then 5026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5027 cat >conftest.$ac_ext <<_ACEOF 5028/* confdefs.h. */ 5029_ACEOF 5030cat confdefs.h >>conftest.$ac_ext 5031cat >>conftest.$ac_ext <<_ACEOF 5032/* end confdefs.h. */ 5033#include <stdlib.h> 5034 5035_ACEOF 5036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5037 $EGREP "free" >/dev/null 2>&1; then 5038 : 5039else 5040 ac_cv_header_stdc=no 5041fi 5042rm -f conftest* 5043 5044fi 5045 5046if test $ac_cv_header_stdc = yes; then 5047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5048 if test "$cross_compiling" = yes; then 5049 : 5050else 5051 cat >conftest.$ac_ext <<_ACEOF 5052/* confdefs.h. */ 5053_ACEOF 5054cat confdefs.h >>conftest.$ac_ext 5055cat >>conftest.$ac_ext <<_ACEOF 5056/* end confdefs.h. */ 5057#include <ctype.h> 5058#include <stdlib.h> 5059#if ((' ' & 0x0FF) == 0x020) 5060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5062#else 5063# define ISLOWER(c) \ 5064 (('a' <= (c) && (c) <= 'i') \ 5065 || ('j' <= (c) && (c) <= 'r') \ 5066 || ('s' <= (c) && (c) <= 'z')) 5067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5068#endif 5069 5070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5071int 5072main () 5073{ 5074 int i; 5075 for (i = 0; i < 256; i++) 5076 if (XOR (islower (i), ISLOWER (i)) 5077 || toupper (i) != TOUPPER (i)) 5078 return 2; 5079 return 0; 5080} 5081_ACEOF 5082rm -f conftest$ac_exeext 5083if { (ac_try="$ac_link" 5084case "(($ac_try" in 5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5086 *) ac_try_echo=$ac_try;; 5087esac 5088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5089$as_echo "$ac_try_echo") >&5 5090 (eval "$ac_link") 2>&5 5091 ac_status=$? 5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5094 { (case "(($ac_try" in 5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5096 *) ac_try_echo=$ac_try;; 5097esac 5098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5099$as_echo "$ac_try_echo") >&5 5100 (eval "$ac_try") 2>&5 5101 ac_status=$? 5102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5103 (exit $ac_status); }; }; then 5104 : 5105else 5106 $as_echo "$as_me: program exited with status $ac_status" >&5 5107$as_echo "$as_me: failed program was:" >&5 5108sed 's/^/| /' conftest.$ac_ext >&5 5109 5110( exit $ac_status ) 5111ac_cv_header_stdc=no 5112fi 5113rm -rf conftest.dSYM 5114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5115fi 5116 5117 5118fi 5119fi 5120{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5121$as_echo "$ac_cv_header_stdc" >&6; } 5122if test $ac_cv_header_stdc = yes; then 5123 5124cat >>confdefs.h <<\_ACEOF 5125#define STDC_HEADERS 1 5126_ACEOF 5127 5128fi 5129 5130# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5141 inttypes.h stdint.h unistd.h 5142do 5143as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5144{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5145$as_echo_n "checking for $ac_header... " >&6; } 5146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5147 $as_echo_n "(cached) " >&6 5148else 5149 cat >conftest.$ac_ext <<_ACEOF 5150/* confdefs.h. */ 5151_ACEOF 5152cat confdefs.h >>conftest.$ac_ext 5153cat >>conftest.$ac_ext <<_ACEOF 5154/* end confdefs.h. */ 5155$ac_includes_default 5156 5157#include <$ac_header> 5158_ACEOF 5159rm -f conftest.$ac_objext 5160if { (ac_try="$ac_compile" 5161case "(($ac_try" in 5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5163 *) ac_try_echo=$ac_try;; 5164esac 5165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5166$as_echo "$ac_try_echo") >&5 5167 (eval "$ac_compile") 2>conftest.er1 5168 ac_status=$? 5169 grep -v '^ *+' conftest.er1 >conftest.err 5170 rm -f conftest.er1 5171 cat conftest.err >&5 5172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5173 (exit $ac_status); } && { 5174 test -z "$ac_c_werror_flag" || 5175 test ! -s conftest.err 5176 } && test -s conftest.$ac_objext; then 5177 eval "$as_ac_Header=yes" 5178else 5179 $as_echo "$as_me: failed program was:" >&5 5180sed 's/^/| /' conftest.$ac_ext >&5 5181 5182 eval "$as_ac_Header=no" 5183fi 5184 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5186fi 5187ac_res=`eval 'as_val=${'$as_ac_Header'} 5188 $as_echo "$as_val"'` 5189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5190$as_echo "$ac_res" >&6; } 5191as_val=`eval 'as_val=${'$as_ac_Header'} 5192 $as_echo "$as_val"'` 5193 if test "x$as_val" = x""yes; then 5194 cat >>confdefs.h <<_ACEOF 5195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5196_ACEOF 5197 5198fi 5199 5200done 5201 5202 5203 5204for ac_header in dlfcn.h 5205do 5206as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5209$as_echo_n "checking for $ac_header... " >&6; } 5210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5211 $as_echo_n "(cached) " >&6 5212fi 5213ac_res=`eval 'as_val=${'$as_ac_Header'} 5214 $as_echo "$as_val"'` 5215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5216$as_echo "$ac_res" >&6; } 5217else 5218 # Is the header compilable? 5219{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5220$as_echo_n "checking $ac_header usability... " >&6; } 5221cat >conftest.$ac_ext <<_ACEOF 5222/* confdefs.h. */ 5223_ACEOF 5224cat confdefs.h >>conftest.$ac_ext 5225cat >>conftest.$ac_ext <<_ACEOF 5226/* end confdefs.h. */ 5227$ac_includes_default 5228#include <$ac_header> 5229_ACEOF 5230rm -f conftest.$ac_objext 5231if { (ac_try="$ac_compile" 5232case "(($ac_try" in 5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5234 *) ac_try_echo=$ac_try;; 5235esac 5236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5237$as_echo "$ac_try_echo") >&5 5238 (eval "$ac_compile") 2>conftest.er1 5239 ac_status=$? 5240 grep -v '^ *+' conftest.er1 >conftest.err 5241 rm -f conftest.er1 5242 cat conftest.err >&5 5243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5244 (exit $ac_status); } && { 5245 test -z "$ac_c_werror_flag" || 5246 test ! -s conftest.err 5247 } && test -s conftest.$ac_objext; then 5248 ac_header_compiler=yes 5249else 5250 $as_echo "$as_me: failed program was:" >&5 5251sed 's/^/| /' conftest.$ac_ext >&5 5252 5253 ac_header_compiler=no 5254fi 5255 5256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5257{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5258$as_echo "$ac_header_compiler" >&6; } 5259 5260# Is the header present? 5261{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5262$as_echo_n "checking $ac_header presence... " >&6; } 5263cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269#include <$ac_header> 5270_ACEOF 5271if { (ac_try="$ac_cpp conftest.$ac_ext" 5272case "(($ac_try" in 5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5274 *) ac_try_echo=$ac_try;; 5275esac 5276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5277$as_echo "$ac_try_echo") >&5 5278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5279 ac_status=$? 5280 grep -v '^ *+' conftest.er1 >conftest.err 5281 rm -f conftest.er1 5282 cat conftest.err >&5 5283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5284 (exit $ac_status); } >/dev/null && { 5285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5286 test ! -s conftest.err 5287 }; then 5288 ac_header_preproc=yes 5289else 5290 $as_echo "$as_me: failed program was:" >&5 5291sed 's/^/| /' conftest.$ac_ext >&5 5292 5293 ac_header_preproc=no 5294fi 5295 5296rm -f conftest.err conftest.$ac_ext 5297{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5298$as_echo "$ac_header_preproc" >&6; } 5299 5300# So? What about this header? 5301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5302 yes:no: ) 5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5304$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5306$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5307 ac_header_preproc=yes 5308 ;; 5309 no:yes:* ) 5310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5311$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5313$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5315$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5317$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5319$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5321$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5322 ( cat <<\_ASBOX 5323## ---------------------------------------------------------------------- ## 5324## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5325## ---------------------------------------------------------------------- ## 5326_ASBOX 5327 ) | sed "s/^/$as_me: WARNING: /" >&2 5328 ;; 5329esac 5330{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5331$as_echo_n "checking for $ac_header... " >&6; } 5332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5333 $as_echo_n "(cached) " >&6 5334else 5335 eval "$as_ac_Header=\$ac_header_preproc" 5336fi 5337ac_res=`eval 'as_val=${'$as_ac_Header'} 5338 $as_echo "$as_val"'` 5339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5340$as_echo "$ac_res" >&6; } 5341 5342fi 5343as_val=`eval 'as_val=${'$as_ac_Header'} 5344 $as_echo "$as_val"'` 5345 if test "x$as_val" = x""yes; then 5346 cat >>confdefs.h <<_ACEOF 5347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5348_ACEOF 5349 5350fi 5351 5352done 5353 5354ac_ext=cpp 5355ac_cpp='$CXXCPP $CPPFLAGS' 5356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5359if test -z "$CXX"; then 5360 if test -n "$CCC"; then 5361 CXX=$CCC 5362 else 5363 if test -n "$ac_tool_prefix"; then 5364 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5365 do 5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5367set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5369$as_echo_n "checking for $ac_word... " >&6; } 5370if test "${ac_cv_prog_CXX+set}" = set; then 5371 $as_echo_n "(cached) " >&6 5372else 5373 if test -n "$CXX"; then 5374 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5375else 5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5377for as_dir in $PATH 5378do 5379 IFS=$as_save_IFS 5380 test -z "$as_dir" && as_dir=. 5381 for ac_exec_ext in '' $ac_executable_extensions; do 5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5383 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5385 break 2 5386 fi 5387done 5388done 5389IFS=$as_save_IFS 5390 5391fi 5392fi 5393CXX=$ac_cv_prog_CXX 5394if test -n "$CXX"; then 5395 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5396$as_echo "$CXX" >&6; } 5397else 5398 { $as_echo "$as_me:$LINENO: result: no" >&5 5399$as_echo "no" >&6; } 5400fi 5401 5402 5403 test -n "$CXX" && break 5404 done 5405fi 5406if test -z "$CXX"; then 5407 ac_ct_CXX=$CXX 5408 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5409do 5410 # Extract the first word of "$ac_prog", so it can be a program name with args. 5411set dummy $ac_prog; ac_word=$2 5412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5413$as_echo_n "checking for $ac_word... " >&6; } 5414if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5415 $as_echo_n "(cached) " >&6 5416else 5417 if test -n "$ac_ct_CXX"; then 5418 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5419else 5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5427 ac_cv_prog_ac_ct_CXX="$ac_prog" 5428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5429 break 2 5430 fi 5431done 5432done 5433IFS=$as_save_IFS 5434 5435fi 5436fi 5437ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5438if test -n "$ac_ct_CXX"; then 5439 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5440$as_echo "$ac_ct_CXX" >&6; } 5441else 5442 { $as_echo "$as_me:$LINENO: result: no" >&5 5443$as_echo "no" >&6; } 5444fi 5445 5446 5447 test -n "$ac_ct_CXX" && break 5448done 5449 5450 if test "x$ac_ct_CXX" = x; then 5451 CXX="g++" 5452 else 5453 case $cross_compiling:$ac_tool_warned in 5454yes:) 5455{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5457ac_tool_warned=yes ;; 5458esac 5459 CXX=$ac_ct_CXX 5460 fi 5461fi 5462 5463 fi 5464fi 5465# Provide some information about the compiler. 5466$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5467set X $ac_compile 5468ac_compiler=$2 5469{ (ac_try="$ac_compiler --version >&5" 5470case "(($ac_try" in 5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5472 *) ac_try_echo=$ac_try;; 5473esac 5474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5475$as_echo "$ac_try_echo") >&5 5476 (eval "$ac_compiler --version >&5") 2>&5 5477 ac_status=$? 5478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } 5480{ (ac_try="$ac_compiler -v >&5" 5481case "(($ac_try" in 5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5483 *) ac_try_echo=$ac_try;; 5484esac 5485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5486$as_echo "$ac_try_echo") >&5 5487 (eval "$ac_compiler -v >&5") 2>&5 5488 ac_status=$? 5489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5490 (exit $ac_status); } 5491{ (ac_try="$ac_compiler -V >&5" 5492case "(($ac_try" in 5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5494 *) ac_try_echo=$ac_try;; 5495esac 5496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5497$as_echo "$ac_try_echo") >&5 5498 (eval "$ac_compiler -V >&5") 2>&5 5499 ac_status=$? 5500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } 5502 5503{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5504$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5506 $as_echo_n "(cached) " >&6 5507else 5508 cat >conftest.$ac_ext <<_ACEOF 5509/* confdefs.h. */ 5510_ACEOF 5511cat confdefs.h >>conftest.$ac_ext 5512cat >>conftest.$ac_ext <<_ACEOF 5513/* end confdefs.h. */ 5514 5515int 5516main () 5517{ 5518#ifndef __GNUC__ 5519 choke me 5520#endif 5521 5522 ; 5523 return 0; 5524} 5525_ACEOF 5526rm -f conftest.$ac_objext 5527if { (ac_try="$ac_compile" 5528case "(($ac_try" in 5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5530 *) ac_try_echo=$ac_try;; 5531esac 5532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5533$as_echo "$ac_try_echo") >&5 5534 (eval "$ac_compile") 2>conftest.er1 5535 ac_status=$? 5536 grep -v '^ *+' conftest.er1 >conftest.err 5537 rm -f conftest.er1 5538 cat conftest.err >&5 5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); } && { 5541 test -z "$ac_cxx_werror_flag" || 5542 test ! -s conftest.err 5543 } && test -s conftest.$ac_objext; then 5544 ac_compiler_gnu=yes 5545else 5546 $as_echo "$as_me: failed program was:" >&5 5547sed 's/^/| /' conftest.$ac_ext >&5 5548 5549 ac_compiler_gnu=no 5550fi 5551 5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5553ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5554 5555fi 5556{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5557$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5558if test $ac_compiler_gnu = yes; then 5559 GXX=yes 5560else 5561 GXX= 5562fi 5563ac_test_CXXFLAGS=${CXXFLAGS+set} 5564ac_save_CXXFLAGS=$CXXFLAGS 5565{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5566$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5567if test "${ac_cv_prog_cxx_g+set}" = set; then 5568 $as_echo_n "(cached) " >&6 5569else 5570 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5571 ac_cxx_werror_flag=yes 5572 ac_cv_prog_cxx_g=no 5573 CXXFLAGS="-g" 5574 cat >conftest.$ac_ext <<_ACEOF 5575/* confdefs.h. */ 5576_ACEOF 5577cat confdefs.h >>conftest.$ac_ext 5578cat >>conftest.$ac_ext <<_ACEOF 5579/* end confdefs.h. */ 5580 5581int 5582main () 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589rm -f conftest.$ac_objext 5590if { (ac_try="$ac_compile" 5591case "(($ac_try" in 5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5593 *) ac_try_echo=$ac_try;; 5594esac 5595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5596$as_echo "$ac_try_echo") >&5 5597 (eval "$ac_compile") 2>conftest.er1 5598 ac_status=$? 5599 grep -v '^ *+' conftest.er1 >conftest.err 5600 rm -f conftest.er1 5601 cat conftest.err >&5 5602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); } && { 5604 test -z "$ac_cxx_werror_flag" || 5605 test ! -s conftest.err 5606 } && test -s conftest.$ac_objext; then 5607 ac_cv_prog_cxx_g=yes 5608else 5609 $as_echo "$as_me: failed program was:" >&5 5610sed 's/^/| /' conftest.$ac_ext >&5 5611 5612 CXXFLAGS="" 5613 cat >conftest.$ac_ext <<_ACEOF 5614/* confdefs.h. */ 5615_ACEOF 5616cat confdefs.h >>conftest.$ac_ext 5617cat >>conftest.$ac_ext <<_ACEOF 5618/* end confdefs.h. */ 5619 5620int 5621main () 5622{ 5623 5624 ; 5625 return 0; 5626} 5627_ACEOF 5628rm -f conftest.$ac_objext 5629if { (ac_try="$ac_compile" 5630case "(($ac_try" in 5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632 *) ac_try_echo=$ac_try;; 5633esac 5634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5635$as_echo "$ac_try_echo") >&5 5636 (eval "$ac_compile") 2>conftest.er1 5637 ac_status=$? 5638 grep -v '^ *+' conftest.er1 >conftest.err 5639 rm -f conftest.er1 5640 cat conftest.err >&5 5641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); } && { 5643 test -z "$ac_cxx_werror_flag" || 5644 test ! -s conftest.err 5645 } && test -s conftest.$ac_objext; then 5646 : 5647else 5648 $as_echo "$as_me: failed program was:" >&5 5649sed 's/^/| /' conftest.$ac_ext >&5 5650 5651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5652 CXXFLAGS="-g" 5653 cat >conftest.$ac_ext <<_ACEOF 5654/* confdefs.h. */ 5655_ACEOF 5656cat confdefs.h >>conftest.$ac_ext 5657cat >>conftest.$ac_ext <<_ACEOF 5658/* end confdefs.h. */ 5659 5660int 5661main () 5662{ 5663 5664 ; 5665 return 0; 5666} 5667_ACEOF 5668rm -f conftest.$ac_objext 5669if { (ac_try="$ac_compile" 5670case "(($ac_try" in 5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5672 *) ac_try_echo=$ac_try;; 5673esac 5674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5675$as_echo "$ac_try_echo") >&5 5676 (eval "$ac_compile") 2>conftest.er1 5677 ac_status=$? 5678 grep -v '^ *+' conftest.er1 >conftest.err 5679 rm -f conftest.er1 5680 cat conftest.err >&5 5681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5682 (exit $ac_status); } && { 5683 test -z "$ac_cxx_werror_flag" || 5684 test ! -s conftest.err 5685 } && test -s conftest.$ac_objext; then 5686 ac_cv_prog_cxx_g=yes 5687else 5688 $as_echo "$as_me: failed program was:" >&5 5689sed 's/^/| /' conftest.$ac_ext >&5 5690 5691 5692fi 5693 5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5695fi 5696 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5698fi 5699 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5701 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5702fi 5703{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5704$as_echo "$ac_cv_prog_cxx_g" >&6; } 5705if test "$ac_test_CXXFLAGS" = set; then 5706 CXXFLAGS=$ac_save_CXXFLAGS 5707elif test $ac_cv_prog_cxx_g = yes; then 5708 if test "$GXX" = yes; then 5709 CXXFLAGS="-g -O2" 5710 else 5711 CXXFLAGS="-g" 5712 fi 5713else 5714 if test "$GXX" = yes; then 5715 CXXFLAGS="-O2" 5716 else 5717 CXXFLAGS= 5718 fi 5719fi 5720ac_ext=cpp 5721ac_cpp='$CXXCPP $CPPFLAGS' 5722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5725 5726depcc="$CXX" am_compiler_list= 5727 5728{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5729$as_echo_n "checking dependency style of $depcc... " >&6; } 5730if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5731 $as_echo_n "(cached) " >&6 5732else 5733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5734 # We make a subdir and do the tests there. Otherwise we can end up 5735 # making bogus files that we don't know about and never remove. For 5736 # instance it was reported that on HP-UX the gcc test will end up 5737 # making a dummy file named `D' -- because `-MD' means `put the output 5738 # in D'. 5739 mkdir conftest.dir 5740 # Copy depcomp to subdir because otherwise we won't find it if we're 5741 # using a relative directory. 5742 cp "$am_depcomp" conftest.dir 5743 cd conftest.dir 5744 # We will build objects and dependencies in a subdirectory because 5745 # it helps to detect inapplicable dependency modes. For instance 5746 # both Tru64's cc and ICC support -MD to output dependencies as a 5747 # side effect of compilation, but ICC will put the dependencies in 5748 # the current directory while Tru64 will put them in the object 5749 # directory. 5750 mkdir sub 5751 5752 am_cv_CXX_dependencies_compiler_type=none 5753 if test "$am_compiler_list" = ""; then 5754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5755 fi 5756 am__universal=false 5757 case " $depcc " in #( 5758 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5759 esac 5760 5761 for depmode in $am_compiler_list; do 5762 # Setup a source with many dependencies, because some compilers 5763 # like to wrap large dependency lists on column 80 (with \), and 5764 # we should not choose a depcomp mode which is confused by this. 5765 # 5766 # We need to recreate these files for each test, as the compiler may 5767 # overwrite some of them when testing with obscure command lines. 5768 # This happens at least with the AIX C compiler. 5769 : > sub/conftest.c 5770 for i in 1 2 3 4 5 6; do 5771 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5773 # Solaris 8's {/usr,}/bin/sh. 5774 touch sub/conftst$i.h 5775 done 5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5777 5778 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5779 # mode. It turns out that the SunPro C++ compiler does not properly 5780 # handle `-M -o', and we need to detect this. Also, some Intel 5781 # versions had trouble with output in subdirs 5782 am__obj=sub/conftest.${OBJEXT-o} 5783 am__minus_obj="-o $am__obj" 5784 case $depmode in 5785 gcc) 5786 # This depmode causes a compiler race in universal mode. 5787 test "$am__universal" = false || continue 5788 ;; 5789 nosideeffect) 5790 # after this tag, mechanisms are not by side-effect, so they'll 5791 # only be used when explicitly requested 5792 if test "x$enable_dependency_tracking" = xyes; then 5793 continue 5794 else 5795 break 5796 fi 5797 ;; 5798 msvisualcpp | msvcmsys) 5799 # This compiler won't grok `-c -o', but also, the minuso test has 5800 # not run yet. These depmodes are late enough in the game, and 5801 # so weak that their functioning should not be impacted. 5802 am__obj=conftest.${OBJEXT-o} 5803 am__minus_obj= 5804 ;; 5805 none) break ;; 5806 esac 5807 if depmode=$depmode \ 5808 source=sub/conftest.c object=$am__obj \ 5809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5811 >/dev/null 2>conftest.err && 5812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5816 # icc doesn't choke on unknown options, it will just issue warnings 5817 # or remarks (even with -Werror). So we grep stderr for any message 5818 # that says an option was ignored or not supported. 5819 # When given -MP, icc 7.0 and 7.1 complain thusly: 5820 # icc: Command line warning: ignoring option '-M'; no argument required 5821 # The diagnosis changed in icc 8.0: 5822 # icc: Command line remark: option '-MP' not supported 5823 if (grep 'ignoring option' conftest.err || 5824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5825 am_cv_CXX_dependencies_compiler_type=$depmode 5826 break 5827 fi 5828 fi 5829 done 5830 5831 cd .. 5832 rm -rf conftest.dir 5833else 5834 am_cv_CXX_dependencies_compiler_type=none 5835fi 5836 5837fi 5838{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5839$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5840CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5841 5842 if 5843 test "x$enable_dependency_tracking" != xno \ 5844 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5845 am__fastdepCXX_TRUE= 5846 am__fastdepCXX_FALSE='#' 5847else 5848 am__fastdepCXX_TRUE='#' 5849 am__fastdepCXX_FALSE= 5850fi 5851 5852 5853 5854 5855if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5857 (test "X$CXX" != "Xg++"))) ; then 5858 ac_ext=cpp 5859ac_cpp='$CXXCPP $CPPFLAGS' 5860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5863{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5864$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5865if test -z "$CXXCPP"; then 5866 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5867 $as_echo_n "(cached) " >&6 5868else 5869 # Double quotes because CXXCPP needs to be expanded 5870 for CXXCPP in "$CXX -E" "/lib/cpp" 5871 do 5872 ac_preproc_ok=false 5873for ac_cxx_preproc_warn_flag in '' yes 5874do 5875 # Use a header file that comes with gcc, so configuring glibc 5876 # with a fresh cross-compiler works. 5877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5878 # <limits.h> exists even on freestanding compilers. 5879 # On the NeXT, cc -E runs the code through the compiler's parser, 5880 # not just through cpp. "Syntax error" is here to catch this case. 5881 cat >conftest.$ac_ext <<_ACEOF 5882/* confdefs.h. */ 5883_ACEOF 5884cat confdefs.h >>conftest.$ac_ext 5885cat >>conftest.$ac_ext <<_ACEOF 5886/* end confdefs.h. */ 5887#ifdef __STDC__ 5888# include <limits.h> 5889#else 5890# include <assert.h> 5891#endif 5892 Syntax error 5893_ACEOF 5894if { (ac_try="$ac_cpp conftest.$ac_ext" 5895case "(($ac_try" in 5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5897 *) ac_try_echo=$ac_try;; 5898esac 5899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5900$as_echo "$ac_try_echo") >&5 5901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5902 ac_status=$? 5903 grep -v '^ *+' conftest.er1 >conftest.err 5904 rm -f conftest.er1 5905 cat conftest.err >&5 5906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5907 (exit $ac_status); } >/dev/null && { 5908 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5909 test ! -s conftest.err 5910 }; then 5911 : 5912else 5913 $as_echo "$as_me: failed program was:" >&5 5914sed 's/^/| /' conftest.$ac_ext >&5 5915 5916 # Broken: fails on valid input. 5917continue 5918fi 5919 5920rm -f conftest.err conftest.$ac_ext 5921 5922 # OK, works on sane cases. Now check whether nonexistent headers 5923 # can be detected and how. 5924 cat >conftest.$ac_ext <<_ACEOF 5925/* confdefs.h. */ 5926_ACEOF 5927cat confdefs.h >>conftest.$ac_ext 5928cat >>conftest.$ac_ext <<_ACEOF 5929/* end confdefs.h. */ 5930#include <ac_nonexistent.h> 5931_ACEOF 5932if { (ac_try="$ac_cpp conftest.$ac_ext" 5933case "(($ac_try" in 5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5935 *) ac_try_echo=$ac_try;; 5936esac 5937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5938$as_echo "$ac_try_echo") >&5 5939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5940 ac_status=$? 5941 grep -v '^ *+' conftest.er1 >conftest.err 5942 rm -f conftest.er1 5943 cat conftest.err >&5 5944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5945 (exit $ac_status); } >/dev/null && { 5946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5947 test ! -s conftest.err 5948 }; then 5949 # Broken: success on invalid input. 5950continue 5951else 5952 $as_echo "$as_me: failed program was:" >&5 5953sed 's/^/| /' conftest.$ac_ext >&5 5954 5955 # Passes both tests. 5956ac_preproc_ok=: 5957break 5958fi 5959 5960rm -f conftest.err conftest.$ac_ext 5961 5962done 5963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5964rm -f conftest.err conftest.$ac_ext 5965if $ac_preproc_ok; then 5966 break 5967fi 5968 5969 done 5970 ac_cv_prog_CXXCPP=$CXXCPP 5971 5972fi 5973 CXXCPP=$ac_cv_prog_CXXCPP 5974else 5975 ac_cv_prog_CXXCPP=$CXXCPP 5976fi 5977{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5978$as_echo "$CXXCPP" >&6; } 5979ac_preproc_ok=false 5980for ac_cxx_preproc_warn_flag in '' yes 5981do 5982 # Use a header file that comes with gcc, so configuring glibc 5983 # with a fresh cross-compiler works. 5984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5985 # <limits.h> exists even on freestanding compilers. 5986 # On the NeXT, cc -E runs the code through the compiler's parser, 5987 # not just through cpp. "Syntax error" is here to catch this case. 5988 cat >conftest.$ac_ext <<_ACEOF 5989/* confdefs.h. */ 5990_ACEOF 5991cat confdefs.h >>conftest.$ac_ext 5992cat >>conftest.$ac_ext <<_ACEOF 5993/* end confdefs.h. */ 5994#ifdef __STDC__ 5995# include <limits.h> 5996#else 5997# include <assert.h> 5998#endif 5999 Syntax error 6000_ACEOF 6001if { (ac_try="$ac_cpp conftest.$ac_ext" 6002case "(($ac_try" in 6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6004 *) ac_try_echo=$ac_try;; 6005esac 6006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6007$as_echo "$ac_try_echo") >&5 6008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6009 ac_status=$? 6010 grep -v '^ *+' conftest.er1 >conftest.err 6011 rm -f conftest.er1 6012 cat conftest.err >&5 6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6014 (exit $ac_status); } >/dev/null && { 6015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6016 test ! -s conftest.err 6017 }; then 6018 : 6019else 6020 $as_echo "$as_me: failed program was:" >&5 6021sed 's/^/| /' conftest.$ac_ext >&5 6022 6023 # Broken: fails on valid input. 6024continue 6025fi 6026 6027rm -f conftest.err conftest.$ac_ext 6028 6029 # OK, works on sane cases. Now check whether nonexistent headers 6030 # can be detected and how. 6031 cat >conftest.$ac_ext <<_ACEOF 6032/* confdefs.h. */ 6033_ACEOF 6034cat confdefs.h >>conftest.$ac_ext 6035cat >>conftest.$ac_ext <<_ACEOF 6036/* end confdefs.h. */ 6037#include <ac_nonexistent.h> 6038_ACEOF 6039if { (ac_try="$ac_cpp conftest.$ac_ext" 6040case "(($ac_try" in 6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6042 *) ac_try_echo=$ac_try;; 6043esac 6044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6045$as_echo "$ac_try_echo") >&5 6046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6047 ac_status=$? 6048 grep -v '^ *+' conftest.er1 >conftest.err 6049 rm -f conftest.er1 6050 cat conftest.err >&5 6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6052 (exit $ac_status); } >/dev/null && { 6053 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6054 test ! -s conftest.err 6055 }; then 6056 # Broken: success on invalid input. 6057continue 6058else 6059 $as_echo "$as_me: failed program was:" >&5 6060sed 's/^/| /' conftest.$ac_ext >&5 6061 6062 # Passes both tests. 6063ac_preproc_ok=: 6064break 6065fi 6066 6067rm -f conftest.err conftest.$ac_ext 6068 6069done 6070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6071rm -f conftest.err conftest.$ac_ext 6072if $ac_preproc_ok; then 6073 : 6074else 6075 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6077{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6078See \`config.log' for more details." >&5 6079$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6080See \`config.log' for more details." >&2;} 6081 { (exit 1); exit 1; }; }; } 6082fi 6083 6084ac_ext=cpp 6085ac_cpp='$CXXCPP $CPPFLAGS' 6086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6089 6090fi 6091 6092 6093ac_ext=f 6094ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6095ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6096ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6097if test -n "$ac_tool_prefix"; then 6098 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 6099 do 6100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6101set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6103$as_echo_n "checking for $ac_word... " >&6; } 6104if test "${ac_cv_prog_F77+set}" = set; then 6105 $as_echo_n "(cached) " >&6 6106else 6107 if test -n "$F77"; then 6108 ac_cv_prog_F77="$F77" # Let the user override the test. 6109else 6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111for as_dir in $PATH 6112do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6117 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121done 6122done 6123IFS=$as_save_IFS 6124 6125fi 6126fi 6127F77=$ac_cv_prog_F77 6128if test -n "$F77"; then 6129 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6130$as_echo "$F77" >&6; } 6131else 6132 { $as_echo "$as_me:$LINENO: result: no" >&5 6133$as_echo "no" >&6; } 6134fi 6135 6136 6137 test -n "$F77" && break 6138 done 6139fi 6140if test -z "$F77"; then 6141 ac_ct_F77=$F77 6142 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 6143do 6144 # Extract the first word of "$ac_prog", so it can be a program name with args. 6145set dummy $ac_prog; ac_word=$2 6146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6147$as_echo_n "checking for $ac_word... " >&6; } 6148if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6149 $as_echo_n "(cached) " >&6 6150else 6151 if test -n "$ac_ct_F77"; then 6152 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6153else 6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155for as_dir in $PATH 6156do 6157 IFS=$as_save_IFS 6158 test -z "$as_dir" && as_dir=. 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6161 ac_cv_prog_ac_ct_F77="$ac_prog" 6162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6163 break 2 6164 fi 6165done 6166done 6167IFS=$as_save_IFS 6168 6169fi 6170fi 6171ac_ct_F77=$ac_cv_prog_ac_ct_F77 6172if test -n "$ac_ct_F77"; then 6173 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6174$as_echo "$ac_ct_F77" >&6; } 6175else 6176 { $as_echo "$as_me:$LINENO: result: no" >&5 6177$as_echo "no" >&6; } 6178fi 6179 6180 6181 test -n "$ac_ct_F77" && break 6182done 6183 6184 if test "x$ac_ct_F77" = x; then 6185 F77="" 6186 else 6187 case $cross_compiling:$ac_tool_warned in 6188yes:) 6189{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6191ac_tool_warned=yes ;; 6192esac 6193 F77=$ac_ct_F77 6194 fi 6195fi 6196 6197 6198# Provide some information about the compiler. 6199$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6200set X $ac_compile 6201ac_compiler=$2 6202{ (ac_try="$ac_compiler --version >&5" 6203case "(($ac_try" in 6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6205 *) ac_try_echo=$ac_try;; 6206esac 6207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6208$as_echo "$ac_try_echo") >&5 6209 (eval "$ac_compiler --version >&5") 2>&5 6210 ac_status=$? 6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6212 (exit $ac_status); } 6213{ (ac_try="$ac_compiler -v >&5" 6214case "(($ac_try" in 6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6216 *) ac_try_echo=$ac_try;; 6217esac 6218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6219$as_echo "$ac_try_echo") >&5 6220 (eval "$ac_compiler -v >&5") 2>&5 6221 ac_status=$? 6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6223 (exit $ac_status); } 6224{ (ac_try="$ac_compiler -V >&5" 6225case "(($ac_try" in 6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6227 *) ac_try_echo=$ac_try;; 6228esac 6229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6230$as_echo "$ac_try_echo") >&5 6231 (eval "$ac_compiler -V >&5") 2>&5 6232 ac_status=$? 6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6234 (exit $ac_status); } 6235rm -f a.out 6236 6237# If we don't use `.F' as extension, the preprocessor is not run on the 6238# input file. (Note that this only needs to work for GNU compilers.) 6239ac_save_ext=$ac_ext 6240ac_ext=F 6241{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6242$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6243if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6244 $as_echo_n "(cached) " >&6 6245else 6246 cat >conftest.$ac_ext <<_ACEOF 6247 program main 6248#ifndef __GNUC__ 6249 choke me 6250#endif 6251 6252 end 6253_ACEOF 6254rm -f conftest.$ac_objext 6255if { (ac_try="$ac_compile" 6256case "(($ac_try" in 6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6258 *) ac_try_echo=$ac_try;; 6259esac 6260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6261$as_echo "$ac_try_echo") >&5 6262 (eval "$ac_compile") 2>conftest.er1 6263 ac_status=$? 6264 grep -v '^ *+' conftest.er1 >conftest.err 6265 rm -f conftest.er1 6266 cat conftest.err >&5 6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6268 (exit $ac_status); } && { 6269 test -z "$ac_f77_werror_flag" || 6270 test ! -s conftest.err 6271 } && test -s conftest.$ac_objext; then 6272 ac_compiler_gnu=yes 6273else 6274 $as_echo "$as_me: failed program was:" >&5 6275sed 's/^/| /' conftest.$ac_ext >&5 6276 6277 ac_compiler_gnu=no 6278fi 6279 6280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6281ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6282 6283fi 6284{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6285$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6286ac_ext=$ac_save_ext 6287ac_test_FFLAGS=${FFLAGS+set} 6288ac_save_FFLAGS=$FFLAGS 6289FFLAGS= 6290{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6291$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6292if test "${ac_cv_prog_f77_g+set}" = set; then 6293 $as_echo_n "(cached) " >&6 6294else 6295 FFLAGS=-g 6296cat >conftest.$ac_ext <<_ACEOF 6297 program main 6298 6299 end 6300_ACEOF 6301rm -f conftest.$ac_objext 6302if { (ac_try="$ac_compile" 6303case "(($ac_try" in 6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6305 *) ac_try_echo=$ac_try;; 6306esac 6307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6308$as_echo "$ac_try_echo") >&5 6309 (eval "$ac_compile") 2>conftest.er1 6310 ac_status=$? 6311 grep -v '^ *+' conftest.er1 >conftest.err 6312 rm -f conftest.er1 6313 cat conftest.err >&5 6314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6315 (exit $ac_status); } && { 6316 test -z "$ac_f77_werror_flag" || 6317 test ! -s conftest.err 6318 } && test -s conftest.$ac_objext; then 6319 ac_cv_prog_f77_g=yes 6320else 6321 $as_echo "$as_me: failed program was:" >&5 6322sed 's/^/| /' conftest.$ac_ext >&5 6323 6324 ac_cv_prog_f77_g=no 6325fi 6326 6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328 6329fi 6330{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6331$as_echo "$ac_cv_prog_f77_g" >&6; } 6332if test "$ac_test_FFLAGS" = set; then 6333 FFLAGS=$ac_save_FFLAGS 6334elif test $ac_cv_prog_f77_g = yes; then 6335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6336 FFLAGS="-g -O2" 6337 else 6338 FFLAGS="-g" 6339 fi 6340else 6341 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6342 FFLAGS="-O2" 6343 else 6344 FFLAGS= 6345 fi 6346fi 6347 6348if test $ac_compiler_gnu = yes; then 6349 G77=yes 6350else 6351 G77= 6352fi 6353ac_ext=c 6354ac_cpp='$CPP $CPPFLAGS' 6355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6357ac_compiler_gnu=$ac_cv_c_compiler_gnu 6358 6359 6360 6361# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6362# find the maximum length of command line arguments 6363{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6364$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6365if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6366 $as_echo_n "(cached) " >&6 6367else 6368 i=0 6369 teststring="ABCD" 6370 6371 case $build_os in 6372 msdosdjgpp*) 6373 # On DJGPP, this test can blow up pretty badly due to problems in libc 6374 # (any single argument exceeding 2000 bytes causes a buffer overrun 6375 # during glob expansion). Even if it were fixed, the result of this 6376 # check would be larger than it should be. 6377 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6378 ;; 6379 6380 gnu*) 6381 # Under GNU Hurd, this test is not required because there is 6382 # no limit to the length of command line arguments. 6383 # Libtool will interpret -1 as no limit whatsoever 6384 lt_cv_sys_max_cmd_len=-1; 6385 ;; 6386 6387 cygwin* | mingw*) 6388 # On Win9x/ME, this test blows up -- it succeeds, but takes 6389 # about 5 minutes as the teststring grows exponentially. 6390 # Worse, since 9x/ME are not pre-emptively multitasking, 6391 # you end up with a "frozen" computer, even though with patience 6392 # the test eventually succeeds (with a max line length of 256k). 6393 # Instead, let's just punt: use the minimum linelength reported by 6394 # all of the supported platforms: 8192 (on NT/2K/XP). 6395 lt_cv_sys_max_cmd_len=8192; 6396 ;; 6397 6398 amigaos*) 6399 # On AmigaOS with pdksh, this test takes hours, literally. 6400 # So we just punt and use a minimum line length of 8192. 6401 lt_cv_sys_max_cmd_len=8192; 6402 ;; 6403 6404 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6405 # This has been around since 386BSD, at least. Likely further. 6406 if test -x /sbin/sysctl; then 6407 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6408 elif test -x /usr/sbin/sysctl; then 6409 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6410 else 6411 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6412 fi 6413 # And add a safety zone 6414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6416 ;; 6417 6418 interix*) 6419 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6420 lt_cv_sys_max_cmd_len=196608 6421 ;; 6422 6423 osf*) 6424 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6425 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6426 # nice to cause kernel panics so lets avoid the loop below. 6427 # First set a reasonable default. 6428 lt_cv_sys_max_cmd_len=16384 6429 # 6430 if test -x /sbin/sysconfig; then 6431 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6432 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6433 esac 6434 fi 6435 ;; 6436 sco3.2v5*) 6437 lt_cv_sys_max_cmd_len=102400 6438 ;; 6439 sysv5* | sco5v6* | sysv4.2uw2*) 6440 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6441 if test -n "$kargmax"; then 6442 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6443 else 6444 lt_cv_sys_max_cmd_len=32768 6445 fi 6446 ;; 6447 *) 6448 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6449 if test -n "$lt_cv_sys_max_cmd_len"; then 6450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6452 else 6453 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6454 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6455 = "XX$teststring") >/dev/null 2>&1 && 6456 new_result=`expr "X$teststring" : ".*" 2>&1` && 6457 lt_cv_sys_max_cmd_len=$new_result && 6458 test $i != 17 # 1/2 MB should be enough 6459 do 6460 i=`expr $i + 1` 6461 teststring=$teststring$teststring 6462 done 6463 teststring= 6464 # Add a significant safety factor because C++ compilers can tack on massive 6465 # amounts of additional arguments before passing them to the linker. 6466 # It appears as though 1/2 is a usable value. 6467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6468 fi 6469 ;; 6470 esac 6471 6472fi 6473 6474if test -n $lt_cv_sys_max_cmd_len ; then 6475 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6476$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6477else 6478 { $as_echo "$as_me:$LINENO: result: none" >&5 6479$as_echo "none" >&6; } 6480fi 6481 6482 6483 6484 6485 6486# Check for command to grab the raw symbol name followed by C symbol from nm. 6487{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6488$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6489if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6490 $as_echo_n "(cached) " >&6 6491else 6492 6493# These are sane defaults that work on at least a few old systems. 6494# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6495 6496# Character class describing NM global symbol codes. 6497symcode='[BCDEGRST]' 6498 6499# Regexp to match symbols that can be accessed directly from C. 6500sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6501 6502# Transform an extracted symbol line into a proper C declaration 6503lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6504 6505# Transform an extracted symbol line into symbol name and symbol address 6506lt_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'" 6507 6508# Define system-specific variables. 6509case $host_os in 6510aix*) 6511 symcode='[BCDT]' 6512 ;; 6513cygwin* | mingw* | pw32*) 6514 symcode='[ABCDGISTW]' 6515 ;; 6516hpux*) # Its linker distinguishes data from code symbols 6517 if test "$host_cpu" = ia64; then 6518 symcode='[ABCDEGRST]' 6519 fi 6520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6521 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'" 6522 ;; 6523linux* | k*bsd*-gnu) 6524 if test "$host_cpu" = ia64; then 6525 symcode='[ABCDGIRSTW]' 6526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6527 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'" 6528 fi 6529 ;; 6530irix* | nonstopux*) 6531 symcode='[BCDEGRST]' 6532 ;; 6533osf*) 6534 symcode='[BCDEGQRST]' 6535 ;; 6536solaris*) 6537 symcode='[BDRT]' 6538 ;; 6539sco3.2v5*) 6540 symcode='[DT]' 6541 ;; 6542sysv4.2uw2*) 6543 symcode='[DT]' 6544 ;; 6545sysv5* | sco5v6* | unixware* | OpenUNIX*) 6546 symcode='[ABDT]' 6547 ;; 6548sysv4) 6549 symcode='[DFNSTU]' 6550 ;; 6551esac 6552 6553# Handle CRLF in mingw tool chain 6554opt_cr= 6555case $build_os in 6556mingw*) 6557 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6558 ;; 6559esac 6560 6561# If we're using GNU nm, then use its standard symbol codes. 6562case `$NM -V 2>&1` in 6563*GNU* | *'with BFD'*) 6564 symcode='[ABCDGIRSTW]' ;; 6565esac 6566 6567# Try without a prefix undercore, then with it. 6568for ac_symprfx in "" "_"; do 6569 6570 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6571 symxfrm="\\1 $ac_symprfx\\2 \\2" 6572 6573 # Write the raw and C identifiers. 6574 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6575 6576 # Check to see that the pipe works correctly. 6577 pipe_works=no 6578 6579 rm -f conftest* 6580 cat > conftest.$ac_ext <<EOF 6581#ifdef __cplusplus 6582extern "C" { 6583#endif 6584char nm_test_var; 6585void nm_test_func(){} 6586#ifdef __cplusplus 6587} 6588#endif 6589int main(){nm_test_var='a';nm_test_func();return(0);} 6590EOF 6591 6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6593 (eval $ac_compile) 2>&5 6594 ac_status=$? 6595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6596 (exit $ac_status); }; then 6597 # Now try to grab the symbols. 6598 nlist=conftest.nm 6599 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6600 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6601 ac_status=$? 6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603 (exit $ac_status); } && test -s "$nlist"; then 6604 # Try sorting and uniquifying the output. 6605 if sort "$nlist" | uniq > "$nlist"T; then 6606 mv -f "$nlist"T "$nlist" 6607 else 6608 rm -f "$nlist"T 6609 fi 6610 6611 # Make sure that we snagged all the symbols we need. 6612 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6613 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6614 cat <<EOF > conftest.$ac_ext 6615#ifdef __cplusplus 6616extern "C" { 6617#endif 6618 6619EOF 6620 # Now generate the symbol file. 6621 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6622 6623 cat <<EOF >> conftest.$ac_ext 6624#if defined (__STDC__) && __STDC__ 6625# define lt_ptr_t void * 6626#else 6627# define lt_ptr_t char * 6628# define const 6629#endif 6630 6631/* The mapping between symbol names and symbols. */ 6632const struct { 6633 const char *name; 6634 lt_ptr_t address; 6635} 6636lt_preloaded_symbols[] = 6637{ 6638EOF 6639 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6640 cat <<\EOF >> conftest.$ac_ext 6641 {0, (lt_ptr_t) 0} 6642}; 6643 6644#ifdef __cplusplus 6645} 6646#endif 6647EOF 6648 # Now try linking the two files. 6649 mv conftest.$ac_objext conftstm.$ac_objext 6650 lt_save_LIBS="$LIBS" 6651 lt_save_CFLAGS="$CFLAGS" 6652 LIBS="conftstm.$ac_objext" 6653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6655 (eval $ac_link) 2>&5 6656 ac_status=$? 6657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6658 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6659 pipe_works=yes 6660 fi 6661 LIBS="$lt_save_LIBS" 6662 CFLAGS="$lt_save_CFLAGS" 6663 else 6664 echo "cannot find nm_test_func in $nlist" >&5 6665 fi 6666 else 6667 echo "cannot find nm_test_var in $nlist" >&5 6668 fi 6669 else 6670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6671 fi 6672 else 6673 echo "$progname: failed program was:" >&5 6674 cat conftest.$ac_ext >&5 6675 fi 6676 rm -rf conftest* conftst* 6677 6678 # Do not use the global_symbol_pipe unless it works. 6679 if test "$pipe_works" = yes; then 6680 break 6681 else 6682 lt_cv_sys_global_symbol_pipe= 6683 fi 6684done 6685 6686fi 6687 6688if test -z "$lt_cv_sys_global_symbol_pipe"; then 6689 lt_cv_sys_global_symbol_to_cdecl= 6690fi 6691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6692 { $as_echo "$as_me:$LINENO: result: failed" >&5 6693$as_echo "failed" >&6; } 6694else 6695 { $as_echo "$as_me:$LINENO: result: ok" >&5 6696$as_echo "ok" >&6; } 6697fi 6698 6699{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6700$as_echo_n "checking for objdir... " >&6; } 6701if test "${lt_cv_objdir+set}" = set; then 6702 $as_echo_n "(cached) " >&6 6703else 6704 rm -f .libs 2>/dev/null 6705mkdir .libs 2>/dev/null 6706if test -d .libs; then 6707 lt_cv_objdir=.libs 6708else 6709 # MS-DOS does not allow filenames that begin with a dot. 6710 lt_cv_objdir=_libs 6711fi 6712rmdir .libs 2>/dev/null 6713fi 6714{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6715$as_echo "$lt_cv_objdir" >&6; } 6716objdir=$lt_cv_objdir 6717 6718 6719 6720 6721 6722case $host_os in 6723aix3*) 6724 # AIX sometimes has problems with the GCC collect2 program. For some 6725 # reason, if we set the COLLECT_NAMES environment variable, the problems 6726 # vanish in a puff of smoke. 6727 if test "X${COLLECT_NAMES+set}" != Xset; then 6728 COLLECT_NAMES= 6729 export COLLECT_NAMES 6730 fi 6731 ;; 6732esac 6733 6734# Sed substitution that helps us do robust quoting. It backslashifies 6735# metacharacters that are still active within double-quoted strings. 6736Xsed='sed -e 1s/^X//' 6737sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6738 6739# Same as above, but do not quote variable references. 6740double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6741 6742# Sed substitution to delay expansion of an escaped shell variable in a 6743# double_quote_subst'ed string. 6744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6745 6746# Sed substitution to avoid accidental globbing in evaled expressions 6747no_glob_subst='s/\*/\\\*/g' 6748 6749# Constants: 6750rm="rm -f" 6751 6752# Global variables: 6753default_ofile=libtool 6754can_build_shared=yes 6755 6756# All known linkers require a `.a' archive for static linking (except MSVC, 6757# which needs '.lib'). 6758libext=a 6759ltmain="$ac_aux_dir/ltmain.sh" 6760ofile="$default_ofile" 6761with_gnu_ld="$lt_cv_prog_gnu_ld" 6762 6763if test -n "$ac_tool_prefix"; then 6764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6765set dummy ${ac_tool_prefix}ar; ac_word=$2 6766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6767$as_echo_n "checking for $ac_word... " >&6; } 6768if test "${ac_cv_prog_AR+set}" = set; then 6769 $as_echo_n "(cached) " >&6 6770else 6771 if test -n "$AR"; then 6772 ac_cv_prog_AR="$AR" # Let the user override the test. 6773else 6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_exec_ext in '' $ac_executable_extensions; do 6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6781 ac_cv_prog_AR="${ac_tool_prefix}ar" 6782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6783 break 2 6784 fi 6785done 6786done 6787IFS=$as_save_IFS 6788 6789fi 6790fi 6791AR=$ac_cv_prog_AR 6792if test -n "$AR"; then 6793 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6794$as_echo "$AR" >&6; } 6795else 6796 { $as_echo "$as_me:$LINENO: result: no" >&5 6797$as_echo "no" >&6; } 6798fi 6799 6800 6801fi 6802if test -z "$ac_cv_prog_AR"; then 6803 ac_ct_AR=$AR 6804 # Extract the first word of "ar", so it can be a program name with args. 6805set dummy ar; ac_word=$2 6806{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6807$as_echo_n "checking for $ac_word... " >&6; } 6808if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6809 $as_echo_n "(cached) " >&6 6810else 6811 if test -n "$ac_ct_AR"; then 6812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6813else 6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6815for as_dir in $PATH 6816do 6817 IFS=$as_save_IFS 6818 test -z "$as_dir" && as_dir=. 6819 for ac_exec_ext in '' $ac_executable_extensions; do 6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6821 ac_cv_prog_ac_ct_AR="ar" 6822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6823 break 2 6824 fi 6825done 6826done 6827IFS=$as_save_IFS 6828 6829fi 6830fi 6831ac_ct_AR=$ac_cv_prog_ac_ct_AR 6832if test -n "$ac_ct_AR"; then 6833 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6834$as_echo "$ac_ct_AR" >&6; } 6835else 6836 { $as_echo "$as_me:$LINENO: result: no" >&5 6837$as_echo "no" >&6; } 6838fi 6839 6840 if test "x$ac_ct_AR" = x; then 6841 AR="false" 6842 else 6843 case $cross_compiling:$ac_tool_warned in 6844yes:) 6845{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6847ac_tool_warned=yes ;; 6848esac 6849 AR=$ac_ct_AR 6850 fi 6851else 6852 AR="$ac_cv_prog_AR" 6853fi 6854 6855if test -n "$ac_tool_prefix"; then 6856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6857set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6858{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6859$as_echo_n "checking for $ac_word... " >&6; } 6860if test "${ac_cv_prog_RANLIB+set}" = set; then 6861 $as_echo_n "(cached) " >&6 6862else 6863 if test -n "$RANLIB"; then 6864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6865else 6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6867for as_dir in $PATH 6868do 6869 IFS=$as_save_IFS 6870 test -z "$as_dir" && as_dir=. 6871 for ac_exec_ext in '' $ac_executable_extensions; do 6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6874 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6875 break 2 6876 fi 6877done 6878done 6879IFS=$as_save_IFS 6880 6881fi 6882fi 6883RANLIB=$ac_cv_prog_RANLIB 6884if test -n "$RANLIB"; then 6885 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6886$as_echo "$RANLIB" >&6; } 6887else 6888 { $as_echo "$as_me:$LINENO: result: no" >&5 6889$as_echo "no" >&6; } 6890fi 6891 6892 6893fi 6894if test -z "$ac_cv_prog_RANLIB"; then 6895 ac_ct_RANLIB=$RANLIB 6896 # Extract the first word of "ranlib", so it can be a program name with args. 6897set dummy ranlib; ac_word=$2 6898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6899$as_echo_n "checking for $ac_word... " >&6; } 6900if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6901 $as_echo_n "(cached) " >&6 6902else 6903 if test -n "$ac_ct_RANLIB"; then 6904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6905else 6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6907for as_dir in $PATH 6908do 6909 IFS=$as_save_IFS 6910 test -z "$as_dir" && as_dir=. 6911 for ac_exec_ext in '' $ac_executable_extensions; do 6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6913 ac_cv_prog_ac_ct_RANLIB="ranlib" 6914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6915 break 2 6916 fi 6917done 6918done 6919IFS=$as_save_IFS 6920 6921fi 6922fi 6923ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6924if test -n "$ac_ct_RANLIB"; then 6925 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6926$as_echo "$ac_ct_RANLIB" >&6; } 6927else 6928 { $as_echo "$as_me:$LINENO: result: no" >&5 6929$as_echo "no" >&6; } 6930fi 6931 6932 if test "x$ac_ct_RANLIB" = x; then 6933 RANLIB=":" 6934 else 6935 case $cross_compiling:$ac_tool_warned in 6936yes:) 6937{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6939ac_tool_warned=yes ;; 6940esac 6941 RANLIB=$ac_ct_RANLIB 6942 fi 6943else 6944 RANLIB="$ac_cv_prog_RANLIB" 6945fi 6946 6947if test -n "$ac_tool_prefix"; then 6948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6949set dummy ${ac_tool_prefix}strip; ac_word=$2 6950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6951$as_echo_n "checking for $ac_word... " >&6; } 6952if test "${ac_cv_prog_STRIP+set}" = set; then 6953 $as_echo_n "(cached) " >&6 6954else 6955 if test -n "$STRIP"; then 6956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6957else 6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959for as_dir in $PATH 6960do 6961 IFS=$as_save_IFS 6962 test -z "$as_dir" && as_dir=. 6963 for ac_exec_ext in '' $ac_executable_extensions; do 6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6965 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 break 2 6968 fi 6969done 6970done 6971IFS=$as_save_IFS 6972 6973fi 6974fi 6975STRIP=$ac_cv_prog_STRIP 6976if test -n "$STRIP"; then 6977 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6978$as_echo "$STRIP" >&6; } 6979else 6980 { $as_echo "$as_me:$LINENO: result: no" >&5 6981$as_echo "no" >&6; } 6982fi 6983 6984 6985fi 6986if test -z "$ac_cv_prog_STRIP"; then 6987 ac_ct_STRIP=$STRIP 6988 # Extract the first word of "strip", so it can be a program name with args. 6989set dummy strip; ac_word=$2 6990{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6991$as_echo_n "checking for $ac_word... " >&6; } 6992if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6993 $as_echo_n "(cached) " >&6 6994else 6995 if test -n "$ac_ct_STRIP"; then 6996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6997else 6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6999for as_dir in $PATH 7000do 7001 IFS=$as_save_IFS 7002 test -z "$as_dir" && as_dir=. 7003 for ac_exec_ext in '' $ac_executable_extensions; do 7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7005 ac_cv_prog_ac_ct_STRIP="strip" 7006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7007 break 2 7008 fi 7009done 7010done 7011IFS=$as_save_IFS 7012 7013fi 7014fi 7015ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7016if test -n "$ac_ct_STRIP"; then 7017 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7018$as_echo "$ac_ct_STRIP" >&6; } 7019else 7020 { $as_echo "$as_me:$LINENO: result: no" >&5 7021$as_echo "no" >&6; } 7022fi 7023 7024 if test "x$ac_ct_STRIP" = x; then 7025 STRIP=":" 7026 else 7027 case $cross_compiling:$ac_tool_warned in 7028yes:) 7029{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7031ac_tool_warned=yes ;; 7032esac 7033 STRIP=$ac_ct_STRIP 7034 fi 7035else 7036 STRIP="$ac_cv_prog_STRIP" 7037fi 7038 7039 7040old_CC="$CC" 7041old_CFLAGS="$CFLAGS" 7042 7043# Set sane defaults for various variables 7044test -z "$AR" && AR=ar 7045test -z "$AR_FLAGS" && AR_FLAGS=cru 7046test -z "$AS" && AS=as 7047test -z "$CC" && CC=cc 7048test -z "$LTCC" && LTCC=$CC 7049test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7050test -z "$DLLTOOL" && DLLTOOL=dlltool 7051test -z "$LD" && LD=ld 7052test -z "$LN_S" && LN_S="ln -s" 7053test -z "$MAGIC_CMD" && MAGIC_CMD=file 7054test -z "$NM" && NM=nm 7055test -z "$SED" && SED=sed 7056test -z "$OBJDUMP" && OBJDUMP=objdump 7057test -z "$RANLIB" && RANLIB=: 7058test -z "$STRIP" && STRIP=: 7059test -z "$ac_objext" && ac_objext=o 7060 7061# Determine commands to create old-style static archives. 7062old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7063old_postinstall_cmds='chmod 644 $oldlib' 7064old_postuninstall_cmds= 7065 7066if test -n "$RANLIB"; then 7067 case $host_os in 7068 openbsd*) 7069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7070 ;; 7071 *) 7072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7073 ;; 7074 esac 7075 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7076fi 7077 7078for cc_temp in $compiler""; do 7079 case $cc_temp in 7080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7082 \-*) ;; 7083 *) break;; 7084 esac 7085done 7086cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7087 7088 7089# Only perform the check for file, if the check method requires it 7090case $deplibs_check_method in 7091file_magic*) 7092 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7093 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7094$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7095if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7096 $as_echo_n "(cached) " >&6 7097else 7098 case $MAGIC_CMD in 7099[\\/*] | ?:[\\/]*) 7100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7101 ;; 7102*) 7103 lt_save_MAGIC_CMD="$MAGIC_CMD" 7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7105 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7106 for ac_dir in $ac_dummy; do 7107 IFS="$lt_save_ifs" 7108 test -z "$ac_dir" && ac_dir=. 7109 if test -f $ac_dir/${ac_tool_prefix}file; then 7110 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7111 if test -n "$file_magic_test_file"; then 7112 case $deplibs_check_method in 7113 "file_magic "*) 7114 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7116 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7117 $EGREP "$file_magic_regex" > /dev/null; then 7118 : 7119 else 7120 cat <<EOF 1>&2 7121 7122*** Warning: the command libtool uses to detect shared libraries, 7123*** $file_magic_cmd, produces output that libtool cannot recognize. 7124*** The result is that libtool may fail to recognize shared libraries 7125*** as such. This will affect the creation of libtool libraries that 7126*** depend on shared libraries, but programs linked with such libtool 7127*** libraries will work regardless of this problem. Nevertheless, you 7128*** may want to report the problem to your system manager and/or to 7129*** bug-libtool@gnu.org 7130 7131EOF 7132 fi ;; 7133 esac 7134 fi 7135 break 7136 fi 7137 done 7138 IFS="$lt_save_ifs" 7139 MAGIC_CMD="$lt_save_MAGIC_CMD" 7140 ;; 7141esac 7142fi 7143 7144MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7145if test -n "$MAGIC_CMD"; then 7146 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7147$as_echo "$MAGIC_CMD" >&6; } 7148else 7149 { $as_echo "$as_me:$LINENO: result: no" >&5 7150$as_echo "no" >&6; } 7151fi 7152 7153if test -z "$lt_cv_path_MAGIC_CMD"; then 7154 if test -n "$ac_tool_prefix"; then 7155 { $as_echo "$as_me:$LINENO: checking for file" >&5 7156$as_echo_n "checking for file... " >&6; } 7157if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7158 $as_echo_n "(cached) " >&6 7159else 7160 case $MAGIC_CMD in 7161[\\/*] | ?:[\\/]*) 7162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7163 ;; 7164*) 7165 lt_save_MAGIC_CMD="$MAGIC_CMD" 7166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7168 for ac_dir in $ac_dummy; do 7169 IFS="$lt_save_ifs" 7170 test -z "$ac_dir" && ac_dir=. 7171 if test -f $ac_dir/file; then 7172 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7173 if test -n "$file_magic_test_file"; then 7174 case $deplibs_check_method in 7175 "file_magic "*) 7176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7179 $EGREP "$file_magic_regex" > /dev/null; then 7180 : 7181 else 7182 cat <<EOF 1>&2 7183 7184*** Warning: the command libtool uses to detect shared libraries, 7185*** $file_magic_cmd, produces output that libtool cannot recognize. 7186*** The result is that libtool may fail to recognize shared libraries 7187*** as such. This will affect the creation of libtool libraries that 7188*** depend on shared libraries, but programs linked with such libtool 7189*** libraries will work regardless of this problem. Nevertheless, you 7190*** may want to report the problem to your system manager and/or to 7191*** bug-libtool@gnu.org 7192 7193EOF 7194 fi ;; 7195 esac 7196 fi 7197 break 7198 fi 7199 done 7200 IFS="$lt_save_ifs" 7201 MAGIC_CMD="$lt_save_MAGIC_CMD" 7202 ;; 7203esac 7204fi 7205 7206MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7207if test -n "$MAGIC_CMD"; then 7208 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7209$as_echo "$MAGIC_CMD" >&6; } 7210else 7211 { $as_echo "$as_me:$LINENO: result: no" >&5 7212$as_echo "no" >&6; } 7213fi 7214 7215 else 7216 MAGIC_CMD=: 7217 fi 7218fi 7219 7220 fi 7221 ;; 7222esac 7223 7224 7225 case $host_os in 7226 rhapsody* | darwin*) 7227 if test -n "$ac_tool_prefix"; then 7228 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7229set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7230{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7231$as_echo_n "checking for $ac_word... " >&6; } 7232if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7233 $as_echo_n "(cached) " >&6 7234else 7235 if test -n "$DSYMUTIL"; then 7236 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7237else 7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 for ac_exec_ext in '' $ac_executable_extensions; do 7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7245 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7247 break 2 7248 fi 7249done 7250done 7251IFS=$as_save_IFS 7252 7253fi 7254fi 7255DSYMUTIL=$ac_cv_prog_DSYMUTIL 7256if test -n "$DSYMUTIL"; then 7257 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7258$as_echo "$DSYMUTIL" >&6; } 7259else 7260 { $as_echo "$as_me:$LINENO: result: no" >&5 7261$as_echo "no" >&6; } 7262fi 7263 7264 7265fi 7266if test -z "$ac_cv_prog_DSYMUTIL"; then 7267 ac_ct_DSYMUTIL=$DSYMUTIL 7268 # Extract the first word of "dsymutil", so it can be a program name with args. 7269set dummy dsymutil; ac_word=$2 7270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7271$as_echo_n "checking for $ac_word... " >&6; } 7272if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7273 $as_echo_n "(cached) " >&6 7274else 7275 if test -n "$ac_ct_DSYMUTIL"; then 7276 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7277else 7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279for as_dir in $PATH 7280do 7281 IFS=$as_save_IFS 7282 test -z "$as_dir" && as_dir=. 7283 for ac_exec_ext in '' $ac_executable_extensions; do 7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7285 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7287 break 2 7288 fi 7289done 7290done 7291IFS=$as_save_IFS 7292 7293fi 7294fi 7295ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7296if test -n "$ac_ct_DSYMUTIL"; then 7297 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7298$as_echo "$ac_ct_DSYMUTIL" >&6; } 7299else 7300 { $as_echo "$as_me:$LINENO: result: no" >&5 7301$as_echo "no" >&6; } 7302fi 7303 7304 if test "x$ac_ct_DSYMUTIL" = x; then 7305 DSYMUTIL=":" 7306 else 7307 case $cross_compiling:$ac_tool_warned in 7308yes:) 7309{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7311ac_tool_warned=yes ;; 7312esac 7313 DSYMUTIL=$ac_ct_DSYMUTIL 7314 fi 7315else 7316 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7317fi 7318 7319 if test -n "$ac_tool_prefix"; then 7320 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7321set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7322{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if test "${ac_cv_prog_NMEDIT+set}" = set; then 7325 $as_echo_n "(cached) " >&6 7326else 7327 if test -n "$NMEDIT"; then 7328 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7329else 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7337 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342done 7343IFS=$as_save_IFS 7344 7345fi 7346fi 7347NMEDIT=$ac_cv_prog_NMEDIT 7348if test -n "$NMEDIT"; then 7349 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7350$as_echo "$NMEDIT" >&6; } 7351else 7352 { $as_echo "$as_me:$LINENO: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 7357fi 7358if test -z "$ac_cv_prog_NMEDIT"; then 7359 ac_ct_NMEDIT=$NMEDIT 7360 # Extract the first word of "nmedit", so it can be a program name with args. 7361set dummy nmedit; ac_word=$2 7362{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7363$as_echo_n "checking for $ac_word... " >&6; } 7364if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7365 $as_echo_n "(cached) " >&6 7366else 7367 if test -n "$ac_ct_NMEDIT"; then 7368 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7369else 7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7371for as_dir in $PATH 7372do 7373 IFS=$as_save_IFS 7374 test -z "$as_dir" && as_dir=. 7375 for ac_exec_ext in '' $ac_executable_extensions; do 7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7377 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7379 break 2 7380 fi 7381done 7382done 7383IFS=$as_save_IFS 7384 7385fi 7386fi 7387ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7388if test -n "$ac_ct_NMEDIT"; then 7389 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7390$as_echo "$ac_ct_NMEDIT" >&6; } 7391else 7392 { $as_echo "$as_me:$LINENO: result: no" >&5 7393$as_echo "no" >&6; } 7394fi 7395 7396 if test "x$ac_ct_NMEDIT" = x; then 7397 NMEDIT=":" 7398 else 7399 case $cross_compiling:$ac_tool_warned in 7400yes:) 7401{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7403ac_tool_warned=yes ;; 7404esac 7405 NMEDIT=$ac_ct_NMEDIT 7406 fi 7407else 7408 NMEDIT="$ac_cv_prog_NMEDIT" 7409fi 7410 7411 7412 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7413$as_echo_n "checking for -single_module linker flag... " >&6; } 7414if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7415 $as_echo_n "(cached) " >&6 7416else 7417 lt_cv_apple_cc_single_mod=no 7418 if test -z "${LT_MULTI_MODULE}"; then 7419 # By default we will add the -single_module flag. You can override 7420 # by either setting the environment variable LT_MULTI_MODULE 7421 # non-empty at configure time, or by adding -multi_module to the 7422 # link flags. 7423 echo "int foo(void){return 1;}" > conftest.c 7424 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7425 -dynamiclib ${wl}-single_module conftest.c 7426 if test -f libconftest.dylib; then 7427 lt_cv_apple_cc_single_mod=yes 7428 rm -rf libconftest.dylib* 7429 fi 7430 rm conftest.c 7431 fi 7432fi 7433{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7434$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7435 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7436$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7437if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7438 $as_echo_n "(cached) " >&6 7439else 7440 lt_cv_ld_exported_symbols_list=no 7441 save_LDFLAGS=$LDFLAGS 7442 echo "_main" > conftest.sym 7443 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7444 cat >conftest.$ac_ext <<_ACEOF 7445/* confdefs.h. */ 7446_ACEOF 7447cat confdefs.h >>conftest.$ac_ext 7448cat >>conftest.$ac_ext <<_ACEOF 7449/* end confdefs.h. */ 7450 7451int 7452main () 7453{ 7454 7455 ; 7456 return 0; 7457} 7458_ACEOF 7459rm -f conftest.$ac_objext conftest$ac_exeext 7460if { (ac_try="$ac_link" 7461case "(($ac_try" in 7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7463 *) ac_try_echo=$ac_try;; 7464esac 7465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7466$as_echo "$ac_try_echo") >&5 7467 (eval "$ac_link") 2>conftest.er1 7468 ac_status=$? 7469 grep -v '^ *+' conftest.er1 >conftest.err 7470 rm -f conftest.er1 7471 cat conftest.err >&5 7472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7473 (exit $ac_status); } && { 7474 test -z "$ac_c_werror_flag" || 7475 test ! -s conftest.err 7476 } && test -s conftest$ac_exeext && { 7477 test "$cross_compiling" = yes || 7478 $as_test_x conftest$ac_exeext 7479 }; then 7480 lt_cv_ld_exported_symbols_list=yes 7481else 7482 $as_echo "$as_me: failed program was:" >&5 7483sed 's/^/| /' conftest.$ac_ext >&5 7484 7485 lt_cv_ld_exported_symbols_list=no 7486fi 7487 7488rm -rf conftest.dSYM 7489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7490 conftest$ac_exeext conftest.$ac_ext 7491 LDFLAGS="$save_LDFLAGS" 7492 7493fi 7494{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7495$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7496 case $host_os in 7497 rhapsody* | darwin1.[0123]) 7498 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7499 darwin1.*) 7500 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7501 darwin*) 7502 # if running on 10.5 or later, the deployment target defaults 7503 # to the OS version, if on x86, and 10.4, the deployment 7504 # target defaults to 10.4. Don't you love it? 7505 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7506 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7507 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7508 10.[012]*) 7509 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7510 10.*) 7511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7512 esac 7513 ;; 7514 esac 7515 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7516 _lt_dar_single_mod='$single_module' 7517 fi 7518 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7519 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7520 else 7521 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7522 fi 7523 if test "$DSYMUTIL" != ":"; then 7524 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7525 else 7526 _lt_dsymutil= 7527 fi 7528 ;; 7529 esac 7530 7531 7532enable_dlopen=no 7533enable_win32_dll=no 7534 7535# Check whether --enable-libtool-lock was given. 7536if test "${enable_libtool_lock+set}" = set; then 7537 enableval=$enable_libtool_lock; 7538fi 7539 7540test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7541 7542 7543# Check whether --with-pic was given. 7544if test "${with_pic+set}" = set; then 7545 withval=$with_pic; pic_mode="$withval" 7546else 7547 pic_mode=default 7548fi 7549 7550test -z "$pic_mode" && pic_mode=default 7551 7552# Use C for the default configuration in the libtool script 7553tagname= 7554lt_save_CC="$CC" 7555ac_ext=c 7556ac_cpp='$CPP $CPPFLAGS' 7557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7559ac_compiler_gnu=$ac_cv_c_compiler_gnu 7560 7561 7562# Source file extension for C test sources. 7563ac_ext=c 7564 7565# Object file extension for compiled C test sources. 7566objext=o 7567objext=$objext 7568 7569# Code to be used in simple compile tests 7570lt_simple_compile_test_code="int some_variable = 0;" 7571 7572# Code to be used in simple link tests 7573lt_simple_link_test_code='int main(){return(0);}' 7574 7575 7576# If no C compiler was specified, use CC. 7577LTCC=${LTCC-"$CC"} 7578 7579# If no C compiler flags were specified, use CFLAGS. 7580LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7581 7582# Allow CC to be a program name with arguments. 7583compiler=$CC 7584 7585 7586# save warnings/boilerplate of simple test code 7587ac_outfile=conftest.$ac_objext 7588echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7589eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7590_lt_compiler_boilerplate=`cat conftest.err` 7591$rm conftest* 7592 7593ac_outfile=conftest.$ac_objext 7594echo "$lt_simple_link_test_code" >conftest.$ac_ext 7595eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7596_lt_linker_boilerplate=`cat conftest.err` 7597$rm -r conftest* 7598 7599 7600 7601lt_prog_compiler_no_builtin_flag= 7602 7603if test "$GCC" = yes; then 7604 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7605 7606 7607{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7608$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7609if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7610 $as_echo_n "(cached) " >&6 7611else 7612 lt_cv_prog_compiler_rtti_exceptions=no 7613 ac_outfile=conftest.$ac_objext 7614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7615 lt_compiler_flag="-fno-rtti -fno-exceptions" 7616 # Insert the option either (1) after the last *FLAGS variable, or 7617 # (2) before a word containing "conftest.", or (3) at the end. 7618 # Note that $ac_compile itself does not contain backslashes and begins 7619 # with a dollar sign (not a hyphen), so the echo should work correctly. 7620 # The option is referenced via a variable to avoid confusing sed. 7621 lt_compile=`echo "$ac_compile" | $SED \ 7622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7624 -e 's:$: $lt_compiler_flag:'` 7625 (eval echo "\"\$as_me:7625: $lt_compile\"" >&5) 7626 (eval "$lt_compile" 2>conftest.err) 7627 ac_status=$? 7628 cat conftest.err >&5 7629 echo "$as_me:7629: \$? = $ac_status" >&5 7630 if (exit $ac_status) && test -s "$ac_outfile"; then 7631 # The compiler can only warn and ignore the option if not recognized 7632 # So say no if there are warnings other than the usual output. 7633 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7636 lt_cv_prog_compiler_rtti_exceptions=yes 7637 fi 7638 fi 7639 $rm conftest* 7640 7641fi 7642{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7643$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7644 7645if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7646 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7647else 7648 : 7649fi 7650 7651fi 7652 7653lt_prog_compiler_wl= 7654lt_prog_compiler_pic= 7655lt_prog_compiler_static= 7656 7657{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7658$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7659 7660 if test "$GCC" = yes; then 7661 lt_prog_compiler_wl='-Wl,' 7662 lt_prog_compiler_static='-static' 7663 7664 case $host_os in 7665 aix*) 7666 # All AIX code is PIC. 7667 if test "$host_cpu" = ia64; then 7668 # AIX 5 now supports IA64 processor 7669 lt_prog_compiler_static='-Bstatic' 7670 fi 7671 ;; 7672 7673 amigaos*) 7674 # FIXME: we need at least 68020 code to build shared libraries, but 7675 # adding the `-m68020' flag to GCC prevents building anything better, 7676 # like `-m68040'. 7677 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7678 ;; 7679 7680 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7681 # PIC is the default for these OSes. 7682 ;; 7683 7684 mingw* | cygwin* | pw32* | os2*) 7685 # This hack is so that the source file can tell whether it is being 7686 # built for inclusion in a dll (and should export symbols for example). 7687 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7688 # (--disable-auto-import) libraries 7689 lt_prog_compiler_pic='-DDLL_EXPORT' 7690 ;; 7691 7692 darwin* | rhapsody*) 7693 # PIC is the default on this platform 7694 # Common symbols not allowed in MH_DYLIB files 7695 lt_prog_compiler_pic='-fno-common' 7696 ;; 7697 7698 interix[3-9]*) 7699 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7700 # Instead, we relocate shared libraries at runtime. 7701 ;; 7702 7703 msdosdjgpp*) 7704 # Just because we use GCC doesn't mean we suddenly get shared libraries 7705 # on systems that don't support them. 7706 lt_prog_compiler_can_build_shared=no 7707 enable_shared=no 7708 ;; 7709 7710 sysv4*MP*) 7711 if test -d /usr/nec; then 7712 lt_prog_compiler_pic=-Kconform_pic 7713 fi 7714 ;; 7715 7716 hpux*) 7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7718 # not for PA HP-UX. 7719 case $host_cpu in 7720 hppa*64*|ia64*) 7721 # +Z the default 7722 ;; 7723 *) 7724 lt_prog_compiler_pic='-fPIC' 7725 ;; 7726 esac 7727 ;; 7728 7729 *) 7730 lt_prog_compiler_pic='-fPIC' 7731 ;; 7732 esac 7733 else 7734 # PORTME Check for flag to pass linker flags through the system compiler. 7735 case $host_os in 7736 aix*) 7737 lt_prog_compiler_wl='-Wl,' 7738 if test "$host_cpu" = ia64; then 7739 # AIX 5 now supports IA64 processor 7740 lt_prog_compiler_static='-Bstatic' 7741 else 7742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7743 fi 7744 ;; 7745 darwin*) 7746 # PIC is the default on this platform 7747 # Common symbols not allowed in MH_DYLIB files 7748 case $cc_basename in 7749 xlc*) 7750 lt_prog_compiler_pic='-qnocommon' 7751 lt_prog_compiler_wl='-Wl,' 7752 ;; 7753 esac 7754 ;; 7755 7756 mingw* | cygwin* | pw32* | os2*) 7757 # This hack is so that the source file can tell whether it is being 7758 # built for inclusion in a dll (and should export symbols for example). 7759 lt_prog_compiler_pic='-DDLL_EXPORT' 7760 ;; 7761 7762 hpux9* | hpux10* | hpux11*) 7763 lt_prog_compiler_wl='-Wl,' 7764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7765 # not for PA HP-UX. 7766 case $host_cpu in 7767 hppa*64*|ia64*) 7768 # +Z the default 7769 ;; 7770 *) 7771 lt_prog_compiler_pic='+Z' 7772 ;; 7773 esac 7774 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7775 lt_prog_compiler_static='${wl}-a ${wl}archive' 7776 ;; 7777 7778 irix5* | irix6* | nonstopux*) 7779 lt_prog_compiler_wl='-Wl,' 7780 # PIC (with -KPIC) is the default. 7781 lt_prog_compiler_static='-non_shared' 7782 ;; 7783 7784 newsos6) 7785 lt_prog_compiler_pic='-KPIC' 7786 lt_prog_compiler_static='-Bstatic' 7787 ;; 7788 7789 linux* | k*bsd*-gnu) 7790 case $cc_basename in 7791 icc* | ecc*) 7792 lt_prog_compiler_wl='-Wl,' 7793 lt_prog_compiler_pic='-KPIC' 7794 lt_prog_compiler_static='-static' 7795 ;; 7796 pgcc* | pgf77* | pgf90* | pgf95*) 7797 # Portland Group compilers (*not* the Pentium gcc compiler, 7798 # which looks to be a dead project) 7799 lt_prog_compiler_wl='-Wl,' 7800 lt_prog_compiler_pic='-fpic' 7801 lt_prog_compiler_static='-Bstatic' 7802 ;; 7803 ccc*) 7804 lt_prog_compiler_wl='-Wl,' 7805 # All Alpha code is PIC. 7806 lt_prog_compiler_static='-non_shared' 7807 ;; 7808 *) 7809 case `$CC -V 2>&1 | sed 5q` in 7810 *Sun\ C*) 7811 # Sun C 5.9 7812 lt_prog_compiler_pic='-KPIC' 7813 lt_prog_compiler_static='-Bstatic' 7814 lt_prog_compiler_wl='-Wl,' 7815 ;; 7816 *Sun\ F*) 7817 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7818 lt_prog_compiler_pic='-KPIC' 7819 lt_prog_compiler_static='-Bstatic' 7820 lt_prog_compiler_wl='' 7821 ;; 7822 esac 7823 ;; 7824 esac 7825 ;; 7826 7827 osf3* | osf4* | osf5*) 7828 lt_prog_compiler_wl='-Wl,' 7829 # All OSF/1 code is PIC. 7830 lt_prog_compiler_static='-non_shared' 7831 ;; 7832 7833 rdos*) 7834 lt_prog_compiler_static='-non_shared' 7835 ;; 7836 7837 solaris*) 7838 lt_prog_compiler_pic='-KPIC' 7839 lt_prog_compiler_static='-Bstatic' 7840 case $cc_basename in 7841 f77* | f90* | f95*) 7842 lt_prog_compiler_wl='-Qoption ld ';; 7843 *) 7844 lt_prog_compiler_wl='-Wl,';; 7845 esac 7846 ;; 7847 7848 sunos4*) 7849 lt_prog_compiler_wl='-Qoption ld ' 7850 lt_prog_compiler_pic='-PIC' 7851 lt_prog_compiler_static='-Bstatic' 7852 ;; 7853 7854 sysv4 | sysv4.2uw2* | sysv4.3*) 7855 lt_prog_compiler_wl='-Wl,' 7856 lt_prog_compiler_pic='-KPIC' 7857 lt_prog_compiler_static='-Bstatic' 7858 ;; 7859 7860 sysv4*MP*) 7861 if test -d /usr/nec ;then 7862 lt_prog_compiler_pic='-Kconform_pic' 7863 lt_prog_compiler_static='-Bstatic' 7864 fi 7865 ;; 7866 7867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7868 lt_prog_compiler_wl='-Wl,' 7869 lt_prog_compiler_pic='-KPIC' 7870 lt_prog_compiler_static='-Bstatic' 7871 ;; 7872 7873 unicos*) 7874 lt_prog_compiler_wl='-Wl,' 7875 lt_prog_compiler_can_build_shared=no 7876 ;; 7877 7878 uts4*) 7879 lt_prog_compiler_pic='-pic' 7880 lt_prog_compiler_static='-Bstatic' 7881 ;; 7882 7883 *) 7884 lt_prog_compiler_can_build_shared=no 7885 ;; 7886 esac 7887 fi 7888 7889{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7890$as_echo "$lt_prog_compiler_pic" >&6; } 7891 7892# 7893# Check to make sure the PIC flag actually works. 7894# 7895if test -n "$lt_prog_compiler_pic"; then 7896 7897{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7898$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7899if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7900 $as_echo_n "(cached) " >&6 7901else 7902 lt_cv_prog_compiler_pic_works=no 7903 ac_outfile=conftest.$ac_objext 7904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7905 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7906 # Insert the option either (1) after the last *FLAGS variable, or 7907 # (2) before a word containing "conftest.", or (3) at the end. 7908 # Note that $ac_compile itself does not contain backslashes and begins 7909 # with a dollar sign (not a hyphen), so the echo should work correctly. 7910 # The option is referenced via a variable to avoid confusing sed. 7911 lt_compile=`echo "$ac_compile" | $SED \ 7912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7914 -e 's:$: $lt_compiler_flag:'` 7915 (eval echo "\"\$as_me:7915: $lt_compile\"" >&5) 7916 (eval "$lt_compile" 2>conftest.err) 7917 ac_status=$? 7918 cat conftest.err >&5 7919 echo "$as_me:7919: \$? = $ac_status" >&5 7920 if (exit $ac_status) && test -s "$ac_outfile"; then 7921 # The compiler can only warn and ignore the option if not recognized 7922 # So say no if there are warnings other than the usual output. 7923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7926 lt_cv_prog_compiler_pic_works=yes 7927 fi 7928 fi 7929 $rm conftest* 7930 7931fi 7932{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7933$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7934 7935if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7936 case $lt_prog_compiler_pic in 7937 "" | " "*) ;; 7938 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7939 esac 7940else 7941 lt_prog_compiler_pic= 7942 lt_prog_compiler_can_build_shared=no 7943fi 7944 7945fi 7946case $host_os in 7947 # For platforms which do not support PIC, -DPIC is meaningless: 7948 *djgpp*) 7949 lt_prog_compiler_pic= 7950 ;; 7951 *) 7952 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7953 ;; 7954esac 7955 7956# 7957# Check to make sure the static flag actually works. 7958# 7959wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7960{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7961$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7962if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7963 $as_echo_n "(cached) " >&6 7964else 7965 lt_cv_prog_compiler_static_works=no 7966 save_LDFLAGS="$LDFLAGS" 7967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7968 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7970 # The linker can only warn and ignore the option if not recognized 7971 # So say no if there are warnings 7972 if test -s conftest.err; then 7973 # Append any errors to the config.log. 7974 cat conftest.err 1>&5 7975 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7977 if diff conftest.exp conftest.er2 >/dev/null; then 7978 lt_cv_prog_compiler_static_works=yes 7979 fi 7980 else 7981 lt_cv_prog_compiler_static_works=yes 7982 fi 7983 fi 7984 $rm -r conftest* 7985 LDFLAGS="$save_LDFLAGS" 7986 7987fi 7988{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7989$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7990 7991if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7992 : 7993else 7994 lt_prog_compiler_static= 7995fi 7996 7997 7998{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7999$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8000if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8001 $as_echo_n "(cached) " >&6 8002else 8003 lt_cv_prog_compiler_c_o=no 8004 $rm -r conftest 2>/dev/null 8005 mkdir conftest 8006 cd conftest 8007 mkdir out 8008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8009 8010 lt_compiler_flag="-o out/conftest2.$ac_objext" 8011 # Insert the option either (1) after the last *FLAGS variable, or 8012 # (2) before a word containing "conftest.", or (3) at the end. 8013 # Note that $ac_compile itself does not contain backslashes and begins 8014 # with a dollar sign (not a hyphen), so the echo should work correctly. 8015 lt_compile=`echo "$ac_compile" | $SED \ 8016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8018 -e 's:$: $lt_compiler_flag:'` 8019 (eval echo "\"\$as_me:8019: $lt_compile\"" >&5) 8020 (eval "$lt_compile" 2>out/conftest.err) 8021 ac_status=$? 8022 cat out/conftest.err >&5 8023 echo "$as_me:8023: \$? = $ac_status" >&5 8024 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8025 then 8026 # The compiler can only warn and ignore the option if not recognized 8027 # So say no if there are warnings 8028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8031 lt_cv_prog_compiler_c_o=yes 8032 fi 8033 fi 8034 chmod u+w . 2>&5 8035 $rm conftest* 8036 # SGI C++ compiler will create directory out/ii_files/ for 8037 # template instantiation 8038 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8039 $rm out/* && rmdir out 8040 cd .. 8041 rmdir conftest 8042 $rm conftest* 8043 8044fi 8045{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8046$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8047 8048 8049hard_links="nottested" 8050if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8051 # do not overwrite the value of need_locks provided by the user 8052 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8053$as_echo_n "checking if we can lock with hard links... " >&6; } 8054 hard_links=yes 8055 $rm conftest* 8056 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8057 touch conftest.a 8058 ln conftest.a conftest.b 2>&5 || hard_links=no 8059 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8060 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8061$as_echo "$hard_links" >&6; } 8062 if test "$hard_links" = no; then 8063 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8064$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8065 need_locks=warn 8066 fi 8067else 8068 need_locks=no 8069fi 8070 8071{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8072$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8073 8074 runpath_var= 8075 allow_undefined_flag= 8076 enable_shared_with_static_runtimes=no 8077 archive_cmds= 8078 archive_expsym_cmds= 8079 old_archive_From_new_cmds= 8080 old_archive_from_expsyms_cmds= 8081 export_dynamic_flag_spec= 8082 whole_archive_flag_spec= 8083 thread_safe_flag_spec= 8084 hardcode_libdir_flag_spec= 8085 hardcode_libdir_flag_spec_ld= 8086 hardcode_libdir_separator= 8087 hardcode_direct=no 8088 hardcode_minus_L=no 8089 hardcode_shlibpath_var=unsupported 8090 link_all_deplibs=unknown 8091 hardcode_automatic=no 8092 module_cmds= 8093 module_expsym_cmds= 8094 always_export_symbols=no 8095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8096 # include_expsyms should be a list of space-separated symbols to be *always* 8097 # included in the symbol list 8098 include_expsyms= 8099 # exclude_expsyms can be an extended regexp of symbols to exclude 8100 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8101 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8102 # as well as any symbol that contains `d'. 8103 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8105 # platforms (ab)use it in PIC code, but their linkers get confused if 8106 # the symbol is explicitly referenced. Since portable code cannot 8107 # rely on this symbol name, it's probably fine to never include it in 8108 # preloaded symbol tables. 8109 # Exclude shared library initialization/finalization symbols. 8110 extract_expsyms_cmds= 8111 # Just being paranoid about ensuring that cc_basename is set. 8112 for cc_temp in $compiler""; do 8113 case $cc_temp in 8114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8116 \-*) ;; 8117 *) break;; 8118 esac 8119done 8120cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8121 8122 case $host_os in 8123 cygwin* | mingw* | pw32*) 8124 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8125 # When not using gcc, we currently assume that we are using 8126 # Microsoft Visual C++. 8127 if test "$GCC" != yes; then 8128 with_gnu_ld=no 8129 fi 8130 ;; 8131 interix*) 8132 # we just hope/assume this is gcc and not c89 (= MSVC++) 8133 with_gnu_ld=yes 8134 ;; 8135 openbsd*) 8136 with_gnu_ld=no 8137 ;; 8138 esac 8139 8140 ld_shlibs=yes 8141 if test "$with_gnu_ld" = yes; then 8142 # If archive_cmds runs LD, not CC, wlarc should be empty 8143 wlarc='${wl}' 8144 8145 # Set some defaults for GNU ld with shared library support. These 8146 # are reset later if shared libraries are not supported. Putting them 8147 # here allows them to be overridden if necessary. 8148 runpath_var=LD_RUN_PATH 8149 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8150 export_dynamic_flag_spec='${wl}--export-dynamic' 8151 # ancient GNU ld didn't support --whole-archive et. al. 8152 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8154 else 8155 whole_archive_flag_spec= 8156 fi 8157 supports_anon_versioning=no 8158 case `$LD -v 2>/dev/null` in 8159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8162 *\ 2.11.*) ;; # other 2.11 versions 8163 *) supports_anon_versioning=yes ;; 8164 esac 8165 8166 # See if GNU ld supports shared libraries. 8167 case $host_os in 8168 aix[3-9]*) 8169 # On AIX/PPC, the GNU linker is very broken 8170 if test "$host_cpu" != ia64; then 8171 ld_shlibs=no 8172 cat <<EOF 1>&2 8173 8174*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8175*** to be unable to reliably create shared libraries on AIX. 8176*** Therefore, libtool is disabling shared libraries support. If you 8177*** really care for shared libraries, you may want to modify your PATH 8178*** so that a non-GNU linker is found, and then restart. 8179 8180EOF 8181 fi 8182 ;; 8183 8184 amigaos*) 8185 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)' 8186 hardcode_libdir_flag_spec='-L$libdir' 8187 hardcode_minus_L=yes 8188 8189 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8190 # that the semantics of dynamic libraries on AmigaOS, at least up 8191 # to version 4, is to share data among multiple programs linked 8192 # with the same dynamic library. Since this doesn't match the 8193 # behavior of shared libraries on other platforms, we can't use 8194 # them. 8195 ld_shlibs=no 8196 ;; 8197 8198 beos*) 8199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8200 allow_undefined_flag=unsupported 8201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8202 # support --undefined. This deserves some investigation. FIXME 8203 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8204 else 8205 ld_shlibs=no 8206 fi 8207 ;; 8208 8209 cygwin* | mingw* | pw32*) 8210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8211 # as there is no search path for DLLs. 8212 hardcode_libdir_flag_spec='-L$libdir' 8213 allow_undefined_flag=unsupported 8214 always_export_symbols=no 8215 enable_shared_with_static_runtimes=yes 8216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8217 8218 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8220 # If the export-symbols file already is a .def file (1st line 8221 # is EXPORTS), use it as is; otherwise, prepend... 8222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8223 cp $export_symbols $output_objdir/$soname.def; 8224 else 8225 echo EXPORTS > $output_objdir/$soname.def; 8226 cat $export_symbols >> $output_objdir/$soname.def; 8227 fi~ 8228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8229 else 8230 ld_shlibs=no 8231 fi 8232 ;; 8233 8234 interix[3-9]*) 8235 hardcode_direct=no 8236 hardcode_shlibpath_var=no 8237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8238 export_dynamic_flag_spec='${wl}-E' 8239 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8240 # Instead, shared libraries are loaded at an image base (0x10000000 by 8241 # default) and relocated if they conflict, which is a slow very memory 8242 # consuming and fragmenting process. To avoid this, we pick a random, 8243 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8244 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8246 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' 8247 ;; 8248 8249 gnu* | linux* | k*bsd*-gnu) 8250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8251 tmp_addflag= 8252 case $cc_basename,$host_cpu in 8253 pgcc*) # Portland Group C compiler 8254 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' 8255 tmp_addflag=' $pic_flag' 8256 ;; 8257 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8258 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' 8259 tmp_addflag=' $pic_flag -Mnomain' ;; 8260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8261 tmp_addflag=' -i_dynamic' ;; 8262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8263 tmp_addflag=' -i_dynamic -nofor_main' ;; 8264 ifc* | ifort*) # Intel Fortran compiler 8265 tmp_addflag=' -nofor_main' ;; 8266 esac 8267 case `$CC -V 2>&1 | sed 5q` in 8268 *Sun\ C*) # Sun C 5.9 8269 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' 8270 tmp_sharedflag='-G' ;; 8271 *Sun\ F*) # Sun Fortran 8.3 8272 tmp_sharedflag='-G' ;; 8273 *) 8274 tmp_sharedflag='-shared' ;; 8275 esac 8276 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8277 8278 if test $supports_anon_versioning = yes; then 8279 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8281 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8282 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8283 fi 8284 else 8285 ld_shlibs=no 8286 fi 8287 ;; 8288 8289 netbsd*) 8290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8291 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8292 wlarc= 8293 else 8294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8296 fi 8297 ;; 8298 8299 solaris*) 8300 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8301 ld_shlibs=no 8302 cat <<EOF 1>&2 8303 8304*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8305*** create shared libraries on Solaris systems. Therefore, libtool 8306*** is disabling shared libraries support. We urge you to upgrade GNU 8307*** binutils to release 2.9.1 or newer. Another option is to modify 8308*** your PATH or compiler configuration so that the native linker is 8309*** used, and then restart. 8310 8311EOF 8312 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8315 else 8316 ld_shlibs=no 8317 fi 8318 ;; 8319 8320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8321 case `$LD -v 2>&1` in 8322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8323 ld_shlibs=no 8324 cat <<_LT_EOF 1>&2 8325 8326*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8327*** reliably create shared libraries on SCO systems. Therefore, libtool 8328*** is disabling shared libraries support. We urge you to upgrade GNU 8329*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8330*** your PATH or compiler configuration so that the native linker is 8331*** used, and then restart. 8332 8333_LT_EOF 8334 ;; 8335 *) 8336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8337 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8340 else 8341 ld_shlibs=no 8342 fi 8343 ;; 8344 esac 8345 ;; 8346 8347 sunos4*) 8348 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8349 wlarc= 8350 hardcode_direct=yes 8351 hardcode_shlibpath_var=no 8352 ;; 8353 8354 *) 8355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8358 else 8359 ld_shlibs=no 8360 fi 8361 ;; 8362 esac 8363 8364 if test "$ld_shlibs" = no; then 8365 runpath_var= 8366 hardcode_libdir_flag_spec= 8367 export_dynamic_flag_spec= 8368 whole_archive_flag_spec= 8369 fi 8370 else 8371 # PORTME fill in a description of your system's linker (not GNU ld) 8372 case $host_os in 8373 aix3*) 8374 allow_undefined_flag=unsupported 8375 always_export_symbols=yes 8376 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' 8377 # Note: this linker hardcodes the directories in LIBPATH if there 8378 # are no directories specified by -L. 8379 hardcode_minus_L=yes 8380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8381 # Neither direct hardcoding nor static linking is supported with a 8382 # broken collect2. 8383 hardcode_direct=unsupported 8384 fi 8385 ;; 8386 8387 aix[4-9]*) 8388 if test "$host_cpu" = ia64; then 8389 # On IA64, the linker does run time linking by default, so we don't 8390 # have to do anything special. 8391 aix_use_runtimelinking=no 8392 exp_sym_flag='-Bexport' 8393 no_entry_flag="" 8394 else 8395 # If we're using GNU nm, then we don't want the "-C" option. 8396 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8397 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8398 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' 8399 else 8400 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' 8401 fi 8402 aix_use_runtimelinking=no 8403 8404 # Test if we are trying to use run time linking or normal 8405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8406 # need to do runtime linking. 8407 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8408 for ld_flag in $LDFLAGS; do 8409 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8410 aix_use_runtimelinking=yes 8411 break 8412 fi 8413 done 8414 ;; 8415 esac 8416 8417 exp_sym_flag='-bexport' 8418 no_entry_flag='-bnoentry' 8419 fi 8420 8421 # When large executables or shared objects are built, AIX ld can 8422 # have problems creating the table of contents. If linking a library 8423 # or program results in "error TOC overflow" add -mminimal-toc to 8424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8426 8427 archive_cmds='' 8428 hardcode_direct=yes 8429 hardcode_libdir_separator=':' 8430 link_all_deplibs=yes 8431 8432 if test "$GCC" = yes; then 8433 case $host_os in aix4.[012]|aix4.[012].*) 8434 # We only want to do this on AIX 4.2 and lower, the check 8435 # below for broken collect2 doesn't work under 4.3+ 8436 collect2name=`${CC} -print-prog-name=collect2` 8437 if test -f "$collect2name" && \ 8438 strings "$collect2name" | grep resolve_lib_name >/dev/null 8439 then 8440 # We have reworked collect2 8441 : 8442 else 8443 # We have old collect2 8444 hardcode_direct=unsupported 8445 # It fails to find uninstalled libraries when the uninstalled 8446 # path is not listed in the libpath. Setting hardcode_minus_L 8447 # to unsupported forces relinking 8448 hardcode_minus_L=yes 8449 hardcode_libdir_flag_spec='-L$libdir' 8450 hardcode_libdir_separator= 8451 fi 8452 ;; 8453 esac 8454 shared_flag='-shared' 8455 if test "$aix_use_runtimelinking" = yes; then 8456 shared_flag="$shared_flag "'${wl}-G' 8457 fi 8458 else 8459 # not using gcc 8460 if test "$host_cpu" = ia64; then 8461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8462 # chokes on -Wl,-G. The following line is correct: 8463 shared_flag='-G' 8464 else 8465 if test "$aix_use_runtimelinking" = yes; then 8466 shared_flag='${wl}-G' 8467 else 8468 shared_flag='${wl}-bM:SRE' 8469 fi 8470 fi 8471 fi 8472 8473 # It seems that -bexpall does not export symbols beginning with 8474 # underscore (_), so it is better to generate a list of symbols to export. 8475 always_export_symbols=yes 8476 if test "$aix_use_runtimelinking" = yes; then 8477 # Warning - without using the other runtime loading flags (-brtl), 8478 # -berok will link without error, but may produce a broken library. 8479 allow_undefined_flag='-berok' 8480 # Determine the default libpath from the value encoded in an empty executable. 8481 cat >conftest.$ac_ext <<_ACEOF 8482/* confdefs.h. */ 8483_ACEOF 8484cat confdefs.h >>conftest.$ac_ext 8485cat >>conftest.$ac_ext <<_ACEOF 8486/* end confdefs.h. */ 8487 8488int 8489main () 8490{ 8491 8492 ; 8493 return 0; 8494} 8495_ACEOF 8496rm -f conftest.$ac_objext conftest$ac_exeext 8497if { (ac_try="$ac_link" 8498case "(($ac_try" in 8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8500 *) ac_try_echo=$ac_try;; 8501esac 8502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8503$as_echo "$ac_try_echo") >&5 8504 (eval "$ac_link") 2>conftest.er1 8505 ac_status=$? 8506 grep -v '^ *+' conftest.er1 >conftest.err 8507 rm -f conftest.er1 8508 cat conftest.err >&5 8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8510 (exit $ac_status); } && { 8511 test -z "$ac_c_werror_flag" || 8512 test ! -s conftest.err 8513 } && test -s conftest$ac_exeext && { 8514 test "$cross_compiling" = yes || 8515 $as_test_x conftest$ac_exeext 8516 }; then 8517 8518lt_aix_libpath_sed=' 8519 /Import File Strings/,/^$/ { 8520 /^0/ { 8521 s/^0 *\(.*\)$/\1/ 8522 p 8523 } 8524 }' 8525aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8526# Check for a 64-bit object if we didn't find anything. 8527if test -z "$aix_libpath"; then 8528 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8529fi 8530else 8531 $as_echo "$as_me: failed program was:" >&5 8532sed 's/^/| /' conftest.$ac_ext >&5 8533 8534 8535fi 8536 8537rm -rf conftest.dSYM 8538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8539 conftest$ac_exeext conftest.$ac_ext 8540if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8541 8542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8543 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" 8544 else 8545 if test "$host_cpu" = ia64; then 8546 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8547 allow_undefined_flag="-z nodefs" 8548 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" 8549 else 8550 # Determine the default libpath from the value encoded in an empty executable. 8551 cat >conftest.$ac_ext <<_ACEOF 8552/* confdefs.h. */ 8553_ACEOF 8554cat confdefs.h >>conftest.$ac_ext 8555cat >>conftest.$ac_ext <<_ACEOF 8556/* end confdefs.h. */ 8557 8558int 8559main () 8560{ 8561 8562 ; 8563 return 0; 8564} 8565_ACEOF 8566rm -f conftest.$ac_objext conftest$ac_exeext 8567if { (ac_try="$ac_link" 8568case "(($ac_try" in 8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8570 *) ac_try_echo=$ac_try;; 8571esac 8572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8573$as_echo "$ac_try_echo") >&5 8574 (eval "$ac_link") 2>conftest.er1 8575 ac_status=$? 8576 grep -v '^ *+' conftest.er1 >conftest.err 8577 rm -f conftest.er1 8578 cat conftest.err >&5 8579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); } && { 8581 test -z "$ac_c_werror_flag" || 8582 test ! -s conftest.err 8583 } && test -s conftest$ac_exeext && { 8584 test "$cross_compiling" = yes || 8585 $as_test_x conftest$ac_exeext 8586 }; then 8587 8588lt_aix_libpath_sed=' 8589 /Import File Strings/,/^$/ { 8590 /^0/ { 8591 s/^0 *\(.*\)$/\1/ 8592 p 8593 } 8594 }' 8595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8596# Check for a 64-bit object if we didn't find anything. 8597if test -z "$aix_libpath"; then 8598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8599fi 8600else 8601 $as_echo "$as_me: failed program was:" >&5 8602sed 's/^/| /' conftest.$ac_ext >&5 8603 8604 8605fi 8606 8607rm -rf conftest.dSYM 8608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8609 conftest$ac_exeext conftest.$ac_ext 8610if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8611 8612 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8613 # Warning - without using the other run time loading flags, 8614 # -berok will link without error, but may produce a broken library. 8615 no_undefined_flag=' ${wl}-bernotok' 8616 allow_undefined_flag=' ${wl}-berok' 8617 # Exported symbols can be pulled into shared objects from archives 8618 whole_archive_flag_spec='$convenience' 8619 archive_cmds_need_lc=yes 8620 # This is similar to how AIX traditionally builds its shared libraries. 8621 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' 8622 fi 8623 fi 8624 ;; 8625 8626 amigaos*) 8627 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)' 8628 hardcode_libdir_flag_spec='-L$libdir' 8629 hardcode_minus_L=yes 8630 # see comment about different semantics on the GNU ld section 8631 ld_shlibs=no 8632 ;; 8633 8634 bsdi[45]*) 8635 export_dynamic_flag_spec=-rdynamic 8636 ;; 8637 8638 cygwin* | mingw* | pw32*) 8639 # When not using gcc, we currently assume that we are using 8640 # Microsoft Visual C++. 8641 # hardcode_libdir_flag_spec is actually meaningless, as there is 8642 # no search path for DLLs. 8643 hardcode_libdir_flag_spec=' ' 8644 allow_undefined_flag=unsupported 8645 # Tell ltmain to make .lib files, not .a files. 8646 libext=lib 8647 # Tell ltmain to make .dll files, not .so files. 8648 shrext_cmds=".dll" 8649 # FIXME: Setting linknames here is a bad hack. 8650 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8651 # The linker will automatically build a .lib file if we build a DLL. 8652 old_archive_From_new_cmds='true' 8653 # FIXME: Should let the user specify the lib program. 8654 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8655 fix_srcfile_path='`cygpath -w "$srcfile"`' 8656 enable_shared_with_static_runtimes=yes 8657 ;; 8658 8659 darwin* | rhapsody*) 8660 case $host_os in 8661 rhapsody* | darwin1.[012]) 8662 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8663 ;; 8664 *) # Darwin 1.3 on 8665 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8666 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8667 else 8668 case ${MACOSX_DEPLOYMENT_TARGET} in 8669 10.[012]) 8670 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8671 ;; 8672 10.*) 8673 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8674 ;; 8675 esac 8676 fi 8677 ;; 8678 esac 8679 archive_cmds_need_lc=no 8680 hardcode_direct=no 8681 hardcode_automatic=yes 8682 hardcode_shlibpath_var=unsupported 8683 whole_archive_flag_spec='' 8684 link_all_deplibs=yes 8685 if test "$GCC" = yes ; then 8686 output_verbose_link_cmd='echo' 8687 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8688 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8689 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}" 8690 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}" 8691 else 8692 case $cc_basename in 8693 xlc*) 8694 output_verbose_link_cmd='echo' 8695 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8696 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8698 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}' 8699 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}' 8700 ;; 8701 *) 8702 ld_shlibs=no 8703 ;; 8704 esac 8705 fi 8706 ;; 8707 8708 dgux*) 8709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8710 hardcode_libdir_flag_spec='-L$libdir' 8711 hardcode_shlibpath_var=no 8712 ;; 8713 8714 freebsd1*) 8715 ld_shlibs=no 8716 ;; 8717 8718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8719 # support. Future versions do this automatically, but an explicit c++rt0.o 8720 # does not break anything, and helps significantly (at the cost of a little 8721 # extra space). 8722 freebsd2.2*) 8723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8724 hardcode_libdir_flag_spec='-R$libdir' 8725 hardcode_direct=yes 8726 hardcode_shlibpath_var=no 8727 ;; 8728 8729 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8730 freebsd2*) 8731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8732 hardcode_direct=yes 8733 hardcode_minus_L=yes 8734 hardcode_shlibpath_var=no 8735 ;; 8736 8737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8738 freebsd* | dragonfly*) 8739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8740 hardcode_libdir_flag_spec='-R$libdir' 8741 hardcode_direct=yes 8742 hardcode_shlibpath_var=no 8743 ;; 8744 8745 hpux9*) 8746 if test "$GCC" = yes; then 8747 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' 8748 else 8749 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' 8750 fi 8751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8752 hardcode_libdir_separator=: 8753 hardcode_direct=yes 8754 8755 # hardcode_minus_L: Not really in the search PATH, 8756 # but as the default location of the library. 8757 hardcode_minus_L=yes 8758 export_dynamic_flag_spec='${wl}-E' 8759 ;; 8760 8761 hpux10*) 8762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8764 else 8765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8766 fi 8767 if test "$with_gnu_ld" = no; then 8768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8769 hardcode_libdir_separator=: 8770 8771 hardcode_direct=yes 8772 export_dynamic_flag_spec='${wl}-E' 8773 8774 # hardcode_minus_L: Not really in the search PATH, 8775 # but as the default location of the library. 8776 hardcode_minus_L=yes 8777 fi 8778 ;; 8779 8780 hpux11*) 8781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8782 case $host_cpu in 8783 hppa*64*) 8784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8785 ;; 8786 ia64*) 8787 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8788 ;; 8789 *) 8790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8791 ;; 8792 esac 8793 else 8794 case $host_cpu in 8795 hppa*64*) 8796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8797 ;; 8798 ia64*) 8799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8800 ;; 8801 *) 8802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8803 ;; 8804 esac 8805 fi 8806 if test "$with_gnu_ld" = no; then 8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8808 hardcode_libdir_separator=: 8809 8810 case $host_cpu in 8811 hppa*64*|ia64*) 8812 hardcode_libdir_flag_spec_ld='+b $libdir' 8813 hardcode_direct=no 8814 hardcode_shlibpath_var=no 8815 ;; 8816 *) 8817 hardcode_direct=yes 8818 export_dynamic_flag_spec='${wl}-E' 8819 8820 # hardcode_minus_L: Not really in the search PATH, 8821 # but as the default location of the library. 8822 hardcode_minus_L=yes 8823 ;; 8824 esac 8825 fi 8826 ;; 8827 8828 irix5* | irix6* | nonstopux*) 8829 if test "$GCC" = yes; then 8830 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' 8831 else 8832 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' 8833 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8834 fi 8835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8836 hardcode_libdir_separator=: 8837 link_all_deplibs=yes 8838 ;; 8839 8840 netbsd*) 8841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8843 else 8844 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8845 fi 8846 hardcode_libdir_flag_spec='-R$libdir' 8847 hardcode_direct=yes 8848 hardcode_shlibpath_var=no 8849 ;; 8850 8851 newsos6) 8852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8853 hardcode_direct=yes 8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8855 hardcode_libdir_separator=: 8856 hardcode_shlibpath_var=no 8857 ;; 8858 8859 openbsd*) 8860 if test -f /usr/libexec/ld.so; then 8861 hardcode_direct=yes 8862 hardcode_shlibpath_var=no 8863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8865 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8867 export_dynamic_flag_spec='${wl}-E' 8868 else 8869 case $host_os in 8870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8872 hardcode_libdir_flag_spec='-R$libdir' 8873 ;; 8874 *) 8875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8877 ;; 8878 esac 8879 fi 8880 else 8881 ld_shlibs=no 8882 fi 8883 ;; 8884 8885 os2*) 8886 hardcode_libdir_flag_spec='-L$libdir' 8887 hardcode_minus_L=yes 8888 allow_undefined_flag=unsupported 8889 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' 8890 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8891 ;; 8892 8893 osf3*) 8894 if test "$GCC" = yes; then 8895 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8896 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' 8897 else 8898 allow_undefined_flag=' -expect_unresolved \*' 8899 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' 8900 fi 8901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8902 hardcode_libdir_separator=: 8903 ;; 8904 8905 osf4* | osf5*) # as osf3* with the addition of -msym flag 8906 if test "$GCC" = yes; then 8907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8908 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' 8909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8910 else 8911 allow_undefined_flag=' -expect_unresolved \*' 8912 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' 8913 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8914 $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' 8915 8916 # Both c and cxx compiler support -rpath directly 8917 hardcode_libdir_flag_spec='-rpath $libdir' 8918 fi 8919 hardcode_libdir_separator=: 8920 ;; 8921 8922 solaris*) 8923 no_undefined_flag=' -z text' 8924 if test "$GCC" = yes; then 8925 wlarc='${wl}' 8926 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8927 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8928 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8929 else 8930 wlarc='' 8931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8934 fi 8935 hardcode_libdir_flag_spec='-R$libdir' 8936 hardcode_shlibpath_var=no 8937 case $host_os in 8938 solaris2.[0-5] | solaris2.[0-5].*) ;; 8939 *) 8940 # The compiler driver will combine and reorder linker options, 8941 # but understands `-z linker_flag'. GCC discards it without `$wl', 8942 # but is careful enough not to reorder. 8943 # Supported since Solaris 2.6 (maybe 2.5.1?) 8944 if test "$GCC" = yes; then 8945 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8946 else 8947 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8948 fi 8949 ;; 8950 esac 8951 link_all_deplibs=yes 8952 ;; 8953 8954 sunos4*) 8955 if test "x$host_vendor" = xsequent; then 8956 # Use $CC to link under sequent, because it throws in some extra .o 8957 # files that make .init and .fini sections work. 8958 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8959 else 8960 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8961 fi 8962 hardcode_libdir_flag_spec='-L$libdir' 8963 hardcode_direct=yes 8964 hardcode_minus_L=yes 8965 hardcode_shlibpath_var=no 8966 ;; 8967 8968 sysv4) 8969 case $host_vendor in 8970 sni) 8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8972 hardcode_direct=yes # is this really true??? 8973 ;; 8974 siemens) 8975 ## LD is ld it makes a PLAMLIB 8976 ## CC just makes a GrossModule. 8977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8978 reload_cmds='$CC -r -o $output$reload_objs' 8979 hardcode_direct=no 8980 ;; 8981 motorola) 8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8983 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8984 ;; 8985 esac 8986 runpath_var='LD_RUN_PATH' 8987 hardcode_shlibpath_var=no 8988 ;; 8989 8990 sysv4.3*) 8991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8992 hardcode_shlibpath_var=no 8993 export_dynamic_flag_spec='-Bexport' 8994 ;; 8995 8996 sysv4*MP*) 8997 if test -d /usr/nec; then 8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8999 hardcode_shlibpath_var=no 9000 runpath_var=LD_RUN_PATH 9001 hardcode_runpath_var=yes 9002 ld_shlibs=yes 9003 fi 9004 ;; 9005 9006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9007 no_undefined_flag='${wl}-z,text' 9008 archive_cmds_need_lc=no 9009 hardcode_shlibpath_var=no 9010 runpath_var='LD_RUN_PATH' 9011 9012 if test "$GCC" = yes; then 9013 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9015 else 9016 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9018 fi 9019 ;; 9020 9021 sysv5* | sco3.2v5* | sco5v6*) 9022 # Note: We can NOT use -z defs as we might desire, because we do not 9023 # link with -lc, and that would cause any symbols used from libc to 9024 # always be unresolved, which means just about no library would 9025 # ever link correctly. If we're not using GNU ld we use -z text 9026 # though, which does catch some bad symbols but isn't as heavy-handed 9027 # as -z defs. 9028 no_undefined_flag='${wl}-z,text' 9029 allow_undefined_flag='${wl}-z,nodefs' 9030 archive_cmds_need_lc=no 9031 hardcode_shlibpath_var=no 9032 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9033 hardcode_libdir_separator=':' 9034 link_all_deplibs=yes 9035 export_dynamic_flag_spec='${wl}-Bexport' 9036 runpath_var='LD_RUN_PATH' 9037 9038 if test "$GCC" = yes; then 9039 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9040 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9041 else 9042 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9043 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9044 fi 9045 ;; 9046 9047 uts4*) 9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9049 hardcode_libdir_flag_spec='-L$libdir' 9050 hardcode_shlibpath_var=no 9051 ;; 9052 9053 *) 9054 ld_shlibs=no 9055 ;; 9056 esac 9057 fi 9058 9059{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9060$as_echo "$ld_shlibs" >&6; } 9061test "$ld_shlibs" = no && can_build_shared=no 9062 9063# 9064# Do we need to explicitly link libc? 9065# 9066case "x$archive_cmds_need_lc" in 9067x|xyes) 9068 # Assume -lc should be added 9069 archive_cmds_need_lc=yes 9070 9071 if test "$enable_shared" = yes && test "$GCC" = yes; then 9072 case $archive_cmds in 9073 *'~'*) 9074 # FIXME: we may have to deal with multi-command sequences. 9075 ;; 9076 '$CC '*) 9077 # Test whether the compiler implicitly links with -lc since on some 9078 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9079 # to ld, don't add -lc before -lgcc. 9080 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9081$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9082 $rm conftest* 9083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9084 9085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9086 (eval $ac_compile) 2>&5 9087 ac_status=$? 9088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9089 (exit $ac_status); } 2>conftest.err; then 9090 soname=conftest 9091 lib=conftest 9092 libobjs=conftest.$ac_objext 9093 deplibs= 9094 wl=$lt_prog_compiler_wl 9095 pic_flag=$lt_prog_compiler_pic 9096 compiler_flags=-v 9097 linker_flags=-v 9098 verstring= 9099 output_objdir=. 9100 libname=conftest 9101 lt_save_allow_undefined_flag=$allow_undefined_flag 9102 allow_undefined_flag= 9103 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9104 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9105 ac_status=$? 9106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9107 (exit $ac_status); } 9108 then 9109 archive_cmds_need_lc=no 9110 else 9111 archive_cmds_need_lc=yes 9112 fi 9113 allow_undefined_flag=$lt_save_allow_undefined_flag 9114 else 9115 cat conftest.err 1>&5 9116 fi 9117 $rm conftest* 9118 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9119$as_echo "$archive_cmds_need_lc" >&6; } 9120 ;; 9121 esac 9122 fi 9123 ;; 9124esac 9125 9126{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9127$as_echo_n "checking dynamic linker characteristics... " >&6; } 9128library_names_spec= 9129libname_spec='lib$name' 9130soname_spec= 9131shrext_cmds=".so" 9132postinstall_cmds= 9133postuninstall_cmds= 9134finish_cmds= 9135finish_eval= 9136shlibpath_var= 9137shlibpath_overrides_runpath=unknown 9138version_type=none 9139dynamic_linker="$host_os ld.so" 9140sys_lib_dlsearch_path_spec="/lib /usr/lib" 9141 9142if test "$GCC" = yes; then 9143 case $host_os in 9144 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9145 *) lt_awk_arg="/^libraries:/" ;; 9146 esac 9147 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9148 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9149 # if the path contains ";" then we assume it to be the separator 9150 # otherwise default to the standard path separator (i.e. ":") - it is 9151 # assumed that no part of a normal pathname contains ";" but that should 9152 # okay in the real world where ";" in dirpaths is itself problematic. 9153 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9154 else 9155 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9156 fi 9157 # Ok, now we have the path, separated by spaces, we can step through it 9158 # and add multilib dir if necessary. 9159 lt_tmp_lt_search_path_spec= 9160 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9161 for lt_sys_path in $lt_search_path_spec; do 9162 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9164 else 9165 test -d "$lt_sys_path" && \ 9166 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9167 fi 9168 done 9169 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9170BEGIN {RS=" "; FS="/|\n";} { 9171 lt_foo=""; 9172 lt_count=0; 9173 for (lt_i = NF; lt_i > 0; lt_i--) { 9174 if ($lt_i != "" && $lt_i != ".") { 9175 if ($lt_i == "..") { 9176 lt_count++; 9177 } else { 9178 if (lt_count == 0) { 9179 lt_foo="/" $lt_i lt_foo; 9180 } else { 9181 lt_count--; 9182 } 9183 } 9184 } 9185 } 9186 if (lt_foo != "") { lt_freq[lt_foo]++; } 9187 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9188}'` 9189 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9190else 9191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9192fi 9193need_lib_prefix=unknown 9194hardcode_into_libs=no 9195 9196# when you set need_version to no, make sure it does not cause -set_version 9197# flags to be left without arguments 9198need_version=unknown 9199 9200case $host_os in 9201aix3*) 9202 version_type=linux 9203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9204 shlibpath_var=LIBPATH 9205 9206 # AIX 3 has no versioning support, so we append a major version to the name. 9207 soname_spec='${libname}${release}${shared_ext}$major' 9208 ;; 9209 9210aix[4-9]*) 9211 version_type=linux 9212 need_lib_prefix=no 9213 need_version=no 9214 hardcode_into_libs=yes 9215 if test "$host_cpu" = ia64; then 9216 # AIX 5 supports IA64 9217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9218 shlibpath_var=LD_LIBRARY_PATH 9219 else 9220 # With GCC up to 2.95.x, collect2 would create an import file 9221 # for dependence libraries. The import file would start with 9222 # the line `#! .'. This would cause the generated library to 9223 # depend on `.', always an invalid library. This was fixed in 9224 # development snapshots of GCC prior to 3.0. 9225 case $host_os in 9226 aix4 | aix4.[01] | aix4.[01].*) 9227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9228 echo ' yes ' 9229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9230 : 9231 else 9232 can_build_shared=no 9233 fi 9234 ;; 9235 esac 9236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9237 # soname into executable. Probably we can add versioning support to 9238 # collect2, so additional links can be useful in future. 9239 if test "$aix_use_runtimelinking" = yes; then 9240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9241 # instead of lib<name>.a to let people know that these are not 9242 # typical AIX shared libraries. 9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9244 else 9245 # We preserve .a as extension for shared libraries through AIX4.2 9246 # and later when we are not doing run time linking. 9247 library_names_spec='${libname}${release}.a $libname.a' 9248 soname_spec='${libname}${release}${shared_ext}$major' 9249 fi 9250 shlibpath_var=LIBPATH 9251 fi 9252 ;; 9253 9254amigaos*) 9255 library_names_spec='$libname.ixlibrary $libname.a' 9256 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9257 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' 9258 ;; 9259 9260beos*) 9261 library_names_spec='${libname}${shared_ext}' 9262 dynamic_linker="$host_os ld.so" 9263 shlibpath_var=LIBRARY_PATH 9264 ;; 9265 9266bsdi[45]*) 9267 version_type=linux 9268 need_version=no 9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9270 soname_spec='${libname}${release}${shared_ext}$major' 9271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9272 shlibpath_var=LD_LIBRARY_PATH 9273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9275 # the default ld.so.conf also contains /usr/contrib/lib and 9276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9277 # libtool to hard-code these into programs 9278 ;; 9279 9280cygwin* | mingw* | pw32*) 9281 version_type=windows 9282 shrext_cmds=".dll" 9283 need_version=no 9284 need_lib_prefix=no 9285 9286 case $GCC,$host_os in 9287 yes,cygwin* | yes,mingw* | yes,pw32*) 9288 library_names_spec='$libname.dll.a' 9289 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9290 postinstall_cmds='base_file=`basename \${file}`~ 9291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9292 dldir=$destdir/`dirname \$dlpath`~ 9293 test -d \$dldir || mkdir -p \$dldir~ 9294 $install_prog $dir/$dlname \$dldir/$dlname~ 9295 chmod a+x \$dldir/$dlname' 9296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9297 dlpath=$dir/\$dldll~ 9298 $rm \$dlpath' 9299 shlibpath_overrides_runpath=yes 9300 9301 case $host_os in 9302 cygwin*) 9303 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9306 ;; 9307 mingw*) 9308 # MinGW DLLs use traditional 'lib' prefix 9309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9312 # It is most probably a Windows format PATH printed by 9313 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9314 # path with ; separators, and with drive letters. We can handle the 9315 # drive letters (cygwin fileutils understands them), so leave them, 9316 # especially as we might pass files found there to a mingw objdump, 9317 # which wouldn't understand a cygwinified path. Ahh. 9318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9319 else 9320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9321 fi 9322 ;; 9323 pw32*) 9324 # pw32 DLLs use 'pw' prefix rather than 'lib' 9325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9326 ;; 9327 esac 9328 ;; 9329 9330 *) 9331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9332 ;; 9333 esac 9334 dynamic_linker='Win32 ld.exe' 9335 # FIXME: first we should search . and the directory the executable is in 9336 shlibpath_var=PATH 9337 ;; 9338 9339darwin* | rhapsody*) 9340 dynamic_linker="$host_os dyld" 9341 version_type=darwin 9342 need_lib_prefix=no 9343 need_version=no 9344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9345 soname_spec='${libname}${release}${major}$shared_ext' 9346 shlibpath_overrides_runpath=yes 9347 shlibpath_var=DYLD_LIBRARY_PATH 9348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9349 9350 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9351 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9352 ;; 9353 9354dgux*) 9355 version_type=linux 9356 need_lib_prefix=no 9357 need_version=no 9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9359 soname_spec='${libname}${release}${shared_ext}$major' 9360 shlibpath_var=LD_LIBRARY_PATH 9361 ;; 9362 9363freebsd1*) 9364 dynamic_linker=no 9365 ;; 9366 9367freebsd* | dragonfly*) 9368 # DragonFly does not have aout. When/if they implement a new 9369 # versioning mechanism, adjust this. 9370 if test -x /usr/bin/objformat; then 9371 objformat=`/usr/bin/objformat` 9372 else 9373 case $host_os in 9374 freebsd[123]*) objformat=aout ;; 9375 *) objformat=elf ;; 9376 esac 9377 fi 9378 version_type=freebsd-$objformat 9379 case $version_type in 9380 freebsd-elf*) 9381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9382 need_version=no 9383 need_lib_prefix=no 9384 ;; 9385 freebsd-*) 9386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9387 need_version=yes 9388 ;; 9389 esac 9390 shlibpath_var=LD_LIBRARY_PATH 9391 case $host_os in 9392 freebsd2*) 9393 shlibpath_overrides_runpath=yes 9394 ;; 9395 freebsd3.[01]* | freebsdelf3.[01]*) 9396 shlibpath_overrides_runpath=yes 9397 hardcode_into_libs=yes 9398 ;; 9399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9401 shlibpath_overrides_runpath=no 9402 hardcode_into_libs=yes 9403 ;; 9404 *) # from 4.6 on, and DragonFly 9405 shlibpath_overrides_runpath=yes 9406 hardcode_into_libs=yes 9407 ;; 9408 esac 9409 ;; 9410 9411gnu*) 9412 version_type=linux 9413 need_lib_prefix=no 9414 need_version=no 9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9416 soname_spec='${libname}${release}${shared_ext}$major' 9417 shlibpath_var=LD_LIBRARY_PATH 9418 hardcode_into_libs=yes 9419 ;; 9420 9421hpux9* | hpux10* | hpux11*) 9422 # Give a soname corresponding to the major version so that dld.sl refuses to 9423 # link against other versions. 9424 version_type=sunos 9425 need_lib_prefix=no 9426 need_version=no 9427 case $host_cpu in 9428 ia64*) 9429 shrext_cmds='.so' 9430 hardcode_into_libs=yes 9431 dynamic_linker="$host_os dld.so" 9432 shlibpath_var=LD_LIBRARY_PATH 9433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9435 soname_spec='${libname}${release}${shared_ext}$major' 9436 if test "X$HPUX_IA64_MODE" = X32; then 9437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9438 else 9439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9440 fi 9441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9442 ;; 9443 hppa*64*) 9444 shrext_cmds='.sl' 9445 hardcode_into_libs=yes 9446 dynamic_linker="$host_os dld.sl" 9447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9450 soname_spec='${libname}${release}${shared_ext}$major' 9451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9453 ;; 9454 *) 9455 shrext_cmds='.sl' 9456 dynamic_linker="$host_os dld.sl" 9457 shlibpath_var=SHLIB_PATH 9458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9460 soname_spec='${libname}${release}${shared_ext}$major' 9461 ;; 9462 esac 9463 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9464 postinstall_cmds='chmod 555 $lib' 9465 ;; 9466 9467interix[3-9]*) 9468 version_type=linux 9469 need_lib_prefix=no 9470 need_version=no 9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9472 soname_spec='${libname}${release}${shared_ext}$major' 9473 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9474 shlibpath_var=LD_LIBRARY_PATH 9475 shlibpath_overrides_runpath=no 9476 hardcode_into_libs=yes 9477 ;; 9478 9479irix5* | irix6* | nonstopux*) 9480 case $host_os in 9481 nonstopux*) version_type=nonstopux ;; 9482 *) 9483 if test "$lt_cv_prog_gnu_ld" = yes; then 9484 version_type=linux 9485 else 9486 version_type=irix 9487 fi ;; 9488 esac 9489 need_lib_prefix=no 9490 need_version=no 9491 soname_spec='${libname}${release}${shared_ext}$major' 9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9493 case $host_os in 9494 irix5* | nonstopux*) 9495 libsuff= shlibsuff= 9496 ;; 9497 *) 9498 case $LD in # libtool.m4 will add one of these switches to LD 9499 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9500 libsuff= shlibsuff= libmagic=32-bit;; 9501 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9502 libsuff=32 shlibsuff=N32 libmagic=N32;; 9503 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9504 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9505 *) libsuff= shlibsuff= libmagic=never-match;; 9506 esac 9507 ;; 9508 esac 9509 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9510 shlibpath_overrides_runpath=no 9511 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9512 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9513 hardcode_into_libs=yes 9514 ;; 9515 9516# No shared lib support for Linux oldld, aout, or coff. 9517linux*oldld* | linux*aout* | linux*coff*) 9518 dynamic_linker=no 9519 ;; 9520 9521# This must be Linux ELF. 9522linux* | k*bsd*-gnu) 9523 version_type=linux 9524 need_lib_prefix=no 9525 need_version=no 9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9527 soname_spec='${libname}${release}${shared_ext}$major' 9528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9529 shlibpath_var=LD_LIBRARY_PATH 9530 shlibpath_overrides_runpath=no 9531 # This implies no fast_install, which is unacceptable. 9532 # Some rework will be needed to allow for fast_install 9533 # before this can be enabled. 9534 hardcode_into_libs=yes 9535 9536 # Append ld.so.conf contents to the search path 9537 if test -f /etc/ld.so.conf; then 9538 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' ' '` 9539 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9540 fi 9541 9542 # We used to test for /lib/ld.so.1 and disable shared libraries on 9543 # powerpc, because MkLinux only supported shared libraries with the 9544 # GNU dynamic linker. Since this was broken with cross compilers, 9545 # most powerpc-linux boxes support dynamic linking these days and 9546 # people can always --disable-shared, the test was removed, and we 9547 # assume the GNU/Linux dynamic linker is in use. 9548 dynamic_linker='GNU/Linux ld.so' 9549 ;; 9550 9551netbsd*) 9552 version_type=sunos 9553 need_lib_prefix=no 9554 need_version=no 9555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9558 dynamic_linker='NetBSD (a.out) ld.so' 9559 else 9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9561 soname_spec='${libname}${release}${shared_ext}$major' 9562 dynamic_linker='NetBSD ld.elf_so' 9563 fi 9564 shlibpath_var=LD_LIBRARY_PATH 9565 shlibpath_overrides_runpath=yes 9566 hardcode_into_libs=yes 9567 ;; 9568 9569newsos6) 9570 version_type=linux 9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9572 shlibpath_var=LD_LIBRARY_PATH 9573 shlibpath_overrides_runpath=yes 9574 ;; 9575 9576nto-qnx*) 9577 version_type=linux 9578 need_lib_prefix=no 9579 need_version=no 9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9581 soname_spec='${libname}${release}${shared_ext}$major' 9582 shlibpath_var=LD_LIBRARY_PATH 9583 shlibpath_overrides_runpath=yes 9584 ;; 9585 9586openbsd*) 9587 version_type=sunos 9588 sys_lib_dlsearch_path_spec="/usr/lib" 9589 need_lib_prefix=no 9590 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9591 case $host_os in 9592 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9593 *) need_version=no ;; 9594 esac 9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9597 shlibpath_var=LD_LIBRARY_PATH 9598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9599 case $host_os in 9600 openbsd2.[89] | openbsd2.[89].*) 9601 shlibpath_overrides_runpath=no 9602 ;; 9603 *) 9604 shlibpath_overrides_runpath=yes 9605 ;; 9606 esac 9607 else 9608 shlibpath_overrides_runpath=yes 9609 fi 9610 ;; 9611 9612os2*) 9613 libname_spec='$name' 9614 shrext_cmds=".dll" 9615 need_lib_prefix=no 9616 library_names_spec='$libname${shared_ext} $libname.a' 9617 dynamic_linker='OS/2 ld.exe' 9618 shlibpath_var=LIBPATH 9619 ;; 9620 9621osf3* | osf4* | osf5*) 9622 version_type=osf 9623 need_lib_prefix=no 9624 need_version=no 9625 soname_spec='${libname}${release}${shared_ext}$major' 9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9627 shlibpath_var=LD_LIBRARY_PATH 9628 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9629 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9630 ;; 9631 9632rdos*) 9633 dynamic_linker=no 9634 ;; 9635 9636solaris*) 9637 version_type=linux 9638 need_lib_prefix=no 9639 need_version=no 9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9641 soname_spec='${libname}${release}${shared_ext}$major' 9642 shlibpath_var=LD_LIBRARY_PATH 9643 shlibpath_overrides_runpath=yes 9644 hardcode_into_libs=yes 9645 # ldd complains unless libraries are executable 9646 postinstall_cmds='chmod +x $lib' 9647 ;; 9648 9649sunos4*) 9650 version_type=sunos 9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9652 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9653 shlibpath_var=LD_LIBRARY_PATH 9654 shlibpath_overrides_runpath=yes 9655 if test "$with_gnu_ld" = yes; then 9656 need_lib_prefix=no 9657 fi 9658 need_version=yes 9659 ;; 9660 9661sysv4 | sysv4.3*) 9662 version_type=linux 9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9664 soname_spec='${libname}${release}${shared_ext}$major' 9665 shlibpath_var=LD_LIBRARY_PATH 9666 case $host_vendor in 9667 sni) 9668 shlibpath_overrides_runpath=no 9669 need_lib_prefix=no 9670 export_dynamic_flag_spec='${wl}-Blargedynsym' 9671 runpath_var=LD_RUN_PATH 9672 ;; 9673 siemens) 9674 need_lib_prefix=no 9675 ;; 9676 motorola) 9677 need_lib_prefix=no 9678 need_version=no 9679 shlibpath_overrides_runpath=no 9680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9681 ;; 9682 esac 9683 ;; 9684 9685sysv4*MP*) 9686 if test -d /usr/nec ;then 9687 version_type=linux 9688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9689 soname_spec='$libname${shared_ext}.$major' 9690 shlibpath_var=LD_LIBRARY_PATH 9691 fi 9692 ;; 9693 9694sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9695 version_type=freebsd-elf 9696 need_lib_prefix=no 9697 need_version=no 9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9699 soname_spec='${libname}${release}${shared_ext}$major' 9700 shlibpath_var=LD_LIBRARY_PATH 9701 hardcode_into_libs=yes 9702 if test "$with_gnu_ld" = yes; then 9703 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9704 shlibpath_overrides_runpath=no 9705 else 9706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9707 shlibpath_overrides_runpath=yes 9708 case $host_os in 9709 sco3.2v5*) 9710 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9711 ;; 9712 esac 9713 fi 9714 sys_lib_dlsearch_path_spec='/usr/lib' 9715 ;; 9716 9717uts4*) 9718 version_type=linux 9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9720 soname_spec='${libname}${release}${shared_ext}$major' 9721 shlibpath_var=LD_LIBRARY_PATH 9722 ;; 9723 9724*) 9725 dynamic_linker=no 9726 ;; 9727esac 9728{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9729$as_echo "$dynamic_linker" >&6; } 9730test "$dynamic_linker" = no && can_build_shared=no 9731 9732if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9733 $as_echo_n "(cached) " >&6 9734else 9735 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9736fi 9737 9738sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9739if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9740 $as_echo_n "(cached) " >&6 9741else 9742 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9743fi 9744 9745sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9746 9747variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9748if test "$GCC" = yes; then 9749 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9750fi 9751 9752{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9753$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9754hardcode_action= 9755if test -n "$hardcode_libdir_flag_spec" || \ 9756 test -n "$runpath_var" || \ 9757 test "X$hardcode_automatic" = "Xyes" ; then 9758 9759 # We can hardcode non-existant directories. 9760 if test "$hardcode_direct" != no && 9761 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9762 # have to relink, otherwise we might link with an installed library 9763 # when we should be linking with a yet-to-be-installed one 9764 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9765 test "$hardcode_minus_L" != no; then 9766 # Linking always hardcodes the temporary library directory. 9767 hardcode_action=relink 9768 else 9769 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9770 hardcode_action=immediate 9771 fi 9772else 9773 # We cannot hardcode anything, or else we can only hardcode existing 9774 # directories. 9775 hardcode_action=unsupported 9776fi 9777{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9778$as_echo "$hardcode_action" >&6; } 9779 9780if test "$hardcode_action" = relink; then 9781 # Fast installation is not supported 9782 enable_fast_install=no 9783elif test "$shlibpath_overrides_runpath" = yes || 9784 test "$enable_shared" = no; then 9785 # Fast installation is not necessary 9786 enable_fast_install=needless 9787fi 9788 9789striplib= 9790old_striplib= 9791{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9792$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9793if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9795 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9796 { $as_echo "$as_me:$LINENO: result: yes" >&5 9797$as_echo "yes" >&6; } 9798else 9799# FIXME - insert some real tests, host_os isn't really good enough 9800 case $host_os in 9801 darwin*) 9802 if test -n "$STRIP" ; then 9803 striplib="$STRIP -x" 9804 old_striplib="$STRIP -S" 9805 { $as_echo "$as_me:$LINENO: result: yes" >&5 9806$as_echo "yes" >&6; } 9807 else 9808 { $as_echo "$as_me:$LINENO: result: no" >&5 9809$as_echo "no" >&6; } 9810fi 9811 ;; 9812 *) 9813 { $as_echo "$as_me:$LINENO: result: no" >&5 9814$as_echo "no" >&6; } 9815 ;; 9816 esac 9817fi 9818 9819if test "x$enable_dlopen" != xyes; then 9820 enable_dlopen=unknown 9821 enable_dlopen_self=unknown 9822 enable_dlopen_self_static=unknown 9823else 9824 lt_cv_dlopen=no 9825 lt_cv_dlopen_libs= 9826 9827 case $host_os in 9828 beos*) 9829 lt_cv_dlopen="load_add_on" 9830 lt_cv_dlopen_libs= 9831 lt_cv_dlopen_self=yes 9832 ;; 9833 9834 mingw* | pw32*) 9835 lt_cv_dlopen="LoadLibrary" 9836 lt_cv_dlopen_libs= 9837 ;; 9838 9839 cygwin*) 9840 lt_cv_dlopen="dlopen" 9841 lt_cv_dlopen_libs= 9842 ;; 9843 9844 darwin*) 9845 # if libdl is installed we need to link against it 9846 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9847$as_echo_n "checking for dlopen in -ldl... " >&6; } 9848if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9849 $as_echo_n "(cached) " >&6 9850else 9851 ac_check_lib_save_LIBS=$LIBS 9852LIBS="-ldl $LIBS" 9853cat >conftest.$ac_ext <<_ACEOF 9854/* confdefs.h. */ 9855_ACEOF 9856cat confdefs.h >>conftest.$ac_ext 9857cat >>conftest.$ac_ext <<_ACEOF 9858/* end confdefs.h. */ 9859 9860/* Override any GCC internal prototype to avoid an error. 9861 Use char because int might match the return type of a GCC 9862 builtin and then its argument prototype would still apply. */ 9863#ifdef __cplusplus 9864extern "C" 9865#endif 9866char dlopen (); 9867int 9868main () 9869{ 9870return dlopen (); 9871 ; 9872 return 0; 9873} 9874_ACEOF 9875rm -f conftest.$ac_objext conftest$ac_exeext 9876if { (ac_try="$ac_link" 9877case "(($ac_try" in 9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9879 *) ac_try_echo=$ac_try;; 9880esac 9881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9882$as_echo "$ac_try_echo") >&5 9883 (eval "$ac_link") 2>conftest.er1 9884 ac_status=$? 9885 grep -v '^ *+' conftest.er1 >conftest.err 9886 rm -f conftest.er1 9887 cat conftest.err >&5 9888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9889 (exit $ac_status); } && { 9890 test -z "$ac_c_werror_flag" || 9891 test ! -s conftest.err 9892 } && test -s conftest$ac_exeext && { 9893 test "$cross_compiling" = yes || 9894 $as_test_x conftest$ac_exeext 9895 }; then 9896 ac_cv_lib_dl_dlopen=yes 9897else 9898 $as_echo "$as_me: failed program was:" >&5 9899sed 's/^/| /' conftest.$ac_ext >&5 9900 9901 ac_cv_lib_dl_dlopen=no 9902fi 9903 9904rm -rf conftest.dSYM 9905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9906 conftest$ac_exeext conftest.$ac_ext 9907LIBS=$ac_check_lib_save_LIBS 9908fi 9909{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9910$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9911if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9913else 9914 9915 lt_cv_dlopen="dyld" 9916 lt_cv_dlopen_libs= 9917 lt_cv_dlopen_self=yes 9918 9919fi 9920 9921 ;; 9922 9923 *) 9924 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9925$as_echo_n "checking for shl_load... " >&6; } 9926if test "${ac_cv_func_shl_load+set}" = set; then 9927 $as_echo_n "(cached) " >&6 9928else 9929 cat >conftest.$ac_ext <<_ACEOF 9930/* confdefs.h. */ 9931_ACEOF 9932cat confdefs.h >>conftest.$ac_ext 9933cat >>conftest.$ac_ext <<_ACEOF 9934/* end confdefs.h. */ 9935/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9937#define shl_load innocuous_shl_load 9938 9939/* System header to define __stub macros and hopefully few prototypes, 9940 which can conflict with char shl_load (); below. 9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9942 <limits.h> exists even on freestanding compilers. */ 9943 9944#ifdef __STDC__ 9945# include <limits.h> 9946#else 9947# include <assert.h> 9948#endif 9949 9950#undef shl_load 9951 9952/* Override any GCC internal prototype to avoid an error. 9953 Use char because int might match the return type of a GCC 9954 builtin and then its argument prototype would still apply. */ 9955#ifdef __cplusplus 9956extern "C" 9957#endif 9958char shl_load (); 9959/* The GNU C library defines this for functions which it implements 9960 to always fail with ENOSYS. Some functions are actually named 9961 something starting with __ and the normal name is an alias. */ 9962#if defined __stub_shl_load || defined __stub___shl_load 9963choke me 9964#endif 9965 9966int 9967main () 9968{ 9969return shl_load (); 9970 ; 9971 return 0; 9972} 9973_ACEOF 9974rm -f conftest.$ac_objext conftest$ac_exeext 9975if { (ac_try="$ac_link" 9976case "(($ac_try" in 9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9978 *) ac_try_echo=$ac_try;; 9979esac 9980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9981$as_echo "$ac_try_echo") >&5 9982 (eval "$ac_link") 2>conftest.er1 9983 ac_status=$? 9984 grep -v '^ *+' conftest.er1 >conftest.err 9985 rm -f conftest.er1 9986 cat conftest.err >&5 9987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9988 (exit $ac_status); } && { 9989 test -z "$ac_c_werror_flag" || 9990 test ! -s conftest.err 9991 } && test -s conftest$ac_exeext && { 9992 test "$cross_compiling" = yes || 9993 $as_test_x conftest$ac_exeext 9994 }; then 9995 ac_cv_func_shl_load=yes 9996else 9997 $as_echo "$as_me: failed program was:" >&5 9998sed 's/^/| /' conftest.$ac_ext >&5 9999 10000 ac_cv_func_shl_load=no 10001fi 10002 10003rm -rf conftest.dSYM 10004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10005 conftest$ac_exeext conftest.$ac_ext 10006fi 10007{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10008$as_echo "$ac_cv_func_shl_load" >&6; } 10009if test "x$ac_cv_func_shl_load" = x""yes; then 10010 lt_cv_dlopen="shl_load" 10011else 10012 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10013$as_echo_n "checking for shl_load in -ldld... " >&6; } 10014if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10015 $as_echo_n "(cached) " >&6 10016else 10017 ac_check_lib_save_LIBS=$LIBS 10018LIBS="-ldld $LIBS" 10019cat >conftest.$ac_ext <<_ACEOF 10020/* confdefs.h. */ 10021_ACEOF 10022cat confdefs.h >>conftest.$ac_ext 10023cat >>conftest.$ac_ext <<_ACEOF 10024/* end confdefs.h. */ 10025 10026/* Override any GCC internal prototype to avoid an error. 10027 Use char because int might match the return type of a GCC 10028 builtin and then its argument prototype would still apply. */ 10029#ifdef __cplusplus 10030extern "C" 10031#endif 10032char shl_load (); 10033int 10034main () 10035{ 10036return shl_load (); 10037 ; 10038 return 0; 10039} 10040_ACEOF 10041rm -f conftest.$ac_objext conftest$ac_exeext 10042if { (ac_try="$ac_link" 10043case "(($ac_try" in 10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10045 *) ac_try_echo=$ac_try;; 10046esac 10047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10048$as_echo "$ac_try_echo") >&5 10049 (eval "$ac_link") 2>conftest.er1 10050 ac_status=$? 10051 grep -v '^ *+' conftest.er1 >conftest.err 10052 rm -f conftest.er1 10053 cat conftest.err >&5 10054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10055 (exit $ac_status); } && { 10056 test -z "$ac_c_werror_flag" || 10057 test ! -s conftest.err 10058 } && test -s conftest$ac_exeext && { 10059 test "$cross_compiling" = yes || 10060 $as_test_x conftest$ac_exeext 10061 }; then 10062 ac_cv_lib_dld_shl_load=yes 10063else 10064 $as_echo "$as_me: failed program was:" >&5 10065sed 's/^/| /' conftest.$ac_ext >&5 10066 10067 ac_cv_lib_dld_shl_load=no 10068fi 10069 10070rm -rf conftest.dSYM 10071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10072 conftest$ac_exeext conftest.$ac_ext 10073LIBS=$ac_check_lib_save_LIBS 10074fi 10075{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10076$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10077if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10078 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10079else 10080 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10081$as_echo_n "checking for dlopen... " >&6; } 10082if test "${ac_cv_func_dlopen+set}" = set; then 10083 $as_echo_n "(cached) " >&6 10084else 10085 cat >conftest.$ac_ext <<_ACEOF 10086/* confdefs.h. */ 10087_ACEOF 10088cat confdefs.h >>conftest.$ac_ext 10089cat >>conftest.$ac_ext <<_ACEOF 10090/* end confdefs.h. */ 10091/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10092 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10093#define dlopen innocuous_dlopen 10094 10095/* System header to define __stub macros and hopefully few prototypes, 10096 which can conflict with char dlopen (); below. 10097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10098 <limits.h> exists even on freestanding compilers. */ 10099 10100#ifdef __STDC__ 10101# include <limits.h> 10102#else 10103# include <assert.h> 10104#endif 10105 10106#undef dlopen 10107 10108/* Override any GCC internal prototype to avoid an error. 10109 Use char because int might match the return type of a GCC 10110 builtin and then its argument prototype would still apply. */ 10111#ifdef __cplusplus 10112extern "C" 10113#endif 10114char dlopen (); 10115/* The GNU C library defines this for functions which it implements 10116 to always fail with ENOSYS. Some functions are actually named 10117 something starting with __ and the normal name is an alias. */ 10118#if defined __stub_dlopen || defined __stub___dlopen 10119choke me 10120#endif 10121 10122int 10123main () 10124{ 10125return dlopen (); 10126 ; 10127 return 0; 10128} 10129_ACEOF 10130rm -f conftest.$ac_objext conftest$ac_exeext 10131if { (ac_try="$ac_link" 10132case "(($ac_try" in 10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10134 *) ac_try_echo=$ac_try;; 10135esac 10136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10137$as_echo "$ac_try_echo") >&5 10138 (eval "$ac_link") 2>conftest.er1 10139 ac_status=$? 10140 grep -v '^ *+' conftest.er1 >conftest.err 10141 rm -f conftest.er1 10142 cat conftest.err >&5 10143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && { 10145 test -z "$ac_c_werror_flag" || 10146 test ! -s conftest.err 10147 } && test -s conftest$ac_exeext && { 10148 test "$cross_compiling" = yes || 10149 $as_test_x conftest$ac_exeext 10150 }; then 10151 ac_cv_func_dlopen=yes 10152else 10153 $as_echo "$as_me: failed program was:" >&5 10154sed 's/^/| /' conftest.$ac_ext >&5 10155 10156 ac_cv_func_dlopen=no 10157fi 10158 10159rm -rf conftest.dSYM 10160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10161 conftest$ac_exeext conftest.$ac_ext 10162fi 10163{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10164$as_echo "$ac_cv_func_dlopen" >&6; } 10165if test "x$ac_cv_func_dlopen" = x""yes; then 10166 lt_cv_dlopen="dlopen" 10167else 10168 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10169$as_echo_n "checking for dlopen in -ldl... " >&6; } 10170if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10171 $as_echo_n "(cached) " >&6 10172else 10173 ac_check_lib_save_LIBS=$LIBS 10174LIBS="-ldl $LIBS" 10175cat >conftest.$ac_ext <<_ACEOF 10176/* confdefs.h. */ 10177_ACEOF 10178cat confdefs.h >>conftest.$ac_ext 10179cat >>conftest.$ac_ext <<_ACEOF 10180/* end confdefs.h. */ 10181 10182/* Override any GCC internal prototype to avoid an error. 10183 Use char because int might match the return type of a GCC 10184 builtin and then its argument prototype would still apply. */ 10185#ifdef __cplusplus 10186extern "C" 10187#endif 10188char dlopen (); 10189int 10190main () 10191{ 10192return dlopen (); 10193 ; 10194 return 0; 10195} 10196_ACEOF 10197rm -f conftest.$ac_objext conftest$ac_exeext 10198if { (ac_try="$ac_link" 10199case "(($ac_try" in 10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10201 *) ac_try_echo=$ac_try;; 10202esac 10203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10204$as_echo "$ac_try_echo") >&5 10205 (eval "$ac_link") 2>conftest.er1 10206 ac_status=$? 10207 grep -v '^ *+' conftest.er1 >conftest.err 10208 rm -f conftest.er1 10209 cat conftest.err >&5 10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); } && { 10212 test -z "$ac_c_werror_flag" || 10213 test ! -s conftest.err 10214 } && test -s conftest$ac_exeext && { 10215 test "$cross_compiling" = yes || 10216 $as_test_x conftest$ac_exeext 10217 }; then 10218 ac_cv_lib_dl_dlopen=yes 10219else 10220 $as_echo "$as_me: failed program was:" >&5 10221sed 's/^/| /' conftest.$ac_ext >&5 10222 10223 ac_cv_lib_dl_dlopen=no 10224fi 10225 10226rm -rf conftest.dSYM 10227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10228 conftest$ac_exeext conftest.$ac_ext 10229LIBS=$ac_check_lib_save_LIBS 10230fi 10231{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10232$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10233if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10235else 10236 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10237$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10238if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10239 $as_echo_n "(cached) " >&6 10240else 10241 ac_check_lib_save_LIBS=$LIBS 10242LIBS="-lsvld $LIBS" 10243cat >conftest.$ac_ext <<_ACEOF 10244/* confdefs.h. */ 10245_ACEOF 10246cat confdefs.h >>conftest.$ac_ext 10247cat >>conftest.$ac_ext <<_ACEOF 10248/* end confdefs.h. */ 10249 10250/* Override any GCC internal prototype to avoid an error. 10251 Use char because int might match the return type of a GCC 10252 builtin and then its argument prototype would still apply. */ 10253#ifdef __cplusplus 10254extern "C" 10255#endif 10256char dlopen (); 10257int 10258main () 10259{ 10260return dlopen (); 10261 ; 10262 return 0; 10263} 10264_ACEOF 10265rm -f conftest.$ac_objext conftest$ac_exeext 10266if { (ac_try="$ac_link" 10267case "(($ac_try" in 10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10269 *) ac_try_echo=$ac_try;; 10270esac 10271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10272$as_echo "$ac_try_echo") >&5 10273 (eval "$ac_link") 2>conftest.er1 10274 ac_status=$? 10275 grep -v '^ *+' conftest.er1 >conftest.err 10276 rm -f conftest.er1 10277 cat conftest.err >&5 10278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10279 (exit $ac_status); } && { 10280 test -z "$ac_c_werror_flag" || 10281 test ! -s conftest.err 10282 } && test -s conftest$ac_exeext && { 10283 test "$cross_compiling" = yes || 10284 $as_test_x conftest$ac_exeext 10285 }; then 10286 ac_cv_lib_svld_dlopen=yes 10287else 10288 $as_echo "$as_me: failed program was:" >&5 10289sed 's/^/| /' conftest.$ac_ext >&5 10290 10291 ac_cv_lib_svld_dlopen=no 10292fi 10293 10294rm -rf conftest.dSYM 10295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10296 conftest$ac_exeext conftest.$ac_ext 10297LIBS=$ac_check_lib_save_LIBS 10298fi 10299{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10300$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10301if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10303else 10304 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10305$as_echo_n "checking for dld_link in -ldld... " >&6; } 10306if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10307 $as_echo_n "(cached) " >&6 10308else 10309 ac_check_lib_save_LIBS=$LIBS 10310LIBS="-ldld $LIBS" 10311cat >conftest.$ac_ext <<_ACEOF 10312/* confdefs.h. */ 10313_ACEOF 10314cat confdefs.h >>conftest.$ac_ext 10315cat >>conftest.$ac_ext <<_ACEOF 10316/* end confdefs.h. */ 10317 10318/* Override any GCC internal prototype to avoid an error. 10319 Use char because int might match the return type of a GCC 10320 builtin and then its argument prototype would still apply. */ 10321#ifdef __cplusplus 10322extern "C" 10323#endif 10324char dld_link (); 10325int 10326main () 10327{ 10328return dld_link (); 10329 ; 10330 return 0; 10331} 10332_ACEOF 10333rm -f conftest.$ac_objext conftest$ac_exeext 10334if { (ac_try="$ac_link" 10335case "(($ac_try" in 10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10337 *) ac_try_echo=$ac_try;; 10338esac 10339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10340$as_echo "$ac_try_echo") >&5 10341 (eval "$ac_link") 2>conftest.er1 10342 ac_status=$? 10343 grep -v '^ *+' conftest.er1 >conftest.err 10344 rm -f conftest.er1 10345 cat conftest.err >&5 10346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 (exit $ac_status); } && { 10348 test -z "$ac_c_werror_flag" || 10349 test ! -s conftest.err 10350 } && test -s conftest$ac_exeext && { 10351 test "$cross_compiling" = yes || 10352 $as_test_x conftest$ac_exeext 10353 }; then 10354 ac_cv_lib_dld_dld_link=yes 10355else 10356 $as_echo "$as_me: failed program was:" >&5 10357sed 's/^/| /' conftest.$ac_ext >&5 10358 10359 ac_cv_lib_dld_dld_link=no 10360fi 10361 10362rm -rf conftest.dSYM 10363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10364 conftest$ac_exeext conftest.$ac_ext 10365LIBS=$ac_check_lib_save_LIBS 10366fi 10367{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10368$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10369if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10370 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10371fi 10372 10373 10374fi 10375 10376 10377fi 10378 10379 10380fi 10381 10382 10383fi 10384 10385 10386fi 10387 10388 ;; 10389 esac 10390 10391 if test "x$lt_cv_dlopen" != xno; then 10392 enable_dlopen=yes 10393 else 10394 enable_dlopen=no 10395 fi 10396 10397 case $lt_cv_dlopen in 10398 dlopen) 10399 save_CPPFLAGS="$CPPFLAGS" 10400 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10401 10402 save_LDFLAGS="$LDFLAGS" 10403 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10404 10405 save_LIBS="$LIBS" 10406 LIBS="$lt_cv_dlopen_libs $LIBS" 10407 10408 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10409$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10410if test "${lt_cv_dlopen_self+set}" = set; then 10411 $as_echo_n "(cached) " >&6 10412else 10413 if test "$cross_compiling" = yes; then : 10414 lt_cv_dlopen_self=cross 10415else 10416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10417 lt_status=$lt_dlunknown 10418 cat > conftest.$ac_ext <<EOF 10419#line 10419 "configure" 10420#include "confdefs.h" 10421 10422#if HAVE_DLFCN_H 10423#include <dlfcn.h> 10424#endif 10425 10426#include <stdio.h> 10427 10428#ifdef RTLD_GLOBAL 10429# define LT_DLGLOBAL RTLD_GLOBAL 10430#else 10431# ifdef DL_GLOBAL 10432# define LT_DLGLOBAL DL_GLOBAL 10433# else 10434# define LT_DLGLOBAL 0 10435# endif 10436#endif 10437 10438/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10439 find out it does not work in some platform. */ 10440#ifndef LT_DLLAZY_OR_NOW 10441# ifdef RTLD_LAZY 10442# define LT_DLLAZY_OR_NOW RTLD_LAZY 10443# else 10444# ifdef DL_LAZY 10445# define LT_DLLAZY_OR_NOW DL_LAZY 10446# else 10447# ifdef RTLD_NOW 10448# define LT_DLLAZY_OR_NOW RTLD_NOW 10449# else 10450# ifdef DL_NOW 10451# define LT_DLLAZY_OR_NOW DL_NOW 10452# else 10453# define LT_DLLAZY_OR_NOW 0 10454# endif 10455# endif 10456# endif 10457# endif 10458#endif 10459 10460#ifdef __cplusplus 10461extern "C" void exit (int); 10462#endif 10463 10464void fnord() { int i=42;} 10465int main () 10466{ 10467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10468 int status = $lt_dlunknown; 10469 10470 if (self) 10471 { 10472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10474 /* dlclose (self); */ 10475 } 10476 else 10477 puts (dlerror ()); 10478 10479 exit (status); 10480} 10481EOF 10482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10483 (eval $ac_link) 2>&5 10484 ac_status=$? 10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10486 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10487 (./conftest; exit; ) >&5 2>/dev/null 10488 lt_status=$? 10489 case x$lt_status in 10490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10493 esac 10494 else : 10495 # compilation failed 10496 lt_cv_dlopen_self=no 10497 fi 10498fi 10499rm -fr conftest* 10500 10501 10502fi 10503{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10504$as_echo "$lt_cv_dlopen_self" >&6; } 10505 10506 if test "x$lt_cv_dlopen_self" = xyes; then 10507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10508 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10509$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10510if test "${lt_cv_dlopen_self_static+set}" = set; then 10511 $as_echo_n "(cached) " >&6 10512else 10513 if test "$cross_compiling" = yes; then : 10514 lt_cv_dlopen_self_static=cross 10515else 10516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10517 lt_status=$lt_dlunknown 10518 cat > conftest.$ac_ext <<EOF 10519#line 10519 "configure" 10520#include "confdefs.h" 10521 10522#if HAVE_DLFCN_H 10523#include <dlfcn.h> 10524#endif 10525 10526#include <stdio.h> 10527 10528#ifdef RTLD_GLOBAL 10529# define LT_DLGLOBAL RTLD_GLOBAL 10530#else 10531# ifdef DL_GLOBAL 10532# define LT_DLGLOBAL DL_GLOBAL 10533# else 10534# define LT_DLGLOBAL 0 10535# endif 10536#endif 10537 10538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10539 find out it does not work in some platform. */ 10540#ifndef LT_DLLAZY_OR_NOW 10541# ifdef RTLD_LAZY 10542# define LT_DLLAZY_OR_NOW RTLD_LAZY 10543# else 10544# ifdef DL_LAZY 10545# define LT_DLLAZY_OR_NOW DL_LAZY 10546# else 10547# ifdef RTLD_NOW 10548# define LT_DLLAZY_OR_NOW RTLD_NOW 10549# else 10550# ifdef DL_NOW 10551# define LT_DLLAZY_OR_NOW DL_NOW 10552# else 10553# define LT_DLLAZY_OR_NOW 0 10554# endif 10555# endif 10556# endif 10557# endif 10558#endif 10559 10560#ifdef __cplusplus 10561extern "C" void exit (int); 10562#endif 10563 10564void fnord() { int i=42;} 10565int main () 10566{ 10567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10568 int status = $lt_dlunknown; 10569 10570 if (self) 10571 { 10572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10574 /* dlclose (self); */ 10575 } 10576 else 10577 puts (dlerror ()); 10578 10579 exit (status); 10580} 10581EOF 10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10583 (eval $ac_link) 2>&5 10584 ac_status=$? 10585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10586 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10587 (./conftest; exit; ) >&5 2>/dev/null 10588 lt_status=$? 10589 case x$lt_status in 10590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10593 esac 10594 else : 10595 # compilation failed 10596 lt_cv_dlopen_self_static=no 10597 fi 10598fi 10599rm -fr conftest* 10600 10601 10602fi 10603{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10604$as_echo "$lt_cv_dlopen_self_static" >&6; } 10605 fi 10606 10607 CPPFLAGS="$save_CPPFLAGS" 10608 LDFLAGS="$save_LDFLAGS" 10609 LIBS="$save_LIBS" 10610 ;; 10611 esac 10612 10613 case $lt_cv_dlopen_self in 10614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10615 *) enable_dlopen_self=unknown ;; 10616 esac 10617 10618 case $lt_cv_dlopen_self_static in 10619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10620 *) enable_dlopen_self_static=unknown ;; 10621 esac 10622fi 10623 10624 10625# Report which library types will actually be built 10626{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10627$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10628{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10629$as_echo "$can_build_shared" >&6; } 10630 10631{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10632$as_echo_n "checking whether to build shared libraries... " >&6; } 10633test "$can_build_shared" = "no" && enable_shared=no 10634 10635# On AIX, shared libraries and static libraries use the same namespace, and 10636# are all built from PIC. 10637case $host_os in 10638aix3*) 10639 test "$enable_shared" = yes && enable_static=no 10640 if test -n "$RANLIB"; then 10641 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10642 postinstall_cmds='$RANLIB $lib' 10643 fi 10644 ;; 10645 10646aix[4-9]*) 10647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10648 test "$enable_shared" = yes && enable_static=no 10649 fi 10650 ;; 10651esac 10652{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10653$as_echo "$enable_shared" >&6; } 10654 10655{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10656$as_echo_n "checking whether to build static libraries... " >&6; } 10657# Make sure either enable_shared or enable_static is yes. 10658test "$enable_shared" = yes || enable_static=yes 10659{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10660$as_echo "$enable_static" >&6; } 10661 10662# The else clause should only fire when bootstrapping the 10663# libtool distribution, otherwise you forgot to ship ltmain.sh 10664# with your package, and you will get complaints that there are 10665# no rules to generate ltmain.sh. 10666if test -f "$ltmain"; then 10667 # See if we are running on zsh, and set the options which allow our commands through 10668 # without removal of \ escapes. 10669 if test -n "${ZSH_VERSION+set}" ; then 10670 setopt NO_GLOB_SUBST 10671 fi 10672 # Now quote all the things that may contain metacharacters while being 10673 # careful not to overquote the AC_SUBSTed values. We take copies of the 10674 # variables and quote the copies for generation of the libtool script. 10675 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10676 SED SHELL STRIP \ 10677 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10678 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10679 deplibs_check_method reload_flag reload_cmds need_locks \ 10680 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10681 lt_cv_sys_global_symbol_to_c_name_address \ 10682 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10683 old_postinstall_cmds old_postuninstall_cmds \ 10684 compiler \ 10685 CC \ 10686 LD \ 10687 lt_prog_compiler_wl \ 10688 lt_prog_compiler_pic \ 10689 lt_prog_compiler_static \ 10690 lt_prog_compiler_no_builtin_flag \ 10691 export_dynamic_flag_spec \ 10692 thread_safe_flag_spec \ 10693 whole_archive_flag_spec \ 10694 enable_shared_with_static_runtimes \ 10695 old_archive_cmds \ 10696 old_archive_from_new_cmds \ 10697 predep_objects \ 10698 postdep_objects \ 10699 predeps \ 10700 postdeps \ 10701 compiler_lib_search_path \ 10702 compiler_lib_search_dirs \ 10703 archive_cmds \ 10704 archive_expsym_cmds \ 10705 postinstall_cmds \ 10706 postuninstall_cmds \ 10707 old_archive_from_expsyms_cmds \ 10708 allow_undefined_flag \ 10709 no_undefined_flag \ 10710 export_symbols_cmds \ 10711 hardcode_libdir_flag_spec \ 10712 hardcode_libdir_flag_spec_ld \ 10713 hardcode_libdir_separator \ 10714 hardcode_automatic \ 10715 module_cmds \ 10716 module_expsym_cmds \ 10717 lt_cv_prog_compiler_c_o \ 10718 fix_srcfile_path \ 10719 exclude_expsyms \ 10720 include_expsyms; do 10721 10722 case $var in 10723 old_archive_cmds | \ 10724 old_archive_from_new_cmds | \ 10725 archive_cmds | \ 10726 archive_expsym_cmds | \ 10727 module_cmds | \ 10728 module_expsym_cmds | \ 10729 old_archive_from_expsyms_cmds | \ 10730 export_symbols_cmds | \ 10731 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10732 postinstall_cmds | postuninstall_cmds | \ 10733 old_postinstall_cmds | old_postuninstall_cmds | \ 10734 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10735 # Double-quote double-evaled strings. 10736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10737 ;; 10738 *) 10739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10740 ;; 10741 esac 10742 done 10743 10744 case $lt_echo in 10745 *'\$0 --fallback-echo"') 10746 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10747 ;; 10748 esac 10749 10750cfgfile="${ofile}T" 10751 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10752 $rm -f "$cfgfile" 10753 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10754$as_echo "$as_me: creating $ofile" >&6;} 10755 10756 cat <<__EOF__ >> "$cfgfile" 10757#! $SHELL 10758 10759# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10760# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10761# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10762# 10763# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10764# Free Software Foundation, Inc. 10765# 10766# This file is part of GNU Libtool: 10767# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10768# 10769# This program is free software; you can redistribute it and/or modify 10770# it under the terms of the GNU General Public License as published by 10771# the Free Software Foundation; either version 2 of the License, or 10772# (at your option) any later version. 10773# 10774# This program is distributed in the hope that it will be useful, but 10775# WITHOUT ANY WARRANTY; without even the implied warranty of 10776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10777# General Public License for more details. 10778# 10779# You should have received a copy of the GNU General Public License 10780# along with this program; if not, write to the Free Software 10781# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10782# 10783# As a special exception to the GNU General Public License, if you 10784# distribute this file as part of a program that contains a 10785# configuration script generated by Autoconf, you may include it under 10786# the same distribution terms that you use for the rest of that program. 10787 10788# A sed program that does not truncate output. 10789SED=$lt_SED 10790 10791# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10792Xsed="$SED -e 1s/^X//" 10793 10794# The HP-UX ksh and POSIX shell print the target directory to stdout 10795# if CDPATH is set. 10796(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10797 10798# The names of the tagged configurations supported by this script. 10799available_tags= 10800 10801# ### BEGIN LIBTOOL CONFIG 10802 10803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10804 10805# Shell to use when invoking shell scripts. 10806SHELL=$lt_SHELL 10807 10808# Whether or not to build shared libraries. 10809build_libtool_libs=$enable_shared 10810 10811# Whether or not to build static libraries. 10812build_old_libs=$enable_static 10813 10814# Whether or not to add -lc for building shared libraries. 10815build_libtool_need_lc=$archive_cmds_need_lc 10816 10817# Whether or not to disallow shared libs when runtime libs are static 10818allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10819 10820# Whether or not to optimize for fast installation. 10821fast_install=$enable_fast_install 10822 10823# The host system. 10824host_alias=$host_alias 10825host=$host 10826host_os=$host_os 10827 10828# The build system. 10829build_alias=$build_alias 10830build=$build 10831build_os=$build_os 10832 10833# An echo program that does not interpret backslashes. 10834echo=$lt_echo 10835 10836# The archiver. 10837AR=$lt_AR 10838AR_FLAGS=$lt_AR_FLAGS 10839 10840# A C compiler. 10841LTCC=$lt_LTCC 10842 10843# LTCC compiler flags. 10844LTCFLAGS=$lt_LTCFLAGS 10845 10846# A language-specific compiler. 10847CC=$lt_compiler 10848 10849# Is the compiler the GNU C compiler? 10850with_gcc=$GCC 10851 10852# An ERE matcher. 10853EGREP=$lt_EGREP 10854 10855# The linker used to build libraries. 10856LD=$lt_LD 10857 10858# Whether we need hard or soft links. 10859LN_S=$lt_LN_S 10860 10861# A BSD-compatible nm program. 10862NM=$lt_NM 10863 10864# A symbol stripping program 10865STRIP=$lt_STRIP 10866 10867# Used to examine libraries when file_magic_cmd begins "file" 10868MAGIC_CMD=$MAGIC_CMD 10869 10870# Used on cygwin: DLL creation program. 10871DLLTOOL="$DLLTOOL" 10872 10873# Used on cygwin: object dumper. 10874OBJDUMP="$OBJDUMP" 10875 10876# Used on cygwin: assembler. 10877AS="$AS" 10878 10879# The name of the directory that contains temporary libtool files. 10880objdir=$objdir 10881 10882# How to create reloadable object files. 10883reload_flag=$lt_reload_flag 10884reload_cmds=$lt_reload_cmds 10885 10886# How to pass a linker flag through the compiler. 10887wl=$lt_lt_prog_compiler_wl 10888 10889# Object file suffix (normally "o"). 10890objext="$ac_objext" 10891 10892# Old archive suffix (normally "a"). 10893libext="$libext" 10894 10895# Shared library suffix (normally ".so"). 10896shrext_cmds='$shrext_cmds' 10897 10898# Executable file suffix (normally ""). 10899exeext="$exeext" 10900 10901# Additional compiler flags for building library objects. 10902pic_flag=$lt_lt_prog_compiler_pic 10903pic_mode=$pic_mode 10904 10905# What is the maximum length of a command? 10906max_cmd_len=$lt_cv_sys_max_cmd_len 10907 10908# Does compiler simultaneously support -c and -o options? 10909compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10910 10911# Must we lock files when doing compilation? 10912need_locks=$lt_need_locks 10913 10914# Do we need the lib prefix for modules? 10915need_lib_prefix=$need_lib_prefix 10916 10917# Do we need a version for libraries? 10918need_version=$need_version 10919 10920# Whether dlopen is supported. 10921dlopen_support=$enable_dlopen 10922 10923# Whether dlopen of programs is supported. 10924dlopen_self=$enable_dlopen_self 10925 10926# Whether dlopen of statically linked programs is supported. 10927dlopen_self_static=$enable_dlopen_self_static 10928 10929# Compiler flag to prevent dynamic linking. 10930link_static_flag=$lt_lt_prog_compiler_static 10931 10932# Compiler flag to turn off builtin functions. 10933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10934 10935# Compiler flag to allow reflexive dlopens. 10936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10937 10938# Compiler flag to generate shared objects directly from archives. 10939whole_archive_flag_spec=$lt_whole_archive_flag_spec 10940 10941# Compiler flag to generate thread-safe objects. 10942thread_safe_flag_spec=$lt_thread_safe_flag_spec 10943 10944# Library versioning type. 10945version_type=$version_type 10946 10947# Format of library name prefix. 10948libname_spec=$lt_libname_spec 10949 10950# List of archive names. First name is the real one, the rest are links. 10951# The last name is the one that the linker finds with -lNAME. 10952library_names_spec=$lt_library_names_spec 10953 10954# The coded name of the library, if different from the real name. 10955soname_spec=$lt_soname_spec 10956 10957# Commands used to build and install an old-style archive. 10958RANLIB=$lt_RANLIB 10959old_archive_cmds=$lt_old_archive_cmds 10960old_postinstall_cmds=$lt_old_postinstall_cmds 10961old_postuninstall_cmds=$lt_old_postuninstall_cmds 10962 10963# Create an old-style archive from a shared archive. 10964old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10965 10966# Create a temporary old-style archive to link instead of a shared archive. 10967old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10968 10969# Commands used to build and install a shared archive. 10970archive_cmds=$lt_archive_cmds 10971archive_expsym_cmds=$lt_archive_expsym_cmds 10972postinstall_cmds=$lt_postinstall_cmds 10973postuninstall_cmds=$lt_postuninstall_cmds 10974 10975# Commands used to build a loadable module (assumed same as above if empty) 10976module_cmds=$lt_module_cmds 10977module_expsym_cmds=$lt_module_expsym_cmds 10978 10979# Commands to strip libraries. 10980old_striplib=$lt_old_striplib 10981striplib=$lt_striplib 10982 10983# Dependencies to place before the objects being linked to create a 10984# shared library. 10985predep_objects=$lt_predep_objects 10986 10987# Dependencies to place after the objects being linked to create a 10988# shared library. 10989postdep_objects=$lt_postdep_objects 10990 10991# Dependencies to place before the objects being linked to create a 10992# shared library. 10993predeps=$lt_predeps 10994 10995# Dependencies to place after the objects being linked to create a 10996# shared library. 10997postdeps=$lt_postdeps 10998 10999# The directories searched by this compiler when creating a shared 11000# library 11001compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11002 11003# The library search path used internally by the compiler when linking 11004# a shared library. 11005compiler_lib_search_path=$lt_compiler_lib_search_path 11006 11007# Method to check whether dependent libraries are shared objects. 11008deplibs_check_method=$lt_deplibs_check_method 11009 11010# Command to use when deplibs_check_method == file_magic. 11011file_magic_cmd=$lt_file_magic_cmd 11012 11013# Flag that allows shared libraries with undefined symbols to be built. 11014allow_undefined_flag=$lt_allow_undefined_flag 11015 11016# Flag that forces no undefined symbols. 11017no_undefined_flag=$lt_no_undefined_flag 11018 11019# Commands used to finish a libtool library installation in a directory. 11020finish_cmds=$lt_finish_cmds 11021 11022# Same as above, but a single script fragment to be evaled but not shown. 11023finish_eval=$lt_finish_eval 11024 11025# Take the output of nm and produce a listing of raw symbols and C names. 11026global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11027 11028# Transform the output of nm in a proper C declaration 11029global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11030 11031# Transform the output of nm in a C name address pair 11032global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11033 11034# This is the shared library runtime path variable. 11035runpath_var=$runpath_var 11036 11037# This is the shared library path variable. 11038shlibpath_var=$shlibpath_var 11039 11040# Is shlibpath searched before the hard-coded library search path? 11041shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11042 11043# How to hardcode a shared library path into an executable. 11044hardcode_action=$hardcode_action 11045 11046# Whether we should hardcode library paths into libraries. 11047hardcode_into_libs=$hardcode_into_libs 11048 11049# Flag to hardcode \$libdir into a binary during linking. 11050# This must work even if \$libdir does not exist. 11051hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11052 11053# If ld is used when linking, flag to hardcode \$libdir into 11054# a binary during linking. This must work even if \$libdir does 11055# not exist. 11056hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11057 11058# Whether we need a single -rpath flag with a separated argument. 11059hardcode_libdir_separator=$lt_hardcode_libdir_separator 11060 11061# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11062# resulting binary. 11063hardcode_direct=$hardcode_direct 11064 11065# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11066# resulting binary. 11067hardcode_minus_L=$hardcode_minus_L 11068 11069# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11070# the resulting binary. 11071hardcode_shlibpath_var=$hardcode_shlibpath_var 11072 11073# Set to yes if building a shared library automatically hardcodes DIR into the library 11074# and all subsequent libraries and executables linked against it. 11075hardcode_automatic=$hardcode_automatic 11076 11077# Variables whose values should be saved in libtool wrapper scripts and 11078# restored at relink time. 11079variables_saved_for_relink="$variables_saved_for_relink" 11080 11081# Whether libtool must link a program against all its dependency libraries. 11082link_all_deplibs=$link_all_deplibs 11083 11084# Compile-time system search path for libraries 11085sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11086 11087# Run-time system search path for libraries 11088sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11089 11090# Fix the shell variable \$srcfile for the compiler. 11091fix_srcfile_path=$lt_fix_srcfile_path 11092 11093# Set to yes if exported symbols are required. 11094always_export_symbols=$always_export_symbols 11095 11096# The commands to list exported symbols. 11097export_symbols_cmds=$lt_export_symbols_cmds 11098 11099# The commands to extract the exported symbol list from a shared archive. 11100extract_expsyms_cmds=$lt_extract_expsyms_cmds 11101 11102# Symbols that should not be listed in the preloaded symbols. 11103exclude_expsyms=$lt_exclude_expsyms 11104 11105# Symbols that must always be exported. 11106include_expsyms=$lt_include_expsyms 11107 11108# ### END LIBTOOL CONFIG 11109 11110__EOF__ 11111 11112 11113 case $host_os in 11114 aix3*) 11115 cat <<\EOF >> "$cfgfile" 11116 11117# AIX sometimes has problems with the GCC collect2 program. For some 11118# reason, if we set the COLLECT_NAMES environment variable, the problems 11119# vanish in a puff of smoke. 11120if test "X${COLLECT_NAMES+set}" != Xset; then 11121 COLLECT_NAMES= 11122 export COLLECT_NAMES 11123fi 11124EOF 11125 ;; 11126 esac 11127 11128 # We use sed instead of cat because bash on DJGPP gets confused if 11129 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11130 # text mode, it properly converts lines to CR/LF. This bash problem 11131 # is reportedly fixed, but why not run on old versions too? 11132 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11133 11134 mv -f "$cfgfile" "$ofile" || \ 11135 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11136 chmod +x "$ofile" 11137 11138else 11139 # If there is no Makefile yet, we rely on a make rule to execute 11140 # `config.status --recheck' to rerun these tests and create the 11141 # libtool script then. 11142 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11143 if test -f "$ltmain_in"; then 11144 test -f Makefile && make "$ltmain" 11145 fi 11146fi 11147 11148 11149ac_ext=c 11150ac_cpp='$CPP $CPPFLAGS' 11151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11153ac_compiler_gnu=$ac_cv_c_compiler_gnu 11154 11155CC="$lt_save_CC" 11156 11157 11158# Check whether --with-tags was given. 11159if test "${with_tags+set}" = set; then 11160 withval=$with_tags; tagnames="$withval" 11161fi 11162 11163 11164if test -f "$ltmain" && test -n "$tagnames"; then 11165 if test ! -f "${ofile}"; then 11166 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11167$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11168 fi 11169 11170 if test -z "$LTCC"; then 11171 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11172 if test -z "$LTCC"; then 11173 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11174$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11175 else 11176 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11177$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11178 fi 11179 fi 11180 if test -z "$LTCFLAGS"; then 11181 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11182 fi 11183 11184 # Extract list of available tagged configurations in $ofile. 11185 # Note that this assumes the entire list is on one line. 11186 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11187 11188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11189 for tagname in $tagnames; do 11190 IFS="$lt_save_ifs" 11191 # Check whether tagname contains only valid characters 11192 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11193 "") ;; 11194 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11195$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11196 { (exit 1); exit 1; }; } 11197 ;; 11198 esac 11199 11200 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11201 then 11202 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11203$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11204 { (exit 1); exit 1; }; } 11205 fi 11206 11207 # Update the list of available tags. 11208 if test -n "$tagname"; then 11209 echo appending configuration tag \"$tagname\" to $ofile 11210 11211 case $tagname in 11212 CXX) 11213 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11214 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11215 (test "X$CXX" != "Xg++"))) ; then 11216 ac_ext=cpp 11217ac_cpp='$CXXCPP $CPPFLAGS' 11218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11221 11222 11223 11224 11225archive_cmds_need_lc_CXX=no 11226allow_undefined_flag_CXX= 11227always_export_symbols_CXX=no 11228archive_expsym_cmds_CXX= 11229export_dynamic_flag_spec_CXX= 11230hardcode_direct_CXX=no 11231hardcode_libdir_flag_spec_CXX= 11232hardcode_libdir_flag_spec_ld_CXX= 11233hardcode_libdir_separator_CXX= 11234hardcode_minus_L_CXX=no 11235hardcode_shlibpath_var_CXX=unsupported 11236hardcode_automatic_CXX=no 11237module_cmds_CXX= 11238module_expsym_cmds_CXX= 11239link_all_deplibs_CXX=unknown 11240old_archive_cmds_CXX=$old_archive_cmds 11241no_undefined_flag_CXX= 11242whole_archive_flag_spec_CXX= 11243enable_shared_with_static_runtimes_CXX=no 11244 11245# Dependencies to place before and after the object being linked: 11246predep_objects_CXX= 11247postdep_objects_CXX= 11248predeps_CXX= 11249postdeps_CXX= 11250compiler_lib_search_path_CXX= 11251compiler_lib_search_dirs_CXX= 11252 11253# Source file extension for C++ test sources. 11254ac_ext=cpp 11255 11256# Object file extension for compiled C++ test sources. 11257objext=o 11258objext_CXX=$objext 11259 11260# Code to be used in simple compile tests 11261lt_simple_compile_test_code="int some_variable = 0;" 11262 11263# Code to be used in simple link tests 11264lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11265 11266# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11267 11268# If no C compiler was specified, use CC. 11269LTCC=${LTCC-"$CC"} 11270 11271# If no C compiler flags were specified, use CFLAGS. 11272LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11273 11274# Allow CC to be a program name with arguments. 11275compiler=$CC 11276 11277 11278# save warnings/boilerplate of simple test code 11279ac_outfile=conftest.$ac_objext 11280echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11281eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11282_lt_compiler_boilerplate=`cat conftest.err` 11283$rm conftest* 11284 11285ac_outfile=conftest.$ac_objext 11286echo "$lt_simple_link_test_code" >conftest.$ac_ext 11287eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11288_lt_linker_boilerplate=`cat conftest.err` 11289$rm -r conftest* 11290 11291 11292# Allow CC to be a program name with arguments. 11293lt_save_CC=$CC 11294lt_save_LD=$LD 11295lt_save_GCC=$GCC 11296GCC=$GXX 11297lt_save_with_gnu_ld=$with_gnu_ld 11298lt_save_path_LD=$lt_cv_path_LD 11299if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11300 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11301else 11302 $as_unset lt_cv_prog_gnu_ld 11303fi 11304if test -n "${lt_cv_path_LDCXX+set}"; then 11305 lt_cv_path_LD=$lt_cv_path_LDCXX 11306else 11307 $as_unset lt_cv_path_LD 11308fi 11309test -z "${LDCXX+set}" || LD=$LDCXX 11310CC=${CXX-"c++"} 11311compiler=$CC 11312compiler_CXX=$CC 11313for cc_temp in $compiler""; do 11314 case $cc_temp in 11315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11317 \-*) ;; 11318 *) break;; 11319 esac 11320done 11321cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11322 11323 11324# We don't want -fno-exception wen compiling C++ code, so set the 11325# no_builtin_flag separately 11326if test "$GXX" = yes; then 11327 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11328else 11329 lt_prog_compiler_no_builtin_flag_CXX= 11330fi 11331 11332if test "$GXX" = yes; then 11333 # Set up default GNU C++ configuration 11334 11335 11336# Check whether --with-gnu-ld was given. 11337if test "${with_gnu_ld+set}" = set; then 11338 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11339else 11340 with_gnu_ld=no 11341fi 11342 11343ac_prog=ld 11344if test "$GCC" = yes; then 11345 # Check if gcc -print-prog-name=ld gives a path. 11346 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11347$as_echo_n "checking for ld used by $CC... " >&6; } 11348 case $host in 11349 *-*-mingw*) 11350 # gcc leaves a trailing carriage return which upsets mingw 11351 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11352 *) 11353 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11354 esac 11355 case $ac_prog in 11356 # Accept absolute paths. 11357 [\\/]* | ?:[\\/]*) 11358 re_direlt='/[^/][^/]*/\.\./' 11359 # Canonicalize the pathname of ld 11360 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11361 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11362 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11363 done 11364 test -z "$LD" && LD="$ac_prog" 11365 ;; 11366 "") 11367 # If it fails, then pretend we aren't using GCC. 11368 ac_prog=ld 11369 ;; 11370 *) 11371 # If it is relative, then search for the first ld in PATH. 11372 with_gnu_ld=unknown 11373 ;; 11374 esac 11375elif test "$with_gnu_ld" = yes; then 11376 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11377$as_echo_n "checking for GNU ld... " >&6; } 11378else 11379 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11380$as_echo_n "checking for non-GNU ld... " >&6; } 11381fi 11382if test "${lt_cv_path_LD+set}" = set; then 11383 $as_echo_n "(cached) " >&6 11384else 11385 if test -z "$LD"; then 11386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11387 for ac_dir in $PATH; do 11388 IFS="$lt_save_ifs" 11389 test -z "$ac_dir" && ac_dir=. 11390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11391 lt_cv_path_LD="$ac_dir/$ac_prog" 11392 # Check to see if the program is GNU ld. I'd rather use --version, 11393 # but apparently some variants of GNU ld only accept -v. 11394 # Break only if it was the GNU/non-GNU ld that we prefer. 11395 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11396 *GNU* | *'with BFD'*) 11397 test "$with_gnu_ld" != no && break 11398 ;; 11399 *) 11400 test "$with_gnu_ld" != yes && break 11401 ;; 11402 esac 11403 fi 11404 done 11405 IFS="$lt_save_ifs" 11406else 11407 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11408fi 11409fi 11410 11411LD="$lt_cv_path_LD" 11412if test -n "$LD"; then 11413 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11414$as_echo "$LD" >&6; } 11415else 11416 { $as_echo "$as_me:$LINENO: result: no" >&5 11417$as_echo "no" >&6; } 11418fi 11419test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11420$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11421 { (exit 1); exit 1; }; } 11422{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11423$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11424if test "${lt_cv_prog_gnu_ld+set}" = set; then 11425 $as_echo_n "(cached) " >&6 11426else 11427 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11428case `$LD -v 2>&1 </dev/null` in 11429*GNU* | *'with BFD'*) 11430 lt_cv_prog_gnu_ld=yes 11431 ;; 11432*) 11433 lt_cv_prog_gnu_ld=no 11434 ;; 11435esac 11436fi 11437{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11438$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11439with_gnu_ld=$lt_cv_prog_gnu_ld 11440 11441 11442 11443 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11444 # archiving commands below assume that GNU ld is being used. 11445 if test "$with_gnu_ld" = yes; then 11446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11447 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' 11448 11449 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11451 11452 # If archive_cmds runs LD, not CC, wlarc should be empty 11453 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11454 # investigate it a little bit more. (MM) 11455 wlarc='${wl}' 11456 11457 # ancient GNU ld didn't support --whole-archive et. al. 11458 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11459 grep 'no-whole-archive' > /dev/null; then 11460 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11461 else 11462 whole_archive_flag_spec_CXX= 11463 fi 11464 else 11465 with_gnu_ld=no 11466 wlarc= 11467 11468 # A generic and very simple default shared library creation 11469 # command for GNU C++ for the case where it uses the native 11470 # linker, instead of GNU ld. If possible, this setting should 11471 # overridden to take advantage of the native linker features on 11472 # the platform it is being used on. 11473 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11474 fi 11475 11476 # Commands to make compiler produce verbose output that lists 11477 # what "hidden" libraries, object files and flags are used when 11478 # linking a shared library. 11479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11480 11481else 11482 GXX=no 11483 with_gnu_ld=no 11484 wlarc= 11485fi 11486 11487# PORTME: fill in a description of your system's C++ link characteristics 11488{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11489$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11490ld_shlibs_CXX=yes 11491case $host_os in 11492 aix3*) 11493 # FIXME: insert proper C++ library support 11494 ld_shlibs_CXX=no 11495 ;; 11496 aix[4-9]*) 11497 if test "$host_cpu" = ia64; then 11498 # On IA64, the linker does run time linking by default, so we don't 11499 # have to do anything special. 11500 aix_use_runtimelinking=no 11501 exp_sym_flag='-Bexport' 11502 no_entry_flag="" 11503 else 11504 aix_use_runtimelinking=no 11505 11506 # Test if we are trying to use run time linking or normal 11507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11508 # need to do runtime linking. 11509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11510 for ld_flag in $LDFLAGS; do 11511 case $ld_flag in 11512 *-brtl*) 11513 aix_use_runtimelinking=yes 11514 break 11515 ;; 11516 esac 11517 done 11518 ;; 11519 esac 11520 11521 exp_sym_flag='-bexport' 11522 no_entry_flag='-bnoentry' 11523 fi 11524 11525 # When large executables or shared objects are built, AIX ld can 11526 # have problems creating the table of contents. If linking a library 11527 # or program results in "error TOC overflow" add -mminimal-toc to 11528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11530 11531 archive_cmds_CXX='' 11532 hardcode_direct_CXX=yes 11533 hardcode_libdir_separator_CXX=':' 11534 link_all_deplibs_CXX=yes 11535 11536 if test "$GXX" = yes; then 11537 case $host_os in aix4.[012]|aix4.[012].*) 11538 # We only want to do this on AIX 4.2 and lower, the check 11539 # below for broken collect2 doesn't work under 4.3+ 11540 collect2name=`${CC} -print-prog-name=collect2` 11541 if test -f "$collect2name" && \ 11542 strings "$collect2name" | grep resolve_lib_name >/dev/null 11543 then 11544 # We have reworked collect2 11545 : 11546 else 11547 # We have old collect2 11548 hardcode_direct_CXX=unsupported 11549 # It fails to find uninstalled libraries when the uninstalled 11550 # path is not listed in the libpath. Setting hardcode_minus_L 11551 # to unsupported forces relinking 11552 hardcode_minus_L_CXX=yes 11553 hardcode_libdir_flag_spec_CXX='-L$libdir' 11554 hardcode_libdir_separator_CXX= 11555 fi 11556 ;; 11557 esac 11558 shared_flag='-shared' 11559 if test "$aix_use_runtimelinking" = yes; then 11560 shared_flag="$shared_flag "'${wl}-G' 11561 fi 11562 else 11563 # not using gcc 11564 if test "$host_cpu" = ia64; then 11565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11566 # chokes on -Wl,-G. The following line is correct: 11567 shared_flag='-G' 11568 else 11569 if test "$aix_use_runtimelinking" = yes; then 11570 shared_flag='${wl}-G' 11571 else 11572 shared_flag='${wl}-bM:SRE' 11573 fi 11574 fi 11575 fi 11576 11577 # It seems that -bexpall does not export symbols beginning with 11578 # underscore (_), so it is better to generate a list of symbols to export. 11579 always_export_symbols_CXX=yes 11580 if test "$aix_use_runtimelinking" = yes; then 11581 # Warning - without using the other runtime loading flags (-brtl), 11582 # -berok will link without error, but may produce a broken library. 11583 allow_undefined_flag_CXX='-berok' 11584 # Determine the default libpath from the value encoded in an empty executable. 11585 cat >conftest.$ac_ext <<_ACEOF 11586/* confdefs.h. */ 11587_ACEOF 11588cat confdefs.h >>conftest.$ac_ext 11589cat >>conftest.$ac_ext <<_ACEOF 11590/* end confdefs.h. */ 11591 11592int 11593main () 11594{ 11595 11596 ; 11597 return 0; 11598} 11599_ACEOF 11600rm -f conftest.$ac_objext conftest$ac_exeext 11601if { (ac_try="$ac_link" 11602case "(($ac_try" in 11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11604 *) ac_try_echo=$ac_try;; 11605esac 11606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11607$as_echo "$ac_try_echo") >&5 11608 (eval "$ac_link") 2>conftest.er1 11609 ac_status=$? 11610 grep -v '^ *+' conftest.er1 >conftest.err 11611 rm -f conftest.er1 11612 cat conftest.err >&5 11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11614 (exit $ac_status); } && { 11615 test -z "$ac_cxx_werror_flag" || 11616 test ! -s conftest.err 11617 } && test -s conftest$ac_exeext && { 11618 test "$cross_compiling" = yes || 11619 $as_test_x conftest$ac_exeext 11620 }; then 11621 11622lt_aix_libpath_sed=' 11623 /Import File Strings/,/^$/ { 11624 /^0/ { 11625 s/^0 *\(.*\)$/\1/ 11626 p 11627 } 11628 }' 11629aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11630# Check for a 64-bit object if we didn't find anything. 11631if test -z "$aix_libpath"; then 11632 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11633fi 11634else 11635 $as_echo "$as_me: failed program was:" >&5 11636sed 's/^/| /' conftest.$ac_ext >&5 11637 11638 11639fi 11640 11641rm -rf conftest.dSYM 11642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11643 conftest$ac_exeext conftest.$ac_ext 11644if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11645 11646 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11647 11648 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" 11649 else 11650 if test "$host_cpu" = ia64; then 11651 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11652 allow_undefined_flag_CXX="-z nodefs" 11653 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" 11654 else 11655 # Determine the default libpath from the value encoded in an empty executable. 11656 cat >conftest.$ac_ext <<_ACEOF 11657/* confdefs.h. */ 11658_ACEOF 11659cat confdefs.h >>conftest.$ac_ext 11660cat >>conftest.$ac_ext <<_ACEOF 11661/* end confdefs.h. */ 11662 11663int 11664main () 11665{ 11666 11667 ; 11668 return 0; 11669} 11670_ACEOF 11671rm -f conftest.$ac_objext conftest$ac_exeext 11672if { (ac_try="$ac_link" 11673case "(($ac_try" in 11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11675 *) ac_try_echo=$ac_try;; 11676esac 11677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11678$as_echo "$ac_try_echo") >&5 11679 (eval "$ac_link") 2>conftest.er1 11680 ac_status=$? 11681 grep -v '^ *+' conftest.er1 >conftest.err 11682 rm -f conftest.er1 11683 cat conftest.err >&5 11684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11685 (exit $ac_status); } && { 11686 test -z "$ac_cxx_werror_flag" || 11687 test ! -s conftest.err 11688 } && test -s conftest$ac_exeext && { 11689 test "$cross_compiling" = yes || 11690 $as_test_x conftest$ac_exeext 11691 }; then 11692 11693lt_aix_libpath_sed=' 11694 /Import File Strings/,/^$/ { 11695 /^0/ { 11696 s/^0 *\(.*\)$/\1/ 11697 p 11698 } 11699 }' 11700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11701# Check for a 64-bit object if we didn't find anything. 11702if test -z "$aix_libpath"; then 11703 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11704fi 11705else 11706 $as_echo "$as_me: failed program was:" >&5 11707sed 's/^/| /' conftest.$ac_ext >&5 11708 11709 11710fi 11711 11712rm -rf conftest.dSYM 11713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11714 conftest$ac_exeext conftest.$ac_ext 11715if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11716 11717 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11718 # Warning - without using the other run time loading flags, 11719 # -berok will link without error, but may produce a broken library. 11720 no_undefined_flag_CXX=' ${wl}-bernotok' 11721 allow_undefined_flag_CXX=' ${wl}-berok' 11722 # Exported symbols can be pulled into shared objects from archives 11723 whole_archive_flag_spec_CXX='$convenience' 11724 archive_cmds_need_lc_CXX=yes 11725 # This is similar to how AIX traditionally builds its shared libraries. 11726 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' 11727 fi 11728 fi 11729 ;; 11730 11731 beos*) 11732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11733 allow_undefined_flag_CXX=unsupported 11734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11735 # support --undefined. This deserves some investigation. FIXME 11736 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11737 else 11738 ld_shlibs_CXX=no 11739 fi 11740 ;; 11741 11742 chorus*) 11743 case $cc_basename in 11744 *) 11745 # FIXME: insert proper C++ library support 11746 ld_shlibs_CXX=no 11747 ;; 11748 esac 11749 ;; 11750 11751 cygwin* | mingw* | pw32*) 11752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11753 # as there is no search path for DLLs. 11754 hardcode_libdir_flag_spec_CXX='-L$libdir' 11755 allow_undefined_flag_CXX=unsupported 11756 always_export_symbols_CXX=no 11757 enable_shared_with_static_runtimes_CXX=yes 11758 11759 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11760 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' 11761 # If the export-symbols file already is a .def file (1st line 11762 # is EXPORTS), use it as is; otherwise, prepend... 11763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11764 cp $export_symbols $output_objdir/$soname.def; 11765 else 11766 echo EXPORTS > $output_objdir/$soname.def; 11767 cat $export_symbols >> $output_objdir/$soname.def; 11768 fi~ 11769 $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' 11770 else 11771 ld_shlibs_CXX=no 11772 fi 11773 ;; 11774 darwin* | rhapsody*) 11775 archive_cmds_need_lc_CXX=no 11776 hardcode_direct_CXX=no 11777 hardcode_automatic_CXX=yes 11778 hardcode_shlibpath_var_CXX=unsupported 11779 whole_archive_flag_spec_CXX='' 11780 link_all_deplibs_CXX=yes 11781 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11782 if test "$GXX" = yes ; then 11783 output_verbose_link_cmd='echo' 11784 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}" 11785 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11786 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}" 11787 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}" 11788 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11789 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}" 11790 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}" 11791 fi 11792 else 11793 case $cc_basename in 11794 xlc*) 11795 output_verbose_link_cmd='echo' 11796 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' 11797 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11798 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11799 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}' 11800 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}' 11801 ;; 11802 *) 11803 ld_shlibs_CXX=no 11804 ;; 11805 esac 11806 fi 11807 ;; 11808 11809 dgux*) 11810 case $cc_basename in 11811 ec++*) 11812 # FIXME: insert proper C++ library support 11813 ld_shlibs_CXX=no 11814 ;; 11815 ghcx*) 11816 # Green Hills C++ Compiler 11817 # FIXME: insert proper C++ library support 11818 ld_shlibs_CXX=no 11819 ;; 11820 *) 11821 # FIXME: insert proper C++ library support 11822 ld_shlibs_CXX=no 11823 ;; 11824 esac 11825 ;; 11826 freebsd[12]*) 11827 # C++ shared libraries reported to be fairly broken before switch to ELF 11828 ld_shlibs_CXX=no 11829 ;; 11830 freebsd-elf*) 11831 archive_cmds_need_lc_CXX=no 11832 ;; 11833 freebsd* | dragonfly*) 11834 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11835 # conventions 11836 ld_shlibs_CXX=yes 11837 ;; 11838 gnu*) 11839 ;; 11840 hpux9*) 11841 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11842 hardcode_libdir_separator_CXX=: 11843 export_dynamic_flag_spec_CXX='${wl}-E' 11844 hardcode_direct_CXX=yes 11845 hardcode_minus_L_CXX=yes # Not in the search PATH, 11846 # but as the default 11847 # location of the library. 11848 11849 case $cc_basename in 11850 CC*) 11851 # FIXME: insert proper C++ library support 11852 ld_shlibs_CXX=no 11853 ;; 11854 aCC*) 11855 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' 11856 # Commands to make compiler produce verbose output that lists 11857 # what "hidden" libraries, object files and flags are used when 11858 # linking a shared library. 11859 # 11860 # There doesn't appear to be a way to prevent this compiler from 11861 # explicitly linking system object files so we need to strip them 11862 # from the output so that they don't get included in the library 11863 # dependencies. 11864 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' 11865 ;; 11866 *) 11867 if test "$GXX" = yes; then 11868 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' 11869 else 11870 # FIXME: insert proper C++ library support 11871 ld_shlibs_CXX=no 11872 fi 11873 ;; 11874 esac 11875 ;; 11876 hpux10*|hpux11*) 11877 if test $with_gnu_ld = no; then 11878 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11879 hardcode_libdir_separator_CXX=: 11880 11881 case $host_cpu in 11882 hppa*64*|ia64*) ;; 11883 *) 11884 export_dynamic_flag_spec_CXX='${wl}-E' 11885 ;; 11886 esac 11887 fi 11888 case $host_cpu in 11889 hppa*64*|ia64*) 11890 hardcode_direct_CXX=no 11891 hardcode_shlibpath_var_CXX=no 11892 ;; 11893 *) 11894 hardcode_direct_CXX=yes 11895 hardcode_minus_L_CXX=yes # Not in the search PATH, 11896 # but as the default 11897 # location of the library. 11898 ;; 11899 esac 11900 11901 case $cc_basename in 11902 CC*) 11903 # FIXME: insert proper C++ library support 11904 ld_shlibs_CXX=no 11905 ;; 11906 aCC*) 11907 case $host_cpu in 11908 hppa*64*) 11909 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11910 ;; 11911 ia64*) 11912 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11913 ;; 11914 *) 11915 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11916 ;; 11917 esac 11918 # Commands to make compiler produce verbose output that lists 11919 # what "hidden" libraries, object files and flags are used when 11920 # linking a shared library. 11921 # 11922 # There doesn't appear to be a way to prevent this compiler from 11923 # explicitly linking system object files so we need to strip them 11924 # from the output so that they don't get included in the library 11925 # dependencies. 11926 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' 11927 ;; 11928 *) 11929 if test "$GXX" = yes; then 11930 if test $with_gnu_ld = no; then 11931 case $host_cpu in 11932 hppa*64*) 11933 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11934 ;; 11935 ia64*) 11936 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11937 ;; 11938 *) 11939 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' 11940 ;; 11941 esac 11942 fi 11943 else 11944 # FIXME: insert proper C++ library support 11945 ld_shlibs_CXX=no 11946 fi 11947 ;; 11948 esac 11949 ;; 11950 interix[3-9]*) 11951 hardcode_direct_CXX=no 11952 hardcode_shlibpath_var_CXX=no 11953 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11954 export_dynamic_flag_spec_CXX='${wl}-E' 11955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11956 # Instead, shared libraries are loaded at an image base (0x10000000 by 11957 # default) and relocated if they conflict, which is a slow very memory 11958 # consuming and fragmenting process. To avoid this, we pick a random, 11959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11960 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11961 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' 11962 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' 11963 ;; 11964 irix5* | irix6*) 11965 case $cc_basename in 11966 CC*) 11967 # SGI C++ 11968 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' 11969 11970 # Archives containing C++ object files must be created using 11971 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11972 # necessary to make sure instantiated templates are included 11973 # in the archive. 11974 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11975 ;; 11976 *) 11977 if test "$GXX" = yes; then 11978 if test "$with_gnu_ld" = no; then 11979 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' 11980 else 11981 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' 11982 fi 11983 fi 11984 link_all_deplibs_CXX=yes 11985 ;; 11986 esac 11987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11988 hardcode_libdir_separator_CXX=: 11989 ;; 11990 linux* | k*bsd*-gnu) 11991 case $cc_basename in 11992 KCC*) 11993 # Kuck and Associates, Inc. (KAI) C++ Compiler 11994 11995 # KCC will only create a shared library if the output file 11996 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11997 # to its proper name (with version) after linking. 11998 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' 11999 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' 12000 # Commands to make compiler produce verbose output that lists 12001 # what "hidden" libraries, object files and flags are used when 12002 # linking a shared library. 12003 # 12004 # There doesn't appear to be a way to prevent this compiler from 12005 # explicitly linking system object files so we need to strip them 12006 # from the output so that they don't get included in the library 12007 # dependencies. 12008 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' 12009 12010 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12012 12013 # Archives containing C++ object files must be created using 12014 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12015 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12016 ;; 12017 icpc*) 12018 # Intel C++ 12019 with_gnu_ld=yes 12020 # version 8.0 and above of icpc choke on multiply defined symbols 12021 # if we add $predep_objects and $postdep_objects, however 7.1 and 12022 # earlier do not add the objects themselves. 12023 case `$CC -V 2>&1` in 12024 *"Version 7."*) 12025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12026 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' 12027 ;; 12028 *) # Version 8.0 or newer 12029 tmp_idyn= 12030 case $host_cpu in 12031 ia64*) tmp_idyn=' -i_dynamic';; 12032 esac 12033 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12034 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' 12035 ;; 12036 esac 12037 archive_cmds_need_lc_CXX=no 12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12040 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12041 ;; 12042 pgCC* | pgcpp*) 12043 # Portland Group C++ compiler 12044 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12045 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' 12046 12047 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12048 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12049 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' 12050 ;; 12051 cxx*) 12052 # Compaq C++ 12053 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12054 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' 12055 12056 runpath_var=LD_RUN_PATH 12057 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12058 hardcode_libdir_separator_CXX=: 12059 12060 # Commands to make compiler produce verbose output that lists 12061 # what "hidden" libraries, object files and flags are used when 12062 # linking a shared library. 12063 # 12064 # There doesn't appear to be a way to prevent this compiler from 12065 # explicitly linking system object files so we need to strip them 12066 # from the output so that they don't get included in the library 12067 # dependencies. 12068 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' 12069 ;; 12070 *) 12071 case `$CC -V 2>&1 | sed 5q` in 12072 *Sun\ C*) 12073 # Sun C++ 5.9 12074 no_undefined_flag_CXX=' -zdefs' 12075 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12076 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' 12077 hardcode_libdir_flag_spec_CXX='-R$libdir' 12078 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' 12079 12080 # Not sure whether something based on 12081 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12082 # would be better. 12083 output_verbose_link_cmd='echo' 12084 12085 # Archives containing C++ object files must be created using 12086 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12087 # necessary to make sure instantiated templates are included 12088 # in the archive. 12089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12090 ;; 12091 esac 12092 ;; 12093 esac 12094 ;; 12095 lynxos*) 12096 # FIXME: insert proper C++ library support 12097 ld_shlibs_CXX=no 12098 ;; 12099 m88k*) 12100 # FIXME: insert proper C++ library support 12101 ld_shlibs_CXX=no 12102 ;; 12103 mvs*) 12104 case $cc_basename in 12105 cxx*) 12106 # FIXME: insert proper C++ library support 12107 ld_shlibs_CXX=no 12108 ;; 12109 *) 12110 # FIXME: insert proper C++ library support 12111 ld_shlibs_CXX=no 12112 ;; 12113 esac 12114 ;; 12115 netbsd*) 12116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12117 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12118 wlarc= 12119 hardcode_libdir_flag_spec_CXX='-R$libdir' 12120 hardcode_direct_CXX=yes 12121 hardcode_shlibpath_var_CXX=no 12122 fi 12123 # Workaround some broken pre-1.5 toolchains 12124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12125 ;; 12126 openbsd2*) 12127 # C++ shared libraries are fairly broken 12128 ld_shlibs_CXX=no 12129 ;; 12130 openbsd*) 12131 if test -f /usr/libexec/ld.so; then 12132 hardcode_direct_CXX=yes 12133 hardcode_shlibpath_var_CXX=no 12134 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12137 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12138 export_dynamic_flag_spec_CXX='${wl}-E' 12139 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12140 fi 12141 output_verbose_link_cmd='echo' 12142 else 12143 ld_shlibs_CXX=no 12144 fi 12145 ;; 12146 osf3*) 12147 case $cc_basename in 12148 KCC*) 12149 # Kuck and Associates, Inc. (KAI) C++ Compiler 12150 12151 # KCC will only create a shared library if the output file 12152 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12153 # to its proper name (with version) after linking. 12154 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' 12155 12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12157 hardcode_libdir_separator_CXX=: 12158 12159 # Archives containing C++ object files must be created using 12160 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12161 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12162 12163 ;; 12164 RCC*) 12165 # Rational C++ 2.4.1 12166 # FIXME: insert proper C++ library support 12167 ld_shlibs_CXX=no 12168 ;; 12169 cxx*) 12170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12171 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' 12172 12173 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12174 hardcode_libdir_separator_CXX=: 12175 12176 # Commands to make compiler produce verbose output that lists 12177 # what "hidden" libraries, object files and flags are used when 12178 # linking a shared library. 12179 # 12180 # There doesn't appear to be a way to prevent this compiler from 12181 # explicitly linking system object files so we need to strip them 12182 # from the output so that they don't get included in the library 12183 # dependencies. 12184 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' 12185 ;; 12186 *) 12187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12189 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' 12190 12191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12192 hardcode_libdir_separator_CXX=: 12193 12194 # Commands to make compiler produce verbose output that lists 12195 # what "hidden" libraries, object files and flags are used when 12196 # linking a shared library. 12197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12198 12199 else 12200 # FIXME: insert proper C++ library support 12201 ld_shlibs_CXX=no 12202 fi 12203 ;; 12204 esac 12205 ;; 12206 osf4* | osf5*) 12207 case $cc_basename in 12208 KCC*) 12209 # Kuck and Associates, Inc. (KAI) C++ Compiler 12210 12211 # KCC will only create a shared library if the output file 12212 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12213 # to its proper name (with version) after linking. 12214 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' 12215 12216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12217 hardcode_libdir_separator_CXX=: 12218 12219 # Archives containing C++ object files must be created using 12220 # the KAI C++ compiler. 12221 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12222 ;; 12223 RCC*) 12224 # Rational C++ 2.4.1 12225 # FIXME: insert proper C++ library support 12226 ld_shlibs_CXX=no 12227 ;; 12228 cxx*) 12229 allow_undefined_flag_CXX=' -expect_unresolved \*' 12230 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' 12231 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12232 echo "-hidden">> $lib.exp~ 12233 $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~ 12234 $rm $lib.exp' 12235 12236 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12237 hardcode_libdir_separator_CXX=: 12238 12239 # Commands to make compiler produce verbose output that lists 12240 # what "hidden" libraries, object files and flags are used when 12241 # linking a shared library. 12242 # 12243 # There doesn't appear to be a way to prevent this compiler from 12244 # explicitly linking system object files so we need to strip them 12245 # from the output so that they don't get included in the library 12246 # dependencies. 12247 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' 12248 ;; 12249 *) 12250 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12251 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12252 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' 12253 12254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12255 hardcode_libdir_separator_CXX=: 12256 12257 # Commands to make compiler produce verbose output that lists 12258 # what "hidden" libraries, object files and flags are used when 12259 # linking a shared library. 12260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12261 12262 else 12263 # FIXME: insert proper C++ library support 12264 ld_shlibs_CXX=no 12265 fi 12266 ;; 12267 esac 12268 ;; 12269 psos*) 12270 # FIXME: insert proper C++ library support 12271 ld_shlibs_CXX=no 12272 ;; 12273 sunos4*) 12274 case $cc_basename in 12275 CC*) 12276 # Sun C++ 4.x 12277 # FIXME: insert proper C++ library support 12278 ld_shlibs_CXX=no 12279 ;; 12280 lcc*) 12281 # Lucid 12282 # FIXME: insert proper C++ library support 12283 ld_shlibs_CXX=no 12284 ;; 12285 *) 12286 # FIXME: insert proper C++ library support 12287 ld_shlibs_CXX=no 12288 ;; 12289 esac 12290 ;; 12291 solaris*) 12292 case $cc_basename in 12293 CC*) 12294 # Sun C++ 4.2, 5.x and Centerline C++ 12295 archive_cmds_need_lc_CXX=yes 12296 no_undefined_flag_CXX=' -zdefs' 12297 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12298 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12299 $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' 12300 12301 hardcode_libdir_flag_spec_CXX='-R$libdir' 12302 hardcode_shlibpath_var_CXX=no 12303 case $host_os in 12304 solaris2.[0-5] | solaris2.[0-5].*) ;; 12305 *) 12306 # The compiler driver will combine and reorder linker options, 12307 # but understands `-z linker_flag'. 12308 # Supported since Solaris 2.6 (maybe 2.5.1?) 12309 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12310 ;; 12311 esac 12312 link_all_deplibs_CXX=yes 12313 12314 output_verbose_link_cmd='echo' 12315 12316 # Archives containing C++ object files must be created using 12317 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12318 # necessary to make sure instantiated templates are included 12319 # in the archive. 12320 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12321 ;; 12322 gcx*) 12323 # Green Hills C++ Compiler 12324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12325 12326 # The C++ compiler must be used to create the archive. 12327 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12328 ;; 12329 *) 12330 # GNU C++ compiler with Solaris linker 12331 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12332 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12333 if $CC --version | grep -v '^2\.7' > /dev/null; then 12334 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12335 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12336 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12337 12338 # Commands to make compiler produce verbose output that lists 12339 # what "hidden" libraries, object files and flags are used when 12340 # linking a shared library. 12341 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12342 else 12343 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12344 # platform. 12345 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12346 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12347 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12348 12349 # Commands to make compiler produce verbose output that lists 12350 # what "hidden" libraries, object files and flags are used when 12351 # linking a shared library. 12352 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12353 fi 12354 12355 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12356 case $host_os in 12357 solaris2.[0-5] | solaris2.[0-5].*) ;; 12358 *) 12359 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12360 ;; 12361 esac 12362 fi 12363 ;; 12364 esac 12365 ;; 12366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12367 no_undefined_flag_CXX='${wl}-z,text' 12368 archive_cmds_need_lc_CXX=no 12369 hardcode_shlibpath_var_CXX=no 12370 runpath_var='LD_RUN_PATH' 12371 12372 case $cc_basename in 12373 CC*) 12374 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12375 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12376 ;; 12377 *) 12378 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12379 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12380 ;; 12381 esac 12382 ;; 12383 sysv5* | sco3.2v5* | sco5v6*) 12384 # Note: We can NOT use -z defs as we might desire, because we do not 12385 # link with -lc, and that would cause any symbols used from libc to 12386 # always be unresolved, which means just about no library would 12387 # ever link correctly. If we're not using GNU ld we use -z text 12388 # though, which does catch some bad symbols but isn't as heavy-handed 12389 # as -z defs. 12390 # For security reasons, it is highly recommended that you always 12391 # use absolute paths for naming shared libraries, and exclude the 12392 # DT_RUNPATH tag from executables and libraries. But doing so 12393 # requires that you compile everything twice, which is a pain. 12394 # So that behaviour is only enabled if SCOABSPATH is set to a 12395 # non-empty value in the environment. Most likely only useful for 12396 # creating official distributions of packages. 12397 # This is a hack until libtool officially supports absolute path 12398 # names for shared libraries. 12399 no_undefined_flag_CXX='${wl}-z,text' 12400 allow_undefined_flag_CXX='${wl}-z,nodefs' 12401 archive_cmds_need_lc_CXX=no 12402 hardcode_shlibpath_var_CXX=no 12403 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12404 hardcode_libdir_separator_CXX=':' 12405 link_all_deplibs_CXX=yes 12406 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12407 runpath_var='LD_RUN_PATH' 12408 12409 case $cc_basename in 12410 CC*) 12411 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12412 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12413 ;; 12414 *) 12415 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12416 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12417 ;; 12418 esac 12419 ;; 12420 tandem*) 12421 case $cc_basename in 12422 NCC*) 12423 # NonStop-UX NCC 3.20 12424 # FIXME: insert proper C++ library support 12425 ld_shlibs_CXX=no 12426 ;; 12427 *) 12428 # FIXME: insert proper C++ library support 12429 ld_shlibs_CXX=no 12430 ;; 12431 esac 12432 ;; 12433 vxworks*) 12434 # FIXME: insert proper C++ library support 12435 ld_shlibs_CXX=no 12436 ;; 12437 *) 12438 # FIXME: insert proper C++ library support 12439 ld_shlibs_CXX=no 12440 ;; 12441esac 12442{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12443$as_echo "$ld_shlibs_CXX" >&6; } 12444test "$ld_shlibs_CXX" = no && can_build_shared=no 12445 12446GCC_CXX="$GXX" 12447LD_CXX="$LD" 12448 12449cat > conftest.$ac_ext <<EOF 12450class Foo 12451{ 12452public: 12453 Foo (void) { a = 0; } 12454private: 12455 int a; 12456}; 12457EOF 12458 12459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12460 (eval $ac_compile) 2>&5 12461 ac_status=$? 12462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12463 (exit $ac_status); }; then 12464 # Parse the compiler output and extract the necessary 12465 # objects, libraries and library flags. 12466 12467 # Sentinel used to keep track of whether or not we are before 12468 # the conftest object file. 12469 pre_test_object_deps_done=no 12470 12471 # The `*' in the case matches for architectures that use `case' in 12472 # $output_verbose_cmd can trigger glob expansion during the loop 12473 # eval without this substitution. 12474 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12475 12476 for p in `eval $output_verbose_link_cmd`; do 12477 case $p in 12478 12479 -L* | -R* | -l*) 12480 # Some compilers place space between "-{L,R}" and the path. 12481 # Remove the space. 12482 if test $p = "-L" \ 12483 || test $p = "-R"; then 12484 prev=$p 12485 continue 12486 else 12487 prev= 12488 fi 12489 12490 if test "$pre_test_object_deps_done" = no; then 12491 case $p in 12492 -L* | -R*) 12493 # Internal compiler library paths should come after those 12494 # provided the user. The postdeps already come after the 12495 # user supplied libs so there is no need to process them. 12496 if test -z "$compiler_lib_search_path_CXX"; then 12497 compiler_lib_search_path_CXX="${prev}${p}" 12498 else 12499 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12500 fi 12501 ;; 12502 # The "-l" case would never come before the object being 12503 # linked, so don't bother handling this case. 12504 esac 12505 else 12506 if test -z "$postdeps_CXX"; then 12507 postdeps_CXX="${prev}${p}" 12508 else 12509 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12510 fi 12511 fi 12512 ;; 12513 12514 *.$objext) 12515 # This assumes that the test object file only shows up 12516 # once in the compiler output. 12517 if test "$p" = "conftest.$objext"; then 12518 pre_test_object_deps_done=yes 12519 continue 12520 fi 12521 12522 if test "$pre_test_object_deps_done" = no; then 12523 if test -z "$predep_objects_CXX"; then 12524 predep_objects_CXX="$p" 12525 else 12526 predep_objects_CXX="$predep_objects_CXX $p" 12527 fi 12528 else 12529 if test -z "$postdep_objects_CXX"; then 12530 postdep_objects_CXX="$p" 12531 else 12532 postdep_objects_CXX="$postdep_objects_CXX $p" 12533 fi 12534 fi 12535 ;; 12536 12537 *) ;; # Ignore the rest. 12538 12539 esac 12540 done 12541 12542 # Clean up. 12543 rm -f a.out a.exe 12544else 12545 echo "libtool.m4: error: problem compiling CXX test program" 12546fi 12547 12548$rm -f confest.$objext 12549 12550compiler_lib_search_dirs_CXX= 12551if test -n "$compiler_lib_search_path_CXX"; then 12552 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12553fi 12554 12555# PORTME: override above test on systems where it is broken 12556case $host_os in 12557interix[3-9]*) 12558 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12559 # hack all around it, let's just trust "g++" to DTRT. 12560 predep_objects_CXX= 12561 postdep_objects_CXX= 12562 postdeps_CXX= 12563 ;; 12564 12565linux*) 12566 case `$CC -V 2>&1 | sed 5q` in 12567 *Sun\ C*) 12568 # Sun C++ 5.9 12569 # 12570 # The more standards-conforming stlport4 library is 12571 # incompatible with the Cstd library. Avoid specifying 12572 # it if it's in CXXFLAGS. Ignore libCrun as 12573 # -library=stlport4 depends on it. 12574 case " $CXX $CXXFLAGS " in 12575 *" -library=stlport4 "*) 12576 solaris_use_stlport4=yes 12577 ;; 12578 esac 12579 if test "$solaris_use_stlport4" != yes; then 12580 postdeps_CXX='-library=Cstd -library=Crun' 12581 fi 12582 ;; 12583 esac 12584 ;; 12585 12586solaris*) 12587 case $cc_basename in 12588 CC*) 12589 # The more standards-conforming stlport4 library is 12590 # incompatible with the Cstd library. Avoid specifying 12591 # it if it's in CXXFLAGS. Ignore libCrun as 12592 # -library=stlport4 depends on it. 12593 case " $CXX $CXXFLAGS " in 12594 *" -library=stlport4 "*) 12595 solaris_use_stlport4=yes 12596 ;; 12597 esac 12598 12599 # Adding this requires a known-good setup of shared libraries for 12600 # Sun compiler versions before 5.6, else PIC objects from an old 12601 # archive will be linked into the output, leading to subtle bugs. 12602 if test "$solaris_use_stlport4" != yes; then 12603 postdeps_CXX='-library=Cstd -library=Crun' 12604 fi 12605 ;; 12606 esac 12607 ;; 12608esac 12609 12610case " $postdeps_CXX " in 12611*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12612esac 12613 12614lt_prog_compiler_wl_CXX= 12615lt_prog_compiler_pic_CXX= 12616lt_prog_compiler_static_CXX= 12617 12618{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12619$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12620 12621 # C++ specific cases for pic, static, wl, etc. 12622 if test "$GXX" = yes; then 12623 lt_prog_compiler_wl_CXX='-Wl,' 12624 lt_prog_compiler_static_CXX='-static' 12625 12626 case $host_os in 12627 aix*) 12628 # All AIX code is PIC. 12629 if test "$host_cpu" = ia64; then 12630 # AIX 5 now supports IA64 processor 12631 lt_prog_compiler_static_CXX='-Bstatic' 12632 fi 12633 ;; 12634 amigaos*) 12635 # FIXME: we need at least 68020 code to build shared libraries, but 12636 # adding the `-m68020' flag to GCC prevents building anything better, 12637 # like `-m68040'. 12638 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12639 ;; 12640 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12641 # PIC is the default for these OSes. 12642 ;; 12643 mingw* | cygwin* | os2* | pw32*) 12644 # This hack is so that the source file can tell whether it is being 12645 # built for inclusion in a dll (and should export symbols for example). 12646 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12647 # (--disable-auto-import) libraries 12648 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12649 ;; 12650 darwin* | rhapsody*) 12651 # PIC is the default on this platform 12652 # Common symbols not allowed in MH_DYLIB files 12653 lt_prog_compiler_pic_CXX='-fno-common' 12654 ;; 12655 *djgpp*) 12656 # DJGPP does not support shared libraries at all 12657 lt_prog_compiler_pic_CXX= 12658 ;; 12659 interix[3-9]*) 12660 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12661 # Instead, we relocate shared libraries at runtime. 12662 ;; 12663 sysv4*MP*) 12664 if test -d /usr/nec; then 12665 lt_prog_compiler_pic_CXX=-Kconform_pic 12666 fi 12667 ;; 12668 hpux*) 12669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12670 # not for PA HP-UX. 12671 case $host_cpu in 12672 hppa*64*|ia64*) 12673 ;; 12674 *) 12675 lt_prog_compiler_pic_CXX='-fPIC' 12676 ;; 12677 esac 12678 ;; 12679 *) 12680 lt_prog_compiler_pic_CXX='-fPIC' 12681 ;; 12682 esac 12683 else 12684 case $host_os in 12685 aix[4-9]*) 12686 # All AIX code is PIC. 12687 if test "$host_cpu" = ia64; then 12688 # AIX 5 now supports IA64 processor 12689 lt_prog_compiler_static_CXX='-Bstatic' 12690 else 12691 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12692 fi 12693 ;; 12694 chorus*) 12695 case $cc_basename in 12696 cxch68*) 12697 # Green Hills C++ Compiler 12698 # _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" 12699 ;; 12700 esac 12701 ;; 12702 darwin*) 12703 # PIC is the default on this platform 12704 # Common symbols not allowed in MH_DYLIB files 12705 case $cc_basename in 12706 xlc*) 12707 lt_prog_compiler_pic_CXX='-qnocommon' 12708 lt_prog_compiler_wl_CXX='-Wl,' 12709 ;; 12710 esac 12711 ;; 12712 dgux*) 12713 case $cc_basename in 12714 ec++*) 12715 lt_prog_compiler_pic_CXX='-KPIC' 12716 ;; 12717 ghcx*) 12718 # Green Hills C++ Compiler 12719 lt_prog_compiler_pic_CXX='-pic' 12720 ;; 12721 *) 12722 ;; 12723 esac 12724 ;; 12725 freebsd* | dragonfly*) 12726 # FreeBSD uses GNU C++ 12727 ;; 12728 hpux9* | hpux10* | hpux11*) 12729 case $cc_basename in 12730 CC*) 12731 lt_prog_compiler_wl_CXX='-Wl,' 12732 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12733 if test "$host_cpu" != ia64; then 12734 lt_prog_compiler_pic_CXX='+Z' 12735 fi 12736 ;; 12737 aCC*) 12738 lt_prog_compiler_wl_CXX='-Wl,' 12739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12740 case $host_cpu in 12741 hppa*64*|ia64*) 12742 # +Z the default 12743 ;; 12744 *) 12745 lt_prog_compiler_pic_CXX='+Z' 12746 ;; 12747 esac 12748 ;; 12749 *) 12750 ;; 12751 esac 12752 ;; 12753 interix*) 12754 # This is c89, which is MS Visual C++ (no shared libs) 12755 # Anyone wants to do a port? 12756 ;; 12757 irix5* | irix6* | nonstopux*) 12758 case $cc_basename in 12759 CC*) 12760 lt_prog_compiler_wl_CXX='-Wl,' 12761 lt_prog_compiler_static_CXX='-non_shared' 12762 # CC pic flag -KPIC is the default. 12763 ;; 12764 *) 12765 ;; 12766 esac 12767 ;; 12768 linux* | k*bsd*-gnu) 12769 case $cc_basename in 12770 KCC*) 12771 # KAI C++ Compiler 12772 lt_prog_compiler_wl_CXX='--backend -Wl,' 12773 lt_prog_compiler_pic_CXX='-fPIC' 12774 ;; 12775 icpc* | ecpc*) 12776 # Intel C++ 12777 lt_prog_compiler_wl_CXX='-Wl,' 12778 lt_prog_compiler_pic_CXX='-KPIC' 12779 lt_prog_compiler_static_CXX='-static' 12780 ;; 12781 pgCC* | pgcpp*) 12782 # Portland Group C++ compiler. 12783 lt_prog_compiler_wl_CXX='-Wl,' 12784 lt_prog_compiler_pic_CXX='-fpic' 12785 lt_prog_compiler_static_CXX='-Bstatic' 12786 ;; 12787 cxx*) 12788 # Compaq C++ 12789 # Make sure the PIC flag is empty. It appears that all Alpha 12790 # Linux and Compaq Tru64 Unix objects are PIC. 12791 lt_prog_compiler_pic_CXX= 12792 lt_prog_compiler_static_CXX='-non_shared' 12793 ;; 12794 *) 12795 case `$CC -V 2>&1 | sed 5q` in 12796 *Sun\ C*) 12797 # Sun C++ 5.9 12798 lt_prog_compiler_pic_CXX='-KPIC' 12799 lt_prog_compiler_static_CXX='-Bstatic' 12800 lt_prog_compiler_wl_CXX='-Qoption ld ' 12801 ;; 12802 esac 12803 ;; 12804 esac 12805 ;; 12806 lynxos*) 12807 ;; 12808 m88k*) 12809 ;; 12810 mvs*) 12811 case $cc_basename in 12812 cxx*) 12813 lt_prog_compiler_pic_CXX='-W c,exportall' 12814 ;; 12815 *) 12816 ;; 12817 esac 12818 ;; 12819 netbsd*) 12820 ;; 12821 osf3* | osf4* | osf5*) 12822 case $cc_basename in 12823 KCC*) 12824 lt_prog_compiler_wl_CXX='--backend -Wl,' 12825 ;; 12826 RCC*) 12827 # Rational C++ 2.4.1 12828 lt_prog_compiler_pic_CXX='-pic' 12829 ;; 12830 cxx*) 12831 # Digital/Compaq C++ 12832 lt_prog_compiler_wl_CXX='-Wl,' 12833 # Make sure the PIC flag is empty. It appears that all Alpha 12834 # Linux and Compaq Tru64 Unix objects are PIC. 12835 lt_prog_compiler_pic_CXX= 12836 lt_prog_compiler_static_CXX='-non_shared' 12837 ;; 12838 *) 12839 ;; 12840 esac 12841 ;; 12842 psos*) 12843 ;; 12844 solaris*) 12845 case $cc_basename in 12846 CC*) 12847 # Sun C++ 4.2, 5.x and Centerline C++ 12848 lt_prog_compiler_pic_CXX='-KPIC' 12849 lt_prog_compiler_static_CXX='-Bstatic' 12850 lt_prog_compiler_wl_CXX='-Qoption ld ' 12851 ;; 12852 gcx*) 12853 # Green Hills C++ Compiler 12854 lt_prog_compiler_pic_CXX='-PIC' 12855 ;; 12856 *) 12857 ;; 12858 esac 12859 ;; 12860 sunos4*) 12861 case $cc_basename in 12862 CC*) 12863 # Sun C++ 4.x 12864 lt_prog_compiler_pic_CXX='-pic' 12865 lt_prog_compiler_static_CXX='-Bstatic' 12866 ;; 12867 lcc*) 12868 # Lucid 12869 lt_prog_compiler_pic_CXX='-pic' 12870 ;; 12871 *) 12872 ;; 12873 esac 12874 ;; 12875 tandem*) 12876 case $cc_basename in 12877 NCC*) 12878 # NonStop-UX NCC 3.20 12879 lt_prog_compiler_pic_CXX='-KPIC' 12880 ;; 12881 *) 12882 ;; 12883 esac 12884 ;; 12885 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12886 case $cc_basename in 12887 CC*) 12888 lt_prog_compiler_wl_CXX='-Wl,' 12889 lt_prog_compiler_pic_CXX='-KPIC' 12890 lt_prog_compiler_static_CXX='-Bstatic' 12891 ;; 12892 esac 12893 ;; 12894 vxworks*) 12895 ;; 12896 *) 12897 lt_prog_compiler_can_build_shared_CXX=no 12898 ;; 12899 esac 12900 fi 12901 12902{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12903$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12904 12905# 12906# Check to make sure the PIC flag actually works. 12907# 12908if test -n "$lt_prog_compiler_pic_CXX"; then 12909 12910{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12911$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12912if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12913 $as_echo_n "(cached) " >&6 12914else 12915 lt_cv_prog_compiler_pic_works_CXX=no 12916 ac_outfile=conftest.$ac_objext 12917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12918 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12919 # Insert the option either (1) after the last *FLAGS variable, or 12920 # (2) before a word containing "conftest.", or (3) at the end. 12921 # Note that $ac_compile itself does not contain backslashes and begins 12922 # with a dollar sign (not a hyphen), so the echo should work correctly. 12923 # The option is referenced via a variable to avoid confusing sed. 12924 lt_compile=`echo "$ac_compile" | $SED \ 12925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12927 -e 's:$: $lt_compiler_flag:'` 12928 (eval echo "\"\$as_me:12928: $lt_compile\"" >&5) 12929 (eval "$lt_compile" 2>conftest.err) 12930 ac_status=$? 12931 cat conftest.err >&5 12932 echo "$as_me:12932: \$? = $ac_status" >&5 12933 if (exit $ac_status) && test -s "$ac_outfile"; then 12934 # The compiler can only warn and ignore the option if not recognized 12935 # So say no if there are warnings other than the usual output. 12936 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12939 lt_cv_prog_compiler_pic_works_CXX=yes 12940 fi 12941 fi 12942 $rm conftest* 12943 12944fi 12945{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12946$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12947 12948if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12949 case $lt_prog_compiler_pic_CXX in 12950 "" | " "*) ;; 12951 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12952 esac 12953else 12954 lt_prog_compiler_pic_CXX= 12955 lt_prog_compiler_can_build_shared_CXX=no 12956fi 12957 12958fi 12959case $host_os in 12960 # For platforms which do not support PIC, -DPIC is meaningless: 12961 *djgpp*) 12962 lt_prog_compiler_pic_CXX= 12963 ;; 12964 *) 12965 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12966 ;; 12967esac 12968 12969# 12970# Check to make sure the static flag actually works. 12971# 12972wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12973{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12974$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12975if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12976 $as_echo_n "(cached) " >&6 12977else 12978 lt_cv_prog_compiler_static_works_CXX=no 12979 save_LDFLAGS="$LDFLAGS" 12980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12981 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12983 # The linker can only warn and ignore the option if not recognized 12984 # So say no if there are warnings 12985 if test -s conftest.err; then 12986 # Append any errors to the config.log. 12987 cat conftest.err 1>&5 12988 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12990 if diff conftest.exp conftest.er2 >/dev/null; then 12991 lt_cv_prog_compiler_static_works_CXX=yes 12992 fi 12993 else 12994 lt_cv_prog_compiler_static_works_CXX=yes 12995 fi 12996 fi 12997 $rm -r conftest* 12998 LDFLAGS="$save_LDFLAGS" 12999 13000fi 13001{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13002$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13003 13004if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13005 : 13006else 13007 lt_prog_compiler_static_CXX= 13008fi 13009 13010 13011{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13012$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13013if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13014 $as_echo_n "(cached) " >&6 13015else 13016 lt_cv_prog_compiler_c_o_CXX=no 13017 $rm -r conftest 2>/dev/null 13018 mkdir conftest 13019 cd conftest 13020 mkdir out 13021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13022 13023 lt_compiler_flag="-o out/conftest2.$ac_objext" 13024 # Insert the option either (1) after the last *FLAGS variable, or 13025 # (2) before a word containing "conftest.", or (3) at the end. 13026 # Note that $ac_compile itself does not contain backslashes and begins 13027 # with a dollar sign (not a hyphen), so the echo should work correctly. 13028 lt_compile=`echo "$ac_compile" | $SED \ 13029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13031 -e 's:$: $lt_compiler_flag:'` 13032 (eval echo "\"\$as_me:13032: $lt_compile\"" >&5) 13033 (eval "$lt_compile" 2>out/conftest.err) 13034 ac_status=$? 13035 cat out/conftest.err >&5 13036 echo "$as_me:13036: \$? = $ac_status" >&5 13037 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13038 then 13039 # The compiler can only warn and ignore the option if not recognized 13040 # So say no if there are warnings 13041 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13044 lt_cv_prog_compiler_c_o_CXX=yes 13045 fi 13046 fi 13047 chmod u+w . 2>&5 13048 $rm conftest* 13049 # SGI C++ compiler will create directory out/ii_files/ for 13050 # template instantiation 13051 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13052 $rm out/* && rmdir out 13053 cd .. 13054 rmdir conftest 13055 $rm conftest* 13056 13057fi 13058{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13059$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13060 13061 13062hard_links="nottested" 13063if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13064 # do not overwrite the value of need_locks provided by the user 13065 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13066$as_echo_n "checking if we can lock with hard links... " >&6; } 13067 hard_links=yes 13068 $rm conftest* 13069 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13070 touch conftest.a 13071 ln conftest.a conftest.b 2>&5 || hard_links=no 13072 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13073 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13074$as_echo "$hard_links" >&6; } 13075 if test "$hard_links" = no; then 13076 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13077$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13078 need_locks=warn 13079 fi 13080else 13081 need_locks=no 13082fi 13083 13084{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13085$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13086 13087 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13088 case $host_os in 13089 aix[4-9]*) 13090 # If we're using GNU nm, then we don't want the "-C" option. 13091 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13092 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13093 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' 13094 else 13095 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' 13096 fi 13097 ;; 13098 pw32*) 13099 export_symbols_cmds_CXX="$ltdll_cmds" 13100 ;; 13101 cygwin* | mingw*) 13102 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' 13103 ;; 13104 *) 13105 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13106 ;; 13107 esac 13108 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13109 13110{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13111$as_echo "$ld_shlibs_CXX" >&6; } 13112test "$ld_shlibs_CXX" = no && can_build_shared=no 13113 13114# 13115# Do we need to explicitly link libc? 13116# 13117case "x$archive_cmds_need_lc_CXX" in 13118x|xyes) 13119 # Assume -lc should be added 13120 archive_cmds_need_lc_CXX=yes 13121 13122 if test "$enable_shared" = yes && test "$GCC" = yes; then 13123 case $archive_cmds_CXX in 13124 *'~'*) 13125 # FIXME: we may have to deal with multi-command sequences. 13126 ;; 13127 '$CC '*) 13128 # Test whether the compiler implicitly links with -lc since on some 13129 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13130 # to ld, don't add -lc before -lgcc. 13131 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13132$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13133 $rm conftest* 13134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13135 13136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13137 (eval $ac_compile) 2>&5 13138 ac_status=$? 13139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13140 (exit $ac_status); } 2>conftest.err; then 13141 soname=conftest 13142 lib=conftest 13143 libobjs=conftest.$ac_objext 13144 deplibs= 13145 wl=$lt_prog_compiler_wl_CXX 13146 pic_flag=$lt_prog_compiler_pic_CXX 13147 compiler_flags=-v 13148 linker_flags=-v 13149 verstring= 13150 output_objdir=. 13151 libname=conftest 13152 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13153 allow_undefined_flag_CXX= 13154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13155 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13156 ac_status=$? 13157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13158 (exit $ac_status); } 13159 then 13160 archive_cmds_need_lc_CXX=no 13161 else 13162 archive_cmds_need_lc_CXX=yes 13163 fi 13164 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13165 else 13166 cat conftest.err 1>&5 13167 fi 13168 $rm conftest* 13169 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13170$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13171 ;; 13172 esac 13173 fi 13174 ;; 13175esac 13176 13177{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13178$as_echo_n "checking dynamic linker characteristics... " >&6; } 13179library_names_spec= 13180libname_spec='lib$name' 13181soname_spec= 13182shrext_cmds=".so" 13183postinstall_cmds= 13184postuninstall_cmds= 13185finish_cmds= 13186finish_eval= 13187shlibpath_var= 13188shlibpath_overrides_runpath=unknown 13189version_type=none 13190dynamic_linker="$host_os ld.so" 13191sys_lib_dlsearch_path_spec="/lib /usr/lib" 13192 13193need_lib_prefix=unknown 13194hardcode_into_libs=no 13195 13196# when you set need_version to no, make sure it does not cause -set_version 13197# flags to be left without arguments 13198need_version=unknown 13199 13200case $host_os in 13201aix3*) 13202 version_type=linux 13203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13204 shlibpath_var=LIBPATH 13205 13206 # AIX 3 has no versioning support, so we append a major version to the name. 13207 soname_spec='${libname}${release}${shared_ext}$major' 13208 ;; 13209 13210aix[4-9]*) 13211 version_type=linux 13212 need_lib_prefix=no 13213 need_version=no 13214 hardcode_into_libs=yes 13215 if test "$host_cpu" = ia64; then 13216 # AIX 5 supports IA64 13217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13218 shlibpath_var=LD_LIBRARY_PATH 13219 else 13220 # With GCC up to 2.95.x, collect2 would create an import file 13221 # for dependence libraries. The import file would start with 13222 # the line `#! .'. This would cause the generated library to 13223 # depend on `.', always an invalid library. This was fixed in 13224 # development snapshots of GCC prior to 3.0. 13225 case $host_os in 13226 aix4 | aix4.[01] | aix4.[01].*) 13227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13228 echo ' yes ' 13229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13230 : 13231 else 13232 can_build_shared=no 13233 fi 13234 ;; 13235 esac 13236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13237 # soname into executable. Probably we can add versioning support to 13238 # collect2, so additional links can be useful in future. 13239 if test "$aix_use_runtimelinking" = yes; then 13240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13241 # instead of lib<name>.a to let people know that these are not 13242 # typical AIX shared libraries. 13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13244 else 13245 # We preserve .a as extension for shared libraries through AIX4.2 13246 # and later when we are not doing run time linking. 13247 library_names_spec='${libname}${release}.a $libname.a' 13248 soname_spec='${libname}${release}${shared_ext}$major' 13249 fi 13250 shlibpath_var=LIBPATH 13251 fi 13252 ;; 13253 13254amigaos*) 13255 library_names_spec='$libname.ixlibrary $libname.a' 13256 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13257 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' 13258 ;; 13259 13260beos*) 13261 library_names_spec='${libname}${shared_ext}' 13262 dynamic_linker="$host_os ld.so" 13263 shlibpath_var=LIBRARY_PATH 13264 ;; 13265 13266bsdi[45]*) 13267 version_type=linux 13268 need_version=no 13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13270 soname_spec='${libname}${release}${shared_ext}$major' 13271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13272 shlibpath_var=LD_LIBRARY_PATH 13273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13275 # the default ld.so.conf also contains /usr/contrib/lib and 13276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13277 # libtool to hard-code these into programs 13278 ;; 13279 13280cygwin* | mingw* | pw32*) 13281 version_type=windows 13282 shrext_cmds=".dll" 13283 need_version=no 13284 need_lib_prefix=no 13285 13286 case $GCC,$host_os in 13287 yes,cygwin* | yes,mingw* | yes,pw32*) 13288 library_names_spec='$libname.dll.a' 13289 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13290 postinstall_cmds='base_file=`basename \${file}`~ 13291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13292 dldir=$destdir/`dirname \$dlpath`~ 13293 test -d \$dldir || mkdir -p \$dldir~ 13294 $install_prog $dir/$dlname \$dldir/$dlname~ 13295 chmod a+x \$dldir/$dlname' 13296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13297 dlpath=$dir/\$dldll~ 13298 $rm \$dlpath' 13299 shlibpath_overrides_runpath=yes 13300 13301 case $host_os in 13302 cygwin*) 13303 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13306 ;; 13307 mingw*) 13308 # MinGW DLLs use traditional 'lib' prefix 13309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13312 # It is most probably a Windows format PATH printed by 13313 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13314 # path with ; separators, and with drive letters. We can handle the 13315 # drive letters (cygwin fileutils understands them), so leave them, 13316 # especially as we might pass files found there to a mingw objdump, 13317 # which wouldn't understand a cygwinified path. Ahh. 13318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13319 else 13320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13321 fi 13322 ;; 13323 pw32*) 13324 # pw32 DLLs use 'pw' prefix rather than 'lib' 13325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13326 ;; 13327 esac 13328 ;; 13329 13330 *) 13331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13332 ;; 13333 esac 13334 dynamic_linker='Win32 ld.exe' 13335 # FIXME: first we should search . and the directory the executable is in 13336 shlibpath_var=PATH 13337 ;; 13338 13339darwin* | rhapsody*) 13340 dynamic_linker="$host_os dyld" 13341 version_type=darwin 13342 need_lib_prefix=no 13343 need_version=no 13344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13345 soname_spec='${libname}${release}${major}$shared_ext' 13346 shlibpath_overrides_runpath=yes 13347 shlibpath_var=DYLD_LIBRARY_PATH 13348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13349 13350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13351 ;; 13352 13353dgux*) 13354 version_type=linux 13355 need_lib_prefix=no 13356 need_version=no 13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13358 soname_spec='${libname}${release}${shared_ext}$major' 13359 shlibpath_var=LD_LIBRARY_PATH 13360 ;; 13361 13362freebsd1*) 13363 dynamic_linker=no 13364 ;; 13365 13366freebsd* | dragonfly*) 13367 # DragonFly does not have aout. When/if they implement a new 13368 # versioning mechanism, adjust this. 13369 if test -x /usr/bin/objformat; then 13370 objformat=`/usr/bin/objformat` 13371 else 13372 case $host_os in 13373 freebsd[123]*) objformat=aout ;; 13374 *) objformat=elf ;; 13375 esac 13376 fi 13377 version_type=freebsd-$objformat 13378 case $version_type in 13379 freebsd-elf*) 13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13381 need_version=no 13382 need_lib_prefix=no 13383 ;; 13384 freebsd-*) 13385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13386 need_version=yes 13387 ;; 13388 esac 13389 shlibpath_var=LD_LIBRARY_PATH 13390 case $host_os in 13391 freebsd2*) 13392 shlibpath_overrides_runpath=yes 13393 ;; 13394 freebsd3.[01]* | freebsdelf3.[01]*) 13395 shlibpath_overrides_runpath=yes 13396 hardcode_into_libs=yes 13397 ;; 13398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13400 shlibpath_overrides_runpath=no 13401 hardcode_into_libs=yes 13402 ;; 13403 *) # from 4.6 on, and DragonFly 13404 shlibpath_overrides_runpath=yes 13405 hardcode_into_libs=yes 13406 ;; 13407 esac 13408 ;; 13409 13410gnu*) 13411 version_type=linux 13412 need_lib_prefix=no 13413 need_version=no 13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13415 soname_spec='${libname}${release}${shared_ext}$major' 13416 shlibpath_var=LD_LIBRARY_PATH 13417 hardcode_into_libs=yes 13418 ;; 13419 13420hpux9* | hpux10* | hpux11*) 13421 # Give a soname corresponding to the major version so that dld.sl refuses to 13422 # link against other versions. 13423 version_type=sunos 13424 need_lib_prefix=no 13425 need_version=no 13426 case $host_cpu in 13427 ia64*) 13428 shrext_cmds='.so' 13429 hardcode_into_libs=yes 13430 dynamic_linker="$host_os dld.so" 13431 shlibpath_var=LD_LIBRARY_PATH 13432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13434 soname_spec='${libname}${release}${shared_ext}$major' 13435 if test "X$HPUX_IA64_MODE" = X32; then 13436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13437 else 13438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13439 fi 13440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13441 ;; 13442 hppa*64*) 13443 shrext_cmds='.sl' 13444 hardcode_into_libs=yes 13445 dynamic_linker="$host_os dld.sl" 13446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13449 soname_spec='${libname}${release}${shared_ext}$major' 13450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13452 ;; 13453 *) 13454 shrext_cmds='.sl' 13455 dynamic_linker="$host_os dld.sl" 13456 shlibpath_var=SHLIB_PATH 13457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13459 soname_spec='${libname}${release}${shared_ext}$major' 13460 ;; 13461 esac 13462 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13463 postinstall_cmds='chmod 555 $lib' 13464 ;; 13465 13466interix[3-9]*) 13467 version_type=linux 13468 need_lib_prefix=no 13469 need_version=no 13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13471 soname_spec='${libname}${release}${shared_ext}$major' 13472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13473 shlibpath_var=LD_LIBRARY_PATH 13474 shlibpath_overrides_runpath=no 13475 hardcode_into_libs=yes 13476 ;; 13477 13478irix5* | irix6* | nonstopux*) 13479 case $host_os in 13480 nonstopux*) version_type=nonstopux ;; 13481 *) 13482 if test "$lt_cv_prog_gnu_ld" = yes; then 13483 version_type=linux 13484 else 13485 version_type=irix 13486 fi ;; 13487 esac 13488 need_lib_prefix=no 13489 need_version=no 13490 soname_spec='${libname}${release}${shared_ext}$major' 13491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13492 case $host_os in 13493 irix5* | nonstopux*) 13494 libsuff= shlibsuff= 13495 ;; 13496 *) 13497 case $LD in # libtool.m4 will add one of these switches to LD 13498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13499 libsuff= shlibsuff= libmagic=32-bit;; 13500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13501 libsuff=32 shlibsuff=N32 libmagic=N32;; 13502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13503 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13504 *) libsuff= shlibsuff= libmagic=never-match;; 13505 esac 13506 ;; 13507 esac 13508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13509 shlibpath_overrides_runpath=no 13510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13512 hardcode_into_libs=yes 13513 ;; 13514 13515# No shared lib support for Linux oldld, aout, or coff. 13516linux*oldld* | linux*aout* | linux*coff*) 13517 dynamic_linker=no 13518 ;; 13519 13520# This must be Linux ELF. 13521linux* | k*bsd*-gnu) 13522 version_type=linux 13523 need_lib_prefix=no 13524 need_version=no 13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13526 soname_spec='${libname}${release}${shared_ext}$major' 13527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13528 shlibpath_var=LD_LIBRARY_PATH 13529 shlibpath_overrides_runpath=no 13530 # This implies no fast_install, which is unacceptable. 13531 # Some rework will be needed to allow for fast_install 13532 # before this can be enabled. 13533 hardcode_into_libs=yes 13534 13535 # Append ld.so.conf contents to the search path 13536 if test -f /etc/ld.so.conf; then 13537 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' ' '` 13538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13539 fi 13540 13541 # We used to test for /lib/ld.so.1 and disable shared libraries on 13542 # powerpc, because MkLinux only supported shared libraries with the 13543 # GNU dynamic linker. Since this was broken with cross compilers, 13544 # most powerpc-linux boxes support dynamic linking these days and 13545 # people can always --disable-shared, the test was removed, and we 13546 # assume the GNU/Linux dynamic linker is in use. 13547 dynamic_linker='GNU/Linux ld.so' 13548 ;; 13549 13550netbsd*) 13551 version_type=sunos 13552 need_lib_prefix=no 13553 need_version=no 13554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13557 dynamic_linker='NetBSD (a.out) ld.so' 13558 else 13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13560 soname_spec='${libname}${release}${shared_ext}$major' 13561 dynamic_linker='NetBSD ld.elf_so' 13562 fi 13563 shlibpath_var=LD_LIBRARY_PATH 13564 shlibpath_overrides_runpath=yes 13565 hardcode_into_libs=yes 13566 ;; 13567 13568newsos6) 13569 version_type=linux 13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13571 shlibpath_var=LD_LIBRARY_PATH 13572 shlibpath_overrides_runpath=yes 13573 ;; 13574 13575nto-qnx*) 13576 version_type=linux 13577 need_lib_prefix=no 13578 need_version=no 13579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13580 soname_spec='${libname}${release}${shared_ext}$major' 13581 shlibpath_var=LD_LIBRARY_PATH 13582 shlibpath_overrides_runpath=yes 13583 ;; 13584 13585openbsd*) 13586 version_type=sunos 13587 sys_lib_dlsearch_path_spec="/usr/lib" 13588 need_lib_prefix=no 13589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13590 case $host_os in 13591 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13592 *) need_version=no ;; 13593 esac 13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13596 shlibpath_var=LD_LIBRARY_PATH 13597 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13598 case $host_os in 13599 openbsd2.[89] | openbsd2.[89].*) 13600 shlibpath_overrides_runpath=no 13601 ;; 13602 *) 13603 shlibpath_overrides_runpath=yes 13604 ;; 13605 esac 13606 else 13607 shlibpath_overrides_runpath=yes 13608 fi 13609 ;; 13610 13611os2*) 13612 libname_spec='$name' 13613 shrext_cmds=".dll" 13614 need_lib_prefix=no 13615 library_names_spec='$libname${shared_ext} $libname.a' 13616 dynamic_linker='OS/2 ld.exe' 13617 shlibpath_var=LIBPATH 13618 ;; 13619 13620osf3* | osf4* | osf5*) 13621 version_type=osf 13622 need_lib_prefix=no 13623 need_version=no 13624 soname_spec='${libname}${release}${shared_ext}$major' 13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13626 shlibpath_var=LD_LIBRARY_PATH 13627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13629 ;; 13630 13631rdos*) 13632 dynamic_linker=no 13633 ;; 13634 13635solaris*) 13636 version_type=linux 13637 need_lib_prefix=no 13638 need_version=no 13639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13640 soname_spec='${libname}${release}${shared_ext}$major' 13641 shlibpath_var=LD_LIBRARY_PATH 13642 shlibpath_overrides_runpath=yes 13643 hardcode_into_libs=yes 13644 # ldd complains unless libraries are executable 13645 postinstall_cmds='chmod +x $lib' 13646 ;; 13647 13648sunos4*) 13649 version_type=sunos 13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13652 shlibpath_var=LD_LIBRARY_PATH 13653 shlibpath_overrides_runpath=yes 13654 if test "$with_gnu_ld" = yes; then 13655 need_lib_prefix=no 13656 fi 13657 need_version=yes 13658 ;; 13659 13660sysv4 | sysv4.3*) 13661 version_type=linux 13662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13663 soname_spec='${libname}${release}${shared_ext}$major' 13664 shlibpath_var=LD_LIBRARY_PATH 13665 case $host_vendor in 13666 sni) 13667 shlibpath_overrides_runpath=no 13668 need_lib_prefix=no 13669 export_dynamic_flag_spec='${wl}-Blargedynsym' 13670 runpath_var=LD_RUN_PATH 13671 ;; 13672 siemens) 13673 need_lib_prefix=no 13674 ;; 13675 motorola) 13676 need_lib_prefix=no 13677 need_version=no 13678 shlibpath_overrides_runpath=no 13679 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13680 ;; 13681 esac 13682 ;; 13683 13684sysv4*MP*) 13685 if test -d /usr/nec ;then 13686 version_type=linux 13687 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13688 soname_spec='$libname${shared_ext}.$major' 13689 shlibpath_var=LD_LIBRARY_PATH 13690 fi 13691 ;; 13692 13693sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13694 version_type=freebsd-elf 13695 need_lib_prefix=no 13696 need_version=no 13697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13698 soname_spec='${libname}${release}${shared_ext}$major' 13699 shlibpath_var=LD_LIBRARY_PATH 13700 hardcode_into_libs=yes 13701 if test "$with_gnu_ld" = yes; then 13702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13703 shlibpath_overrides_runpath=no 13704 else 13705 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13706 shlibpath_overrides_runpath=yes 13707 case $host_os in 13708 sco3.2v5*) 13709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13710 ;; 13711 esac 13712 fi 13713 sys_lib_dlsearch_path_spec='/usr/lib' 13714 ;; 13715 13716uts4*) 13717 version_type=linux 13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13719 soname_spec='${libname}${release}${shared_ext}$major' 13720 shlibpath_var=LD_LIBRARY_PATH 13721 ;; 13722 13723*) 13724 dynamic_linker=no 13725 ;; 13726esac 13727{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13728$as_echo "$dynamic_linker" >&6; } 13729test "$dynamic_linker" = no && can_build_shared=no 13730 13731if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13732 $as_echo_n "(cached) " >&6 13733else 13734 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13735fi 13736 13737sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13738if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13739 $as_echo_n "(cached) " >&6 13740else 13741 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13742fi 13743 13744sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13745 13746variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13747if test "$GCC" = yes; then 13748 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13749fi 13750 13751{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13752$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13753hardcode_action_CXX= 13754if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13755 test -n "$runpath_var_CXX" || \ 13756 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13757 13758 # We can hardcode non-existant directories. 13759 if test "$hardcode_direct_CXX" != no && 13760 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13761 # have to relink, otherwise we might link with an installed library 13762 # when we should be linking with a yet-to-be-installed one 13763 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13764 test "$hardcode_minus_L_CXX" != no; then 13765 # Linking always hardcodes the temporary library directory. 13766 hardcode_action_CXX=relink 13767 else 13768 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13769 hardcode_action_CXX=immediate 13770 fi 13771else 13772 # We cannot hardcode anything, or else we can only hardcode existing 13773 # directories. 13774 hardcode_action_CXX=unsupported 13775fi 13776{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13777$as_echo "$hardcode_action_CXX" >&6; } 13778 13779if test "$hardcode_action_CXX" = relink; then 13780 # Fast installation is not supported 13781 enable_fast_install=no 13782elif test "$shlibpath_overrides_runpath" = yes || 13783 test "$enable_shared" = no; then 13784 # Fast installation is not necessary 13785 enable_fast_install=needless 13786fi 13787 13788 13789# The else clause should only fire when bootstrapping the 13790# libtool distribution, otherwise you forgot to ship ltmain.sh 13791# with your package, and you will get complaints that there are 13792# no rules to generate ltmain.sh. 13793if test -f "$ltmain"; then 13794 # See if we are running on zsh, and set the options which allow our commands through 13795 # without removal of \ escapes. 13796 if test -n "${ZSH_VERSION+set}" ; then 13797 setopt NO_GLOB_SUBST 13798 fi 13799 # Now quote all the things that may contain metacharacters while being 13800 # careful not to overquote the AC_SUBSTed values. We take copies of the 13801 # variables and quote the copies for generation of the libtool script. 13802 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13803 SED SHELL STRIP \ 13804 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13805 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13806 deplibs_check_method reload_flag reload_cmds need_locks \ 13807 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13808 lt_cv_sys_global_symbol_to_c_name_address \ 13809 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13810 old_postinstall_cmds old_postuninstall_cmds \ 13811 compiler_CXX \ 13812 CC_CXX \ 13813 LD_CXX \ 13814 lt_prog_compiler_wl_CXX \ 13815 lt_prog_compiler_pic_CXX \ 13816 lt_prog_compiler_static_CXX \ 13817 lt_prog_compiler_no_builtin_flag_CXX \ 13818 export_dynamic_flag_spec_CXX \ 13819 thread_safe_flag_spec_CXX \ 13820 whole_archive_flag_spec_CXX \ 13821 enable_shared_with_static_runtimes_CXX \ 13822 old_archive_cmds_CXX \ 13823 old_archive_from_new_cmds_CXX \ 13824 predep_objects_CXX \ 13825 postdep_objects_CXX \ 13826 predeps_CXX \ 13827 postdeps_CXX \ 13828 compiler_lib_search_path_CXX \ 13829 compiler_lib_search_dirs_CXX \ 13830 archive_cmds_CXX \ 13831 archive_expsym_cmds_CXX \ 13832 postinstall_cmds_CXX \ 13833 postuninstall_cmds_CXX \ 13834 old_archive_from_expsyms_cmds_CXX \ 13835 allow_undefined_flag_CXX \ 13836 no_undefined_flag_CXX \ 13837 export_symbols_cmds_CXX \ 13838 hardcode_libdir_flag_spec_CXX \ 13839 hardcode_libdir_flag_spec_ld_CXX \ 13840 hardcode_libdir_separator_CXX \ 13841 hardcode_automatic_CXX \ 13842 module_cmds_CXX \ 13843 module_expsym_cmds_CXX \ 13844 lt_cv_prog_compiler_c_o_CXX \ 13845 fix_srcfile_path_CXX \ 13846 exclude_expsyms_CXX \ 13847 include_expsyms_CXX; do 13848 13849 case $var in 13850 old_archive_cmds_CXX | \ 13851 old_archive_from_new_cmds_CXX | \ 13852 archive_cmds_CXX | \ 13853 archive_expsym_cmds_CXX | \ 13854 module_cmds_CXX | \ 13855 module_expsym_cmds_CXX | \ 13856 old_archive_from_expsyms_cmds_CXX | \ 13857 export_symbols_cmds_CXX | \ 13858 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13859 postinstall_cmds | postuninstall_cmds | \ 13860 old_postinstall_cmds | old_postuninstall_cmds | \ 13861 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13862 # Double-quote double-evaled strings. 13863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13864 ;; 13865 *) 13866 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13867 ;; 13868 esac 13869 done 13870 13871 case $lt_echo in 13872 *'\$0 --fallback-echo"') 13873 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13874 ;; 13875 esac 13876 13877cfgfile="$ofile" 13878 13879 cat <<__EOF__ >> "$cfgfile" 13880# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13881 13882# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13883 13884# Shell to use when invoking shell scripts. 13885SHELL=$lt_SHELL 13886 13887# Whether or not to build shared libraries. 13888build_libtool_libs=$enable_shared 13889 13890# Whether or not to build static libraries. 13891build_old_libs=$enable_static 13892 13893# Whether or not to add -lc for building shared libraries. 13894build_libtool_need_lc=$archive_cmds_need_lc_CXX 13895 13896# Whether or not to disallow shared libs when runtime libs are static 13897allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13898 13899# Whether or not to optimize for fast installation. 13900fast_install=$enable_fast_install 13901 13902# The host system. 13903host_alias=$host_alias 13904host=$host 13905host_os=$host_os 13906 13907# The build system. 13908build_alias=$build_alias 13909build=$build 13910build_os=$build_os 13911 13912# An echo program that does not interpret backslashes. 13913echo=$lt_echo 13914 13915# The archiver. 13916AR=$lt_AR 13917AR_FLAGS=$lt_AR_FLAGS 13918 13919# A C compiler. 13920LTCC=$lt_LTCC 13921 13922# LTCC compiler flags. 13923LTCFLAGS=$lt_LTCFLAGS 13924 13925# A language-specific compiler. 13926CC=$lt_compiler_CXX 13927 13928# Is the compiler the GNU C compiler? 13929with_gcc=$GCC_CXX 13930 13931# An ERE matcher. 13932EGREP=$lt_EGREP 13933 13934# The linker used to build libraries. 13935LD=$lt_LD_CXX 13936 13937# Whether we need hard or soft links. 13938LN_S=$lt_LN_S 13939 13940# A BSD-compatible nm program. 13941NM=$lt_NM 13942 13943# A symbol stripping program 13944STRIP=$lt_STRIP 13945 13946# Used to examine libraries when file_magic_cmd begins "file" 13947MAGIC_CMD=$MAGIC_CMD 13948 13949# Used on cygwin: DLL creation program. 13950DLLTOOL="$DLLTOOL" 13951 13952# Used on cygwin: object dumper. 13953OBJDUMP="$OBJDUMP" 13954 13955# Used on cygwin: assembler. 13956AS="$AS" 13957 13958# The name of the directory that contains temporary libtool files. 13959objdir=$objdir 13960 13961# How to create reloadable object files. 13962reload_flag=$lt_reload_flag 13963reload_cmds=$lt_reload_cmds 13964 13965# How to pass a linker flag through the compiler. 13966wl=$lt_lt_prog_compiler_wl_CXX 13967 13968# Object file suffix (normally "o"). 13969objext="$ac_objext" 13970 13971# Old archive suffix (normally "a"). 13972libext="$libext" 13973 13974# Shared library suffix (normally ".so"). 13975shrext_cmds='$shrext_cmds' 13976 13977# Executable file suffix (normally ""). 13978exeext="$exeext" 13979 13980# Additional compiler flags for building library objects. 13981pic_flag=$lt_lt_prog_compiler_pic_CXX 13982pic_mode=$pic_mode 13983 13984# What is the maximum length of a command? 13985max_cmd_len=$lt_cv_sys_max_cmd_len 13986 13987# Does compiler simultaneously support -c and -o options? 13988compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13989 13990# Must we lock files when doing compilation? 13991need_locks=$lt_need_locks 13992 13993# Do we need the lib prefix for modules? 13994need_lib_prefix=$need_lib_prefix 13995 13996# Do we need a version for libraries? 13997need_version=$need_version 13998 13999# Whether dlopen is supported. 14000dlopen_support=$enable_dlopen 14001 14002# Whether dlopen of programs is supported. 14003dlopen_self=$enable_dlopen_self 14004 14005# Whether dlopen of statically linked programs is supported. 14006dlopen_self_static=$enable_dlopen_self_static 14007 14008# Compiler flag to prevent dynamic linking. 14009link_static_flag=$lt_lt_prog_compiler_static_CXX 14010 14011# Compiler flag to turn off builtin functions. 14012no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14013 14014# Compiler flag to allow reflexive dlopens. 14015export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14016 14017# Compiler flag to generate shared objects directly from archives. 14018whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14019 14020# Compiler flag to generate thread-safe objects. 14021thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14022 14023# Library versioning type. 14024version_type=$version_type 14025 14026# Format of library name prefix. 14027libname_spec=$lt_libname_spec 14028 14029# List of archive names. First name is the real one, the rest are links. 14030# The last name is the one that the linker finds with -lNAME. 14031library_names_spec=$lt_library_names_spec 14032 14033# The coded name of the library, if different from the real name. 14034soname_spec=$lt_soname_spec 14035 14036# Commands used to build and install an old-style archive. 14037RANLIB=$lt_RANLIB 14038old_archive_cmds=$lt_old_archive_cmds_CXX 14039old_postinstall_cmds=$lt_old_postinstall_cmds 14040old_postuninstall_cmds=$lt_old_postuninstall_cmds 14041 14042# Create an old-style archive from a shared archive. 14043old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14044 14045# Create a temporary old-style archive to link instead of a shared archive. 14046old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14047 14048# Commands used to build and install a shared archive. 14049archive_cmds=$lt_archive_cmds_CXX 14050archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14051postinstall_cmds=$lt_postinstall_cmds 14052postuninstall_cmds=$lt_postuninstall_cmds 14053 14054# Commands used to build a loadable module (assumed same as above if empty) 14055module_cmds=$lt_module_cmds_CXX 14056module_expsym_cmds=$lt_module_expsym_cmds_CXX 14057 14058# Commands to strip libraries. 14059old_striplib=$lt_old_striplib 14060striplib=$lt_striplib 14061 14062# Dependencies to place before the objects being linked to create a 14063# shared library. 14064predep_objects=$lt_predep_objects_CXX 14065 14066# Dependencies to place after the objects being linked to create a 14067# shared library. 14068postdep_objects=$lt_postdep_objects_CXX 14069 14070# Dependencies to place before the objects being linked to create a 14071# shared library. 14072predeps=$lt_predeps_CXX 14073 14074# Dependencies to place after the objects being linked to create a 14075# shared library. 14076postdeps=$lt_postdeps_CXX 14077 14078# The directories searched by this compiler when creating a shared 14079# library 14080compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14081 14082# The library search path used internally by the compiler when linking 14083# a shared library. 14084compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14085 14086# Method to check whether dependent libraries are shared objects. 14087deplibs_check_method=$lt_deplibs_check_method 14088 14089# Command to use when deplibs_check_method == file_magic. 14090file_magic_cmd=$lt_file_magic_cmd 14091 14092# Flag that allows shared libraries with undefined symbols to be built. 14093allow_undefined_flag=$lt_allow_undefined_flag_CXX 14094 14095# Flag that forces no undefined symbols. 14096no_undefined_flag=$lt_no_undefined_flag_CXX 14097 14098# Commands used to finish a libtool library installation in a directory. 14099finish_cmds=$lt_finish_cmds 14100 14101# Same as above, but a single script fragment to be evaled but not shown. 14102finish_eval=$lt_finish_eval 14103 14104# Take the output of nm and produce a listing of raw symbols and C names. 14105global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14106 14107# Transform the output of nm in a proper C declaration 14108global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14109 14110# Transform the output of nm in a C name address pair 14111global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14112 14113# This is the shared library runtime path variable. 14114runpath_var=$runpath_var 14115 14116# This is the shared library path variable. 14117shlibpath_var=$shlibpath_var 14118 14119# Is shlibpath searched before the hard-coded library search path? 14120shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14121 14122# How to hardcode a shared library path into an executable. 14123hardcode_action=$hardcode_action_CXX 14124 14125# Whether we should hardcode library paths into libraries. 14126hardcode_into_libs=$hardcode_into_libs 14127 14128# Flag to hardcode \$libdir into a binary during linking. 14129# This must work even if \$libdir does not exist. 14130hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14131 14132# If ld is used when linking, flag to hardcode \$libdir into 14133# a binary during linking. This must work even if \$libdir does 14134# not exist. 14135hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14136 14137# Whether we need a single -rpath flag with a separated argument. 14138hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14139 14140# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14141# resulting binary. 14142hardcode_direct=$hardcode_direct_CXX 14143 14144# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14145# resulting binary. 14146hardcode_minus_L=$hardcode_minus_L_CXX 14147 14148# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14149# the resulting binary. 14150hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14151 14152# Set to yes if building a shared library automatically hardcodes DIR into the library 14153# and all subsequent libraries and executables linked against it. 14154hardcode_automatic=$hardcode_automatic_CXX 14155 14156# Variables whose values should be saved in libtool wrapper scripts and 14157# restored at relink time. 14158variables_saved_for_relink="$variables_saved_for_relink" 14159 14160# Whether libtool must link a program against all its dependency libraries. 14161link_all_deplibs=$link_all_deplibs_CXX 14162 14163# Compile-time system search path for libraries 14164sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14165 14166# Run-time system search path for libraries 14167sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14168 14169# Fix the shell variable \$srcfile for the compiler. 14170fix_srcfile_path=$lt_fix_srcfile_path 14171 14172# Set to yes if exported symbols are required. 14173always_export_symbols=$always_export_symbols_CXX 14174 14175# The commands to list exported symbols. 14176export_symbols_cmds=$lt_export_symbols_cmds_CXX 14177 14178# The commands to extract the exported symbol list from a shared archive. 14179extract_expsyms_cmds=$lt_extract_expsyms_cmds 14180 14181# Symbols that should not be listed in the preloaded symbols. 14182exclude_expsyms=$lt_exclude_expsyms_CXX 14183 14184# Symbols that must always be exported. 14185include_expsyms=$lt_include_expsyms_CXX 14186 14187# ### END LIBTOOL TAG CONFIG: $tagname 14188 14189__EOF__ 14190 14191 14192else 14193 # If there is no Makefile yet, we rely on a make rule to execute 14194 # `config.status --recheck' to rerun these tests and create the 14195 # libtool script then. 14196 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14197 if test -f "$ltmain_in"; then 14198 test -f Makefile && make "$ltmain" 14199 fi 14200fi 14201 14202 14203ac_ext=c 14204ac_cpp='$CPP $CPPFLAGS' 14205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14207ac_compiler_gnu=$ac_cv_c_compiler_gnu 14208 14209CC=$lt_save_CC 14210LDCXX=$LD 14211LD=$lt_save_LD 14212GCC=$lt_save_GCC 14213with_gnu_ldcxx=$with_gnu_ld 14214with_gnu_ld=$lt_save_with_gnu_ld 14215lt_cv_path_LDCXX=$lt_cv_path_LD 14216lt_cv_path_LD=$lt_save_path_LD 14217lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14218lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14219 14220 else 14221 tagname="" 14222 fi 14223 ;; 14224 14225 F77) 14226 if test -n "$F77" && test "X$F77" != "Xno"; then 14227 14228ac_ext=f 14229ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14230ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14231ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14232 14233 14234archive_cmds_need_lc_F77=no 14235allow_undefined_flag_F77= 14236always_export_symbols_F77=no 14237archive_expsym_cmds_F77= 14238export_dynamic_flag_spec_F77= 14239hardcode_direct_F77=no 14240hardcode_libdir_flag_spec_F77= 14241hardcode_libdir_flag_spec_ld_F77= 14242hardcode_libdir_separator_F77= 14243hardcode_minus_L_F77=no 14244hardcode_automatic_F77=no 14245module_cmds_F77= 14246module_expsym_cmds_F77= 14247link_all_deplibs_F77=unknown 14248old_archive_cmds_F77=$old_archive_cmds 14249no_undefined_flag_F77= 14250whole_archive_flag_spec_F77= 14251enable_shared_with_static_runtimes_F77=no 14252 14253# Source file extension for f77 test sources. 14254ac_ext=f 14255 14256# Object file extension for compiled f77 test sources. 14257objext=o 14258objext_F77=$objext 14259 14260# Code to be used in simple compile tests 14261lt_simple_compile_test_code="\ 14262 subroutine t 14263 return 14264 end 14265" 14266 14267# Code to be used in simple link tests 14268lt_simple_link_test_code="\ 14269 program t 14270 end 14271" 14272 14273# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14274 14275# If no C compiler was specified, use CC. 14276LTCC=${LTCC-"$CC"} 14277 14278# If no C compiler flags were specified, use CFLAGS. 14279LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14280 14281# Allow CC to be a program name with arguments. 14282compiler=$CC 14283 14284 14285# save warnings/boilerplate of simple test code 14286ac_outfile=conftest.$ac_objext 14287echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14289_lt_compiler_boilerplate=`cat conftest.err` 14290$rm conftest* 14291 14292ac_outfile=conftest.$ac_objext 14293echo "$lt_simple_link_test_code" >conftest.$ac_ext 14294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14295_lt_linker_boilerplate=`cat conftest.err` 14296$rm -r conftest* 14297 14298 14299# Allow CC to be a program name with arguments. 14300lt_save_CC="$CC" 14301CC=${F77-"f77"} 14302compiler=$CC 14303compiler_F77=$CC 14304for cc_temp in $compiler""; do 14305 case $cc_temp in 14306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14308 \-*) ;; 14309 *) break;; 14310 esac 14311done 14312cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14313 14314 14315{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14316$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14317{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14318$as_echo "$can_build_shared" >&6; } 14319 14320{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14321$as_echo_n "checking whether to build shared libraries... " >&6; } 14322test "$can_build_shared" = "no" && enable_shared=no 14323 14324# On AIX, shared libraries and static libraries use the same namespace, and 14325# are all built from PIC. 14326case $host_os in 14327aix3*) 14328 test "$enable_shared" = yes && enable_static=no 14329 if test -n "$RANLIB"; then 14330 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14331 postinstall_cmds='$RANLIB $lib' 14332 fi 14333 ;; 14334aix[4-9]*) 14335 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14336 test "$enable_shared" = yes && enable_static=no 14337 fi 14338 ;; 14339esac 14340{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14341$as_echo "$enable_shared" >&6; } 14342 14343{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14344$as_echo_n "checking whether to build static libraries... " >&6; } 14345# Make sure either enable_shared or enable_static is yes. 14346test "$enable_shared" = yes || enable_static=yes 14347{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14348$as_echo "$enable_static" >&6; } 14349 14350GCC_F77="$G77" 14351LD_F77="$LD" 14352 14353lt_prog_compiler_wl_F77= 14354lt_prog_compiler_pic_F77= 14355lt_prog_compiler_static_F77= 14356 14357{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14358$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14359 14360 if test "$GCC" = yes; then 14361 lt_prog_compiler_wl_F77='-Wl,' 14362 lt_prog_compiler_static_F77='-static' 14363 14364 case $host_os in 14365 aix*) 14366 # All AIX code is PIC. 14367 if test "$host_cpu" = ia64; then 14368 # AIX 5 now supports IA64 processor 14369 lt_prog_compiler_static_F77='-Bstatic' 14370 fi 14371 ;; 14372 14373 amigaos*) 14374 # FIXME: we need at least 68020 code to build shared libraries, but 14375 # adding the `-m68020' flag to GCC prevents building anything better, 14376 # like `-m68040'. 14377 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14378 ;; 14379 14380 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14381 # PIC is the default for these OSes. 14382 ;; 14383 14384 mingw* | cygwin* | pw32* | os2*) 14385 # This hack is so that the source file can tell whether it is being 14386 # built for inclusion in a dll (and should export symbols for example). 14387 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14388 # (--disable-auto-import) libraries 14389 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14390 ;; 14391 14392 darwin* | rhapsody*) 14393 # PIC is the default on this platform 14394 # Common symbols not allowed in MH_DYLIB files 14395 lt_prog_compiler_pic_F77='-fno-common' 14396 ;; 14397 14398 interix[3-9]*) 14399 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14400 # Instead, we relocate shared libraries at runtime. 14401 ;; 14402 14403 msdosdjgpp*) 14404 # Just because we use GCC doesn't mean we suddenly get shared libraries 14405 # on systems that don't support them. 14406 lt_prog_compiler_can_build_shared_F77=no 14407 enable_shared=no 14408 ;; 14409 14410 sysv4*MP*) 14411 if test -d /usr/nec; then 14412 lt_prog_compiler_pic_F77=-Kconform_pic 14413 fi 14414 ;; 14415 14416 hpux*) 14417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14418 # not for PA HP-UX. 14419 case $host_cpu in 14420 hppa*64*|ia64*) 14421 # +Z the default 14422 ;; 14423 *) 14424 lt_prog_compiler_pic_F77='-fPIC' 14425 ;; 14426 esac 14427 ;; 14428 14429 *) 14430 lt_prog_compiler_pic_F77='-fPIC' 14431 ;; 14432 esac 14433 else 14434 # PORTME Check for flag to pass linker flags through the system compiler. 14435 case $host_os in 14436 aix*) 14437 lt_prog_compiler_wl_F77='-Wl,' 14438 if test "$host_cpu" = ia64; then 14439 # AIX 5 now supports IA64 processor 14440 lt_prog_compiler_static_F77='-Bstatic' 14441 else 14442 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14443 fi 14444 ;; 14445 darwin*) 14446 # PIC is the default on this platform 14447 # Common symbols not allowed in MH_DYLIB files 14448 case $cc_basename in 14449 xlc*) 14450 lt_prog_compiler_pic_F77='-qnocommon' 14451 lt_prog_compiler_wl_F77='-Wl,' 14452 ;; 14453 esac 14454 ;; 14455 14456 mingw* | cygwin* | pw32* | os2*) 14457 # This hack is so that the source file can tell whether it is being 14458 # built for inclusion in a dll (and should export symbols for example). 14459 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14460 ;; 14461 14462 hpux9* | hpux10* | hpux11*) 14463 lt_prog_compiler_wl_F77='-Wl,' 14464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14465 # not for PA HP-UX. 14466 case $host_cpu in 14467 hppa*64*|ia64*) 14468 # +Z the default 14469 ;; 14470 *) 14471 lt_prog_compiler_pic_F77='+Z' 14472 ;; 14473 esac 14474 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14475 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14476 ;; 14477 14478 irix5* | irix6* | nonstopux*) 14479 lt_prog_compiler_wl_F77='-Wl,' 14480 # PIC (with -KPIC) is the default. 14481 lt_prog_compiler_static_F77='-non_shared' 14482 ;; 14483 14484 newsos6) 14485 lt_prog_compiler_pic_F77='-KPIC' 14486 lt_prog_compiler_static_F77='-Bstatic' 14487 ;; 14488 14489 linux* | k*bsd*-gnu) 14490 case $cc_basename in 14491 icc* | ecc*) 14492 lt_prog_compiler_wl_F77='-Wl,' 14493 lt_prog_compiler_pic_F77='-KPIC' 14494 lt_prog_compiler_static_F77='-static' 14495 ;; 14496 pgcc* | pgf77* | pgf90* | pgf95*) 14497 # Portland Group compilers (*not* the Pentium gcc compiler, 14498 # which looks to be a dead project) 14499 lt_prog_compiler_wl_F77='-Wl,' 14500 lt_prog_compiler_pic_F77='-fpic' 14501 lt_prog_compiler_static_F77='-Bstatic' 14502 ;; 14503 ccc*) 14504 lt_prog_compiler_wl_F77='-Wl,' 14505 # All Alpha code is PIC. 14506 lt_prog_compiler_static_F77='-non_shared' 14507 ;; 14508 *) 14509 case `$CC -V 2>&1 | sed 5q` in 14510 *Sun\ C*) 14511 # Sun C 5.9 14512 lt_prog_compiler_pic_F77='-KPIC' 14513 lt_prog_compiler_static_F77='-Bstatic' 14514 lt_prog_compiler_wl_F77='-Wl,' 14515 ;; 14516 *Sun\ F*) 14517 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14518 lt_prog_compiler_pic_F77='-KPIC' 14519 lt_prog_compiler_static_F77='-Bstatic' 14520 lt_prog_compiler_wl_F77='' 14521 ;; 14522 esac 14523 ;; 14524 esac 14525 ;; 14526 14527 osf3* | osf4* | osf5*) 14528 lt_prog_compiler_wl_F77='-Wl,' 14529 # All OSF/1 code is PIC. 14530 lt_prog_compiler_static_F77='-non_shared' 14531 ;; 14532 14533 rdos*) 14534 lt_prog_compiler_static_F77='-non_shared' 14535 ;; 14536 14537 solaris*) 14538 lt_prog_compiler_pic_F77='-KPIC' 14539 lt_prog_compiler_static_F77='-Bstatic' 14540 case $cc_basename in 14541 f77* | f90* | f95*) 14542 lt_prog_compiler_wl_F77='-Qoption ld ';; 14543 *) 14544 lt_prog_compiler_wl_F77='-Wl,';; 14545 esac 14546 ;; 14547 14548 sunos4*) 14549 lt_prog_compiler_wl_F77='-Qoption ld ' 14550 lt_prog_compiler_pic_F77='-PIC' 14551 lt_prog_compiler_static_F77='-Bstatic' 14552 ;; 14553 14554 sysv4 | sysv4.2uw2* | sysv4.3*) 14555 lt_prog_compiler_wl_F77='-Wl,' 14556 lt_prog_compiler_pic_F77='-KPIC' 14557 lt_prog_compiler_static_F77='-Bstatic' 14558 ;; 14559 14560 sysv4*MP*) 14561 if test -d /usr/nec ;then 14562 lt_prog_compiler_pic_F77='-Kconform_pic' 14563 lt_prog_compiler_static_F77='-Bstatic' 14564 fi 14565 ;; 14566 14567 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14568 lt_prog_compiler_wl_F77='-Wl,' 14569 lt_prog_compiler_pic_F77='-KPIC' 14570 lt_prog_compiler_static_F77='-Bstatic' 14571 ;; 14572 14573 unicos*) 14574 lt_prog_compiler_wl_F77='-Wl,' 14575 lt_prog_compiler_can_build_shared_F77=no 14576 ;; 14577 14578 uts4*) 14579 lt_prog_compiler_pic_F77='-pic' 14580 lt_prog_compiler_static_F77='-Bstatic' 14581 ;; 14582 14583 *) 14584 lt_prog_compiler_can_build_shared_F77=no 14585 ;; 14586 esac 14587 fi 14588 14589{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14590$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14591 14592# 14593# Check to make sure the PIC flag actually works. 14594# 14595if test -n "$lt_prog_compiler_pic_F77"; then 14596 14597{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14598$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14599if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14600 $as_echo_n "(cached) " >&6 14601else 14602 lt_cv_prog_compiler_pic_works_F77=no 14603 ac_outfile=conftest.$ac_objext 14604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14605 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14606 # Insert the option either (1) after the last *FLAGS variable, or 14607 # (2) before a word containing "conftest.", or (3) at the end. 14608 # Note that $ac_compile itself does not contain backslashes and begins 14609 # with a dollar sign (not a hyphen), so the echo should work correctly. 14610 # The option is referenced via a variable to avoid confusing sed. 14611 lt_compile=`echo "$ac_compile" | $SED \ 14612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14614 -e 's:$: $lt_compiler_flag:'` 14615 (eval echo "\"\$as_me:14615: $lt_compile\"" >&5) 14616 (eval "$lt_compile" 2>conftest.err) 14617 ac_status=$? 14618 cat conftest.err >&5 14619 echo "$as_me:14619: \$? = $ac_status" >&5 14620 if (exit $ac_status) && test -s "$ac_outfile"; then 14621 # The compiler can only warn and ignore the option if not recognized 14622 # So say no if there are warnings other than the usual output. 14623 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14625 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14626 lt_cv_prog_compiler_pic_works_F77=yes 14627 fi 14628 fi 14629 $rm conftest* 14630 14631fi 14632{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14633$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14634 14635if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14636 case $lt_prog_compiler_pic_F77 in 14637 "" | " "*) ;; 14638 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14639 esac 14640else 14641 lt_prog_compiler_pic_F77= 14642 lt_prog_compiler_can_build_shared_F77=no 14643fi 14644 14645fi 14646case $host_os in 14647 # For platforms which do not support PIC, -DPIC is meaningless: 14648 *djgpp*) 14649 lt_prog_compiler_pic_F77= 14650 ;; 14651 *) 14652 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14653 ;; 14654esac 14655 14656# 14657# Check to make sure the static flag actually works. 14658# 14659wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14660{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14661$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14662if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14663 $as_echo_n "(cached) " >&6 14664else 14665 lt_cv_prog_compiler_static_works_F77=no 14666 save_LDFLAGS="$LDFLAGS" 14667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14668 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14670 # The linker can only warn and ignore the option if not recognized 14671 # So say no if there are warnings 14672 if test -s conftest.err; then 14673 # Append any errors to the config.log. 14674 cat conftest.err 1>&5 14675 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14677 if diff conftest.exp conftest.er2 >/dev/null; then 14678 lt_cv_prog_compiler_static_works_F77=yes 14679 fi 14680 else 14681 lt_cv_prog_compiler_static_works_F77=yes 14682 fi 14683 fi 14684 $rm -r conftest* 14685 LDFLAGS="$save_LDFLAGS" 14686 14687fi 14688{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14689$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14690 14691if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14692 : 14693else 14694 lt_prog_compiler_static_F77= 14695fi 14696 14697 14698{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14699$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14700if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14701 $as_echo_n "(cached) " >&6 14702else 14703 lt_cv_prog_compiler_c_o_F77=no 14704 $rm -r conftest 2>/dev/null 14705 mkdir conftest 14706 cd conftest 14707 mkdir out 14708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14709 14710 lt_compiler_flag="-o out/conftest2.$ac_objext" 14711 # Insert the option either (1) after the last *FLAGS variable, or 14712 # (2) before a word containing "conftest.", or (3) at the end. 14713 # Note that $ac_compile itself does not contain backslashes and begins 14714 # with a dollar sign (not a hyphen), so the echo should work correctly. 14715 lt_compile=`echo "$ac_compile" | $SED \ 14716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14718 -e 's:$: $lt_compiler_flag:'` 14719 (eval echo "\"\$as_me:14719: $lt_compile\"" >&5) 14720 (eval "$lt_compile" 2>out/conftest.err) 14721 ac_status=$? 14722 cat out/conftest.err >&5 14723 echo "$as_me:14723: \$? = $ac_status" >&5 14724 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14725 then 14726 # The compiler can only warn and ignore the option if not recognized 14727 # So say no if there are warnings 14728 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14731 lt_cv_prog_compiler_c_o_F77=yes 14732 fi 14733 fi 14734 chmod u+w . 2>&5 14735 $rm conftest* 14736 # SGI C++ compiler will create directory out/ii_files/ for 14737 # template instantiation 14738 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14739 $rm out/* && rmdir out 14740 cd .. 14741 rmdir conftest 14742 $rm conftest* 14743 14744fi 14745{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14746$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14747 14748 14749hard_links="nottested" 14750if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14751 # do not overwrite the value of need_locks provided by the user 14752 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14753$as_echo_n "checking if we can lock with hard links... " >&6; } 14754 hard_links=yes 14755 $rm conftest* 14756 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14757 touch conftest.a 14758 ln conftest.a conftest.b 2>&5 || hard_links=no 14759 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14760 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14761$as_echo "$hard_links" >&6; } 14762 if test "$hard_links" = no; then 14763 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14764$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14765 need_locks=warn 14766 fi 14767else 14768 need_locks=no 14769fi 14770 14771{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14772$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14773 14774 runpath_var= 14775 allow_undefined_flag_F77= 14776 enable_shared_with_static_runtimes_F77=no 14777 archive_cmds_F77= 14778 archive_expsym_cmds_F77= 14779 old_archive_From_new_cmds_F77= 14780 old_archive_from_expsyms_cmds_F77= 14781 export_dynamic_flag_spec_F77= 14782 whole_archive_flag_spec_F77= 14783 thread_safe_flag_spec_F77= 14784 hardcode_libdir_flag_spec_F77= 14785 hardcode_libdir_flag_spec_ld_F77= 14786 hardcode_libdir_separator_F77= 14787 hardcode_direct_F77=no 14788 hardcode_minus_L_F77=no 14789 hardcode_shlibpath_var_F77=unsupported 14790 link_all_deplibs_F77=unknown 14791 hardcode_automatic_F77=no 14792 module_cmds_F77= 14793 module_expsym_cmds_F77= 14794 always_export_symbols_F77=no 14795 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14796 # include_expsyms should be a list of space-separated symbols to be *always* 14797 # included in the symbol list 14798 include_expsyms_F77= 14799 # exclude_expsyms can be an extended regexp of symbols to exclude 14800 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14801 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14802 # as well as any symbol that contains `d'. 14803 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14804 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14805 # platforms (ab)use it in PIC code, but their linkers get confused if 14806 # the symbol is explicitly referenced. Since portable code cannot 14807 # rely on this symbol name, it's probably fine to never include it in 14808 # preloaded symbol tables. 14809 # Exclude shared library initialization/finalization symbols. 14810 extract_expsyms_cmds= 14811 # Just being paranoid about ensuring that cc_basename is set. 14812 for cc_temp in $compiler""; do 14813 case $cc_temp in 14814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14816 \-*) ;; 14817 *) break;; 14818 esac 14819done 14820cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14821 14822 case $host_os in 14823 cygwin* | mingw* | pw32*) 14824 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14825 # When not using gcc, we currently assume that we are using 14826 # Microsoft Visual C++. 14827 if test "$GCC" != yes; then 14828 with_gnu_ld=no 14829 fi 14830 ;; 14831 interix*) 14832 # we just hope/assume this is gcc and not c89 (= MSVC++) 14833 with_gnu_ld=yes 14834 ;; 14835 openbsd*) 14836 with_gnu_ld=no 14837 ;; 14838 esac 14839 14840 ld_shlibs_F77=yes 14841 if test "$with_gnu_ld" = yes; then 14842 # If archive_cmds runs LD, not CC, wlarc should be empty 14843 wlarc='${wl}' 14844 14845 # Set some defaults for GNU ld with shared library support. These 14846 # are reset later if shared libraries are not supported. Putting them 14847 # here allows them to be overridden if necessary. 14848 runpath_var=LD_RUN_PATH 14849 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14850 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14851 # ancient GNU ld didn't support --whole-archive et. al. 14852 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14853 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14854 else 14855 whole_archive_flag_spec_F77= 14856 fi 14857 supports_anon_versioning=no 14858 case `$LD -v 2>/dev/null` in 14859 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14860 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14861 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14862 *\ 2.11.*) ;; # other 2.11 versions 14863 *) supports_anon_versioning=yes ;; 14864 esac 14865 14866 # See if GNU ld supports shared libraries. 14867 case $host_os in 14868 aix[3-9]*) 14869 # On AIX/PPC, the GNU linker is very broken 14870 if test "$host_cpu" != ia64; then 14871 ld_shlibs_F77=no 14872 cat <<EOF 1>&2 14873 14874*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14875*** to be unable to reliably create shared libraries on AIX. 14876*** Therefore, libtool is disabling shared libraries support. If you 14877*** really care for shared libraries, you may want to modify your PATH 14878*** so that a non-GNU linker is found, and then restart. 14879 14880EOF 14881 fi 14882 ;; 14883 14884 amigaos*) 14885 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)' 14886 hardcode_libdir_flag_spec_F77='-L$libdir' 14887 hardcode_minus_L_F77=yes 14888 14889 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14890 # that the semantics of dynamic libraries on AmigaOS, at least up 14891 # to version 4, is to share data among multiple programs linked 14892 # with the same dynamic library. Since this doesn't match the 14893 # behavior of shared libraries on other platforms, we can't use 14894 # them. 14895 ld_shlibs_F77=no 14896 ;; 14897 14898 beos*) 14899 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14900 allow_undefined_flag_F77=unsupported 14901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14902 # support --undefined. This deserves some investigation. FIXME 14903 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14904 else 14905 ld_shlibs_F77=no 14906 fi 14907 ;; 14908 14909 cygwin* | mingw* | pw32*) 14910 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14911 # as there is no search path for DLLs. 14912 hardcode_libdir_flag_spec_F77='-L$libdir' 14913 allow_undefined_flag_F77=unsupported 14914 always_export_symbols_F77=no 14915 enable_shared_with_static_runtimes_F77=yes 14916 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14917 14918 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14919 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14920 # If the export-symbols file already is a .def file (1st line 14921 # is EXPORTS), use it as is; otherwise, prepend... 14922 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14923 cp $export_symbols $output_objdir/$soname.def; 14924 else 14925 echo EXPORTS > $output_objdir/$soname.def; 14926 cat $export_symbols >> $output_objdir/$soname.def; 14927 fi~ 14928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14929 else 14930 ld_shlibs_F77=no 14931 fi 14932 ;; 14933 14934 interix[3-9]*) 14935 hardcode_direct_F77=no 14936 hardcode_shlibpath_var_F77=no 14937 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14938 export_dynamic_flag_spec_F77='${wl}-E' 14939 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14940 # Instead, shared libraries are loaded at an image base (0x10000000 by 14941 # default) and relocated if they conflict, which is a slow very memory 14942 # consuming and fragmenting process. To avoid this, we pick a random, 14943 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14944 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14945 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' 14946 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' 14947 ;; 14948 14949 gnu* | linux* | k*bsd*-gnu) 14950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14951 tmp_addflag= 14952 case $cc_basename,$host_cpu in 14953 pgcc*) # Portland Group C compiler 14954 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' 14955 tmp_addflag=' $pic_flag' 14956 ;; 14957 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14958 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' 14959 tmp_addflag=' $pic_flag -Mnomain' ;; 14960 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14961 tmp_addflag=' -i_dynamic' ;; 14962 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14963 tmp_addflag=' -i_dynamic -nofor_main' ;; 14964 ifc* | ifort*) # Intel Fortran compiler 14965 tmp_addflag=' -nofor_main' ;; 14966 esac 14967 case `$CC -V 2>&1 | sed 5q` in 14968 *Sun\ C*) # Sun C 5.9 14969 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' 14970 tmp_sharedflag='-G' ;; 14971 *Sun\ F*) # Sun Fortran 8.3 14972 tmp_sharedflag='-G' ;; 14973 *) 14974 tmp_sharedflag='-shared' ;; 14975 esac 14976 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14977 14978 if test $supports_anon_versioning = yes; then 14979 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14981 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14982 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14983 fi 14984 else 14985 ld_shlibs_F77=no 14986 fi 14987 ;; 14988 14989 netbsd*) 14990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14991 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14992 wlarc= 14993 else 14994 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14995 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14996 fi 14997 ;; 14998 14999 solaris*) 15000 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15001 ld_shlibs_F77=no 15002 cat <<EOF 1>&2 15003 15004*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15005*** create shared libraries on Solaris systems. Therefore, libtool 15006*** is disabling shared libraries support. We urge you to upgrade GNU 15007*** binutils to release 2.9.1 or newer. Another option is to modify 15008*** your PATH or compiler configuration so that the native linker is 15009*** used, and then restart. 15010 15011EOF 15012 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15014 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15015 else 15016 ld_shlibs_F77=no 15017 fi 15018 ;; 15019 15020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15021 case `$LD -v 2>&1` in 15022 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15023 ld_shlibs_F77=no 15024 cat <<_LT_EOF 1>&2 15025 15026*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15027*** reliably create shared libraries on SCO systems. Therefore, libtool 15028*** is disabling shared libraries support. We urge you to upgrade GNU 15029*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15030*** your PATH or compiler configuration so that the native linker is 15031*** used, and then restart. 15032 15033_LT_EOF 15034 ;; 15035 *) 15036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15037 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15038 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15039 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15040 else 15041 ld_shlibs_F77=no 15042 fi 15043 ;; 15044 esac 15045 ;; 15046 15047 sunos4*) 15048 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15049 wlarc= 15050 hardcode_direct_F77=yes 15051 hardcode_shlibpath_var_F77=no 15052 ;; 15053 15054 *) 15055 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15056 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15057 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15058 else 15059 ld_shlibs_F77=no 15060 fi 15061 ;; 15062 esac 15063 15064 if test "$ld_shlibs_F77" = no; then 15065 runpath_var= 15066 hardcode_libdir_flag_spec_F77= 15067 export_dynamic_flag_spec_F77= 15068 whole_archive_flag_spec_F77= 15069 fi 15070 else 15071 # PORTME fill in a description of your system's linker (not GNU ld) 15072 case $host_os in 15073 aix3*) 15074 allow_undefined_flag_F77=unsupported 15075 always_export_symbols_F77=yes 15076 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' 15077 # Note: this linker hardcodes the directories in LIBPATH if there 15078 # are no directories specified by -L. 15079 hardcode_minus_L_F77=yes 15080 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15081 # Neither direct hardcoding nor static linking is supported with a 15082 # broken collect2. 15083 hardcode_direct_F77=unsupported 15084 fi 15085 ;; 15086 15087 aix[4-9]*) 15088 if test "$host_cpu" = ia64; then 15089 # On IA64, the linker does run time linking by default, so we don't 15090 # have to do anything special. 15091 aix_use_runtimelinking=no 15092 exp_sym_flag='-Bexport' 15093 no_entry_flag="" 15094 else 15095 # If we're using GNU nm, then we don't want the "-C" option. 15096 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15097 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15098 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' 15099 else 15100 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' 15101 fi 15102 aix_use_runtimelinking=no 15103 15104 # Test if we are trying to use run time linking or normal 15105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15106 # need to do runtime linking. 15107 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15108 for ld_flag in $LDFLAGS; do 15109 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15110 aix_use_runtimelinking=yes 15111 break 15112 fi 15113 done 15114 ;; 15115 esac 15116 15117 exp_sym_flag='-bexport' 15118 no_entry_flag='-bnoentry' 15119 fi 15120 15121 # When large executables or shared objects are built, AIX ld can 15122 # have problems creating the table of contents. If linking a library 15123 # or program results in "error TOC overflow" add -mminimal-toc to 15124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15126 15127 archive_cmds_F77='' 15128 hardcode_direct_F77=yes 15129 hardcode_libdir_separator_F77=':' 15130 link_all_deplibs_F77=yes 15131 15132 if test "$GCC" = yes; then 15133 case $host_os in aix4.[012]|aix4.[012].*) 15134 # We only want to do this on AIX 4.2 and lower, the check 15135 # below for broken collect2 doesn't work under 4.3+ 15136 collect2name=`${CC} -print-prog-name=collect2` 15137 if test -f "$collect2name" && \ 15138 strings "$collect2name" | grep resolve_lib_name >/dev/null 15139 then 15140 # We have reworked collect2 15141 : 15142 else 15143 # We have old collect2 15144 hardcode_direct_F77=unsupported 15145 # It fails to find uninstalled libraries when the uninstalled 15146 # path is not listed in the libpath. Setting hardcode_minus_L 15147 # to unsupported forces relinking 15148 hardcode_minus_L_F77=yes 15149 hardcode_libdir_flag_spec_F77='-L$libdir' 15150 hardcode_libdir_separator_F77= 15151 fi 15152 ;; 15153 esac 15154 shared_flag='-shared' 15155 if test "$aix_use_runtimelinking" = yes; then 15156 shared_flag="$shared_flag "'${wl}-G' 15157 fi 15158 else 15159 # not using gcc 15160 if test "$host_cpu" = ia64; then 15161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15162 # chokes on -Wl,-G. The following line is correct: 15163 shared_flag='-G' 15164 else 15165 if test "$aix_use_runtimelinking" = yes; then 15166 shared_flag='${wl}-G' 15167 else 15168 shared_flag='${wl}-bM:SRE' 15169 fi 15170 fi 15171 fi 15172 15173 # It seems that -bexpall does not export symbols beginning with 15174 # underscore (_), so it is better to generate a list of symbols to export. 15175 always_export_symbols_F77=yes 15176 if test "$aix_use_runtimelinking" = yes; then 15177 # Warning - without using the other runtime loading flags (-brtl), 15178 # -berok will link without error, but may produce a broken library. 15179 allow_undefined_flag_F77='-berok' 15180 # Determine the default libpath from the value encoded in an empty executable. 15181 cat >conftest.$ac_ext <<_ACEOF 15182 program main 15183 15184 end 15185_ACEOF 15186rm -f conftest.$ac_objext conftest$ac_exeext 15187if { (ac_try="$ac_link" 15188case "(($ac_try" in 15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15190 *) ac_try_echo=$ac_try;; 15191esac 15192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15193$as_echo "$ac_try_echo") >&5 15194 (eval "$ac_link") 2>conftest.er1 15195 ac_status=$? 15196 grep -v '^ *+' conftest.er1 >conftest.err 15197 rm -f conftest.er1 15198 cat conftest.err >&5 15199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15200 (exit $ac_status); } && { 15201 test -z "$ac_f77_werror_flag" || 15202 test ! -s conftest.err 15203 } && test -s conftest$ac_exeext && { 15204 test "$cross_compiling" = yes || 15205 $as_test_x conftest$ac_exeext 15206 }; then 15207 15208lt_aix_libpath_sed=' 15209 /Import File Strings/,/^$/ { 15210 /^0/ { 15211 s/^0 *\(.*\)$/\1/ 15212 p 15213 } 15214 }' 15215aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15216# Check for a 64-bit object if we didn't find anything. 15217if test -z "$aix_libpath"; then 15218 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15219fi 15220else 15221 $as_echo "$as_me: failed program was:" >&5 15222sed 's/^/| /' conftest.$ac_ext >&5 15223 15224 15225fi 15226 15227rm -rf conftest.dSYM 15228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15229 conftest$ac_exeext conftest.$ac_ext 15230if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15231 15232 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15233 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" 15234 else 15235 if test "$host_cpu" = ia64; then 15236 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15237 allow_undefined_flag_F77="-z nodefs" 15238 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" 15239 else 15240 # Determine the default libpath from the value encoded in an empty executable. 15241 cat >conftest.$ac_ext <<_ACEOF 15242 program main 15243 15244 end 15245_ACEOF 15246rm -f conftest.$ac_objext conftest$ac_exeext 15247if { (ac_try="$ac_link" 15248case "(($ac_try" in 15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15250 *) ac_try_echo=$ac_try;; 15251esac 15252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15253$as_echo "$ac_try_echo") >&5 15254 (eval "$ac_link") 2>conftest.er1 15255 ac_status=$? 15256 grep -v '^ *+' conftest.er1 >conftest.err 15257 rm -f conftest.er1 15258 cat conftest.err >&5 15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15260 (exit $ac_status); } && { 15261 test -z "$ac_f77_werror_flag" || 15262 test ! -s conftest.err 15263 } && test -s conftest$ac_exeext && { 15264 test "$cross_compiling" = yes || 15265 $as_test_x conftest$ac_exeext 15266 }; then 15267 15268lt_aix_libpath_sed=' 15269 /Import File Strings/,/^$/ { 15270 /^0/ { 15271 s/^0 *\(.*\)$/\1/ 15272 p 15273 } 15274 }' 15275aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15276# Check for a 64-bit object if we didn't find anything. 15277if test -z "$aix_libpath"; then 15278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15279fi 15280else 15281 $as_echo "$as_me: failed program was:" >&5 15282sed 's/^/| /' conftest.$ac_ext >&5 15283 15284 15285fi 15286 15287rm -rf conftest.dSYM 15288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15289 conftest$ac_exeext conftest.$ac_ext 15290if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15291 15292 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15293 # Warning - without using the other run time loading flags, 15294 # -berok will link without error, but may produce a broken library. 15295 no_undefined_flag_F77=' ${wl}-bernotok' 15296 allow_undefined_flag_F77=' ${wl}-berok' 15297 # Exported symbols can be pulled into shared objects from archives 15298 whole_archive_flag_spec_F77='$convenience' 15299 archive_cmds_need_lc_F77=yes 15300 # This is similar to how AIX traditionally builds its shared libraries. 15301 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' 15302 fi 15303 fi 15304 ;; 15305 15306 amigaos*) 15307 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)' 15308 hardcode_libdir_flag_spec_F77='-L$libdir' 15309 hardcode_minus_L_F77=yes 15310 # see comment about different semantics on the GNU ld section 15311 ld_shlibs_F77=no 15312 ;; 15313 15314 bsdi[45]*) 15315 export_dynamic_flag_spec_F77=-rdynamic 15316 ;; 15317 15318 cygwin* | mingw* | pw32*) 15319 # When not using gcc, we currently assume that we are using 15320 # Microsoft Visual C++. 15321 # hardcode_libdir_flag_spec is actually meaningless, as there is 15322 # no search path for DLLs. 15323 hardcode_libdir_flag_spec_F77=' ' 15324 allow_undefined_flag_F77=unsupported 15325 # Tell ltmain to make .lib files, not .a files. 15326 libext=lib 15327 # Tell ltmain to make .dll files, not .so files. 15328 shrext_cmds=".dll" 15329 # FIXME: Setting linknames here is a bad hack. 15330 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15331 # The linker will automatically build a .lib file if we build a DLL. 15332 old_archive_From_new_cmds_F77='true' 15333 # FIXME: Should let the user specify the lib program. 15334 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15335 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15336 enable_shared_with_static_runtimes_F77=yes 15337 ;; 15338 15339 darwin* | rhapsody*) 15340 case $host_os in 15341 rhapsody* | darwin1.[012]) 15342 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15343 ;; 15344 *) # Darwin 1.3 on 15345 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15346 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15347 else 15348 case ${MACOSX_DEPLOYMENT_TARGET} in 15349 10.[012]) 15350 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15351 ;; 15352 10.*) 15353 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15354 ;; 15355 esac 15356 fi 15357 ;; 15358 esac 15359 archive_cmds_need_lc_F77=no 15360 hardcode_direct_F77=no 15361 hardcode_automatic_F77=yes 15362 hardcode_shlibpath_var_F77=unsupported 15363 whole_archive_flag_spec_F77='' 15364 link_all_deplibs_F77=yes 15365 if test "$GCC" = yes ; then 15366 output_verbose_link_cmd='echo' 15367 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}" 15368 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15369 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}" 15370 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}" 15371 else 15372 case $cc_basename in 15373 xlc*) 15374 output_verbose_link_cmd='echo' 15375 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15376 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15377 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15378 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}' 15379 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}' 15380 ;; 15381 *) 15382 ld_shlibs_F77=no 15383 ;; 15384 esac 15385 fi 15386 ;; 15387 15388 dgux*) 15389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15390 hardcode_libdir_flag_spec_F77='-L$libdir' 15391 hardcode_shlibpath_var_F77=no 15392 ;; 15393 15394 freebsd1*) 15395 ld_shlibs_F77=no 15396 ;; 15397 15398 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15399 # support. Future versions do this automatically, but an explicit c++rt0.o 15400 # does not break anything, and helps significantly (at the cost of a little 15401 # extra space). 15402 freebsd2.2*) 15403 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15404 hardcode_libdir_flag_spec_F77='-R$libdir' 15405 hardcode_direct_F77=yes 15406 hardcode_shlibpath_var_F77=no 15407 ;; 15408 15409 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15410 freebsd2*) 15411 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15412 hardcode_direct_F77=yes 15413 hardcode_minus_L_F77=yes 15414 hardcode_shlibpath_var_F77=no 15415 ;; 15416 15417 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15418 freebsd* | dragonfly*) 15419 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15420 hardcode_libdir_flag_spec_F77='-R$libdir' 15421 hardcode_direct_F77=yes 15422 hardcode_shlibpath_var_F77=no 15423 ;; 15424 15425 hpux9*) 15426 if test "$GCC" = yes; then 15427 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' 15428 else 15429 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' 15430 fi 15431 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15432 hardcode_libdir_separator_F77=: 15433 hardcode_direct_F77=yes 15434 15435 # hardcode_minus_L: Not really in the search PATH, 15436 # but as the default location of the library. 15437 hardcode_minus_L_F77=yes 15438 export_dynamic_flag_spec_F77='${wl}-E' 15439 ;; 15440 15441 hpux10*) 15442 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15443 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15444 else 15445 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15446 fi 15447 if test "$with_gnu_ld" = no; then 15448 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15449 hardcode_libdir_separator_F77=: 15450 15451 hardcode_direct_F77=yes 15452 export_dynamic_flag_spec_F77='${wl}-E' 15453 15454 # hardcode_minus_L: Not really in the search PATH, 15455 # but as the default location of the library. 15456 hardcode_minus_L_F77=yes 15457 fi 15458 ;; 15459 15460 hpux11*) 15461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15462 case $host_cpu in 15463 hppa*64*) 15464 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15465 ;; 15466 ia64*) 15467 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15468 ;; 15469 *) 15470 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15471 ;; 15472 esac 15473 else 15474 case $host_cpu in 15475 hppa*64*) 15476 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15477 ;; 15478 ia64*) 15479 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15480 ;; 15481 *) 15482 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15483 ;; 15484 esac 15485 fi 15486 if test "$with_gnu_ld" = no; then 15487 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15488 hardcode_libdir_separator_F77=: 15489 15490 case $host_cpu in 15491 hppa*64*|ia64*) 15492 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15493 hardcode_direct_F77=no 15494 hardcode_shlibpath_var_F77=no 15495 ;; 15496 *) 15497 hardcode_direct_F77=yes 15498 export_dynamic_flag_spec_F77='${wl}-E' 15499 15500 # hardcode_minus_L: Not really in the search PATH, 15501 # but as the default location of the library. 15502 hardcode_minus_L_F77=yes 15503 ;; 15504 esac 15505 fi 15506 ;; 15507 15508 irix5* | irix6* | nonstopux*) 15509 if test "$GCC" = yes; then 15510 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' 15511 else 15512 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' 15513 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15514 fi 15515 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15516 hardcode_libdir_separator_F77=: 15517 link_all_deplibs_F77=yes 15518 ;; 15519 15520 netbsd*) 15521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15523 else 15524 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15525 fi 15526 hardcode_libdir_flag_spec_F77='-R$libdir' 15527 hardcode_direct_F77=yes 15528 hardcode_shlibpath_var_F77=no 15529 ;; 15530 15531 newsos6) 15532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15533 hardcode_direct_F77=yes 15534 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15535 hardcode_libdir_separator_F77=: 15536 hardcode_shlibpath_var_F77=no 15537 ;; 15538 15539 openbsd*) 15540 if test -f /usr/libexec/ld.so; then 15541 hardcode_direct_F77=yes 15542 hardcode_shlibpath_var_F77=no 15543 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15544 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15545 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15546 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15547 export_dynamic_flag_spec_F77='${wl}-E' 15548 else 15549 case $host_os in 15550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15551 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15552 hardcode_libdir_flag_spec_F77='-R$libdir' 15553 ;; 15554 *) 15555 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15556 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15557 ;; 15558 esac 15559 fi 15560 else 15561 ld_shlibs_F77=no 15562 fi 15563 ;; 15564 15565 os2*) 15566 hardcode_libdir_flag_spec_F77='-L$libdir' 15567 hardcode_minus_L_F77=yes 15568 allow_undefined_flag_F77=unsupported 15569 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' 15570 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15571 ;; 15572 15573 osf3*) 15574 if test "$GCC" = yes; then 15575 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15576 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' 15577 else 15578 allow_undefined_flag_F77=' -expect_unresolved \*' 15579 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' 15580 fi 15581 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15582 hardcode_libdir_separator_F77=: 15583 ;; 15584 15585 osf4* | osf5*) # as osf3* with the addition of -msym flag 15586 if test "$GCC" = yes; then 15587 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15588 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' 15589 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15590 else 15591 allow_undefined_flag_F77=' -expect_unresolved \*' 15592 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' 15593 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~ 15594 $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' 15595 15596 # Both c and cxx compiler support -rpath directly 15597 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15598 fi 15599 hardcode_libdir_separator_F77=: 15600 ;; 15601 15602 solaris*) 15603 no_undefined_flag_F77=' -z text' 15604 if test "$GCC" = yes; then 15605 wlarc='${wl}' 15606 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15607 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15608 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15609 else 15610 wlarc='' 15611 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15612 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15613 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15614 fi 15615 hardcode_libdir_flag_spec_F77='-R$libdir' 15616 hardcode_shlibpath_var_F77=no 15617 case $host_os in 15618 solaris2.[0-5] | solaris2.[0-5].*) ;; 15619 *) 15620 # The compiler driver will combine and reorder linker options, 15621 # but understands `-z linker_flag'. GCC discards it without `$wl', 15622 # but is careful enough not to reorder. 15623 # Supported since Solaris 2.6 (maybe 2.5.1?) 15624 if test "$GCC" = yes; then 15625 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15626 else 15627 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15628 fi 15629 ;; 15630 esac 15631 link_all_deplibs_F77=yes 15632 ;; 15633 15634 sunos4*) 15635 if test "x$host_vendor" = xsequent; then 15636 # Use $CC to link under sequent, because it throws in some extra .o 15637 # files that make .init and .fini sections work. 15638 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15639 else 15640 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15641 fi 15642 hardcode_libdir_flag_spec_F77='-L$libdir' 15643 hardcode_direct_F77=yes 15644 hardcode_minus_L_F77=yes 15645 hardcode_shlibpath_var_F77=no 15646 ;; 15647 15648 sysv4) 15649 case $host_vendor in 15650 sni) 15651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15652 hardcode_direct_F77=yes # is this really true??? 15653 ;; 15654 siemens) 15655 ## LD is ld it makes a PLAMLIB 15656 ## CC just makes a GrossModule. 15657 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15658 reload_cmds_F77='$CC -r -o $output$reload_objs' 15659 hardcode_direct_F77=no 15660 ;; 15661 motorola) 15662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15663 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15664 ;; 15665 esac 15666 runpath_var='LD_RUN_PATH' 15667 hardcode_shlibpath_var_F77=no 15668 ;; 15669 15670 sysv4.3*) 15671 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15672 hardcode_shlibpath_var_F77=no 15673 export_dynamic_flag_spec_F77='-Bexport' 15674 ;; 15675 15676 sysv4*MP*) 15677 if test -d /usr/nec; then 15678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15679 hardcode_shlibpath_var_F77=no 15680 runpath_var=LD_RUN_PATH 15681 hardcode_runpath_var=yes 15682 ld_shlibs_F77=yes 15683 fi 15684 ;; 15685 15686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15687 no_undefined_flag_F77='${wl}-z,text' 15688 archive_cmds_need_lc_F77=no 15689 hardcode_shlibpath_var_F77=no 15690 runpath_var='LD_RUN_PATH' 15691 15692 if test "$GCC" = yes; then 15693 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15694 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15695 else 15696 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15697 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15698 fi 15699 ;; 15700 15701 sysv5* | sco3.2v5* | sco5v6*) 15702 # Note: We can NOT use -z defs as we might desire, because we do not 15703 # link with -lc, and that would cause any symbols used from libc to 15704 # always be unresolved, which means just about no library would 15705 # ever link correctly. If we're not using GNU ld we use -z text 15706 # though, which does catch some bad symbols but isn't as heavy-handed 15707 # as -z defs. 15708 no_undefined_flag_F77='${wl}-z,text' 15709 allow_undefined_flag_F77='${wl}-z,nodefs' 15710 archive_cmds_need_lc_F77=no 15711 hardcode_shlibpath_var_F77=no 15712 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15713 hardcode_libdir_separator_F77=':' 15714 link_all_deplibs_F77=yes 15715 export_dynamic_flag_spec_F77='${wl}-Bexport' 15716 runpath_var='LD_RUN_PATH' 15717 15718 if test "$GCC" = yes; then 15719 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15720 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15721 else 15722 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15723 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15724 fi 15725 ;; 15726 15727 uts4*) 15728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15729 hardcode_libdir_flag_spec_F77='-L$libdir' 15730 hardcode_shlibpath_var_F77=no 15731 ;; 15732 15733 *) 15734 ld_shlibs_F77=no 15735 ;; 15736 esac 15737 fi 15738 15739{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15740$as_echo "$ld_shlibs_F77" >&6; } 15741test "$ld_shlibs_F77" = no && can_build_shared=no 15742 15743# 15744# Do we need to explicitly link libc? 15745# 15746case "x$archive_cmds_need_lc_F77" in 15747x|xyes) 15748 # Assume -lc should be added 15749 archive_cmds_need_lc_F77=yes 15750 15751 if test "$enable_shared" = yes && test "$GCC" = yes; then 15752 case $archive_cmds_F77 in 15753 *'~'*) 15754 # FIXME: we may have to deal with multi-command sequences. 15755 ;; 15756 '$CC '*) 15757 # Test whether the compiler implicitly links with -lc since on some 15758 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15759 # to ld, don't add -lc before -lgcc. 15760 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15761$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15762 $rm conftest* 15763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15764 15765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15766 (eval $ac_compile) 2>&5 15767 ac_status=$? 15768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15769 (exit $ac_status); } 2>conftest.err; then 15770 soname=conftest 15771 lib=conftest 15772 libobjs=conftest.$ac_objext 15773 deplibs= 15774 wl=$lt_prog_compiler_wl_F77 15775 pic_flag=$lt_prog_compiler_pic_F77 15776 compiler_flags=-v 15777 linker_flags=-v 15778 verstring= 15779 output_objdir=. 15780 libname=conftest 15781 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15782 allow_undefined_flag_F77= 15783 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15784 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15785 ac_status=$? 15786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15787 (exit $ac_status); } 15788 then 15789 archive_cmds_need_lc_F77=no 15790 else 15791 archive_cmds_need_lc_F77=yes 15792 fi 15793 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15794 else 15795 cat conftest.err 1>&5 15796 fi 15797 $rm conftest* 15798 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15799$as_echo "$archive_cmds_need_lc_F77" >&6; } 15800 ;; 15801 esac 15802 fi 15803 ;; 15804esac 15805 15806{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15807$as_echo_n "checking dynamic linker characteristics... " >&6; } 15808library_names_spec= 15809libname_spec='lib$name' 15810soname_spec= 15811shrext_cmds=".so" 15812postinstall_cmds= 15813postuninstall_cmds= 15814finish_cmds= 15815finish_eval= 15816shlibpath_var= 15817shlibpath_overrides_runpath=unknown 15818version_type=none 15819dynamic_linker="$host_os ld.so" 15820sys_lib_dlsearch_path_spec="/lib /usr/lib" 15821 15822need_lib_prefix=unknown 15823hardcode_into_libs=no 15824 15825# when you set need_version to no, make sure it does not cause -set_version 15826# flags to be left without arguments 15827need_version=unknown 15828 15829case $host_os in 15830aix3*) 15831 version_type=linux 15832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15833 shlibpath_var=LIBPATH 15834 15835 # AIX 3 has no versioning support, so we append a major version to the name. 15836 soname_spec='${libname}${release}${shared_ext}$major' 15837 ;; 15838 15839aix[4-9]*) 15840 version_type=linux 15841 need_lib_prefix=no 15842 need_version=no 15843 hardcode_into_libs=yes 15844 if test "$host_cpu" = ia64; then 15845 # AIX 5 supports IA64 15846 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15847 shlibpath_var=LD_LIBRARY_PATH 15848 else 15849 # With GCC up to 2.95.x, collect2 would create an import file 15850 # for dependence libraries. The import file would start with 15851 # the line `#! .'. This would cause the generated library to 15852 # depend on `.', always an invalid library. This was fixed in 15853 # development snapshots of GCC prior to 3.0. 15854 case $host_os in 15855 aix4 | aix4.[01] | aix4.[01].*) 15856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15857 echo ' yes ' 15858 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15859 : 15860 else 15861 can_build_shared=no 15862 fi 15863 ;; 15864 esac 15865 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15866 # soname into executable. Probably we can add versioning support to 15867 # collect2, so additional links can be useful in future. 15868 if test "$aix_use_runtimelinking" = yes; then 15869 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15870 # instead of lib<name>.a to let people know that these are not 15871 # typical AIX shared libraries. 15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15873 else 15874 # We preserve .a as extension for shared libraries through AIX4.2 15875 # and later when we are not doing run time linking. 15876 library_names_spec='${libname}${release}.a $libname.a' 15877 soname_spec='${libname}${release}${shared_ext}$major' 15878 fi 15879 shlibpath_var=LIBPATH 15880 fi 15881 ;; 15882 15883amigaos*) 15884 library_names_spec='$libname.ixlibrary $libname.a' 15885 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15886 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' 15887 ;; 15888 15889beos*) 15890 library_names_spec='${libname}${shared_ext}' 15891 dynamic_linker="$host_os ld.so" 15892 shlibpath_var=LIBRARY_PATH 15893 ;; 15894 15895bsdi[45]*) 15896 version_type=linux 15897 need_version=no 15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15899 soname_spec='${libname}${release}${shared_ext}$major' 15900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15901 shlibpath_var=LD_LIBRARY_PATH 15902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15904 # the default ld.so.conf also contains /usr/contrib/lib and 15905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15906 # libtool to hard-code these into programs 15907 ;; 15908 15909cygwin* | mingw* | pw32*) 15910 version_type=windows 15911 shrext_cmds=".dll" 15912 need_version=no 15913 need_lib_prefix=no 15914 15915 case $GCC,$host_os in 15916 yes,cygwin* | yes,mingw* | yes,pw32*) 15917 library_names_spec='$libname.dll.a' 15918 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15919 postinstall_cmds='base_file=`basename \${file}`~ 15920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15921 dldir=$destdir/`dirname \$dlpath`~ 15922 test -d \$dldir || mkdir -p \$dldir~ 15923 $install_prog $dir/$dlname \$dldir/$dlname~ 15924 chmod a+x \$dldir/$dlname' 15925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15926 dlpath=$dir/\$dldll~ 15927 $rm \$dlpath' 15928 shlibpath_overrides_runpath=yes 15929 15930 case $host_os in 15931 cygwin*) 15932 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15933 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15934 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15935 ;; 15936 mingw*) 15937 # MinGW DLLs use traditional 'lib' prefix 15938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15940 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15941 # It is most probably a Windows format PATH printed by 15942 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15943 # path with ; separators, and with drive letters. We can handle the 15944 # drive letters (cygwin fileutils understands them), so leave them, 15945 # especially as we might pass files found there to a mingw objdump, 15946 # which wouldn't understand a cygwinified path. Ahh. 15947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15948 else 15949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15950 fi 15951 ;; 15952 pw32*) 15953 # pw32 DLLs use 'pw' prefix rather than 'lib' 15954 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15955 ;; 15956 esac 15957 ;; 15958 15959 *) 15960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15961 ;; 15962 esac 15963 dynamic_linker='Win32 ld.exe' 15964 # FIXME: first we should search . and the directory the executable is in 15965 shlibpath_var=PATH 15966 ;; 15967 15968darwin* | rhapsody*) 15969 dynamic_linker="$host_os dyld" 15970 version_type=darwin 15971 need_lib_prefix=no 15972 need_version=no 15973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15974 soname_spec='${libname}${release}${major}$shared_ext' 15975 shlibpath_overrides_runpath=yes 15976 shlibpath_var=DYLD_LIBRARY_PATH 15977 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15978 15979 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15980 ;; 15981 15982dgux*) 15983 version_type=linux 15984 need_lib_prefix=no 15985 need_version=no 15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15987 soname_spec='${libname}${release}${shared_ext}$major' 15988 shlibpath_var=LD_LIBRARY_PATH 15989 ;; 15990 15991freebsd1*) 15992 dynamic_linker=no 15993 ;; 15994 15995freebsd* | dragonfly*) 15996 # DragonFly does not have aout. When/if they implement a new 15997 # versioning mechanism, adjust this. 15998 if test -x /usr/bin/objformat; then 15999 objformat=`/usr/bin/objformat` 16000 else 16001 case $host_os in 16002 freebsd[123]*) objformat=aout ;; 16003 *) objformat=elf ;; 16004 esac 16005 fi 16006 version_type=freebsd-$objformat 16007 case $version_type in 16008 freebsd-elf*) 16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16010 need_version=no 16011 need_lib_prefix=no 16012 ;; 16013 freebsd-*) 16014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16015 need_version=yes 16016 ;; 16017 esac 16018 shlibpath_var=LD_LIBRARY_PATH 16019 case $host_os in 16020 freebsd2*) 16021 shlibpath_overrides_runpath=yes 16022 ;; 16023 freebsd3.[01]* | freebsdelf3.[01]*) 16024 shlibpath_overrides_runpath=yes 16025 hardcode_into_libs=yes 16026 ;; 16027 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16028 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16029 shlibpath_overrides_runpath=no 16030 hardcode_into_libs=yes 16031 ;; 16032 *) # from 4.6 on, and DragonFly 16033 shlibpath_overrides_runpath=yes 16034 hardcode_into_libs=yes 16035 ;; 16036 esac 16037 ;; 16038 16039gnu*) 16040 version_type=linux 16041 need_lib_prefix=no 16042 need_version=no 16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16044 soname_spec='${libname}${release}${shared_ext}$major' 16045 shlibpath_var=LD_LIBRARY_PATH 16046 hardcode_into_libs=yes 16047 ;; 16048 16049hpux9* | hpux10* | hpux11*) 16050 # Give a soname corresponding to the major version so that dld.sl refuses to 16051 # link against other versions. 16052 version_type=sunos 16053 need_lib_prefix=no 16054 need_version=no 16055 case $host_cpu in 16056 ia64*) 16057 shrext_cmds='.so' 16058 hardcode_into_libs=yes 16059 dynamic_linker="$host_os dld.so" 16060 shlibpath_var=LD_LIBRARY_PATH 16061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16063 soname_spec='${libname}${release}${shared_ext}$major' 16064 if test "X$HPUX_IA64_MODE" = X32; then 16065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16066 else 16067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16068 fi 16069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16070 ;; 16071 hppa*64*) 16072 shrext_cmds='.sl' 16073 hardcode_into_libs=yes 16074 dynamic_linker="$host_os dld.sl" 16075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16078 soname_spec='${libname}${release}${shared_ext}$major' 16079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16081 ;; 16082 *) 16083 shrext_cmds='.sl' 16084 dynamic_linker="$host_os dld.sl" 16085 shlibpath_var=SHLIB_PATH 16086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16088 soname_spec='${libname}${release}${shared_ext}$major' 16089 ;; 16090 esac 16091 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16092 postinstall_cmds='chmod 555 $lib' 16093 ;; 16094 16095interix[3-9]*) 16096 version_type=linux 16097 need_lib_prefix=no 16098 need_version=no 16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16100 soname_spec='${libname}${release}${shared_ext}$major' 16101 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16102 shlibpath_var=LD_LIBRARY_PATH 16103 shlibpath_overrides_runpath=no 16104 hardcode_into_libs=yes 16105 ;; 16106 16107irix5* | irix6* | nonstopux*) 16108 case $host_os in 16109 nonstopux*) version_type=nonstopux ;; 16110 *) 16111 if test "$lt_cv_prog_gnu_ld" = yes; then 16112 version_type=linux 16113 else 16114 version_type=irix 16115 fi ;; 16116 esac 16117 need_lib_prefix=no 16118 need_version=no 16119 soname_spec='${libname}${release}${shared_ext}$major' 16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16121 case $host_os in 16122 irix5* | nonstopux*) 16123 libsuff= shlibsuff= 16124 ;; 16125 *) 16126 case $LD in # libtool.m4 will add one of these switches to LD 16127 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16128 libsuff= shlibsuff= libmagic=32-bit;; 16129 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16130 libsuff=32 shlibsuff=N32 libmagic=N32;; 16131 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16132 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16133 *) libsuff= shlibsuff= libmagic=never-match;; 16134 esac 16135 ;; 16136 esac 16137 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16138 shlibpath_overrides_runpath=no 16139 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16140 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16141 hardcode_into_libs=yes 16142 ;; 16143 16144# No shared lib support for Linux oldld, aout, or coff. 16145linux*oldld* | linux*aout* | linux*coff*) 16146 dynamic_linker=no 16147 ;; 16148 16149# This must be Linux ELF. 16150linux* | k*bsd*-gnu) 16151 version_type=linux 16152 need_lib_prefix=no 16153 need_version=no 16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16155 soname_spec='${libname}${release}${shared_ext}$major' 16156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16157 shlibpath_var=LD_LIBRARY_PATH 16158 shlibpath_overrides_runpath=no 16159 # This implies no fast_install, which is unacceptable. 16160 # Some rework will be needed to allow for fast_install 16161 # before this can be enabled. 16162 hardcode_into_libs=yes 16163 16164 # Append ld.so.conf contents to the search path 16165 if test -f /etc/ld.so.conf; then 16166 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' ' '` 16167 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16168 fi 16169 16170 # We used to test for /lib/ld.so.1 and disable shared libraries on 16171 # powerpc, because MkLinux only supported shared libraries with the 16172 # GNU dynamic linker. Since this was broken with cross compilers, 16173 # most powerpc-linux boxes support dynamic linking these days and 16174 # people can always --disable-shared, the test was removed, and we 16175 # assume the GNU/Linux dynamic linker is in use. 16176 dynamic_linker='GNU/Linux ld.so' 16177 ;; 16178 16179netbsd*) 16180 version_type=sunos 16181 need_lib_prefix=no 16182 need_version=no 16183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16186 dynamic_linker='NetBSD (a.out) ld.so' 16187 else 16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16189 soname_spec='${libname}${release}${shared_ext}$major' 16190 dynamic_linker='NetBSD ld.elf_so' 16191 fi 16192 shlibpath_var=LD_LIBRARY_PATH 16193 shlibpath_overrides_runpath=yes 16194 hardcode_into_libs=yes 16195 ;; 16196 16197newsos6) 16198 version_type=linux 16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16200 shlibpath_var=LD_LIBRARY_PATH 16201 shlibpath_overrides_runpath=yes 16202 ;; 16203 16204nto-qnx*) 16205 version_type=linux 16206 need_lib_prefix=no 16207 need_version=no 16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16209 soname_spec='${libname}${release}${shared_ext}$major' 16210 shlibpath_var=LD_LIBRARY_PATH 16211 shlibpath_overrides_runpath=yes 16212 ;; 16213 16214openbsd*) 16215 version_type=sunos 16216 sys_lib_dlsearch_path_spec="/usr/lib" 16217 need_lib_prefix=no 16218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16219 case $host_os in 16220 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16221 *) need_version=no ;; 16222 esac 16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16225 shlibpath_var=LD_LIBRARY_PATH 16226 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16227 case $host_os in 16228 openbsd2.[89] | openbsd2.[89].*) 16229 shlibpath_overrides_runpath=no 16230 ;; 16231 *) 16232 shlibpath_overrides_runpath=yes 16233 ;; 16234 esac 16235 else 16236 shlibpath_overrides_runpath=yes 16237 fi 16238 ;; 16239 16240os2*) 16241 libname_spec='$name' 16242 shrext_cmds=".dll" 16243 need_lib_prefix=no 16244 library_names_spec='$libname${shared_ext} $libname.a' 16245 dynamic_linker='OS/2 ld.exe' 16246 shlibpath_var=LIBPATH 16247 ;; 16248 16249osf3* | osf4* | osf5*) 16250 version_type=osf 16251 need_lib_prefix=no 16252 need_version=no 16253 soname_spec='${libname}${release}${shared_ext}$major' 16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16255 shlibpath_var=LD_LIBRARY_PATH 16256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16258 ;; 16259 16260rdos*) 16261 dynamic_linker=no 16262 ;; 16263 16264solaris*) 16265 version_type=linux 16266 need_lib_prefix=no 16267 need_version=no 16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16269 soname_spec='${libname}${release}${shared_ext}$major' 16270 shlibpath_var=LD_LIBRARY_PATH 16271 shlibpath_overrides_runpath=yes 16272 hardcode_into_libs=yes 16273 # ldd complains unless libraries are executable 16274 postinstall_cmds='chmod +x $lib' 16275 ;; 16276 16277sunos4*) 16278 version_type=sunos 16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16281 shlibpath_var=LD_LIBRARY_PATH 16282 shlibpath_overrides_runpath=yes 16283 if test "$with_gnu_ld" = yes; then 16284 need_lib_prefix=no 16285 fi 16286 need_version=yes 16287 ;; 16288 16289sysv4 | sysv4.3*) 16290 version_type=linux 16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16292 soname_spec='${libname}${release}${shared_ext}$major' 16293 shlibpath_var=LD_LIBRARY_PATH 16294 case $host_vendor in 16295 sni) 16296 shlibpath_overrides_runpath=no 16297 need_lib_prefix=no 16298 export_dynamic_flag_spec='${wl}-Blargedynsym' 16299 runpath_var=LD_RUN_PATH 16300 ;; 16301 siemens) 16302 need_lib_prefix=no 16303 ;; 16304 motorola) 16305 need_lib_prefix=no 16306 need_version=no 16307 shlibpath_overrides_runpath=no 16308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16309 ;; 16310 esac 16311 ;; 16312 16313sysv4*MP*) 16314 if test -d /usr/nec ;then 16315 version_type=linux 16316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16317 soname_spec='$libname${shared_ext}.$major' 16318 shlibpath_var=LD_LIBRARY_PATH 16319 fi 16320 ;; 16321 16322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16323 version_type=freebsd-elf 16324 need_lib_prefix=no 16325 need_version=no 16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16327 soname_spec='${libname}${release}${shared_ext}$major' 16328 shlibpath_var=LD_LIBRARY_PATH 16329 hardcode_into_libs=yes 16330 if test "$with_gnu_ld" = yes; then 16331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16332 shlibpath_overrides_runpath=no 16333 else 16334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16335 shlibpath_overrides_runpath=yes 16336 case $host_os in 16337 sco3.2v5*) 16338 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16339 ;; 16340 esac 16341 fi 16342 sys_lib_dlsearch_path_spec='/usr/lib' 16343 ;; 16344 16345uts4*) 16346 version_type=linux 16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16348 soname_spec='${libname}${release}${shared_ext}$major' 16349 shlibpath_var=LD_LIBRARY_PATH 16350 ;; 16351 16352*) 16353 dynamic_linker=no 16354 ;; 16355esac 16356{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16357$as_echo "$dynamic_linker" >&6; } 16358test "$dynamic_linker" = no && can_build_shared=no 16359 16360if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16361 $as_echo_n "(cached) " >&6 16362else 16363 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16364fi 16365 16366sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16367if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16368 $as_echo_n "(cached) " >&6 16369else 16370 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16371fi 16372 16373sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16374 16375variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16376if test "$GCC" = yes; then 16377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16378fi 16379 16380{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16381$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16382hardcode_action_F77= 16383if test -n "$hardcode_libdir_flag_spec_F77" || \ 16384 test -n "$runpath_var_F77" || \ 16385 test "X$hardcode_automatic_F77" = "Xyes" ; then 16386 16387 # We can hardcode non-existant directories. 16388 if test "$hardcode_direct_F77" != no && 16389 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16390 # have to relink, otherwise we might link with an installed library 16391 # when we should be linking with a yet-to-be-installed one 16392 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16393 test "$hardcode_minus_L_F77" != no; then 16394 # Linking always hardcodes the temporary library directory. 16395 hardcode_action_F77=relink 16396 else 16397 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16398 hardcode_action_F77=immediate 16399 fi 16400else 16401 # We cannot hardcode anything, or else we can only hardcode existing 16402 # directories. 16403 hardcode_action_F77=unsupported 16404fi 16405{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16406$as_echo "$hardcode_action_F77" >&6; } 16407 16408if test "$hardcode_action_F77" = relink; then 16409 # Fast installation is not supported 16410 enable_fast_install=no 16411elif test "$shlibpath_overrides_runpath" = yes || 16412 test "$enable_shared" = no; then 16413 # Fast installation is not necessary 16414 enable_fast_install=needless 16415fi 16416 16417 16418# The else clause should only fire when bootstrapping the 16419# libtool distribution, otherwise you forgot to ship ltmain.sh 16420# with your package, and you will get complaints that there are 16421# no rules to generate ltmain.sh. 16422if test -f "$ltmain"; then 16423 # See if we are running on zsh, and set the options which allow our commands through 16424 # without removal of \ escapes. 16425 if test -n "${ZSH_VERSION+set}" ; then 16426 setopt NO_GLOB_SUBST 16427 fi 16428 # Now quote all the things that may contain metacharacters while being 16429 # careful not to overquote the AC_SUBSTed values. We take copies of the 16430 # variables and quote the copies for generation of the libtool script. 16431 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16432 SED SHELL STRIP \ 16433 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16434 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16435 deplibs_check_method reload_flag reload_cmds need_locks \ 16436 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16437 lt_cv_sys_global_symbol_to_c_name_address \ 16438 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16439 old_postinstall_cmds old_postuninstall_cmds \ 16440 compiler_F77 \ 16441 CC_F77 \ 16442 LD_F77 \ 16443 lt_prog_compiler_wl_F77 \ 16444 lt_prog_compiler_pic_F77 \ 16445 lt_prog_compiler_static_F77 \ 16446 lt_prog_compiler_no_builtin_flag_F77 \ 16447 export_dynamic_flag_spec_F77 \ 16448 thread_safe_flag_spec_F77 \ 16449 whole_archive_flag_spec_F77 \ 16450 enable_shared_with_static_runtimes_F77 \ 16451 old_archive_cmds_F77 \ 16452 old_archive_from_new_cmds_F77 \ 16453 predep_objects_F77 \ 16454 postdep_objects_F77 \ 16455 predeps_F77 \ 16456 postdeps_F77 \ 16457 compiler_lib_search_path_F77 \ 16458 compiler_lib_search_dirs_F77 \ 16459 archive_cmds_F77 \ 16460 archive_expsym_cmds_F77 \ 16461 postinstall_cmds_F77 \ 16462 postuninstall_cmds_F77 \ 16463 old_archive_from_expsyms_cmds_F77 \ 16464 allow_undefined_flag_F77 \ 16465 no_undefined_flag_F77 \ 16466 export_symbols_cmds_F77 \ 16467 hardcode_libdir_flag_spec_F77 \ 16468 hardcode_libdir_flag_spec_ld_F77 \ 16469 hardcode_libdir_separator_F77 \ 16470 hardcode_automatic_F77 \ 16471 module_cmds_F77 \ 16472 module_expsym_cmds_F77 \ 16473 lt_cv_prog_compiler_c_o_F77 \ 16474 fix_srcfile_path_F77 \ 16475 exclude_expsyms_F77 \ 16476 include_expsyms_F77; do 16477 16478 case $var in 16479 old_archive_cmds_F77 | \ 16480 old_archive_from_new_cmds_F77 | \ 16481 archive_cmds_F77 | \ 16482 archive_expsym_cmds_F77 | \ 16483 module_cmds_F77 | \ 16484 module_expsym_cmds_F77 | \ 16485 old_archive_from_expsyms_cmds_F77 | \ 16486 export_symbols_cmds_F77 | \ 16487 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16488 postinstall_cmds | postuninstall_cmds | \ 16489 old_postinstall_cmds | old_postuninstall_cmds | \ 16490 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16491 # Double-quote double-evaled strings. 16492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16493 ;; 16494 *) 16495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16496 ;; 16497 esac 16498 done 16499 16500 case $lt_echo in 16501 *'\$0 --fallback-echo"') 16502 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16503 ;; 16504 esac 16505 16506cfgfile="$ofile" 16507 16508 cat <<__EOF__ >> "$cfgfile" 16509# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16510 16511# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16512 16513# Shell to use when invoking shell scripts. 16514SHELL=$lt_SHELL 16515 16516# Whether or not to build shared libraries. 16517build_libtool_libs=$enable_shared 16518 16519# Whether or not to build static libraries. 16520build_old_libs=$enable_static 16521 16522# Whether or not to add -lc for building shared libraries. 16523build_libtool_need_lc=$archive_cmds_need_lc_F77 16524 16525# Whether or not to disallow shared libs when runtime libs are static 16526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16527 16528# Whether or not to optimize for fast installation. 16529fast_install=$enable_fast_install 16530 16531# The host system. 16532host_alias=$host_alias 16533host=$host 16534host_os=$host_os 16535 16536# The build system. 16537build_alias=$build_alias 16538build=$build 16539build_os=$build_os 16540 16541# An echo program that does not interpret backslashes. 16542echo=$lt_echo 16543 16544# The archiver. 16545AR=$lt_AR 16546AR_FLAGS=$lt_AR_FLAGS 16547 16548# A C compiler. 16549LTCC=$lt_LTCC 16550 16551# LTCC compiler flags. 16552LTCFLAGS=$lt_LTCFLAGS 16553 16554# A language-specific compiler. 16555CC=$lt_compiler_F77 16556 16557# Is the compiler the GNU C compiler? 16558with_gcc=$GCC_F77 16559 16560# An ERE matcher. 16561EGREP=$lt_EGREP 16562 16563# The linker used to build libraries. 16564LD=$lt_LD_F77 16565 16566# Whether we need hard or soft links. 16567LN_S=$lt_LN_S 16568 16569# A BSD-compatible nm program. 16570NM=$lt_NM 16571 16572# A symbol stripping program 16573STRIP=$lt_STRIP 16574 16575# Used to examine libraries when file_magic_cmd begins "file" 16576MAGIC_CMD=$MAGIC_CMD 16577 16578# Used on cygwin: DLL creation program. 16579DLLTOOL="$DLLTOOL" 16580 16581# Used on cygwin: object dumper. 16582OBJDUMP="$OBJDUMP" 16583 16584# Used on cygwin: assembler. 16585AS="$AS" 16586 16587# The name of the directory that contains temporary libtool files. 16588objdir=$objdir 16589 16590# How to create reloadable object files. 16591reload_flag=$lt_reload_flag 16592reload_cmds=$lt_reload_cmds 16593 16594# How to pass a linker flag through the compiler. 16595wl=$lt_lt_prog_compiler_wl_F77 16596 16597# Object file suffix (normally "o"). 16598objext="$ac_objext" 16599 16600# Old archive suffix (normally "a"). 16601libext="$libext" 16602 16603# Shared library suffix (normally ".so"). 16604shrext_cmds='$shrext_cmds' 16605 16606# Executable file suffix (normally ""). 16607exeext="$exeext" 16608 16609# Additional compiler flags for building library objects. 16610pic_flag=$lt_lt_prog_compiler_pic_F77 16611pic_mode=$pic_mode 16612 16613# What is the maximum length of a command? 16614max_cmd_len=$lt_cv_sys_max_cmd_len 16615 16616# Does compiler simultaneously support -c and -o options? 16617compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16618 16619# Must we lock files when doing compilation? 16620need_locks=$lt_need_locks 16621 16622# Do we need the lib prefix for modules? 16623need_lib_prefix=$need_lib_prefix 16624 16625# Do we need a version for libraries? 16626need_version=$need_version 16627 16628# Whether dlopen is supported. 16629dlopen_support=$enable_dlopen 16630 16631# Whether dlopen of programs is supported. 16632dlopen_self=$enable_dlopen_self 16633 16634# Whether dlopen of statically linked programs is supported. 16635dlopen_self_static=$enable_dlopen_self_static 16636 16637# Compiler flag to prevent dynamic linking. 16638link_static_flag=$lt_lt_prog_compiler_static_F77 16639 16640# Compiler flag to turn off builtin functions. 16641no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16642 16643# Compiler flag to allow reflexive dlopens. 16644export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16645 16646# Compiler flag to generate shared objects directly from archives. 16647whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16648 16649# Compiler flag to generate thread-safe objects. 16650thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16651 16652# Library versioning type. 16653version_type=$version_type 16654 16655# Format of library name prefix. 16656libname_spec=$lt_libname_spec 16657 16658# List of archive names. First name is the real one, the rest are links. 16659# The last name is the one that the linker finds with -lNAME. 16660library_names_spec=$lt_library_names_spec 16661 16662# The coded name of the library, if different from the real name. 16663soname_spec=$lt_soname_spec 16664 16665# Commands used to build and install an old-style archive. 16666RANLIB=$lt_RANLIB 16667old_archive_cmds=$lt_old_archive_cmds_F77 16668old_postinstall_cmds=$lt_old_postinstall_cmds 16669old_postuninstall_cmds=$lt_old_postuninstall_cmds 16670 16671# Create an old-style archive from a shared archive. 16672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16673 16674# Create a temporary old-style archive to link instead of a shared archive. 16675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16676 16677# Commands used to build and install a shared archive. 16678archive_cmds=$lt_archive_cmds_F77 16679archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16680postinstall_cmds=$lt_postinstall_cmds 16681postuninstall_cmds=$lt_postuninstall_cmds 16682 16683# Commands used to build a loadable module (assumed same as above if empty) 16684module_cmds=$lt_module_cmds_F77 16685module_expsym_cmds=$lt_module_expsym_cmds_F77 16686 16687# Commands to strip libraries. 16688old_striplib=$lt_old_striplib 16689striplib=$lt_striplib 16690 16691# Dependencies to place before the objects being linked to create a 16692# shared library. 16693predep_objects=$lt_predep_objects_F77 16694 16695# Dependencies to place after the objects being linked to create a 16696# shared library. 16697postdep_objects=$lt_postdep_objects_F77 16698 16699# Dependencies to place before the objects being linked to create a 16700# shared library. 16701predeps=$lt_predeps_F77 16702 16703# Dependencies to place after the objects being linked to create a 16704# shared library. 16705postdeps=$lt_postdeps_F77 16706 16707# The directories searched by this compiler when creating a shared 16708# library 16709compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16710 16711# The library search path used internally by the compiler when linking 16712# a shared library. 16713compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16714 16715# Method to check whether dependent libraries are shared objects. 16716deplibs_check_method=$lt_deplibs_check_method 16717 16718# Command to use when deplibs_check_method == file_magic. 16719file_magic_cmd=$lt_file_magic_cmd 16720 16721# Flag that allows shared libraries with undefined symbols to be built. 16722allow_undefined_flag=$lt_allow_undefined_flag_F77 16723 16724# Flag that forces no undefined symbols. 16725no_undefined_flag=$lt_no_undefined_flag_F77 16726 16727# Commands used to finish a libtool library installation in a directory. 16728finish_cmds=$lt_finish_cmds 16729 16730# Same as above, but a single script fragment to be evaled but not shown. 16731finish_eval=$lt_finish_eval 16732 16733# Take the output of nm and produce a listing of raw symbols and C names. 16734global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16735 16736# Transform the output of nm in a proper C declaration 16737global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16738 16739# Transform the output of nm in a C name address pair 16740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16741 16742# This is the shared library runtime path variable. 16743runpath_var=$runpath_var 16744 16745# This is the shared library path variable. 16746shlibpath_var=$shlibpath_var 16747 16748# Is shlibpath searched before the hard-coded library search path? 16749shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16750 16751# How to hardcode a shared library path into an executable. 16752hardcode_action=$hardcode_action_F77 16753 16754# Whether we should hardcode library paths into libraries. 16755hardcode_into_libs=$hardcode_into_libs 16756 16757# Flag to hardcode \$libdir into a binary during linking. 16758# This must work even if \$libdir does not exist. 16759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16760 16761# If ld is used when linking, flag to hardcode \$libdir into 16762# a binary during linking. This must work even if \$libdir does 16763# not exist. 16764hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16765 16766# Whether we need a single -rpath flag with a separated argument. 16767hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16768 16769# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16770# resulting binary. 16771hardcode_direct=$hardcode_direct_F77 16772 16773# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16774# resulting binary. 16775hardcode_minus_L=$hardcode_minus_L_F77 16776 16777# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16778# the resulting binary. 16779hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16780 16781# Set to yes if building a shared library automatically hardcodes DIR into the library 16782# and all subsequent libraries and executables linked against it. 16783hardcode_automatic=$hardcode_automatic_F77 16784 16785# Variables whose values should be saved in libtool wrapper scripts and 16786# restored at relink time. 16787variables_saved_for_relink="$variables_saved_for_relink" 16788 16789# Whether libtool must link a program against all its dependency libraries. 16790link_all_deplibs=$link_all_deplibs_F77 16791 16792# Compile-time system search path for libraries 16793sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16794 16795# Run-time system search path for libraries 16796sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16797 16798# Fix the shell variable \$srcfile for the compiler. 16799fix_srcfile_path=$lt_fix_srcfile_path 16800 16801# Set to yes if exported symbols are required. 16802always_export_symbols=$always_export_symbols_F77 16803 16804# The commands to list exported symbols. 16805export_symbols_cmds=$lt_export_symbols_cmds_F77 16806 16807# The commands to extract the exported symbol list from a shared archive. 16808extract_expsyms_cmds=$lt_extract_expsyms_cmds 16809 16810# Symbols that should not be listed in the preloaded symbols. 16811exclude_expsyms=$lt_exclude_expsyms_F77 16812 16813# Symbols that must always be exported. 16814include_expsyms=$lt_include_expsyms_F77 16815 16816# ### END LIBTOOL TAG CONFIG: $tagname 16817 16818__EOF__ 16819 16820 16821else 16822 # If there is no Makefile yet, we rely on a make rule to execute 16823 # `config.status --recheck' to rerun these tests and create the 16824 # libtool script then. 16825 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16826 if test -f "$ltmain_in"; then 16827 test -f Makefile && make "$ltmain" 16828 fi 16829fi 16830 16831 16832ac_ext=c 16833ac_cpp='$CPP $CPPFLAGS' 16834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16836ac_compiler_gnu=$ac_cv_c_compiler_gnu 16837 16838CC="$lt_save_CC" 16839 16840 else 16841 tagname="" 16842 fi 16843 ;; 16844 16845 GCJ) 16846 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16847 16848 16849# Source file extension for Java test sources. 16850ac_ext=java 16851 16852# Object file extension for compiled Java test sources. 16853objext=o 16854objext_GCJ=$objext 16855 16856# Code to be used in simple compile tests 16857lt_simple_compile_test_code="class foo {}" 16858 16859# Code to be used in simple link tests 16860lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16861 16862# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16863 16864# If no C compiler was specified, use CC. 16865LTCC=${LTCC-"$CC"} 16866 16867# If no C compiler flags were specified, use CFLAGS. 16868LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16869 16870# Allow CC to be a program name with arguments. 16871compiler=$CC 16872 16873 16874# save warnings/boilerplate of simple test code 16875ac_outfile=conftest.$ac_objext 16876echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16877eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16878_lt_compiler_boilerplate=`cat conftest.err` 16879$rm conftest* 16880 16881ac_outfile=conftest.$ac_objext 16882echo "$lt_simple_link_test_code" >conftest.$ac_ext 16883eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16884_lt_linker_boilerplate=`cat conftest.err` 16885$rm -r conftest* 16886 16887 16888# Allow CC to be a program name with arguments. 16889lt_save_CC="$CC" 16890CC=${GCJ-"gcj"} 16891compiler=$CC 16892compiler_GCJ=$CC 16893for cc_temp in $compiler""; do 16894 case $cc_temp in 16895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16897 \-*) ;; 16898 *) break;; 16899 esac 16900done 16901cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16902 16903 16904# GCJ did not exist at the time GCC didn't implicitly link libc in. 16905archive_cmds_need_lc_GCJ=no 16906 16907old_archive_cmds_GCJ=$old_archive_cmds 16908 16909 16910lt_prog_compiler_no_builtin_flag_GCJ= 16911 16912if test "$GCC" = yes; then 16913 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16914 16915 16916{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16917$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16918if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16919 $as_echo_n "(cached) " >&6 16920else 16921 lt_cv_prog_compiler_rtti_exceptions=no 16922 ac_outfile=conftest.$ac_objext 16923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16924 lt_compiler_flag="-fno-rtti -fno-exceptions" 16925 # Insert the option either (1) after the last *FLAGS variable, or 16926 # (2) before a word containing "conftest.", or (3) at the end. 16927 # Note that $ac_compile itself does not contain backslashes and begins 16928 # with a dollar sign (not a hyphen), so the echo should work correctly. 16929 # The option is referenced via a variable to avoid confusing sed. 16930 lt_compile=`echo "$ac_compile" | $SED \ 16931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16933 -e 's:$: $lt_compiler_flag:'` 16934 (eval echo "\"\$as_me:16934: $lt_compile\"" >&5) 16935 (eval "$lt_compile" 2>conftest.err) 16936 ac_status=$? 16937 cat conftest.err >&5 16938 echo "$as_me:16938: \$? = $ac_status" >&5 16939 if (exit $ac_status) && test -s "$ac_outfile"; then 16940 # The compiler can only warn and ignore the option if not recognized 16941 # So say no if there are warnings other than the usual output. 16942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16945 lt_cv_prog_compiler_rtti_exceptions=yes 16946 fi 16947 fi 16948 $rm conftest* 16949 16950fi 16951{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16952$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16953 16954if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16955 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16956else 16957 : 16958fi 16959 16960fi 16961 16962lt_prog_compiler_wl_GCJ= 16963lt_prog_compiler_pic_GCJ= 16964lt_prog_compiler_static_GCJ= 16965 16966{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16967$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16968 16969 if test "$GCC" = yes; then 16970 lt_prog_compiler_wl_GCJ='-Wl,' 16971 lt_prog_compiler_static_GCJ='-static' 16972 16973 case $host_os in 16974 aix*) 16975 # All AIX code is PIC. 16976 if test "$host_cpu" = ia64; then 16977 # AIX 5 now supports IA64 processor 16978 lt_prog_compiler_static_GCJ='-Bstatic' 16979 fi 16980 ;; 16981 16982 amigaos*) 16983 # FIXME: we need at least 68020 code to build shared libraries, but 16984 # adding the `-m68020' flag to GCC prevents building anything better, 16985 # like `-m68040'. 16986 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16987 ;; 16988 16989 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16990 # PIC is the default for these OSes. 16991 ;; 16992 16993 mingw* | cygwin* | pw32* | os2*) 16994 # This hack is so that the source file can tell whether it is being 16995 # built for inclusion in a dll (and should export symbols for example). 16996 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16997 # (--disable-auto-import) libraries 16998 16999 ;; 17000 17001 darwin* | rhapsody*) 17002 # PIC is the default on this platform 17003 # Common symbols not allowed in MH_DYLIB files 17004 lt_prog_compiler_pic_GCJ='-fno-common' 17005 ;; 17006 17007 interix[3-9]*) 17008 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17009 # Instead, we relocate shared libraries at runtime. 17010 ;; 17011 17012 msdosdjgpp*) 17013 # Just because we use GCC doesn't mean we suddenly get shared libraries 17014 # on systems that don't support them. 17015 lt_prog_compiler_can_build_shared_GCJ=no 17016 enable_shared=no 17017 ;; 17018 17019 sysv4*MP*) 17020 if test -d /usr/nec; then 17021 lt_prog_compiler_pic_GCJ=-Kconform_pic 17022 fi 17023 ;; 17024 17025 hpux*) 17026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17027 # not for PA HP-UX. 17028 case $host_cpu in 17029 hppa*64*|ia64*) 17030 # +Z the default 17031 ;; 17032 *) 17033 lt_prog_compiler_pic_GCJ='-fPIC' 17034 ;; 17035 esac 17036 ;; 17037 17038 *) 17039 lt_prog_compiler_pic_GCJ='-fPIC' 17040 ;; 17041 esac 17042 else 17043 # PORTME Check for flag to pass linker flags through the system compiler. 17044 case $host_os in 17045 aix*) 17046 lt_prog_compiler_wl_GCJ='-Wl,' 17047 if test "$host_cpu" = ia64; then 17048 # AIX 5 now supports IA64 processor 17049 lt_prog_compiler_static_GCJ='-Bstatic' 17050 else 17051 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17052 fi 17053 ;; 17054 darwin*) 17055 # PIC is the default on this platform 17056 # Common symbols not allowed in MH_DYLIB files 17057 case $cc_basename in 17058 xlc*) 17059 lt_prog_compiler_pic_GCJ='-qnocommon' 17060 lt_prog_compiler_wl_GCJ='-Wl,' 17061 ;; 17062 esac 17063 ;; 17064 17065 mingw* | cygwin* | pw32* | os2*) 17066 # This hack is so that the source file can tell whether it is being 17067 # built for inclusion in a dll (and should export symbols for example). 17068 17069 ;; 17070 17071 hpux9* | hpux10* | hpux11*) 17072 lt_prog_compiler_wl_GCJ='-Wl,' 17073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17074 # not for PA HP-UX. 17075 case $host_cpu in 17076 hppa*64*|ia64*) 17077 # +Z the default 17078 ;; 17079 *) 17080 lt_prog_compiler_pic_GCJ='+Z' 17081 ;; 17082 esac 17083 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17084 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17085 ;; 17086 17087 irix5* | irix6* | nonstopux*) 17088 lt_prog_compiler_wl_GCJ='-Wl,' 17089 # PIC (with -KPIC) is the default. 17090 lt_prog_compiler_static_GCJ='-non_shared' 17091 ;; 17092 17093 newsos6) 17094 lt_prog_compiler_pic_GCJ='-KPIC' 17095 lt_prog_compiler_static_GCJ='-Bstatic' 17096 ;; 17097 17098 linux* | k*bsd*-gnu) 17099 case $cc_basename in 17100 icc* | ecc*) 17101 lt_prog_compiler_wl_GCJ='-Wl,' 17102 lt_prog_compiler_pic_GCJ='-KPIC' 17103 lt_prog_compiler_static_GCJ='-static' 17104 ;; 17105 pgcc* | pgf77* | pgf90* | pgf95*) 17106 # Portland Group compilers (*not* the Pentium gcc compiler, 17107 # which looks to be a dead project) 17108 lt_prog_compiler_wl_GCJ='-Wl,' 17109 lt_prog_compiler_pic_GCJ='-fpic' 17110 lt_prog_compiler_static_GCJ='-Bstatic' 17111 ;; 17112 ccc*) 17113 lt_prog_compiler_wl_GCJ='-Wl,' 17114 # All Alpha code is PIC. 17115 lt_prog_compiler_static_GCJ='-non_shared' 17116 ;; 17117 *) 17118 case `$CC -V 2>&1 | sed 5q` in 17119 *Sun\ C*) 17120 # Sun C 5.9 17121 lt_prog_compiler_pic_GCJ='-KPIC' 17122 lt_prog_compiler_static_GCJ='-Bstatic' 17123 lt_prog_compiler_wl_GCJ='-Wl,' 17124 ;; 17125 *Sun\ F*) 17126 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17127 lt_prog_compiler_pic_GCJ='-KPIC' 17128 lt_prog_compiler_static_GCJ='-Bstatic' 17129 lt_prog_compiler_wl_GCJ='' 17130 ;; 17131 esac 17132 ;; 17133 esac 17134 ;; 17135 17136 osf3* | osf4* | osf5*) 17137 lt_prog_compiler_wl_GCJ='-Wl,' 17138 # All OSF/1 code is PIC. 17139 lt_prog_compiler_static_GCJ='-non_shared' 17140 ;; 17141 17142 rdos*) 17143 lt_prog_compiler_static_GCJ='-non_shared' 17144 ;; 17145 17146 solaris*) 17147 lt_prog_compiler_pic_GCJ='-KPIC' 17148 lt_prog_compiler_static_GCJ='-Bstatic' 17149 case $cc_basename in 17150 f77* | f90* | f95*) 17151 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17152 *) 17153 lt_prog_compiler_wl_GCJ='-Wl,';; 17154 esac 17155 ;; 17156 17157 sunos4*) 17158 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17159 lt_prog_compiler_pic_GCJ='-PIC' 17160 lt_prog_compiler_static_GCJ='-Bstatic' 17161 ;; 17162 17163 sysv4 | sysv4.2uw2* | sysv4.3*) 17164 lt_prog_compiler_wl_GCJ='-Wl,' 17165 lt_prog_compiler_pic_GCJ='-KPIC' 17166 lt_prog_compiler_static_GCJ='-Bstatic' 17167 ;; 17168 17169 sysv4*MP*) 17170 if test -d /usr/nec ;then 17171 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17172 lt_prog_compiler_static_GCJ='-Bstatic' 17173 fi 17174 ;; 17175 17176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17177 lt_prog_compiler_wl_GCJ='-Wl,' 17178 lt_prog_compiler_pic_GCJ='-KPIC' 17179 lt_prog_compiler_static_GCJ='-Bstatic' 17180 ;; 17181 17182 unicos*) 17183 lt_prog_compiler_wl_GCJ='-Wl,' 17184 lt_prog_compiler_can_build_shared_GCJ=no 17185 ;; 17186 17187 uts4*) 17188 lt_prog_compiler_pic_GCJ='-pic' 17189 lt_prog_compiler_static_GCJ='-Bstatic' 17190 ;; 17191 17192 *) 17193 lt_prog_compiler_can_build_shared_GCJ=no 17194 ;; 17195 esac 17196 fi 17197 17198{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17199$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17200 17201# 17202# Check to make sure the PIC flag actually works. 17203# 17204if test -n "$lt_prog_compiler_pic_GCJ"; then 17205 17206{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17207$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17208if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17209 $as_echo_n "(cached) " >&6 17210else 17211 lt_cv_prog_compiler_pic_works_GCJ=no 17212 ac_outfile=conftest.$ac_objext 17213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17214 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17215 # Insert the option either (1) after the last *FLAGS variable, or 17216 # (2) before a word containing "conftest.", or (3) at the end. 17217 # Note that $ac_compile itself does not contain backslashes and begins 17218 # with a dollar sign (not a hyphen), so the echo should work correctly. 17219 # The option is referenced via a variable to avoid confusing sed. 17220 lt_compile=`echo "$ac_compile" | $SED \ 17221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17223 -e 's:$: $lt_compiler_flag:'` 17224 (eval echo "\"\$as_me:17224: $lt_compile\"" >&5) 17225 (eval "$lt_compile" 2>conftest.err) 17226 ac_status=$? 17227 cat conftest.err >&5 17228 echo "$as_me:17228: \$? = $ac_status" >&5 17229 if (exit $ac_status) && test -s "$ac_outfile"; then 17230 # The compiler can only warn and ignore the option if not recognized 17231 # So say no if there are warnings other than the usual output. 17232 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17235 lt_cv_prog_compiler_pic_works_GCJ=yes 17236 fi 17237 fi 17238 $rm conftest* 17239 17240fi 17241{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17242$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17243 17244if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17245 case $lt_prog_compiler_pic_GCJ in 17246 "" | " "*) ;; 17247 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17248 esac 17249else 17250 lt_prog_compiler_pic_GCJ= 17251 lt_prog_compiler_can_build_shared_GCJ=no 17252fi 17253 17254fi 17255case $host_os in 17256 # For platforms which do not support PIC, -DPIC is meaningless: 17257 *djgpp*) 17258 lt_prog_compiler_pic_GCJ= 17259 ;; 17260 *) 17261 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17262 ;; 17263esac 17264 17265# 17266# Check to make sure the static flag actually works. 17267# 17268wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17269{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17270$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17271if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17272 $as_echo_n "(cached) " >&6 17273else 17274 lt_cv_prog_compiler_static_works_GCJ=no 17275 save_LDFLAGS="$LDFLAGS" 17276 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17277 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17279 # The linker can only warn and ignore the option if not recognized 17280 # So say no if there are warnings 17281 if test -s conftest.err; then 17282 # Append any errors to the config.log. 17283 cat conftest.err 1>&5 17284 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17286 if diff conftest.exp conftest.er2 >/dev/null; then 17287 lt_cv_prog_compiler_static_works_GCJ=yes 17288 fi 17289 else 17290 lt_cv_prog_compiler_static_works_GCJ=yes 17291 fi 17292 fi 17293 $rm -r conftest* 17294 LDFLAGS="$save_LDFLAGS" 17295 17296fi 17297{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17298$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17299 17300if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17301 : 17302else 17303 lt_prog_compiler_static_GCJ= 17304fi 17305 17306 17307{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17309if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17310 $as_echo_n "(cached) " >&6 17311else 17312 lt_cv_prog_compiler_c_o_GCJ=no 17313 $rm -r conftest 2>/dev/null 17314 mkdir conftest 17315 cd conftest 17316 mkdir out 17317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17318 17319 lt_compiler_flag="-o out/conftest2.$ac_objext" 17320 # Insert the option either (1) after the last *FLAGS variable, or 17321 # (2) before a word containing "conftest.", or (3) at the end. 17322 # Note that $ac_compile itself does not contain backslashes and begins 17323 # with a dollar sign (not a hyphen), so the echo should work correctly. 17324 lt_compile=`echo "$ac_compile" | $SED \ 17325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17327 -e 's:$: $lt_compiler_flag:'` 17328 (eval echo "\"\$as_me:17328: $lt_compile\"" >&5) 17329 (eval "$lt_compile" 2>out/conftest.err) 17330 ac_status=$? 17331 cat out/conftest.err >&5 17332 echo "$as_me:17332: \$? = $ac_status" >&5 17333 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17334 then 17335 # The compiler can only warn and ignore the option if not recognized 17336 # So say no if there are warnings 17337 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17340 lt_cv_prog_compiler_c_o_GCJ=yes 17341 fi 17342 fi 17343 chmod u+w . 2>&5 17344 $rm conftest* 17345 # SGI C++ compiler will create directory out/ii_files/ for 17346 # template instantiation 17347 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17348 $rm out/* && rmdir out 17349 cd .. 17350 rmdir conftest 17351 $rm conftest* 17352 17353fi 17354{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17355$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17356 17357 17358hard_links="nottested" 17359if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17360 # do not overwrite the value of need_locks provided by the user 17361 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17362$as_echo_n "checking if we can lock with hard links... " >&6; } 17363 hard_links=yes 17364 $rm conftest* 17365 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17366 touch conftest.a 17367 ln conftest.a conftest.b 2>&5 || hard_links=no 17368 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17369 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17370$as_echo "$hard_links" >&6; } 17371 if test "$hard_links" = no; then 17372 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17373$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17374 need_locks=warn 17375 fi 17376else 17377 need_locks=no 17378fi 17379 17380{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17381$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17382 17383 runpath_var= 17384 allow_undefined_flag_GCJ= 17385 enable_shared_with_static_runtimes_GCJ=no 17386 archive_cmds_GCJ= 17387 archive_expsym_cmds_GCJ= 17388 old_archive_From_new_cmds_GCJ= 17389 old_archive_from_expsyms_cmds_GCJ= 17390 export_dynamic_flag_spec_GCJ= 17391 whole_archive_flag_spec_GCJ= 17392 thread_safe_flag_spec_GCJ= 17393 hardcode_libdir_flag_spec_GCJ= 17394 hardcode_libdir_flag_spec_ld_GCJ= 17395 hardcode_libdir_separator_GCJ= 17396 hardcode_direct_GCJ=no 17397 hardcode_minus_L_GCJ=no 17398 hardcode_shlibpath_var_GCJ=unsupported 17399 link_all_deplibs_GCJ=unknown 17400 hardcode_automatic_GCJ=no 17401 module_cmds_GCJ= 17402 module_expsym_cmds_GCJ= 17403 always_export_symbols_GCJ=no 17404 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17405 # include_expsyms should be a list of space-separated symbols to be *always* 17406 # included in the symbol list 17407 include_expsyms_GCJ= 17408 # exclude_expsyms can be an extended regexp of symbols to exclude 17409 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17410 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17411 # as well as any symbol that contains `d'. 17412 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17414 # platforms (ab)use it in PIC code, but their linkers get confused if 17415 # the symbol is explicitly referenced. Since portable code cannot 17416 # rely on this symbol name, it's probably fine to never include it in 17417 # preloaded symbol tables. 17418 # Exclude shared library initialization/finalization symbols. 17419 extract_expsyms_cmds= 17420 # Just being paranoid about ensuring that cc_basename is set. 17421 for cc_temp in $compiler""; do 17422 case $cc_temp in 17423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17425 \-*) ;; 17426 *) break;; 17427 esac 17428done 17429cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17430 17431 case $host_os in 17432 cygwin* | mingw* | pw32*) 17433 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17434 # When not using gcc, we currently assume that we are using 17435 # Microsoft Visual C++. 17436 if test "$GCC" != yes; then 17437 with_gnu_ld=no 17438 fi 17439 ;; 17440 interix*) 17441 # we just hope/assume this is gcc and not c89 (= MSVC++) 17442 with_gnu_ld=yes 17443 ;; 17444 openbsd*) 17445 with_gnu_ld=no 17446 ;; 17447 esac 17448 17449 ld_shlibs_GCJ=yes 17450 if test "$with_gnu_ld" = yes; then 17451 # If archive_cmds runs LD, not CC, wlarc should be empty 17452 wlarc='${wl}' 17453 17454 # Set some defaults for GNU ld with shared library support. These 17455 # are reset later if shared libraries are not supported. Putting them 17456 # here allows them to be overridden if necessary. 17457 runpath_var=LD_RUN_PATH 17458 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17459 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17460 # ancient GNU ld didn't support --whole-archive et. al. 17461 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17462 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17463 else 17464 whole_archive_flag_spec_GCJ= 17465 fi 17466 supports_anon_versioning=no 17467 case `$LD -v 2>/dev/null` in 17468 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17469 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17470 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17471 *\ 2.11.*) ;; # other 2.11 versions 17472 *) supports_anon_versioning=yes ;; 17473 esac 17474 17475 # See if GNU ld supports shared libraries. 17476 case $host_os in 17477 aix[3-9]*) 17478 # On AIX/PPC, the GNU linker is very broken 17479 if test "$host_cpu" != ia64; then 17480 ld_shlibs_GCJ=no 17481 cat <<EOF 1>&2 17482 17483*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17484*** to be unable to reliably create shared libraries on AIX. 17485*** Therefore, libtool is disabling shared libraries support. If you 17486*** really care for shared libraries, you may want to modify your PATH 17487*** so that a non-GNU linker is found, and then restart. 17488 17489EOF 17490 fi 17491 ;; 17492 17493 amigaos*) 17494 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)' 17495 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17496 hardcode_minus_L_GCJ=yes 17497 17498 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17499 # that the semantics of dynamic libraries on AmigaOS, at least up 17500 # to version 4, is to share data among multiple programs linked 17501 # with the same dynamic library. Since this doesn't match the 17502 # behavior of shared libraries on other platforms, we can't use 17503 # them. 17504 ld_shlibs_GCJ=no 17505 ;; 17506 17507 beos*) 17508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17509 allow_undefined_flag_GCJ=unsupported 17510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17511 # support --undefined. This deserves some investigation. FIXME 17512 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17513 else 17514 ld_shlibs_GCJ=no 17515 fi 17516 ;; 17517 17518 cygwin* | mingw* | pw32*) 17519 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17520 # as there is no search path for DLLs. 17521 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17522 allow_undefined_flag_GCJ=unsupported 17523 always_export_symbols_GCJ=no 17524 enable_shared_with_static_runtimes_GCJ=yes 17525 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17526 17527 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17529 # If the export-symbols file already is a .def file (1st line 17530 # is EXPORTS), use it as is; otherwise, prepend... 17531 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17532 cp $export_symbols $output_objdir/$soname.def; 17533 else 17534 echo EXPORTS > $output_objdir/$soname.def; 17535 cat $export_symbols >> $output_objdir/$soname.def; 17536 fi~ 17537 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17538 else 17539 ld_shlibs_GCJ=no 17540 fi 17541 ;; 17542 17543 interix[3-9]*) 17544 hardcode_direct_GCJ=no 17545 hardcode_shlibpath_var_GCJ=no 17546 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17547 export_dynamic_flag_spec_GCJ='${wl}-E' 17548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17549 # Instead, shared libraries are loaded at an image base (0x10000000 by 17550 # default) and relocated if they conflict, which is a slow very memory 17551 # consuming and fragmenting process. To avoid this, we pick a random, 17552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17553 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17554 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' 17555 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' 17556 ;; 17557 17558 gnu* | linux* | k*bsd*-gnu) 17559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17560 tmp_addflag= 17561 case $cc_basename,$host_cpu in 17562 pgcc*) # Portland Group C compiler 17563 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' 17564 tmp_addflag=' $pic_flag' 17565 ;; 17566 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17567 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' 17568 tmp_addflag=' $pic_flag -Mnomain' ;; 17569 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17570 tmp_addflag=' -i_dynamic' ;; 17571 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17572 tmp_addflag=' -i_dynamic -nofor_main' ;; 17573 ifc* | ifort*) # Intel Fortran compiler 17574 tmp_addflag=' -nofor_main' ;; 17575 esac 17576 case `$CC -V 2>&1 | sed 5q` in 17577 *Sun\ C*) # Sun C 5.9 17578 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' 17579 tmp_sharedflag='-G' ;; 17580 *Sun\ F*) # Sun Fortran 8.3 17581 tmp_sharedflag='-G' ;; 17582 *) 17583 tmp_sharedflag='-shared' ;; 17584 esac 17585 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17586 17587 if test $supports_anon_versioning = yes; then 17588 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17590 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17591 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17592 fi 17593 else 17594 ld_shlibs_GCJ=no 17595 fi 17596 ;; 17597 17598 netbsd*) 17599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17600 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17601 wlarc= 17602 else 17603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17605 fi 17606 ;; 17607 17608 solaris*) 17609 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17610 ld_shlibs_GCJ=no 17611 cat <<EOF 1>&2 17612 17613*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17614*** create shared libraries on Solaris systems. Therefore, libtool 17615*** is disabling shared libraries support. We urge you to upgrade GNU 17616*** binutils to release 2.9.1 or newer. Another option is to modify 17617*** your PATH or compiler configuration so that the native linker is 17618*** used, and then restart. 17619 17620EOF 17621 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17623 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17624 else 17625 ld_shlibs_GCJ=no 17626 fi 17627 ;; 17628 17629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17630 case `$LD -v 2>&1` in 17631 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17632 ld_shlibs_GCJ=no 17633 cat <<_LT_EOF 1>&2 17634 17635*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17636*** reliably create shared libraries on SCO systems. Therefore, libtool 17637*** is disabling shared libraries support. We urge you to upgrade GNU 17638*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17639*** your PATH or compiler configuration so that the native linker is 17640*** used, and then restart. 17641 17642_LT_EOF 17643 ;; 17644 *) 17645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17646 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17649 else 17650 ld_shlibs_GCJ=no 17651 fi 17652 ;; 17653 esac 17654 ;; 17655 17656 sunos4*) 17657 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17658 wlarc= 17659 hardcode_direct_GCJ=yes 17660 hardcode_shlibpath_var_GCJ=no 17661 ;; 17662 17663 *) 17664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17665 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17666 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17667 else 17668 ld_shlibs_GCJ=no 17669 fi 17670 ;; 17671 esac 17672 17673 if test "$ld_shlibs_GCJ" = no; then 17674 runpath_var= 17675 hardcode_libdir_flag_spec_GCJ= 17676 export_dynamic_flag_spec_GCJ= 17677 whole_archive_flag_spec_GCJ= 17678 fi 17679 else 17680 # PORTME fill in a description of your system's linker (not GNU ld) 17681 case $host_os in 17682 aix3*) 17683 allow_undefined_flag_GCJ=unsupported 17684 always_export_symbols_GCJ=yes 17685 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' 17686 # Note: this linker hardcodes the directories in LIBPATH if there 17687 # are no directories specified by -L. 17688 hardcode_minus_L_GCJ=yes 17689 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17690 # Neither direct hardcoding nor static linking is supported with a 17691 # broken collect2. 17692 hardcode_direct_GCJ=unsupported 17693 fi 17694 ;; 17695 17696 aix[4-9]*) 17697 if test "$host_cpu" = ia64; then 17698 # On IA64, the linker does run time linking by default, so we don't 17699 # have to do anything special. 17700 aix_use_runtimelinking=no 17701 exp_sym_flag='-Bexport' 17702 no_entry_flag="" 17703 else 17704 # If we're using GNU nm, then we don't want the "-C" option. 17705 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17706 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17707 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' 17708 else 17709 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' 17710 fi 17711 aix_use_runtimelinking=no 17712 17713 # Test if we are trying to use run time linking or normal 17714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17715 # need to do runtime linking. 17716 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17717 for ld_flag in $LDFLAGS; do 17718 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17719 aix_use_runtimelinking=yes 17720 break 17721 fi 17722 done 17723 ;; 17724 esac 17725 17726 exp_sym_flag='-bexport' 17727 no_entry_flag='-bnoentry' 17728 fi 17729 17730 # When large executables or shared objects are built, AIX ld can 17731 # have problems creating the table of contents. If linking a library 17732 # or program results in "error TOC overflow" add -mminimal-toc to 17733 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17734 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17735 17736 archive_cmds_GCJ='' 17737 hardcode_direct_GCJ=yes 17738 hardcode_libdir_separator_GCJ=':' 17739 link_all_deplibs_GCJ=yes 17740 17741 if test "$GCC" = yes; then 17742 case $host_os in aix4.[012]|aix4.[012].*) 17743 # We only want to do this on AIX 4.2 and lower, the check 17744 # below for broken collect2 doesn't work under 4.3+ 17745 collect2name=`${CC} -print-prog-name=collect2` 17746 if test -f "$collect2name" && \ 17747 strings "$collect2name" | grep resolve_lib_name >/dev/null 17748 then 17749 # We have reworked collect2 17750 : 17751 else 17752 # We have old collect2 17753 hardcode_direct_GCJ=unsupported 17754 # It fails to find uninstalled libraries when the uninstalled 17755 # path is not listed in the libpath. Setting hardcode_minus_L 17756 # to unsupported forces relinking 17757 hardcode_minus_L_GCJ=yes 17758 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17759 hardcode_libdir_separator_GCJ= 17760 fi 17761 ;; 17762 esac 17763 shared_flag='-shared' 17764 if test "$aix_use_runtimelinking" = yes; then 17765 shared_flag="$shared_flag "'${wl}-G' 17766 fi 17767 else 17768 # not using gcc 17769 if test "$host_cpu" = ia64; then 17770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17771 # chokes on -Wl,-G. The following line is correct: 17772 shared_flag='-G' 17773 else 17774 if test "$aix_use_runtimelinking" = yes; then 17775 shared_flag='${wl}-G' 17776 else 17777 shared_flag='${wl}-bM:SRE' 17778 fi 17779 fi 17780 fi 17781 17782 # It seems that -bexpall does not export symbols beginning with 17783 # underscore (_), so it is better to generate a list of symbols to export. 17784 always_export_symbols_GCJ=yes 17785 if test "$aix_use_runtimelinking" = yes; then 17786 # Warning - without using the other runtime loading flags (-brtl), 17787 # -berok will link without error, but may produce a broken library. 17788 allow_undefined_flag_GCJ='-berok' 17789 # Determine the default libpath from the value encoded in an empty executable. 17790 cat >conftest.$ac_ext <<_ACEOF 17791/* confdefs.h. */ 17792_ACEOF 17793cat confdefs.h >>conftest.$ac_ext 17794cat >>conftest.$ac_ext <<_ACEOF 17795/* end confdefs.h. */ 17796 17797int 17798main () 17799{ 17800 17801 ; 17802 return 0; 17803} 17804_ACEOF 17805rm -f conftest.$ac_objext conftest$ac_exeext 17806if { (ac_try="$ac_link" 17807case "(($ac_try" in 17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17809 *) ac_try_echo=$ac_try;; 17810esac 17811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17812$as_echo "$ac_try_echo") >&5 17813 (eval "$ac_link") 2>conftest.er1 17814 ac_status=$? 17815 grep -v '^ *+' conftest.er1 >conftest.err 17816 rm -f conftest.er1 17817 cat conftest.err >&5 17818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17819 (exit $ac_status); } && { 17820 test -z "$ac_c_werror_flag" || 17821 test ! -s conftest.err 17822 } && test -s conftest$ac_exeext && { 17823 test "$cross_compiling" = yes || 17824 $as_test_x conftest$ac_exeext 17825 }; then 17826 17827lt_aix_libpath_sed=' 17828 /Import File Strings/,/^$/ { 17829 /^0/ { 17830 s/^0 *\(.*\)$/\1/ 17831 p 17832 } 17833 }' 17834aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17835# Check for a 64-bit object if we didn't find anything. 17836if test -z "$aix_libpath"; then 17837 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17838fi 17839else 17840 $as_echo "$as_me: failed program was:" >&5 17841sed 's/^/| /' conftest.$ac_ext >&5 17842 17843 17844fi 17845 17846rm -rf conftest.dSYM 17847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17848 conftest$ac_exeext conftest.$ac_ext 17849if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17850 17851 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17852 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" 17853 else 17854 if test "$host_cpu" = ia64; then 17855 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17856 allow_undefined_flag_GCJ="-z nodefs" 17857 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" 17858 else 17859 # Determine the default libpath from the value encoded in an empty executable. 17860 cat >conftest.$ac_ext <<_ACEOF 17861/* confdefs.h. */ 17862_ACEOF 17863cat confdefs.h >>conftest.$ac_ext 17864cat >>conftest.$ac_ext <<_ACEOF 17865/* end confdefs.h. */ 17866 17867int 17868main () 17869{ 17870 17871 ; 17872 return 0; 17873} 17874_ACEOF 17875rm -f conftest.$ac_objext conftest$ac_exeext 17876if { (ac_try="$ac_link" 17877case "(($ac_try" in 17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17879 *) ac_try_echo=$ac_try;; 17880esac 17881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17882$as_echo "$ac_try_echo") >&5 17883 (eval "$ac_link") 2>conftest.er1 17884 ac_status=$? 17885 grep -v '^ *+' conftest.er1 >conftest.err 17886 rm -f conftest.er1 17887 cat conftest.err >&5 17888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17889 (exit $ac_status); } && { 17890 test -z "$ac_c_werror_flag" || 17891 test ! -s conftest.err 17892 } && test -s conftest$ac_exeext && { 17893 test "$cross_compiling" = yes || 17894 $as_test_x conftest$ac_exeext 17895 }; then 17896 17897lt_aix_libpath_sed=' 17898 /Import File Strings/,/^$/ { 17899 /^0/ { 17900 s/^0 *\(.*\)$/\1/ 17901 p 17902 } 17903 }' 17904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17905# Check for a 64-bit object if we didn't find anything. 17906if test -z "$aix_libpath"; then 17907 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17908fi 17909else 17910 $as_echo "$as_me: failed program was:" >&5 17911sed 's/^/| /' conftest.$ac_ext >&5 17912 17913 17914fi 17915 17916rm -rf conftest.dSYM 17917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17918 conftest$ac_exeext conftest.$ac_ext 17919if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17920 17921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17922 # Warning - without using the other run time loading flags, 17923 # -berok will link without error, but may produce a broken library. 17924 no_undefined_flag_GCJ=' ${wl}-bernotok' 17925 allow_undefined_flag_GCJ=' ${wl}-berok' 17926 # Exported symbols can be pulled into shared objects from archives 17927 whole_archive_flag_spec_GCJ='$convenience' 17928 archive_cmds_need_lc_GCJ=yes 17929 # This is similar to how AIX traditionally builds its shared libraries. 17930 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' 17931 fi 17932 fi 17933 ;; 17934 17935 amigaos*) 17936 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)' 17937 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17938 hardcode_minus_L_GCJ=yes 17939 # see comment about different semantics on the GNU ld section 17940 ld_shlibs_GCJ=no 17941 ;; 17942 17943 bsdi[45]*) 17944 export_dynamic_flag_spec_GCJ=-rdynamic 17945 ;; 17946 17947 cygwin* | mingw* | pw32*) 17948 # When not using gcc, we currently assume that we are using 17949 # Microsoft Visual C++. 17950 # hardcode_libdir_flag_spec is actually meaningless, as there is 17951 # no search path for DLLs. 17952 hardcode_libdir_flag_spec_GCJ=' ' 17953 allow_undefined_flag_GCJ=unsupported 17954 # Tell ltmain to make .lib files, not .a files. 17955 libext=lib 17956 # Tell ltmain to make .dll files, not .so files. 17957 shrext_cmds=".dll" 17958 # FIXME: Setting linknames here is a bad hack. 17959 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17960 # The linker will automatically build a .lib file if we build a DLL. 17961 old_archive_From_new_cmds_GCJ='true' 17962 # FIXME: Should let the user specify the lib program. 17963 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17964 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17965 enable_shared_with_static_runtimes_GCJ=yes 17966 ;; 17967 17968 darwin* | rhapsody*) 17969 case $host_os in 17970 rhapsody* | darwin1.[012]) 17971 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17972 ;; 17973 *) # Darwin 1.3 on 17974 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17975 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17976 else 17977 case ${MACOSX_DEPLOYMENT_TARGET} in 17978 10.[012]) 17979 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17980 ;; 17981 10.*) 17982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17983 ;; 17984 esac 17985 fi 17986 ;; 17987 esac 17988 archive_cmds_need_lc_GCJ=no 17989 hardcode_direct_GCJ=no 17990 hardcode_automatic_GCJ=yes 17991 hardcode_shlibpath_var_GCJ=unsupported 17992 whole_archive_flag_spec_GCJ='' 17993 link_all_deplibs_GCJ=yes 17994 if test "$GCC" = yes ; then 17995 output_verbose_link_cmd='echo' 17996 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}" 17997 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17998 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}" 17999 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}" 18000 else 18001 case $cc_basename in 18002 xlc*) 18003 output_verbose_link_cmd='echo' 18004 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18005 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18007 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}' 18008 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}' 18009 ;; 18010 *) 18011 ld_shlibs_GCJ=no 18012 ;; 18013 esac 18014 fi 18015 ;; 18016 18017 dgux*) 18018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18019 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18020 hardcode_shlibpath_var_GCJ=no 18021 ;; 18022 18023 freebsd1*) 18024 ld_shlibs_GCJ=no 18025 ;; 18026 18027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18028 # support. Future versions do this automatically, but an explicit c++rt0.o 18029 # does not break anything, and helps significantly (at the cost of a little 18030 # extra space). 18031 freebsd2.2*) 18032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18033 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18034 hardcode_direct_GCJ=yes 18035 hardcode_shlibpath_var_GCJ=no 18036 ;; 18037 18038 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18039 freebsd2*) 18040 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18041 hardcode_direct_GCJ=yes 18042 hardcode_minus_L_GCJ=yes 18043 hardcode_shlibpath_var_GCJ=no 18044 ;; 18045 18046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18047 freebsd* | dragonfly*) 18048 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18049 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18050 hardcode_direct_GCJ=yes 18051 hardcode_shlibpath_var_GCJ=no 18052 ;; 18053 18054 hpux9*) 18055 if test "$GCC" = yes; then 18056 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' 18057 else 18058 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' 18059 fi 18060 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18061 hardcode_libdir_separator_GCJ=: 18062 hardcode_direct_GCJ=yes 18063 18064 # hardcode_minus_L: Not really in the search PATH, 18065 # but as the default location of the library. 18066 hardcode_minus_L_GCJ=yes 18067 export_dynamic_flag_spec_GCJ='${wl}-E' 18068 ;; 18069 18070 hpux10*) 18071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18072 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18073 else 18074 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18075 fi 18076 if test "$with_gnu_ld" = no; then 18077 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18078 hardcode_libdir_separator_GCJ=: 18079 18080 hardcode_direct_GCJ=yes 18081 export_dynamic_flag_spec_GCJ='${wl}-E' 18082 18083 # hardcode_minus_L: Not really in the search PATH, 18084 # but as the default location of the library. 18085 hardcode_minus_L_GCJ=yes 18086 fi 18087 ;; 18088 18089 hpux11*) 18090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18091 case $host_cpu in 18092 hppa*64*) 18093 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18094 ;; 18095 ia64*) 18096 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18097 ;; 18098 *) 18099 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18100 ;; 18101 esac 18102 else 18103 case $host_cpu in 18104 hppa*64*) 18105 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18106 ;; 18107 ia64*) 18108 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18109 ;; 18110 *) 18111 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18112 ;; 18113 esac 18114 fi 18115 if test "$with_gnu_ld" = no; then 18116 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18117 hardcode_libdir_separator_GCJ=: 18118 18119 case $host_cpu in 18120 hppa*64*|ia64*) 18121 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18122 hardcode_direct_GCJ=no 18123 hardcode_shlibpath_var_GCJ=no 18124 ;; 18125 *) 18126 hardcode_direct_GCJ=yes 18127 export_dynamic_flag_spec_GCJ='${wl}-E' 18128 18129 # hardcode_minus_L: Not really in the search PATH, 18130 # but as the default location of the library. 18131 hardcode_minus_L_GCJ=yes 18132 ;; 18133 esac 18134 fi 18135 ;; 18136 18137 irix5* | irix6* | nonstopux*) 18138 if test "$GCC" = yes; then 18139 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' 18140 else 18141 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' 18142 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18143 fi 18144 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18145 hardcode_libdir_separator_GCJ=: 18146 link_all_deplibs_GCJ=yes 18147 ;; 18148 18149 netbsd*) 18150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18151 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18152 else 18153 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18154 fi 18155 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18156 hardcode_direct_GCJ=yes 18157 hardcode_shlibpath_var_GCJ=no 18158 ;; 18159 18160 newsos6) 18161 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18162 hardcode_direct_GCJ=yes 18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18164 hardcode_libdir_separator_GCJ=: 18165 hardcode_shlibpath_var_GCJ=no 18166 ;; 18167 18168 openbsd*) 18169 if test -f /usr/libexec/ld.so; then 18170 hardcode_direct_GCJ=yes 18171 hardcode_shlibpath_var_GCJ=no 18172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18173 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18174 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18175 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18176 export_dynamic_flag_spec_GCJ='${wl}-E' 18177 else 18178 case $host_os in 18179 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18181 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18182 ;; 18183 *) 18184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18186 ;; 18187 esac 18188 fi 18189 else 18190 ld_shlibs_GCJ=no 18191 fi 18192 ;; 18193 18194 os2*) 18195 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18196 hardcode_minus_L_GCJ=yes 18197 allow_undefined_flag_GCJ=unsupported 18198 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' 18199 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18200 ;; 18201 18202 osf3*) 18203 if test "$GCC" = yes; then 18204 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18205 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' 18206 else 18207 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18208 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' 18209 fi 18210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18211 hardcode_libdir_separator_GCJ=: 18212 ;; 18213 18214 osf4* | osf5*) # as osf3* with the addition of -msym flag 18215 if test "$GCC" = yes; then 18216 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18217 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' 18218 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18219 else 18220 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18221 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' 18222 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~ 18223 $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' 18224 18225 # Both c and cxx compiler support -rpath directly 18226 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18227 fi 18228 hardcode_libdir_separator_GCJ=: 18229 ;; 18230 18231 solaris*) 18232 no_undefined_flag_GCJ=' -z text' 18233 if test "$GCC" = yes; then 18234 wlarc='${wl}' 18235 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18237 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18238 else 18239 wlarc='' 18240 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18241 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18243 fi 18244 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18245 hardcode_shlibpath_var_GCJ=no 18246 case $host_os in 18247 solaris2.[0-5] | solaris2.[0-5].*) ;; 18248 *) 18249 # The compiler driver will combine and reorder linker options, 18250 # but understands `-z linker_flag'. GCC discards it without `$wl', 18251 # but is careful enough not to reorder. 18252 # Supported since Solaris 2.6 (maybe 2.5.1?) 18253 if test "$GCC" = yes; then 18254 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18255 else 18256 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18257 fi 18258 ;; 18259 esac 18260 link_all_deplibs_GCJ=yes 18261 ;; 18262 18263 sunos4*) 18264 if test "x$host_vendor" = xsequent; then 18265 # Use $CC to link under sequent, because it throws in some extra .o 18266 # files that make .init and .fini sections work. 18267 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18268 else 18269 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18270 fi 18271 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18272 hardcode_direct_GCJ=yes 18273 hardcode_minus_L_GCJ=yes 18274 hardcode_shlibpath_var_GCJ=no 18275 ;; 18276 18277 sysv4) 18278 case $host_vendor in 18279 sni) 18280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18281 hardcode_direct_GCJ=yes # is this really true??? 18282 ;; 18283 siemens) 18284 ## LD is ld it makes a PLAMLIB 18285 ## CC just makes a GrossModule. 18286 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18287 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18288 hardcode_direct_GCJ=no 18289 ;; 18290 motorola) 18291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18292 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18293 ;; 18294 esac 18295 runpath_var='LD_RUN_PATH' 18296 hardcode_shlibpath_var_GCJ=no 18297 ;; 18298 18299 sysv4.3*) 18300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18301 hardcode_shlibpath_var_GCJ=no 18302 export_dynamic_flag_spec_GCJ='-Bexport' 18303 ;; 18304 18305 sysv4*MP*) 18306 if test -d /usr/nec; then 18307 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18308 hardcode_shlibpath_var_GCJ=no 18309 runpath_var=LD_RUN_PATH 18310 hardcode_runpath_var=yes 18311 ld_shlibs_GCJ=yes 18312 fi 18313 ;; 18314 18315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18316 no_undefined_flag_GCJ='${wl}-z,text' 18317 archive_cmds_need_lc_GCJ=no 18318 hardcode_shlibpath_var_GCJ=no 18319 runpath_var='LD_RUN_PATH' 18320 18321 if test "$GCC" = yes; then 18322 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18323 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18324 else 18325 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18326 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18327 fi 18328 ;; 18329 18330 sysv5* | sco3.2v5* | sco5v6*) 18331 # Note: We can NOT use -z defs as we might desire, because we do not 18332 # link with -lc, and that would cause any symbols used from libc to 18333 # always be unresolved, which means just about no library would 18334 # ever link correctly. If we're not using GNU ld we use -z text 18335 # though, which does catch some bad symbols but isn't as heavy-handed 18336 # as -z defs. 18337 no_undefined_flag_GCJ='${wl}-z,text' 18338 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18339 archive_cmds_need_lc_GCJ=no 18340 hardcode_shlibpath_var_GCJ=no 18341 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18342 hardcode_libdir_separator_GCJ=':' 18343 link_all_deplibs_GCJ=yes 18344 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18345 runpath_var='LD_RUN_PATH' 18346 18347 if test "$GCC" = yes; then 18348 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18349 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18350 else 18351 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18352 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18353 fi 18354 ;; 18355 18356 uts4*) 18357 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18358 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18359 hardcode_shlibpath_var_GCJ=no 18360 ;; 18361 18362 *) 18363 ld_shlibs_GCJ=no 18364 ;; 18365 esac 18366 fi 18367 18368{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18369$as_echo "$ld_shlibs_GCJ" >&6; } 18370test "$ld_shlibs_GCJ" = no && can_build_shared=no 18371 18372# 18373# Do we need to explicitly link libc? 18374# 18375case "x$archive_cmds_need_lc_GCJ" in 18376x|xyes) 18377 # Assume -lc should be added 18378 archive_cmds_need_lc_GCJ=yes 18379 18380 if test "$enable_shared" = yes && test "$GCC" = yes; then 18381 case $archive_cmds_GCJ in 18382 *'~'*) 18383 # FIXME: we may have to deal with multi-command sequences. 18384 ;; 18385 '$CC '*) 18386 # Test whether the compiler implicitly links with -lc since on some 18387 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18388 # to ld, don't add -lc before -lgcc. 18389 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18390$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18391 $rm conftest* 18392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18393 18394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18395 (eval $ac_compile) 2>&5 18396 ac_status=$? 18397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18398 (exit $ac_status); } 2>conftest.err; then 18399 soname=conftest 18400 lib=conftest 18401 libobjs=conftest.$ac_objext 18402 deplibs= 18403 wl=$lt_prog_compiler_wl_GCJ 18404 pic_flag=$lt_prog_compiler_pic_GCJ 18405 compiler_flags=-v 18406 linker_flags=-v 18407 verstring= 18408 output_objdir=. 18409 libname=conftest 18410 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18411 allow_undefined_flag_GCJ= 18412 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18413 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18414 ac_status=$? 18415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18416 (exit $ac_status); } 18417 then 18418 archive_cmds_need_lc_GCJ=no 18419 else 18420 archive_cmds_need_lc_GCJ=yes 18421 fi 18422 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18423 else 18424 cat conftest.err 1>&5 18425 fi 18426 $rm conftest* 18427 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18428$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18429 ;; 18430 esac 18431 fi 18432 ;; 18433esac 18434 18435{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18436$as_echo_n "checking dynamic linker characteristics... " >&6; } 18437library_names_spec= 18438libname_spec='lib$name' 18439soname_spec= 18440shrext_cmds=".so" 18441postinstall_cmds= 18442postuninstall_cmds= 18443finish_cmds= 18444finish_eval= 18445shlibpath_var= 18446shlibpath_overrides_runpath=unknown 18447version_type=none 18448dynamic_linker="$host_os ld.so" 18449sys_lib_dlsearch_path_spec="/lib /usr/lib" 18450 18451need_lib_prefix=unknown 18452hardcode_into_libs=no 18453 18454# when you set need_version to no, make sure it does not cause -set_version 18455# flags to be left without arguments 18456need_version=unknown 18457 18458case $host_os in 18459aix3*) 18460 version_type=linux 18461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18462 shlibpath_var=LIBPATH 18463 18464 # AIX 3 has no versioning support, so we append a major version to the name. 18465 soname_spec='${libname}${release}${shared_ext}$major' 18466 ;; 18467 18468aix[4-9]*) 18469 version_type=linux 18470 need_lib_prefix=no 18471 need_version=no 18472 hardcode_into_libs=yes 18473 if test "$host_cpu" = ia64; then 18474 # AIX 5 supports IA64 18475 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18476 shlibpath_var=LD_LIBRARY_PATH 18477 else 18478 # With GCC up to 2.95.x, collect2 would create an import file 18479 # for dependence libraries. The import file would start with 18480 # the line `#! .'. This would cause the generated library to 18481 # depend on `.', always an invalid library. This was fixed in 18482 # development snapshots of GCC prior to 3.0. 18483 case $host_os in 18484 aix4 | aix4.[01] | aix4.[01].*) 18485 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18486 echo ' yes ' 18487 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18488 : 18489 else 18490 can_build_shared=no 18491 fi 18492 ;; 18493 esac 18494 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18495 # soname into executable. Probably we can add versioning support to 18496 # collect2, so additional links can be useful in future. 18497 if test "$aix_use_runtimelinking" = yes; then 18498 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18499 # instead of lib<name>.a to let people know that these are not 18500 # typical AIX shared libraries. 18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18502 else 18503 # We preserve .a as extension for shared libraries through AIX4.2 18504 # and later when we are not doing run time linking. 18505 library_names_spec='${libname}${release}.a $libname.a' 18506 soname_spec='${libname}${release}${shared_ext}$major' 18507 fi 18508 shlibpath_var=LIBPATH 18509 fi 18510 ;; 18511 18512amigaos*) 18513 library_names_spec='$libname.ixlibrary $libname.a' 18514 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18515 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' 18516 ;; 18517 18518beos*) 18519 library_names_spec='${libname}${shared_ext}' 18520 dynamic_linker="$host_os ld.so" 18521 shlibpath_var=LIBRARY_PATH 18522 ;; 18523 18524bsdi[45]*) 18525 version_type=linux 18526 need_version=no 18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18528 soname_spec='${libname}${release}${shared_ext}$major' 18529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18530 shlibpath_var=LD_LIBRARY_PATH 18531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18533 # the default ld.so.conf also contains /usr/contrib/lib and 18534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18535 # libtool to hard-code these into programs 18536 ;; 18537 18538cygwin* | mingw* | pw32*) 18539 version_type=windows 18540 shrext_cmds=".dll" 18541 need_version=no 18542 need_lib_prefix=no 18543 18544 case $GCC,$host_os in 18545 yes,cygwin* | yes,mingw* | yes,pw32*) 18546 library_names_spec='$libname.dll.a' 18547 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18548 postinstall_cmds='base_file=`basename \${file}`~ 18549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18550 dldir=$destdir/`dirname \$dlpath`~ 18551 test -d \$dldir || mkdir -p \$dldir~ 18552 $install_prog $dir/$dlname \$dldir/$dlname~ 18553 chmod a+x \$dldir/$dlname' 18554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18555 dlpath=$dir/\$dldll~ 18556 $rm \$dlpath' 18557 shlibpath_overrides_runpath=yes 18558 18559 case $host_os in 18560 cygwin*) 18561 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18562 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18563 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18564 ;; 18565 mingw*) 18566 # MinGW DLLs use traditional 'lib' prefix 18567 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18569 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18570 # It is most probably a Windows format PATH printed by 18571 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18572 # path with ; separators, and with drive letters. We can handle the 18573 # drive letters (cygwin fileutils understands them), so leave them, 18574 # especially as we might pass files found there to a mingw objdump, 18575 # which wouldn't understand a cygwinified path. Ahh. 18576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18577 else 18578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18579 fi 18580 ;; 18581 pw32*) 18582 # pw32 DLLs use 'pw' prefix rather than 'lib' 18583 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18584 ;; 18585 esac 18586 ;; 18587 18588 *) 18589 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18590 ;; 18591 esac 18592 dynamic_linker='Win32 ld.exe' 18593 # FIXME: first we should search . and the directory the executable is in 18594 shlibpath_var=PATH 18595 ;; 18596 18597darwin* | rhapsody*) 18598 dynamic_linker="$host_os dyld" 18599 version_type=darwin 18600 need_lib_prefix=no 18601 need_version=no 18602 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18603 soname_spec='${libname}${release}${major}$shared_ext' 18604 shlibpath_overrides_runpath=yes 18605 shlibpath_var=DYLD_LIBRARY_PATH 18606 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18607 18608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18609 ;; 18610 18611dgux*) 18612 version_type=linux 18613 need_lib_prefix=no 18614 need_version=no 18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18616 soname_spec='${libname}${release}${shared_ext}$major' 18617 shlibpath_var=LD_LIBRARY_PATH 18618 ;; 18619 18620freebsd1*) 18621 dynamic_linker=no 18622 ;; 18623 18624freebsd* | dragonfly*) 18625 # DragonFly does not have aout. When/if they implement a new 18626 # versioning mechanism, adjust this. 18627 if test -x /usr/bin/objformat; then 18628 objformat=`/usr/bin/objformat` 18629 else 18630 case $host_os in 18631 freebsd[123]*) objformat=aout ;; 18632 *) objformat=elf ;; 18633 esac 18634 fi 18635 version_type=freebsd-$objformat 18636 case $version_type in 18637 freebsd-elf*) 18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18639 need_version=no 18640 need_lib_prefix=no 18641 ;; 18642 freebsd-*) 18643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18644 need_version=yes 18645 ;; 18646 esac 18647 shlibpath_var=LD_LIBRARY_PATH 18648 case $host_os in 18649 freebsd2*) 18650 shlibpath_overrides_runpath=yes 18651 ;; 18652 freebsd3.[01]* | freebsdelf3.[01]*) 18653 shlibpath_overrides_runpath=yes 18654 hardcode_into_libs=yes 18655 ;; 18656 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18657 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18658 shlibpath_overrides_runpath=no 18659 hardcode_into_libs=yes 18660 ;; 18661 *) # from 4.6 on, and DragonFly 18662 shlibpath_overrides_runpath=yes 18663 hardcode_into_libs=yes 18664 ;; 18665 esac 18666 ;; 18667 18668gnu*) 18669 version_type=linux 18670 need_lib_prefix=no 18671 need_version=no 18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18673 soname_spec='${libname}${release}${shared_ext}$major' 18674 shlibpath_var=LD_LIBRARY_PATH 18675 hardcode_into_libs=yes 18676 ;; 18677 18678hpux9* | hpux10* | hpux11*) 18679 # Give a soname corresponding to the major version so that dld.sl refuses to 18680 # link against other versions. 18681 version_type=sunos 18682 need_lib_prefix=no 18683 need_version=no 18684 case $host_cpu in 18685 ia64*) 18686 shrext_cmds='.so' 18687 hardcode_into_libs=yes 18688 dynamic_linker="$host_os dld.so" 18689 shlibpath_var=LD_LIBRARY_PATH 18690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18692 soname_spec='${libname}${release}${shared_ext}$major' 18693 if test "X$HPUX_IA64_MODE" = X32; then 18694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18695 else 18696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18697 fi 18698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18699 ;; 18700 hppa*64*) 18701 shrext_cmds='.sl' 18702 hardcode_into_libs=yes 18703 dynamic_linker="$host_os dld.sl" 18704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18707 soname_spec='${libname}${release}${shared_ext}$major' 18708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18710 ;; 18711 *) 18712 shrext_cmds='.sl' 18713 dynamic_linker="$host_os dld.sl" 18714 shlibpath_var=SHLIB_PATH 18715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18717 soname_spec='${libname}${release}${shared_ext}$major' 18718 ;; 18719 esac 18720 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18721 postinstall_cmds='chmod 555 $lib' 18722 ;; 18723 18724interix[3-9]*) 18725 version_type=linux 18726 need_lib_prefix=no 18727 need_version=no 18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18729 soname_spec='${libname}${release}${shared_ext}$major' 18730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18731 shlibpath_var=LD_LIBRARY_PATH 18732 shlibpath_overrides_runpath=no 18733 hardcode_into_libs=yes 18734 ;; 18735 18736irix5* | irix6* | nonstopux*) 18737 case $host_os in 18738 nonstopux*) version_type=nonstopux ;; 18739 *) 18740 if test "$lt_cv_prog_gnu_ld" = yes; then 18741 version_type=linux 18742 else 18743 version_type=irix 18744 fi ;; 18745 esac 18746 need_lib_prefix=no 18747 need_version=no 18748 soname_spec='${libname}${release}${shared_ext}$major' 18749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18750 case $host_os in 18751 irix5* | nonstopux*) 18752 libsuff= shlibsuff= 18753 ;; 18754 *) 18755 case $LD in # libtool.m4 will add one of these switches to LD 18756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18757 libsuff= shlibsuff= libmagic=32-bit;; 18758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18759 libsuff=32 shlibsuff=N32 libmagic=N32;; 18760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18761 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18762 *) libsuff= shlibsuff= libmagic=never-match;; 18763 esac 18764 ;; 18765 esac 18766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18767 shlibpath_overrides_runpath=no 18768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18770 hardcode_into_libs=yes 18771 ;; 18772 18773# No shared lib support for Linux oldld, aout, or coff. 18774linux*oldld* | linux*aout* | linux*coff*) 18775 dynamic_linker=no 18776 ;; 18777 18778# This must be Linux ELF. 18779linux* | k*bsd*-gnu) 18780 version_type=linux 18781 need_lib_prefix=no 18782 need_version=no 18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18784 soname_spec='${libname}${release}${shared_ext}$major' 18785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18786 shlibpath_var=LD_LIBRARY_PATH 18787 shlibpath_overrides_runpath=no 18788 # This implies no fast_install, which is unacceptable. 18789 # Some rework will be needed to allow for fast_install 18790 # before this can be enabled. 18791 hardcode_into_libs=yes 18792 18793 # Append ld.so.conf contents to the search path 18794 if test -f /etc/ld.so.conf; then 18795 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' ' '` 18796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18797 fi 18798 18799 # We used to test for /lib/ld.so.1 and disable shared libraries on 18800 # powerpc, because MkLinux only supported shared libraries with the 18801 # GNU dynamic linker. Since this was broken with cross compilers, 18802 # most powerpc-linux boxes support dynamic linking these days and 18803 # people can always --disable-shared, the test was removed, and we 18804 # assume the GNU/Linux dynamic linker is in use. 18805 dynamic_linker='GNU/Linux ld.so' 18806 ;; 18807 18808netbsd*) 18809 version_type=sunos 18810 need_lib_prefix=no 18811 need_version=no 18812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18815 dynamic_linker='NetBSD (a.out) ld.so' 18816 else 18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18818 soname_spec='${libname}${release}${shared_ext}$major' 18819 dynamic_linker='NetBSD ld.elf_so' 18820 fi 18821 shlibpath_var=LD_LIBRARY_PATH 18822 shlibpath_overrides_runpath=yes 18823 hardcode_into_libs=yes 18824 ;; 18825 18826newsos6) 18827 version_type=linux 18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18829 shlibpath_var=LD_LIBRARY_PATH 18830 shlibpath_overrides_runpath=yes 18831 ;; 18832 18833nto-qnx*) 18834 version_type=linux 18835 need_lib_prefix=no 18836 need_version=no 18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18838 soname_spec='${libname}${release}${shared_ext}$major' 18839 shlibpath_var=LD_LIBRARY_PATH 18840 shlibpath_overrides_runpath=yes 18841 ;; 18842 18843openbsd*) 18844 version_type=sunos 18845 sys_lib_dlsearch_path_spec="/usr/lib" 18846 need_lib_prefix=no 18847 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18848 case $host_os in 18849 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18850 *) need_version=no ;; 18851 esac 18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18854 shlibpath_var=LD_LIBRARY_PATH 18855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18856 case $host_os in 18857 openbsd2.[89] | openbsd2.[89].*) 18858 shlibpath_overrides_runpath=no 18859 ;; 18860 *) 18861 shlibpath_overrides_runpath=yes 18862 ;; 18863 esac 18864 else 18865 shlibpath_overrides_runpath=yes 18866 fi 18867 ;; 18868 18869os2*) 18870 libname_spec='$name' 18871 shrext_cmds=".dll" 18872 need_lib_prefix=no 18873 library_names_spec='$libname${shared_ext} $libname.a' 18874 dynamic_linker='OS/2 ld.exe' 18875 shlibpath_var=LIBPATH 18876 ;; 18877 18878osf3* | osf4* | osf5*) 18879 version_type=osf 18880 need_lib_prefix=no 18881 need_version=no 18882 soname_spec='${libname}${release}${shared_ext}$major' 18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18884 shlibpath_var=LD_LIBRARY_PATH 18885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18886 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18887 ;; 18888 18889rdos*) 18890 dynamic_linker=no 18891 ;; 18892 18893solaris*) 18894 version_type=linux 18895 need_lib_prefix=no 18896 need_version=no 18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18898 soname_spec='${libname}${release}${shared_ext}$major' 18899 shlibpath_var=LD_LIBRARY_PATH 18900 shlibpath_overrides_runpath=yes 18901 hardcode_into_libs=yes 18902 # ldd complains unless libraries are executable 18903 postinstall_cmds='chmod +x $lib' 18904 ;; 18905 18906sunos4*) 18907 version_type=sunos 18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18910 shlibpath_var=LD_LIBRARY_PATH 18911 shlibpath_overrides_runpath=yes 18912 if test "$with_gnu_ld" = yes; then 18913 need_lib_prefix=no 18914 fi 18915 need_version=yes 18916 ;; 18917 18918sysv4 | sysv4.3*) 18919 version_type=linux 18920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18921 soname_spec='${libname}${release}${shared_ext}$major' 18922 shlibpath_var=LD_LIBRARY_PATH 18923 case $host_vendor in 18924 sni) 18925 shlibpath_overrides_runpath=no 18926 need_lib_prefix=no 18927 export_dynamic_flag_spec='${wl}-Blargedynsym' 18928 runpath_var=LD_RUN_PATH 18929 ;; 18930 siemens) 18931 need_lib_prefix=no 18932 ;; 18933 motorola) 18934 need_lib_prefix=no 18935 need_version=no 18936 shlibpath_overrides_runpath=no 18937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18938 ;; 18939 esac 18940 ;; 18941 18942sysv4*MP*) 18943 if test -d /usr/nec ;then 18944 version_type=linux 18945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18946 soname_spec='$libname${shared_ext}.$major' 18947 shlibpath_var=LD_LIBRARY_PATH 18948 fi 18949 ;; 18950 18951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18952 version_type=freebsd-elf 18953 need_lib_prefix=no 18954 need_version=no 18955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18956 soname_spec='${libname}${release}${shared_ext}$major' 18957 shlibpath_var=LD_LIBRARY_PATH 18958 hardcode_into_libs=yes 18959 if test "$with_gnu_ld" = yes; then 18960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18961 shlibpath_overrides_runpath=no 18962 else 18963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18964 shlibpath_overrides_runpath=yes 18965 case $host_os in 18966 sco3.2v5*) 18967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18968 ;; 18969 esac 18970 fi 18971 sys_lib_dlsearch_path_spec='/usr/lib' 18972 ;; 18973 18974uts4*) 18975 version_type=linux 18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18977 soname_spec='${libname}${release}${shared_ext}$major' 18978 shlibpath_var=LD_LIBRARY_PATH 18979 ;; 18980 18981*) 18982 dynamic_linker=no 18983 ;; 18984esac 18985{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18986$as_echo "$dynamic_linker" >&6; } 18987test "$dynamic_linker" = no && can_build_shared=no 18988 18989if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18990 $as_echo_n "(cached) " >&6 18991else 18992 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18993fi 18994 18995sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18996if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18997 $as_echo_n "(cached) " >&6 18998else 18999 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19000fi 19001 19002sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19003 19004variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19005if test "$GCC" = yes; then 19006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19007fi 19008 19009{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19010$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19011hardcode_action_GCJ= 19012if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19013 test -n "$runpath_var_GCJ" || \ 19014 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19015 19016 # We can hardcode non-existant directories. 19017 if test "$hardcode_direct_GCJ" != no && 19018 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19019 # have to relink, otherwise we might link with an installed library 19020 # when we should be linking with a yet-to-be-installed one 19021 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19022 test "$hardcode_minus_L_GCJ" != no; then 19023 # Linking always hardcodes the temporary library directory. 19024 hardcode_action_GCJ=relink 19025 else 19026 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19027 hardcode_action_GCJ=immediate 19028 fi 19029else 19030 # We cannot hardcode anything, or else we can only hardcode existing 19031 # directories. 19032 hardcode_action_GCJ=unsupported 19033fi 19034{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19035$as_echo "$hardcode_action_GCJ" >&6; } 19036 19037if test "$hardcode_action_GCJ" = relink; then 19038 # Fast installation is not supported 19039 enable_fast_install=no 19040elif test "$shlibpath_overrides_runpath" = yes || 19041 test "$enable_shared" = no; then 19042 # Fast installation is not necessary 19043 enable_fast_install=needless 19044fi 19045 19046 19047# The else clause should only fire when bootstrapping the 19048# libtool distribution, otherwise you forgot to ship ltmain.sh 19049# with your package, and you will get complaints that there are 19050# no rules to generate ltmain.sh. 19051if test -f "$ltmain"; then 19052 # See if we are running on zsh, and set the options which allow our commands through 19053 # without removal of \ escapes. 19054 if test -n "${ZSH_VERSION+set}" ; then 19055 setopt NO_GLOB_SUBST 19056 fi 19057 # Now quote all the things that may contain metacharacters while being 19058 # careful not to overquote the AC_SUBSTed values. We take copies of the 19059 # variables and quote the copies for generation of the libtool script. 19060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19061 SED SHELL STRIP \ 19062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19064 deplibs_check_method reload_flag reload_cmds need_locks \ 19065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19066 lt_cv_sys_global_symbol_to_c_name_address \ 19067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19068 old_postinstall_cmds old_postuninstall_cmds \ 19069 compiler_GCJ \ 19070 CC_GCJ \ 19071 LD_GCJ \ 19072 lt_prog_compiler_wl_GCJ \ 19073 lt_prog_compiler_pic_GCJ \ 19074 lt_prog_compiler_static_GCJ \ 19075 lt_prog_compiler_no_builtin_flag_GCJ \ 19076 export_dynamic_flag_spec_GCJ \ 19077 thread_safe_flag_spec_GCJ \ 19078 whole_archive_flag_spec_GCJ \ 19079 enable_shared_with_static_runtimes_GCJ \ 19080 old_archive_cmds_GCJ \ 19081 old_archive_from_new_cmds_GCJ \ 19082 predep_objects_GCJ \ 19083 postdep_objects_GCJ \ 19084 predeps_GCJ \ 19085 postdeps_GCJ \ 19086 compiler_lib_search_path_GCJ \ 19087 compiler_lib_search_dirs_GCJ \ 19088 archive_cmds_GCJ \ 19089 archive_expsym_cmds_GCJ \ 19090 postinstall_cmds_GCJ \ 19091 postuninstall_cmds_GCJ \ 19092 old_archive_from_expsyms_cmds_GCJ \ 19093 allow_undefined_flag_GCJ \ 19094 no_undefined_flag_GCJ \ 19095 export_symbols_cmds_GCJ \ 19096 hardcode_libdir_flag_spec_GCJ \ 19097 hardcode_libdir_flag_spec_ld_GCJ \ 19098 hardcode_libdir_separator_GCJ \ 19099 hardcode_automatic_GCJ \ 19100 module_cmds_GCJ \ 19101 module_expsym_cmds_GCJ \ 19102 lt_cv_prog_compiler_c_o_GCJ \ 19103 fix_srcfile_path_GCJ \ 19104 exclude_expsyms_GCJ \ 19105 include_expsyms_GCJ; do 19106 19107 case $var in 19108 old_archive_cmds_GCJ | \ 19109 old_archive_from_new_cmds_GCJ | \ 19110 archive_cmds_GCJ | \ 19111 archive_expsym_cmds_GCJ | \ 19112 module_cmds_GCJ | \ 19113 module_expsym_cmds_GCJ | \ 19114 old_archive_from_expsyms_cmds_GCJ | \ 19115 export_symbols_cmds_GCJ | \ 19116 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19117 postinstall_cmds | postuninstall_cmds | \ 19118 old_postinstall_cmds | old_postuninstall_cmds | \ 19119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19120 # Double-quote double-evaled strings. 19121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19122 ;; 19123 *) 19124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19125 ;; 19126 esac 19127 done 19128 19129 case $lt_echo in 19130 *'\$0 --fallback-echo"') 19131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19132 ;; 19133 esac 19134 19135cfgfile="$ofile" 19136 19137 cat <<__EOF__ >> "$cfgfile" 19138# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19139 19140# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19141 19142# Shell to use when invoking shell scripts. 19143SHELL=$lt_SHELL 19144 19145# Whether or not to build shared libraries. 19146build_libtool_libs=$enable_shared 19147 19148# Whether or not to build static libraries. 19149build_old_libs=$enable_static 19150 19151# Whether or not to add -lc for building shared libraries. 19152build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19153 19154# Whether or not to disallow shared libs when runtime libs are static 19155allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19156 19157# Whether or not to optimize for fast installation. 19158fast_install=$enable_fast_install 19159 19160# The host system. 19161host_alias=$host_alias 19162host=$host 19163host_os=$host_os 19164 19165# The build system. 19166build_alias=$build_alias 19167build=$build 19168build_os=$build_os 19169 19170# An echo program that does not interpret backslashes. 19171echo=$lt_echo 19172 19173# The archiver. 19174AR=$lt_AR 19175AR_FLAGS=$lt_AR_FLAGS 19176 19177# A C compiler. 19178LTCC=$lt_LTCC 19179 19180# LTCC compiler flags. 19181LTCFLAGS=$lt_LTCFLAGS 19182 19183# A language-specific compiler. 19184CC=$lt_compiler_GCJ 19185 19186# Is the compiler the GNU C compiler? 19187with_gcc=$GCC_GCJ 19188 19189# An ERE matcher. 19190EGREP=$lt_EGREP 19191 19192# The linker used to build libraries. 19193LD=$lt_LD_GCJ 19194 19195# Whether we need hard or soft links. 19196LN_S=$lt_LN_S 19197 19198# A BSD-compatible nm program. 19199NM=$lt_NM 19200 19201# A symbol stripping program 19202STRIP=$lt_STRIP 19203 19204# Used to examine libraries when file_magic_cmd begins "file" 19205MAGIC_CMD=$MAGIC_CMD 19206 19207# Used on cygwin: DLL creation program. 19208DLLTOOL="$DLLTOOL" 19209 19210# Used on cygwin: object dumper. 19211OBJDUMP="$OBJDUMP" 19212 19213# Used on cygwin: assembler. 19214AS="$AS" 19215 19216# The name of the directory that contains temporary libtool files. 19217objdir=$objdir 19218 19219# How to create reloadable object files. 19220reload_flag=$lt_reload_flag 19221reload_cmds=$lt_reload_cmds 19222 19223# How to pass a linker flag through the compiler. 19224wl=$lt_lt_prog_compiler_wl_GCJ 19225 19226# Object file suffix (normally "o"). 19227objext="$ac_objext" 19228 19229# Old archive suffix (normally "a"). 19230libext="$libext" 19231 19232# Shared library suffix (normally ".so"). 19233shrext_cmds='$shrext_cmds' 19234 19235# Executable file suffix (normally ""). 19236exeext="$exeext" 19237 19238# Additional compiler flags for building library objects. 19239pic_flag=$lt_lt_prog_compiler_pic_GCJ 19240pic_mode=$pic_mode 19241 19242# What is the maximum length of a command? 19243max_cmd_len=$lt_cv_sys_max_cmd_len 19244 19245# Does compiler simultaneously support -c and -o options? 19246compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19247 19248# Must we lock files when doing compilation? 19249need_locks=$lt_need_locks 19250 19251# Do we need the lib prefix for modules? 19252need_lib_prefix=$need_lib_prefix 19253 19254# Do we need a version for libraries? 19255need_version=$need_version 19256 19257# Whether dlopen is supported. 19258dlopen_support=$enable_dlopen 19259 19260# Whether dlopen of programs is supported. 19261dlopen_self=$enable_dlopen_self 19262 19263# Whether dlopen of statically linked programs is supported. 19264dlopen_self_static=$enable_dlopen_self_static 19265 19266# Compiler flag to prevent dynamic linking. 19267link_static_flag=$lt_lt_prog_compiler_static_GCJ 19268 19269# Compiler flag to turn off builtin functions. 19270no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19271 19272# Compiler flag to allow reflexive dlopens. 19273export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19274 19275# Compiler flag to generate shared objects directly from archives. 19276whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19277 19278# Compiler flag to generate thread-safe objects. 19279thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19280 19281# Library versioning type. 19282version_type=$version_type 19283 19284# Format of library name prefix. 19285libname_spec=$lt_libname_spec 19286 19287# List of archive names. First name is the real one, the rest are links. 19288# The last name is the one that the linker finds with -lNAME. 19289library_names_spec=$lt_library_names_spec 19290 19291# The coded name of the library, if different from the real name. 19292soname_spec=$lt_soname_spec 19293 19294# Commands used to build and install an old-style archive. 19295RANLIB=$lt_RANLIB 19296old_archive_cmds=$lt_old_archive_cmds_GCJ 19297old_postinstall_cmds=$lt_old_postinstall_cmds 19298old_postuninstall_cmds=$lt_old_postuninstall_cmds 19299 19300# Create an old-style archive from a shared archive. 19301old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19302 19303# Create a temporary old-style archive to link instead of a shared archive. 19304old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19305 19306# Commands used to build and install a shared archive. 19307archive_cmds=$lt_archive_cmds_GCJ 19308archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19309postinstall_cmds=$lt_postinstall_cmds 19310postuninstall_cmds=$lt_postuninstall_cmds 19311 19312# Commands used to build a loadable module (assumed same as above if empty) 19313module_cmds=$lt_module_cmds_GCJ 19314module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19315 19316# Commands to strip libraries. 19317old_striplib=$lt_old_striplib 19318striplib=$lt_striplib 19319 19320# Dependencies to place before the objects being linked to create a 19321# shared library. 19322predep_objects=$lt_predep_objects_GCJ 19323 19324# Dependencies to place after the objects being linked to create a 19325# shared library. 19326postdep_objects=$lt_postdep_objects_GCJ 19327 19328# Dependencies to place before the objects being linked to create a 19329# shared library. 19330predeps=$lt_predeps_GCJ 19331 19332# Dependencies to place after the objects being linked to create a 19333# shared library. 19334postdeps=$lt_postdeps_GCJ 19335 19336# The directories searched by this compiler when creating a shared 19337# library 19338compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19339 19340# The library search path used internally by the compiler when linking 19341# a shared library. 19342compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19343 19344# Method to check whether dependent libraries are shared objects. 19345deplibs_check_method=$lt_deplibs_check_method 19346 19347# Command to use when deplibs_check_method == file_magic. 19348file_magic_cmd=$lt_file_magic_cmd 19349 19350# Flag that allows shared libraries with undefined symbols to be built. 19351allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19352 19353# Flag that forces no undefined symbols. 19354no_undefined_flag=$lt_no_undefined_flag_GCJ 19355 19356# Commands used to finish a libtool library installation in a directory. 19357finish_cmds=$lt_finish_cmds 19358 19359# Same as above, but a single script fragment to be evaled but not shown. 19360finish_eval=$lt_finish_eval 19361 19362# Take the output of nm and produce a listing of raw symbols and C names. 19363global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19364 19365# Transform the output of nm in a proper C declaration 19366global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19367 19368# Transform the output of nm in a C name address pair 19369global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19370 19371# This is the shared library runtime path variable. 19372runpath_var=$runpath_var 19373 19374# This is the shared library path variable. 19375shlibpath_var=$shlibpath_var 19376 19377# Is shlibpath searched before the hard-coded library search path? 19378shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19379 19380# How to hardcode a shared library path into an executable. 19381hardcode_action=$hardcode_action_GCJ 19382 19383# Whether we should hardcode library paths into libraries. 19384hardcode_into_libs=$hardcode_into_libs 19385 19386# Flag to hardcode \$libdir into a binary during linking. 19387# This must work even if \$libdir does not exist. 19388hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19389 19390# If ld is used when linking, flag to hardcode \$libdir into 19391# a binary during linking. This must work even if \$libdir does 19392# not exist. 19393hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19394 19395# Whether we need a single -rpath flag with a separated argument. 19396hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19397 19398# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19399# resulting binary. 19400hardcode_direct=$hardcode_direct_GCJ 19401 19402# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19403# resulting binary. 19404hardcode_minus_L=$hardcode_minus_L_GCJ 19405 19406# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19407# the resulting binary. 19408hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19409 19410# Set to yes if building a shared library automatically hardcodes DIR into the library 19411# and all subsequent libraries and executables linked against it. 19412hardcode_automatic=$hardcode_automatic_GCJ 19413 19414# Variables whose values should be saved in libtool wrapper scripts and 19415# restored at relink time. 19416variables_saved_for_relink="$variables_saved_for_relink" 19417 19418# Whether libtool must link a program against all its dependency libraries. 19419link_all_deplibs=$link_all_deplibs_GCJ 19420 19421# Compile-time system search path for libraries 19422sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19423 19424# Run-time system search path for libraries 19425sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19426 19427# Fix the shell variable \$srcfile for the compiler. 19428fix_srcfile_path=$lt_fix_srcfile_path 19429 19430# Set to yes if exported symbols are required. 19431always_export_symbols=$always_export_symbols_GCJ 19432 19433# The commands to list exported symbols. 19434export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19435 19436# The commands to extract the exported symbol list from a shared archive. 19437extract_expsyms_cmds=$lt_extract_expsyms_cmds 19438 19439# Symbols that should not be listed in the preloaded symbols. 19440exclude_expsyms=$lt_exclude_expsyms_GCJ 19441 19442# Symbols that must always be exported. 19443include_expsyms=$lt_include_expsyms_GCJ 19444 19445# ### END LIBTOOL TAG CONFIG: $tagname 19446 19447__EOF__ 19448 19449 19450else 19451 # If there is no Makefile yet, we rely on a make rule to execute 19452 # `config.status --recheck' to rerun these tests and create the 19453 # libtool script then. 19454 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19455 if test -f "$ltmain_in"; then 19456 test -f Makefile && make "$ltmain" 19457 fi 19458fi 19459 19460 19461ac_ext=c 19462ac_cpp='$CPP $CPPFLAGS' 19463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19465ac_compiler_gnu=$ac_cv_c_compiler_gnu 19466 19467CC="$lt_save_CC" 19468 19469 else 19470 tagname="" 19471 fi 19472 ;; 19473 19474 RC) 19475 19476 19477# Source file extension for RC test sources. 19478ac_ext=rc 19479 19480# Object file extension for compiled RC test sources. 19481objext=o 19482objext_RC=$objext 19483 19484# Code to be used in simple compile tests 19485lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19486 19487# Code to be used in simple link tests 19488lt_simple_link_test_code="$lt_simple_compile_test_code" 19489 19490# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19491 19492# If no C compiler was specified, use CC. 19493LTCC=${LTCC-"$CC"} 19494 19495# If no C compiler flags were specified, use CFLAGS. 19496LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19497 19498# Allow CC to be a program name with arguments. 19499compiler=$CC 19500 19501 19502# save warnings/boilerplate of simple test code 19503ac_outfile=conftest.$ac_objext 19504echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19505eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19506_lt_compiler_boilerplate=`cat conftest.err` 19507$rm conftest* 19508 19509ac_outfile=conftest.$ac_objext 19510echo "$lt_simple_link_test_code" >conftest.$ac_ext 19511eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19512_lt_linker_boilerplate=`cat conftest.err` 19513$rm -r conftest* 19514 19515 19516# Allow CC to be a program name with arguments. 19517lt_save_CC="$CC" 19518CC=${RC-"windres"} 19519compiler=$CC 19520compiler_RC=$CC 19521for cc_temp in $compiler""; do 19522 case $cc_temp in 19523 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19524 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19525 \-*) ;; 19526 *) break;; 19527 esac 19528done 19529cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19530 19531lt_cv_prog_compiler_c_o_RC=yes 19532 19533# The else clause should only fire when bootstrapping the 19534# libtool distribution, otherwise you forgot to ship ltmain.sh 19535# with your package, and you will get complaints that there are 19536# no rules to generate ltmain.sh. 19537if test -f "$ltmain"; then 19538 # See if we are running on zsh, and set the options which allow our commands through 19539 # without removal of \ escapes. 19540 if test -n "${ZSH_VERSION+set}" ; then 19541 setopt NO_GLOB_SUBST 19542 fi 19543 # Now quote all the things that may contain metacharacters while being 19544 # careful not to overquote the AC_SUBSTed values. We take copies of the 19545 # variables and quote the copies for generation of the libtool script. 19546 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19547 SED SHELL STRIP \ 19548 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19549 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19550 deplibs_check_method reload_flag reload_cmds need_locks \ 19551 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19552 lt_cv_sys_global_symbol_to_c_name_address \ 19553 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19554 old_postinstall_cmds old_postuninstall_cmds \ 19555 compiler_RC \ 19556 CC_RC \ 19557 LD_RC \ 19558 lt_prog_compiler_wl_RC \ 19559 lt_prog_compiler_pic_RC \ 19560 lt_prog_compiler_static_RC \ 19561 lt_prog_compiler_no_builtin_flag_RC \ 19562 export_dynamic_flag_spec_RC \ 19563 thread_safe_flag_spec_RC \ 19564 whole_archive_flag_spec_RC \ 19565 enable_shared_with_static_runtimes_RC \ 19566 old_archive_cmds_RC \ 19567 old_archive_from_new_cmds_RC \ 19568 predep_objects_RC \ 19569 postdep_objects_RC \ 19570 predeps_RC \ 19571 postdeps_RC \ 19572 compiler_lib_search_path_RC \ 19573 compiler_lib_search_dirs_RC \ 19574 archive_cmds_RC \ 19575 archive_expsym_cmds_RC \ 19576 postinstall_cmds_RC \ 19577 postuninstall_cmds_RC \ 19578 old_archive_from_expsyms_cmds_RC \ 19579 allow_undefined_flag_RC \ 19580 no_undefined_flag_RC \ 19581 export_symbols_cmds_RC \ 19582 hardcode_libdir_flag_spec_RC \ 19583 hardcode_libdir_flag_spec_ld_RC \ 19584 hardcode_libdir_separator_RC \ 19585 hardcode_automatic_RC \ 19586 module_cmds_RC \ 19587 module_expsym_cmds_RC \ 19588 lt_cv_prog_compiler_c_o_RC \ 19589 fix_srcfile_path_RC \ 19590 exclude_expsyms_RC \ 19591 include_expsyms_RC; do 19592 19593 case $var in 19594 old_archive_cmds_RC | \ 19595 old_archive_from_new_cmds_RC | \ 19596 archive_cmds_RC | \ 19597 archive_expsym_cmds_RC | \ 19598 module_cmds_RC | \ 19599 module_expsym_cmds_RC | \ 19600 old_archive_from_expsyms_cmds_RC | \ 19601 export_symbols_cmds_RC | \ 19602 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19603 postinstall_cmds | postuninstall_cmds | \ 19604 old_postinstall_cmds | old_postuninstall_cmds | \ 19605 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19606 # Double-quote double-evaled strings. 19607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19608 ;; 19609 *) 19610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19611 ;; 19612 esac 19613 done 19614 19615 case $lt_echo in 19616 *'\$0 --fallback-echo"') 19617 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19618 ;; 19619 esac 19620 19621cfgfile="$ofile" 19622 19623 cat <<__EOF__ >> "$cfgfile" 19624# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19625 19626# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19627 19628# Shell to use when invoking shell scripts. 19629SHELL=$lt_SHELL 19630 19631# Whether or not to build shared libraries. 19632build_libtool_libs=$enable_shared 19633 19634# Whether or not to build static libraries. 19635build_old_libs=$enable_static 19636 19637# Whether or not to add -lc for building shared libraries. 19638build_libtool_need_lc=$archive_cmds_need_lc_RC 19639 19640# Whether or not to disallow shared libs when runtime libs are static 19641allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19642 19643# Whether or not to optimize for fast installation. 19644fast_install=$enable_fast_install 19645 19646# The host system. 19647host_alias=$host_alias 19648host=$host 19649host_os=$host_os 19650 19651# The build system. 19652build_alias=$build_alias 19653build=$build 19654build_os=$build_os 19655 19656# An echo program that does not interpret backslashes. 19657echo=$lt_echo 19658 19659# The archiver. 19660AR=$lt_AR 19661AR_FLAGS=$lt_AR_FLAGS 19662 19663# A C compiler. 19664LTCC=$lt_LTCC 19665 19666# LTCC compiler flags. 19667LTCFLAGS=$lt_LTCFLAGS 19668 19669# A language-specific compiler. 19670CC=$lt_compiler_RC 19671 19672# Is the compiler the GNU C compiler? 19673with_gcc=$GCC_RC 19674 19675# An ERE matcher. 19676EGREP=$lt_EGREP 19677 19678# The linker used to build libraries. 19679LD=$lt_LD_RC 19680 19681# Whether we need hard or soft links. 19682LN_S=$lt_LN_S 19683 19684# A BSD-compatible nm program. 19685NM=$lt_NM 19686 19687# A symbol stripping program 19688STRIP=$lt_STRIP 19689 19690# Used to examine libraries when file_magic_cmd begins "file" 19691MAGIC_CMD=$MAGIC_CMD 19692 19693# Used on cygwin: DLL creation program. 19694DLLTOOL="$DLLTOOL" 19695 19696# Used on cygwin: object dumper. 19697OBJDUMP="$OBJDUMP" 19698 19699# Used on cygwin: assembler. 19700AS="$AS" 19701 19702# The name of the directory that contains temporary libtool files. 19703objdir=$objdir 19704 19705# How to create reloadable object files. 19706reload_flag=$lt_reload_flag 19707reload_cmds=$lt_reload_cmds 19708 19709# How to pass a linker flag through the compiler. 19710wl=$lt_lt_prog_compiler_wl_RC 19711 19712# Object file suffix (normally "o"). 19713objext="$ac_objext" 19714 19715# Old archive suffix (normally "a"). 19716libext="$libext" 19717 19718# Shared library suffix (normally ".so"). 19719shrext_cmds='$shrext_cmds' 19720 19721# Executable file suffix (normally ""). 19722exeext="$exeext" 19723 19724# Additional compiler flags for building library objects. 19725pic_flag=$lt_lt_prog_compiler_pic_RC 19726pic_mode=$pic_mode 19727 19728# What is the maximum length of a command? 19729max_cmd_len=$lt_cv_sys_max_cmd_len 19730 19731# Does compiler simultaneously support -c and -o options? 19732compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19733 19734# Must we lock files when doing compilation? 19735need_locks=$lt_need_locks 19736 19737# Do we need the lib prefix for modules? 19738need_lib_prefix=$need_lib_prefix 19739 19740# Do we need a version for libraries? 19741need_version=$need_version 19742 19743# Whether dlopen is supported. 19744dlopen_support=$enable_dlopen 19745 19746# Whether dlopen of programs is supported. 19747dlopen_self=$enable_dlopen_self 19748 19749# Whether dlopen of statically linked programs is supported. 19750dlopen_self_static=$enable_dlopen_self_static 19751 19752# Compiler flag to prevent dynamic linking. 19753link_static_flag=$lt_lt_prog_compiler_static_RC 19754 19755# Compiler flag to turn off builtin functions. 19756no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19757 19758# Compiler flag to allow reflexive dlopens. 19759export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19760 19761# Compiler flag to generate shared objects directly from archives. 19762whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19763 19764# Compiler flag to generate thread-safe objects. 19765thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19766 19767# Library versioning type. 19768version_type=$version_type 19769 19770# Format of library name prefix. 19771libname_spec=$lt_libname_spec 19772 19773# List of archive names. First name is the real one, the rest are links. 19774# The last name is the one that the linker finds with -lNAME. 19775library_names_spec=$lt_library_names_spec 19776 19777# The coded name of the library, if different from the real name. 19778soname_spec=$lt_soname_spec 19779 19780# Commands used to build and install an old-style archive. 19781RANLIB=$lt_RANLIB 19782old_archive_cmds=$lt_old_archive_cmds_RC 19783old_postinstall_cmds=$lt_old_postinstall_cmds 19784old_postuninstall_cmds=$lt_old_postuninstall_cmds 19785 19786# Create an old-style archive from a shared archive. 19787old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19788 19789# Create a temporary old-style archive to link instead of a shared archive. 19790old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19791 19792# Commands used to build and install a shared archive. 19793archive_cmds=$lt_archive_cmds_RC 19794archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19795postinstall_cmds=$lt_postinstall_cmds 19796postuninstall_cmds=$lt_postuninstall_cmds 19797 19798# Commands used to build a loadable module (assumed same as above if empty) 19799module_cmds=$lt_module_cmds_RC 19800module_expsym_cmds=$lt_module_expsym_cmds_RC 19801 19802# Commands to strip libraries. 19803old_striplib=$lt_old_striplib 19804striplib=$lt_striplib 19805 19806# Dependencies to place before the objects being linked to create a 19807# shared library. 19808predep_objects=$lt_predep_objects_RC 19809 19810# Dependencies to place after the objects being linked to create a 19811# shared library. 19812postdep_objects=$lt_postdep_objects_RC 19813 19814# Dependencies to place before the objects being linked to create a 19815# shared library. 19816predeps=$lt_predeps_RC 19817 19818# Dependencies to place after the objects being linked to create a 19819# shared library. 19820postdeps=$lt_postdeps_RC 19821 19822# The directories searched by this compiler when creating a shared 19823# library 19824compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19825 19826# The library search path used internally by the compiler when linking 19827# a shared library. 19828compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19829 19830# Method to check whether dependent libraries are shared objects. 19831deplibs_check_method=$lt_deplibs_check_method 19832 19833# Command to use when deplibs_check_method == file_magic. 19834file_magic_cmd=$lt_file_magic_cmd 19835 19836# Flag that allows shared libraries with undefined symbols to be built. 19837allow_undefined_flag=$lt_allow_undefined_flag_RC 19838 19839# Flag that forces no undefined symbols. 19840no_undefined_flag=$lt_no_undefined_flag_RC 19841 19842# Commands used to finish a libtool library installation in a directory. 19843finish_cmds=$lt_finish_cmds 19844 19845# Same as above, but a single script fragment to be evaled but not shown. 19846finish_eval=$lt_finish_eval 19847 19848# Take the output of nm and produce a listing of raw symbols and C names. 19849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19850 19851# Transform the output of nm in a proper C declaration 19852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19853 19854# Transform the output of nm in a C name address pair 19855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19856 19857# This is the shared library runtime path variable. 19858runpath_var=$runpath_var 19859 19860# This is the shared library path variable. 19861shlibpath_var=$shlibpath_var 19862 19863# Is shlibpath searched before the hard-coded library search path? 19864shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19865 19866# How to hardcode a shared library path into an executable. 19867hardcode_action=$hardcode_action_RC 19868 19869# Whether we should hardcode library paths into libraries. 19870hardcode_into_libs=$hardcode_into_libs 19871 19872# Flag to hardcode \$libdir into a binary during linking. 19873# This must work even if \$libdir does not exist. 19874hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19875 19876# If ld is used when linking, flag to hardcode \$libdir into 19877# a binary during linking. This must work even if \$libdir does 19878# not exist. 19879hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19880 19881# Whether we need a single -rpath flag with a separated argument. 19882hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19883 19884# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19885# resulting binary. 19886hardcode_direct=$hardcode_direct_RC 19887 19888# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19889# resulting binary. 19890hardcode_minus_L=$hardcode_minus_L_RC 19891 19892# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19893# the resulting binary. 19894hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19895 19896# Set to yes if building a shared library automatically hardcodes DIR into the library 19897# and all subsequent libraries and executables linked against it. 19898hardcode_automatic=$hardcode_automatic_RC 19899 19900# Variables whose values should be saved in libtool wrapper scripts and 19901# restored at relink time. 19902variables_saved_for_relink="$variables_saved_for_relink" 19903 19904# Whether libtool must link a program against all its dependency libraries. 19905link_all_deplibs=$link_all_deplibs_RC 19906 19907# Compile-time system search path for libraries 19908sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19909 19910# Run-time system search path for libraries 19911sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19912 19913# Fix the shell variable \$srcfile for the compiler. 19914fix_srcfile_path=$lt_fix_srcfile_path 19915 19916# Set to yes if exported symbols are required. 19917always_export_symbols=$always_export_symbols_RC 19918 19919# The commands to list exported symbols. 19920export_symbols_cmds=$lt_export_symbols_cmds_RC 19921 19922# The commands to extract the exported symbol list from a shared archive. 19923extract_expsyms_cmds=$lt_extract_expsyms_cmds 19924 19925# Symbols that should not be listed in the preloaded symbols. 19926exclude_expsyms=$lt_exclude_expsyms_RC 19927 19928# Symbols that must always be exported. 19929include_expsyms=$lt_include_expsyms_RC 19930 19931# ### END LIBTOOL TAG CONFIG: $tagname 19932 19933__EOF__ 19934 19935 19936else 19937 # If there is no Makefile yet, we rely on a make rule to execute 19938 # `config.status --recheck' to rerun these tests and create the 19939 # libtool script then. 19940 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19941 if test -f "$ltmain_in"; then 19942 test -f Makefile && make "$ltmain" 19943 fi 19944fi 19945 19946 19947ac_ext=c 19948ac_cpp='$CPP $CPPFLAGS' 19949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19951ac_compiler_gnu=$ac_cv_c_compiler_gnu 19952 19953CC="$lt_save_CC" 19954 19955 ;; 19956 19957 *) 19958 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19959$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19960 { (exit 1); exit 1; }; } 19961 ;; 19962 esac 19963 19964 # Append the new tag name to the list of available tags. 19965 if test -n "$tagname" ; then 19966 available_tags="$available_tags $tagname" 19967 fi 19968 fi 19969 done 19970 IFS="$lt_save_ifs" 19971 19972 # Now substitute the updated list of available tags. 19973 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19974 mv "${ofile}T" "$ofile" 19975 chmod +x "$ofile" 19976 else 19977 rm -f "${ofile}T" 19978 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19979$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19980 { (exit 1); exit 1; }; } 19981 fi 19982fi 19983 19984 19985 19986# This can be used to rebuild libtool when needed 19987LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19988 19989# Always use our own libtool. 19990LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19991 19992# Prevent multiple expansion 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 20015$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 20016if test "${ac_cv_prog_cc_c99+set}" = set; then 20017 $as_echo_n "(cached) " >&6 20018else 20019 ac_cv_prog_cc_c99=no 20020ac_save_CC=$CC 20021cat >conftest.$ac_ext <<_ACEOF 20022/* confdefs.h. */ 20023_ACEOF 20024cat confdefs.h >>conftest.$ac_ext 20025cat >>conftest.$ac_ext <<_ACEOF 20026/* end confdefs.h. */ 20027#include <stdarg.h> 20028#include <stdbool.h> 20029#include <stdlib.h> 20030#include <wchar.h> 20031#include <stdio.h> 20032 20033// Check varargs macros. These examples are taken from C99 6.10.3.5. 20034#define debug(...) fprintf (stderr, __VA_ARGS__) 20035#define showlist(...) puts (#__VA_ARGS__) 20036#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 20037static void 20038test_varargs_macros (void) 20039{ 20040 int x = 1234; 20041 int y = 5678; 20042 debug ("Flag"); 20043 debug ("X = %d\n", x); 20044 showlist (The first, second, and third items.); 20045 report (x>y, "x is %d but y is %d", x, y); 20046} 20047 20048// Check long long types. 20049#define BIG64 18446744073709551615ull 20050#define BIG32 4294967295ul 20051#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 20052#if !BIG_OK 20053 your preprocessor is broken; 20054#endif 20055#if BIG_OK 20056#else 20057 your preprocessor is broken; 20058#endif 20059static long long int bignum = -9223372036854775807LL; 20060static unsigned long long int ubignum = BIG64; 20061 20062struct incomplete_array 20063{ 20064 int datasize; 20065 double data[]; 20066}; 20067 20068struct named_init { 20069 int number; 20070 const wchar_t *name; 20071 double average; 20072}; 20073 20074typedef const char *ccp; 20075 20076static inline int 20077test_restrict (ccp restrict text) 20078{ 20079 // See if C++-style comments work. 20080 // Iterate through items via the restricted pointer. 20081 // Also check for declarations in for loops. 20082 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 20083 continue; 20084 return 0; 20085} 20086 20087// Check varargs and va_copy. 20088static void 20089test_varargs (const char *format, ...) 20090{ 20091 va_list args; 20092 va_start (args, format); 20093 va_list args_copy; 20094 va_copy (args_copy, args); 20095 20096 const char *str; 20097 int number; 20098 float fnumber; 20099 20100 while (*format) 20101 { 20102 switch (*format++) 20103 { 20104 case 's': // string 20105 str = va_arg (args_copy, const char *); 20106 break; 20107 case 'd': // int 20108 number = va_arg (args_copy, int); 20109 break; 20110 case 'f': // float 20111 fnumber = va_arg (args_copy, double); 20112 break; 20113 default: 20114 break; 20115 } 20116 } 20117 va_end (args_copy); 20118 va_end (args); 20119} 20120 20121int 20122main () 20123{ 20124 20125 // Check bool. 20126 _Bool success = false; 20127 20128 // Check restrict. 20129 if (test_restrict ("String literal") == 0) 20130 success = true; 20131 char *restrict newvar = "Another string"; 20132 20133 // Check varargs. 20134 test_varargs ("s, d' f .", "string", 65, 34.234); 20135 test_varargs_macros (); 20136 20137 // Check flexible array members. 20138 struct incomplete_array *ia = 20139 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 20140 ia->datasize = 10; 20141 for (int i = 0; i < ia->datasize; ++i) 20142 ia->data[i] = i * 1.234; 20143 20144 // Check named initializers. 20145 struct named_init ni = { 20146 .number = 34, 20147 .name = L"Test wide string", 20148 .average = 543.34343, 20149 }; 20150 20151 ni.number = 58; 20152 20153 int dynamic_array[ni.number]; 20154 dynamic_array[ni.number - 1] = 543; 20155 20156 // work around unused variable warnings 20157 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 20158 || dynamic_array[ni.number - 1] != 543); 20159 20160 ; 20161 return 0; 20162} 20163_ACEOF 20164for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 20165do 20166 CC="$ac_save_CC $ac_arg" 20167 rm -f conftest.$ac_objext 20168if { (ac_try="$ac_compile" 20169case "(($ac_try" in 20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20171 *) ac_try_echo=$ac_try;; 20172esac 20173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20174$as_echo "$ac_try_echo") >&5 20175 (eval "$ac_compile") 2>conftest.er1 20176 ac_status=$? 20177 grep -v '^ *+' conftest.er1 >conftest.err 20178 rm -f conftest.er1 20179 cat conftest.err >&5 20180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20181 (exit $ac_status); } && { 20182 test -z "$ac_c_werror_flag" || 20183 test ! -s conftest.err 20184 } && test -s conftest.$ac_objext; then 20185 ac_cv_prog_cc_c99=$ac_arg 20186else 20187 $as_echo "$as_me: failed program was:" >&5 20188sed 's/^/| /' conftest.$ac_ext >&5 20189 20190 20191fi 20192 20193rm -f core conftest.err conftest.$ac_objext 20194 test "x$ac_cv_prog_cc_c99" != "xno" && break 20195done 20196rm -f conftest.$ac_ext 20197CC=$ac_save_CC 20198 20199fi 20200# AC_CACHE_VAL 20201case "x$ac_cv_prog_cc_c99" in 20202 x) 20203 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20204$as_echo "none needed" >&6; } ;; 20205 xno) 20206 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20207$as_echo "unsupported" >&6; } ;; 20208 *) 20209 CC="$CC $ac_cv_prog_cc_c99" 20210 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 20211$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 20212esac 20213 20214 20215 20216 20217 20218 20219if test "x$GCC" = xyes ; then 20220 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 20221-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 20222-Wbad-function-cast" 20223 case `$CC -dumpversion` in 20224 3.4.* | 4.*) 20225 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 20226 ;; 20227 esac 20228else 20229 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20230$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20231if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20232 $as_echo_n "(cached) " >&6 20233else 20234 cat >conftest.$ac_ext <<_ACEOF 20235/* confdefs.h. */ 20236_ACEOF 20237cat confdefs.h >>conftest.$ac_ext 20238cat >>conftest.$ac_ext <<_ACEOF 20239/* end confdefs.h. */ 20240$ac_includes_default 20241int 20242main () 20243{ 20244#ifndef __SUNPRO_C 20245 (void) __SUNPRO_C; 20246#endif 20247 20248 ; 20249 return 0; 20250} 20251_ACEOF 20252rm -f conftest.$ac_objext 20253if { (ac_try="$ac_compile" 20254case "(($ac_try" in 20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20256 *) ac_try_echo=$ac_try;; 20257esac 20258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20259$as_echo "$ac_try_echo") >&5 20260 (eval "$ac_compile") 2>conftest.er1 20261 ac_status=$? 20262 grep -v '^ *+' conftest.er1 >conftest.err 20263 rm -f conftest.er1 20264 cat conftest.err >&5 20265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20266 (exit $ac_status); } && { 20267 test -z "$ac_c_werror_flag" || 20268 test ! -s conftest.err 20269 } && test -s conftest.$ac_objext; then 20270 ac_cv_have_decl___SUNPRO_C=yes 20271else 20272 $as_echo "$as_me: failed program was:" >&5 20273sed 's/^/| /' conftest.$ac_ext >&5 20274 20275 ac_cv_have_decl___SUNPRO_C=no 20276fi 20277 20278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20279fi 20280{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20281$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20282if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 20283 SUNCC="yes" 20284else 20285 SUNCC="no" 20286fi 20287 20288 if test "x$SUNCC" = "xyes"; then 20289 CWARNFLAGS="-v" 20290 fi 20291fi 20292 20293# Check whether --enable-silent-rules was given. 20294if test "${enable_silent_rules+set}" = set; then 20295 enableval=$enable_silent_rules; 20296fi 20297 20298case $enable_silent_rules in 20299yes) AM_DEFAULT_VERBOSITY=0;; 20300no) AM_DEFAULT_VERBOSITY=1;; 20301*) AM_DEFAULT_VERBOSITY=0;; 20302esac 20303AM_BACKSLASH='\' 20304 20305 20306 20307 20308 20309 20310 20311# Check whether --enable-strict-compilation was given. 20312if test "${enable_strict_compilation+set}" = set; then 20313 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20314else 20315 STRICT_COMPILE=no 20316fi 20317 20318if test "x$STRICT_COMPILE" = "xyes"; then 20319 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20320$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20321if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20322 $as_echo_n "(cached) " >&6 20323else 20324 cat >conftest.$ac_ext <<_ACEOF 20325/* confdefs.h. */ 20326_ACEOF 20327cat confdefs.h >>conftest.$ac_ext 20328cat >>conftest.$ac_ext <<_ACEOF 20329/* end confdefs.h. */ 20330$ac_includes_default 20331int 20332main () 20333{ 20334#ifndef __SUNPRO_C 20335 (void) __SUNPRO_C; 20336#endif 20337 20338 ; 20339 return 0; 20340} 20341_ACEOF 20342rm -f conftest.$ac_objext 20343if { (ac_try="$ac_compile" 20344case "(($ac_try" in 20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20346 *) ac_try_echo=$ac_try;; 20347esac 20348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20349$as_echo "$ac_try_echo") >&5 20350 (eval "$ac_compile") 2>conftest.er1 20351 ac_status=$? 20352 grep -v '^ *+' conftest.er1 >conftest.err 20353 rm -f conftest.er1 20354 cat conftest.err >&5 20355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20356 (exit $ac_status); } && { 20357 test -z "$ac_c_werror_flag" || 20358 test ! -s conftest.err 20359 } && test -s conftest.$ac_objext; then 20360 ac_cv_have_decl___SUNPRO_C=yes 20361else 20362 $as_echo "$as_me: failed program was:" >&5 20363sed 's/^/| /' conftest.$ac_ext >&5 20364 20365 ac_cv_have_decl___SUNPRO_C=no 20366fi 20367 20368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20369fi 20370{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20371$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20372if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 20373 SUNCC="yes" 20374else 20375 SUNCC="no" 20376fi 20377 20378 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 20379$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 20380if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 20381 $as_echo_n "(cached) " >&6 20382else 20383 cat >conftest.$ac_ext <<_ACEOF 20384/* confdefs.h. */ 20385_ACEOF 20386cat confdefs.h >>conftest.$ac_ext 20387cat >>conftest.$ac_ext <<_ACEOF 20388/* end confdefs.h. */ 20389$ac_includes_default 20390int 20391main () 20392{ 20393#ifndef __INTEL_COMPILER 20394 (void) __INTEL_COMPILER; 20395#endif 20396 20397 ; 20398 return 0; 20399} 20400_ACEOF 20401rm -f conftest.$ac_objext 20402if { (ac_try="$ac_compile" 20403case "(($ac_try" in 20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20405 *) ac_try_echo=$ac_try;; 20406esac 20407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20408$as_echo "$ac_try_echo") >&5 20409 (eval "$ac_compile") 2>conftest.er1 20410 ac_status=$? 20411 grep -v '^ *+' conftest.er1 >conftest.err 20412 rm -f conftest.er1 20413 cat conftest.err >&5 20414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20415 (exit $ac_status); } && { 20416 test -z "$ac_c_werror_flag" || 20417 test ! -s conftest.err 20418 } && test -s conftest.$ac_objext; then 20419 ac_cv_have_decl___INTEL_COMPILER=yes 20420else 20421 $as_echo "$as_me: failed program was:" >&5 20422sed 's/^/| /' conftest.$ac_ext >&5 20423 20424 ac_cv_have_decl___INTEL_COMPILER=no 20425fi 20426 20427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20428fi 20429{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 20430$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 20431if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 20432 INTELCC="yes" 20433else 20434 INTELCC="no" 20435fi 20436 20437 if test "x$GCC" = xyes ; then 20438 STRICT_CFLAGS="-pedantic -Werror" 20439 elif test "x$SUNCC" = "xyes"; then 20440 STRICT_CFLAGS="-errwarn" 20441 elif test "x$INTELCC" = "xyes"; then 20442 STRICT_CFLAGS="-Werror" 20443 fi 20444fi 20445CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20446 20447 20448 20449 20450# Check whether --with-release-version was given. 20451if test "${with_release_version+set}" = set; then 20452 withval=$with_release_version; RELEASE_VERSION="$withval" 20453else 20454 RELEASE_VERSION="" 20455fi 20456 20457 if test "x$RELEASE_VERSION" != "x"; then 20458 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20459 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20460 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20461$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20462 fi 20463 20464cat >>confdefs.h <<_ACEOF 20465#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20466_ACEOF 20467 20468 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20469 if test "x$PVM" = "x"; then 20470 PVM="0" 20471 fi 20472 20473cat >>confdefs.h <<_ACEOF 20474#define PACKAGE_VERSION_MINOR $PVM 20475_ACEOF 20476 20477 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20478 if test "x$PVP" = "x"; then 20479 PVP="0" 20480 fi 20481 20482cat >>confdefs.h <<_ACEOF 20483#define PACKAGE_VERSION_PATCHLEVEL $PVP 20484_ACEOF 20485 20486 20487 20488CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 20489mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 20490echo 'git directory not found: installing possibly empty changelog.' >&2)" 20491 20492distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 20493 20494 20495 20496 20497 20498if test x$APP_MAN_SUFFIX = x ; then 20499 APP_MAN_SUFFIX=1 20500fi 20501if test x$APP_MAN_DIR = x ; then 20502 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20503fi 20504 20505if test x$LIB_MAN_SUFFIX = x ; then 20506 LIB_MAN_SUFFIX=3 20507fi 20508if test x$LIB_MAN_DIR = x ; then 20509 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20510fi 20511 20512if test x$FILE_MAN_SUFFIX = x ; then 20513 case $host_os in 20514 solaris*) FILE_MAN_SUFFIX=4 ;; 20515 *) FILE_MAN_SUFFIX=5 ;; 20516 esac 20517fi 20518if test x$FILE_MAN_DIR = x ; then 20519 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20520fi 20521 20522if test x$MISC_MAN_SUFFIX = x ; then 20523 case $host_os in 20524 solaris*) MISC_MAN_SUFFIX=5 ;; 20525 *) MISC_MAN_SUFFIX=7 ;; 20526 esac 20527fi 20528if test x$MISC_MAN_DIR = x ; then 20529 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20530fi 20531 20532if test x$DRIVER_MAN_SUFFIX = x ; then 20533 case $host_os in 20534 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20535 *) DRIVER_MAN_SUFFIX=4 ;; 20536 esac 20537fi 20538if test x$DRIVER_MAN_DIR = x ; then 20539 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20540fi 20541 20542if test x$ADMIN_MAN_SUFFIX = x ; then 20543 case $host_os in 20544 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20545 *) ADMIN_MAN_SUFFIX=8 ;; 20546 esac 20547fi 20548if test x$ADMIN_MAN_DIR = x ; then 20549 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20550fi 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568# get modules 20569 20570# Check xres configuration, strip extra digits from package version to 20571# find the required protocol version 20572RES_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 20573 20574 20575if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20576 if test -n "$ac_tool_prefix"; then 20577 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20578set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20579{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20580$as_echo_n "checking for $ac_word... " >&6; } 20581if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20582 $as_echo_n "(cached) " >&6 20583else 20584 case $PKG_CONFIG in 20585 [\\/]* | ?:[\\/]*) 20586 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20587 ;; 20588 *) 20589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20590for as_dir in $PATH 20591do 20592 IFS=$as_save_IFS 20593 test -z "$as_dir" && as_dir=. 20594 for ac_exec_ext in '' $ac_executable_extensions; do 20595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20596 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20598 break 2 20599 fi 20600done 20601done 20602IFS=$as_save_IFS 20603 20604 ;; 20605esac 20606fi 20607PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20608if test -n "$PKG_CONFIG"; then 20609 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20610$as_echo "$PKG_CONFIG" >&6; } 20611else 20612 { $as_echo "$as_me:$LINENO: result: no" >&5 20613$as_echo "no" >&6; } 20614fi 20615 20616 20617fi 20618if test -z "$ac_cv_path_PKG_CONFIG"; then 20619 ac_pt_PKG_CONFIG=$PKG_CONFIG 20620 # Extract the first word of "pkg-config", so it can be a program name with args. 20621set dummy pkg-config; ac_word=$2 20622{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20623$as_echo_n "checking for $ac_word... " >&6; } 20624if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20625 $as_echo_n "(cached) " >&6 20626else 20627 case $ac_pt_PKG_CONFIG in 20628 [\\/]* | ?:[\\/]*) 20629 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20630 ;; 20631 *) 20632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20633for as_dir in $PATH 20634do 20635 IFS=$as_save_IFS 20636 test -z "$as_dir" && as_dir=. 20637 for ac_exec_ext in '' $ac_executable_extensions; do 20638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20639 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20640 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20641 break 2 20642 fi 20643done 20644done 20645IFS=$as_save_IFS 20646 20647 ;; 20648esac 20649fi 20650ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20651if test -n "$ac_pt_PKG_CONFIG"; then 20652 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20653$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20654else 20655 { $as_echo "$as_me:$LINENO: result: no" >&5 20656$as_echo "no" >&6; } 20657fi 20658 20659 if test "x$ac_pt_PKG_CONFIG" = x; then 20660 PKG_CONFIG="" 20661 else 20662 case $cross_compiling:$ac_tool_warned in 20663yes:) 20664{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20666ac_tool_warned=yes ;; 20667esac 20668 PKG_CONFIG=$ac_pt_PKG_CONFIG 20669 fi 20670else 20671 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20672fi 20673 20674fi 20675if test -n "$PKG_CONFIG"; then 20676 _pkg_min_version=0.9.0 20677 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20678$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20679 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20680 { $as_echo "$as_me:$LINENO: result: yes" >&5 20681$as_echo "yes" >&6; } 20682 else 20683 { $as_echo "$as_me:$LINENO: result: no" >&5 20684$as_echo "no" >&6; } 20685 PKG_CONFIG="" 20686 fi 20687 20688fi 20689 20690pkg_failed=no 20691{ $as_echo "$as_me:$LINENO: checking for XRES" >&5 20692$as_echo_n "checking for XRES... " >&6; } 20693 20694if test -n "$XRES_CFLAGS"; then 20695 pkg_cv_XRES_CFLAGS="$XRES_CFLAGS" 20696 elif test -n "$PKG_CONFIG"; then 20697 if test -n "$PKG_CONFIG" && \ 20698 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\"") >&5 20699 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5 20700 ac_status=$? 20701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20702 (exit $ac_status); }; then 20703 pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null` 20704else 20705 pkg_failed=yes 20706fi 20707 else 20708 pkg_failed=untried 20709fi 20710if test -n "$XRES_LIBS"; then 20711 pkg_cv_XRES_LIBS="$XRES_LIBS" 20712 elif test -n "$PKG_CONFIG"; then 20713 if test -n "$PKG_CONFIG" && \ 20714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto resourceproto >= \$RES_VERSION\"") >&5 20715 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION") 2>&5 20716 ac_status=$? 20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20718 (exit $ac_status); }; then 20719 pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto resourceproto >= $RES_VERSION" 2>/dev/null` 20720else 20721 pkg_failed=yes 20722fi 20723 else 20724 pkg_failed=untried 20725fi 20726 20727 20728 20729if test $pkg_failed = yes; then 20730 20731if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20732 _pkg_short_errors_supported=yes 20733else 20734 _pkg_short_errors_supported=no 20735fi 20736 if test $_pkg_short_errors_supported = yes; then 20737 XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1` 20738 else 20739 XRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto resourceproto >= $RES_VERSION" 2>&1` 20740 fi 20741 # Put the nasty error message in config.log where it belongs 20742 echo "$XRES_PKG_ERRORS" >&5 20743 20744 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto resourceproto >= $RES_VERSION) were not met: 20745 20746$XRES_PKG_ERRORS 20747 20748Consider adjusting the PKG_CONFIG_PATH environment variable if you 20749installed software in a non-standard prefix. 20750 20751Alternatively, you may set the environment variables XRES_CFLAGS 20752and XRES_LIBS to avoid the need to call pkg-config. 20753See the pkg-config man page for more details. 20754" >&5 20755$as_echo "$as_me: error: Package requirements (x11 xext xextproto resourceproto >= $RES_VERSION) were not met: 20756 20757$XRES_PKG_ERRORS 20758 20759Consider adjusting the PKG_CONFIG_PATH environment variable if you 20760installed software in a non-standard prefix. 20761 20762Alternatively, you may set the environment variables XRES_CFLAGS 20763and XRES_LIBS to avoid the need to call pkg-config. 20764See the pkg-config man page for more details. 20765" >&2;} 20766 { (exit 1); exit 1; }; } 20767elif test $pkg_failed = untried; then 20768 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20770{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20771is in your PATH or set the PKG_CONFIG environment variable to the full 20772path to pkg-config. 20773 20774Alternatively, you may set the environment variables XRES_CFLAGS 20775and XRES_LIBS to avoid the need to call pkg-config. 20776See the pkg-config man page for more details. 20777 20778To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20779See \`config.log' for more details." >&5 20780$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20781is in your PATH or set the PKG_CONFIG environment variable to the full 20782path to pkg-config. 20783 20784Alternatively, you may set the environment variables XRES_CFLAGS 20785and XRES_LIBS to avoid the need to call pkg-config. 20786See the pkg-config man page for more details. 20787 20788To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20789See \`config.log' for more details." >&2;} 20790 { (exit 1); exit 1; }; }; } 20791else 20792 XRES_CFLAGS=$pkg_cv_XRES_CFLAGS 20793 XRES_LIBS=$pkg_cv_XRES_LIBS 20794 { $as_echo "$as_me:$LINENO: result: yes" >&5 20795$as_echo "yes" >&6; } 20796 : 20797fi 20798XRES_CFLAGS="$CWARNFLAGS $XRES_CFLAGS" 20799 20800 20801 20802 20803# Check whether --enable-malloc0returnsnull was given. 20804if test "${enable_malloc0returnsnull+set}" = set; then 20805 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20806else 20807 MALLOC_ZERO_RETURNS_NULL=auto 20808fi 20809 20810 20811{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 20812$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 20813if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20814 if test "$cross_compiling" = yes; then 20815 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20817{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20818See \`config.log' for more details." >&5 20819$as_echo "$as_me: error: cannot run test program while cross compiling 20820See \`config.log' for more details." >&2;} 20821 { (exit 1); exit 1; }; }; } 20822else 20823 cat >conftest.$ac_ext <<_ACEOF 20824 20825char *malloc(); 20826char *realloc(); 20827char *calloc(); 20828main() { 20829 char *m0, *r0, *c0, *p; 20830 m0 = malloc(0); 20831 p = malloc(10); 20832 r0 = realloc(p,0); 20833 c0 = calloc(0); 20834 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 20835} 20836_ACEOF 20837rm -f conftest$ac_exeext 20838if { (ac_try="$ac_link" 20839case "(($ac_try" in 20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20841 *) ac_try_echo=$ac_try;; 20842esac 20843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20844$as_echo "$ac_try_echo") >&5 20845 (eval "$ac_link") 2>&5 20846 ac_status=$? 20847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20849 { (case "(($ac_try" in 20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20851 *) ac_try_echo=$ac_try;; 20852esac 20853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20854$as_echo "$ac_try_echo") >&5 20855 (eval "$ac_try") 2>&5 20856 ac_status=$? 20857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20858 (exit $ac_status); }; }; then 20859 MALLOC_ZERO_RETURNS_NULL=yes 20860else 20861 $as_echo "$as_me: program exited with status $ac_status" >&5 20862$as_echo "$as_me: failed program was:" >&5 20863sed 's/^/| /' conftest.$ac_ext >&5 20864 20865( exit $ac_status ) 20866MALLOC_ZERO_RETURNS_NULL=no 20867fi 20868rm -rf conftest.dSYM 20869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20870fi 20871 20872 20873fi 20874{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20875$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20876 20877if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20878 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20879 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20880 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20881else 20882 MALLOC_ZERO_CFLAGS="" 20883 XMALLOC_ZERO_CFLAGS="" 20884 XTMALLOC_ZERO_CFLAGS="" 20885fi 20886 20887 20888 20889 20890 20891 20892ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc" 20893 20894cat >confcache <<\_ACEOF 20895# This file is a shell script that caches the results of configure 20896# tests run on this system so they can be shared between configure 20897# scripts and configure runs, see configure's option --config-cache. 20898# It is not useful on other systems. If it contains results you don't 20899# want to keep, you may remove or edit it. 20900# 20901# config.status only pays attention to the cache file if you give it 20902# the --recheck option to rerun configure. 20903# 20904# `ac_cv_env_foo' variables (set or unset) will be overridden when 20905# loading this file, other *unset* `ac_cv_foo' will be assigned the 20906# following values. 20907 20908_ACEOF 20909 20910# The following way of writing the cache mishandles newlines in values, 20911# but we know of no workaround that is simple, portable, and efficient. 20912# So, we kill variables containing newlines. 20913# Ultrix sh set writes to stderr and can't be redirected directly, 20914# and sets the high bit in the cache file unless we assign to the vars. 20915( 20916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20917 eval ac_val=\$$ac_var 20918 case $ac_val in #( 20919 *${as_nl}*) 20920 case $ac_var in #( 20921 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 20922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20923 esac 20924 case $ac_var in #( 20925 _ | IFS | as_nl) ;; #( 20926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20927 *) $as_unset $ac_var ;; 20928 esac ;; 20929 esac 20930 done 20931 20932 (set) 2>&1 | 20933 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20934 *${as_nl}ac_space=\ *) 20935 # `set' does not quote correctly, so add quotes (double-quote 20936 # substitution turns \\\\ into \\, and sed turns \\ into \). 20937 sed -n \ 20938 "s/'/'\\\\''/g; 20939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20940 ;; #( 20941 *) 20942 # `set' quotes correctly as required by POSIX, so do not add quotes. 20943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20944 ;; 20945 esac | 20946 sort 20947) | 20948 sed ' 20949 /^ac_cv_env_/b end 20950 t clear 20951 :clear 20952 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20953 t end 20954 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20955 :end' >>confcache 20956if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20957 if test -w "$cache_file"; then 20958 test "x$cache_file" != "x/dev/null" && 20959 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 20960$as_echo "$as_me: updating cache $cache_file" >&6;} 20961 cat confcache >$cache_file 20962 else 20963 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20964$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20965 fi 20966fi 20967rm -f confcache 20968 20969test "x$prefix" = xNONE && prefix=$ac_default_prefix 20970# Let make expand exec_prefix. 20971test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20972 20973DEFS=-DHAVE_CONFIG_H 20974 20975ac_libobjs= 20976ac_ltlibobjs= 20977for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20978 # 1. Remove the extension, and $U if already installed. 20979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20982 # will be set to the directory where LIBOBJS objects are built. 20983 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20984 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20985done 20986LIBOBJS=$ac_libobjs 20987 20988LTLIBOBJS=$ac_ltlibobjs 20989 20990 20991 if test -n "$EXEEXT"; then 20992 am__EXEEXT_TRUE= 20993 am__EXEEXT_FALSE='#' 20994else 20995 am__EXEEXT_TRUE='#' 20996 am__EXEEXT_FALSE= 20997fi 20998 20999if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21000 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21001Usually this means the macro was only invoked conditionally." >&5 21002$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21003Usually this means the macro was only invoked conditionally." >&2;} 21004 { (exit 1); exit 1; }; } 21005fi 21006if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21007 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21008Usually this means the macro was only invoked conditionally." >&5 21009$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21010Usually this means the macro was only invoked conditionally." >&2;} 21011 { (exit 1); exit 1; }; } 21012fi 21013if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21014 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21015Usually this means the macro was only invoked conditionally." >&5 21016$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21017Usually this means the macro was only invoked conditionally." >&2;} 21018 { (exit 1); exit 1; }; } 21019fi 21020 21021: ${CONFIG_STATUS=./config.status} 21022ac_write_fail=0 21023ac_clean_files_save=$ac_clean_files 21024ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21025{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21026$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21027cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21028#! $SHELL 21029# Generated by $as_me. 21030# Run this file to recreate the current configuration. 21031# Compiler output produced by configure, useful for debugging 21032# configure, is in config.log if it exists. 21033 21034debug=false 21035ac_cs_recheck=false 21036ac_cs_silent=false 21037SHELL=\${CONFIG_SHELL-$SHELL} 21038_ACEOF 21039 21040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21041## --------------------- ## 21042## M4sh Initialization. ## 21043## --------------------- ## 21044 21045# Be more Bourne compatible 21046DUALCASE=1; export DUALCASE # for MKS sh 21047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21048 emulate sh 21049 NULLCMD=: 21050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21051 # is contrary to our usage. Disable this feature. 21052 alias -g '${1+"$@"}'='"$@"' 21053 setopt NO_GLOB_SUBST 21054else 21055 case `(set -o) 2>/dev/null` in 21056 *posix*) set -o posix ;; 21057esac 21058 21059fi 21060 21061 21062 21063 21064# PATH needs CR 21065# Avoid depending upon Character Ranges. 21066as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21068as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21069as_cr_digits='0123456789' 21070as_cr_alnum=$as_cr_Letters$as_cr_digits 21071 21072as_nl=' 21073' 21074export as_nl 21075# Printing a long string crashes Solaris 7 /usr/bin/printf. 21076as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21077as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21078as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21079if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21080 as_echo='printf %s\n' 21081 as_echo_n='printf %s' 21082else 21083 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21084 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21085 as_echo_n='/usr/ucb/echo -n' 21086 else 21087 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21088 as_echo_n_body='eval 21089 arg=$1; 21090 case $arg in 21091 *"$as_nl"*) 21092 expr "X$arg" : "X\\(.*\\)$as_nl"; 21093 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21094 esac; 21095 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21096 ' 21097 export as_echo_n_body 21098 as_echo_n='sh -c $as_echo_n_body as_echo' 21099 fi 21100 export as_echo_body 21101 as_echo='sh -c $as_echo_body as_echo' 21102fi 21103 21104# The user is always right. 21105if test "${PATH_SEPARATOR+set}" != set; then 21106 PATH_SEPARATOR=: 21107 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21108 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21109 PATH_SEPARATOR=';' 21110 } 21111fi 21112 21113# Support unset when possible. 21114if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21115 as_unset=unset 21116else 21117 as_unset=false 21118fi 21119 21120 21121# IFS 21122# We need space, tab and new line, in precisely that order. Quoting is 21123# there to prevent editors from complaining about space-tab. 21124# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21125# splitting by setting IFS to empty value.) 21126IFS=" "" $as_nl" 21127 21128# Find who we are. Look in the path if we contain no directory separator. 21129case $0 in 21130 *[\\/]* ) as_myself=$0 ;; 21131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21132for as_dir in $PATH 21133do 21134 IFS=$as_save_IFS 21135 test -z "$as_dir" && as_dir=. 21136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21137done 21138IFS=$as_save_IFS 21139 21140 ;; 21141esac 21142# We did not find ourselves, most probably we were run as `sh COMMAND' 21143# in which case we are not to be found in the path. 21144if test "x$as_myself" = x; then 21145 as_myself=$0 21146fi 21147if test ! -f "$as_myself"; then 21148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21149 { (exit 1); exit 1; } 21150fi 21151 21152# Work around bugs in pre-3.0 UWIN ksh. 21153for as_var in ENV MAIL MAILPATH 21154do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21155done 21156PS1='$ ' 21157PS2='> ' 21158PS4='+ ' 21159 21160# NLS nuisances. 21161LC_ALL=C 21162export LC_ALL 21163LANGUAGE=C 21164export LANGUAGE 21165 21166# Required to use basename. 21167if expr a : '\(a\)' >/dev/null 2>&1 && 21168 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21169 as_expr=expr 21170else 21171 as_expr=false 21172fi 21173 21174if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21175 as_basename=basename 21176else 21177 as_basename=false 21178fi 21179 21180 21181# Name of the executable. 21182as_me=`$as_basename -- "$0" || 21183$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21184 X"$0" : 'X\(//\)$' \| \ 21185 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21186$as_echo X/"$0" | 21187 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21188 s//\1/ 21189 q 21190 } 21191 /^X\/\(\/\/\)$/{ 21192 s//\1/ 21193 q 21194 } 21195 /^X\/\(\/\).*/{ 21196 s//\1/ 21197 q 21198 } 21199 s/.*/./; q'` 21200 21201# CDPATH. 21202$as_unset CDPATH 21203 21204 21205 21206 as_lineno_1=$LINENO 21207 as_lineno_2=$LINENO 21208 test "x$as_lineno_1" != "x$as_lineno_2" && 21209 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21210 21211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21212 # uniformly replaced by the line number. The first 'sed' inserts a 21213 # line-number line after each line using $LINENO; the second 'sed' 21214 # does the real work. The second script uses 'N' to pair each 21215 # line-number line with the line containing $LINENO, and appends 21216 # trailing '-' during substitution so that $LINENO is not a special 21217 # case at line end. 21218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21219 # scripts with optimization help from Paolo Bonzini. Blame Lee 21220 # E. McMahon (1931-1989) for sed's syntax. :-) 21221 sed -n ' 21222 p 21223 /[$]LINENO/= 21224 ' <$as_myself | 21225 sed ' 21226 s/[$]LINENO.*/&-/ 21227 t lineno 21228 b 21229 :lineno 21230 N 21231 :loop 21232 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21233 t loop 21234 s/-\n.*// 21235 ' >$as_me.lineno && 21236 chmod +x "$as_me.lineno" || 21237 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21238 { (exit 1); exit 1; }; } 21239 21240 # Don't try to exec as it changes $[0], causing all sort of problems 21241 # (the dirname of $[0] is not the place where we might find the 21242 # original and so on. Autoconf is especially sensitive to this). 21243 . "./$as_me.lineno" 21244 # Exit status is that of the last command. 21245 exit 21246} 21247 21248 21249if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21250 as_dirname=dirname 21251else 21252 as_dirname=false 21253fi 21254 21255ECHO_C= ECHO_N= ECHO_T= 21256case `echo -n x` in 21257-n*) 21258 case `echo 'x\c'` in 21259 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21260 *) ECHO_C='\c';; 21261 esac;; 21262*) 21263 ECHO_N='-n';; 21264esac 21265if expr a : '\(a\)' >/dev/null 2>&1 && 21266 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21267 as_expr=expr 21268else 21269 as_expr=false 21270fi 21271 21272rm -f conf$$ conf$$.exe conf$$.file 21273if test -d conf$$.dir; then 21274 rm -f conf$$.dir/conf$$.file 21275else 21276 rm -f conf$$.dir 21277 mkdir conf$$.dir 2>/dev/null 21278fi 21279if (echo >conf$$.file) 2>/dev/null; then 21280 if ln -s conf$$.file conf$$ 2>/dev/null; then 21281 as_ln_s='ln -s' 21282 # ... but there are two gotchas: 21283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21285 # In both cases, we have to default to `cp -p'. 21286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21287 as_ln_s='cp -p' 21288 elif ln conf$$.file conf$$ 2>/dev/null; then 21289 as_ln_s=ln 21290 else 21291 as_ln_s='cp -p' 21292 fi 21293else 21294 as_ln_s='cp -p' 21295fi 21296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21297rmdir conf$$.dir 2>/dev/null 21298 21299if mkdir -p . 2>/dev/null; then 21300 as_mkdir_p=: 21301else 21302 test -d ./-p && rmdir ./-p 21303 as_mkdir_p=false 21304fi 21305 21306if test -x / >/dev/null 2>&1; then 21307 as_test_x='test -x' 21308else 21309 if ls -dL / >/dev/null 2>&1; then 21310 as_ls_L_option=L 21311 else 21312 as_ls_L_option= 21313 fi 21314 as_test_x=' 21315 eval sh -c '\'' 21316 if test -d "$1"; then 21317 test -d "$1/."; 21318 else 21319 case $1 in 21320 -*)set "./$1";; 21321 esac; 21322 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21323 ???[sx]*):;;*)false;;esac;fi 21324 '\'' sh 21325 ' 21326fi 21327as_executable_p=$as_test_x 21328 21329# Sed expression to map a string onto a valid CPP name. 21330as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21331 21332# Sed expression to map a string onto a valid variable name. 21333as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21334 21335 21336exec 6>&1 21337 21338# Save the log message, to keep $[0] and so on meaningful, and to 21339# report actual input values of CONFIG_FILES etc. instead of their 21340# values after options handling. 21341ac_log=" 21342This file was extended by libXres $as_me 1.0.4, which was 21343generated by GNU Autoconf 2.63. Invocation command line was 21344 21345 CONFIG_FILES = $CONFIG_FILES 21346 CONFIG_HEADERS = $CONFIG_HEADERS 21347 CONFIG_LINKS = $CONFIG_LINKS 21348 CONFIG_COMMANDS = $CONFIG_COMMANDS 21349 $ $0 $@ 21350 21351on `(hostname || uname -n) 2>/dev/null | sed 1q` 21352" 21353 21354_ACEOF 21355 21356case $ac_config_files in *" 21357"*) set x $ac_config_files; shift; ac_config_files=$*;; 21358esac 21359 21360case $ac_config_headers in *" 21361"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21362esac 21363 21364 21365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21366# Files that config.status was made for. 21367config_files="$ac_config_files" 21368config_headers="$ac_config_headers" 21369config_commands="$ac_config_commands" 21370 21371_ACEOF 21372 21373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21374ac_cs_usage="\ 21375\`$as_me' instantiates files from templates according to the 21376current configuration. 21377 21378Usage: $0 [OPTION]... [FILE]... 21379 21380 -h, --help print this help, then exit 21381 -V, --version print version number and configuration settings, then exit 21382 -q, --quiet, --silent 21383 do not print progress messages 21384 -d, --debug don't remove temporary files 21385 --recheck update $as_me by reconfiguring in the same conditions 21386 --file=FILE[:TEMPLATE] 21387 instantiate the configuration file FILE 21388 --header=FILE[:TEMPLATE] 21389 instantiate the configuration header FILE 21390 21391Configuration files: 21392$config_files 21393 21394Configuration headers: 21395$config_headers 21396 21397Configuration commands: 21398$config_commands 21399 21400Report bugs to <bug-autoconf@gnu.org>." 21401 21402_ACEOF 21403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21404ac_cs_version="\\ 21405libXres config.status 1.0.4 21406configured by $0, generated by GNU Autoconf 2.63, 21407 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21408 21409Copyright (C) 2008 Free Software Foundation, Inc. 21410This config.status script is free software; the Free Software Foundation 21411gives unlimited permission to copy, distribute and modify it." 21412 21413ac_pwd='$ac_pwd' 21414srcdir='$srcdir' 21415INSTALL='$INSTALL' 21416MKDIR_P='$MKDIR_P' 21417AWK='$AWK' 21418test -n "\$AWK" || AWK=awk 21419_ACEOF 21420 21421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21422# The default lists apply if the user does not specify any file. 21423ac_need_defaults=: 21424while test $# != 0 21425do 21426 case $1 in 21427 --*=*) 21428 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21430 ac_shift=: 21431 ;; 21432 *) 21433 ac_option=$1 21434 ac_optarg=$2 21435 ac_shift=shift 21436 ;; 21437 esac 21438 21439 case $ac_option in 21440 # Handling of the options. 21441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21442 ac_cs_recheck=: ;; 21443 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21444 $as_echo "$ac_cs_version"; exit ;; 21445 --debug | --debu | --deb | --de | --d | -d ) 21446 debug=: ;; 21447 --file | --fil | --fi | --f ) 21448 $ac_shift 21449 case $ac_optarg in 21450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21451 esac 21452 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21453 ac_need_defaults=false;; 21454 --header | --heade | --head | --hea ) 21455 $ac_shift 21456 case $ac_optarg in 21457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21458 esac 21459 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21460 ac_need_defaults=false;; 21461 --he | --h) 21462 # Conflict between --help and --header 21463 { $as_echo "$as_me: error: ambiguous option: $1 21464Try \`$0 --help' for more information." >&2 21465 { (exit 1); exit 1; }; };; 21466 --help | --hel | -h ) 21467 $as_echo "$ac_cs_usage"; exit ;; 21468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21469 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21470 ac_cs_silent=: ;; 21471 21472 # This is an error. 21473 -*) { $as_echo "$as_me: error: unrecognized option: $1 21474Try \`$0 --help' for more information." >&2 21475 { (exit 1); exit 1; }; } ;; 21476 21477 *) ac_config_targets="$ac_config_targets $1" 21478 ac_need_defaults=false ;; 21479 21480 esac 21481 shift 21482done 21483 21484ac_configure_extra_args= 21485 21486if $ac_cs_silent; then 21487 exec 6>/dev/null 21488 ac_configure_extra_args="$ac_configure_extra_args --silent" 21489fi 21490 21491_ACEOF 21492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21493if \$ac_cs_recheck; then 21494 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21495 shift 21496 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21497 CONFIG_SHELL='$SHELL' 21498 export CONFIG_SHELL 21499 exec "\$@" 21500fi 21501 21502_ACEOF 21503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21504exec 5>>config.log 21505{ 21506 echo 21507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21508## Running $as_me. ## 21509_ASBOX 21510 $as_echo "$ac_log" 21511} >&5 21512 21513_ACEOF 21514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21515# 21516# INIT-COMMANDS 21517# 21518AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21519 21520_ACEOF 21521 21522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21523 21524# Handling of arguments. 21525for ac_config_target in $ac_config_targets 21526do 21527 case $ac_config_target in 21528 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21530 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21531 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21532 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21533 "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;; 21534 21535 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21536$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21537 { (exit 1); exit 1; }; };; 21538 esac 21539done 21540 21541 21542# If the user did not use the arguments to specify the items to instantiate, 21543# then the envvar interface is used. Set only those that are not. 21544# We use the long form for the default assignment because of an extremely 21545# bizarre bug on SunOS 4.1.3. 21546if $ac_need_defaults; then 21547 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21548 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21550fi 21551 21552# Have a temporary directory for convenience. Make it in the build tree 21553# simply because there is no reason against having it here, and in addition, 21554# creating and moving files from /tmp can sometimes cause problems. 21555# Hook for its removal unless debugging. 21556# Note that there is a small window in which the directory will not be cleaned: 21557# after its creation but before its name has been assigned to `$tmp'. 21558$debug || 21559{ 21560 tmp= 21561 trap 'exit_status=$? 21562 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21563' 0 21564 trap '{ (exit 1); exit 1; }' 1 2 13 15 21565} 21566# Create a (secure) tmp directory for tmp files. 21567 21568{ 21569 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21570 test -n "$tmp" && test -d "$tmp" 21571} || 21572{ 21573 tmp=./conf$$-$RANDOM 21574 (umask 077 && mkdir "$tmp") 21575} || 21576{ 21577 $as_echo "$as_me: cannot create a temporary directory in ." >&2 21578 { (exit 1); exit 1; } 21579} 21580 21581# Set up the scripts for CONFIG_FILES section. 21582# No need to generate them if there are no CONFIG_FILES. 21583# This happens for instance with `./config.status config.h'. 21584if test -n "$CONFIG_FILES"; then 21585 21586 21587ac_cr=' 21588' 21589ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21590if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21591 ac_cs_awk_cr='\\r' 21592else 21593 ac_cs_awk_cr=$ac_cr 21594fi 21595 21596echo 'BEGIN {' >"$tmp/subs1.awk" && 21597_ACEOF 21598 21599 21600{ 21601 echo "cat >conf$$subs.awk <<_ACEOF" && 21602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21603 echo "_ACEOF" 21604} >conf$$subs.sh || 21605 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21606$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21607 { (exit 1); exit 1; }; } 21608ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21609ac_delim='%!_!# ' 21610for ac_last_try in false false false false false :; do 21611 . ./conf$$subs.sh || 21612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21613$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21614 { (exit 1); exit 1; }; } 21615 21616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21617 if test $ac_delim_n = $ac_delim_num; then 21618 break 21619 elif $ac_last_try; then 21620 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21621$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21622 { (exit 1); exit 1; }; } 21623 else 21624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21625 fi 21626done 21627rm -f conf$$subs.sh 21628 21629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21630cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21631_ACEOF 21632sed -n ' 21633h 21634s/^/S["/; s/!.*/"]=/ 21635p 21636g 21637s/^[^!]*!// 21638:repl 21639t repl 21640s/'"$ac_delim"'$// 21641t delim 21642:nl 21643h 21644s/\(.\{148\}\).*/\1/ 21645t more1 21646s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21647p 21648n 21649b repl 21650:more1 21651s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21652p 21653g 21654s/.\{148\}// 21655t nl 21656:delim 21657h 21658s/\(.\{148\}\).*/\1/ 21659t more2 21660s/["\\]/\\&/g; s/^/"/; s/$/"/ 21661p 21662b 21663:more2 21664s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21665p 21666g 21667s/.\{148\}// 21668t delim 21669' <conf$$subs.awk | sed ' 21670/^[^""]/{ 21671 N 21672 s/\n// 21673} 21674' >>$CONFIG_STATUS || ac_write_fail=1 21675rm -f conf$$subs.awk 21676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21677_ACAWK 21678cat >>"\$tmp/subs1.awk" <<_ACAWK && 21679 for (key in S) S_is_set[key] = 1 21680 FS = "" 21681 21682} 21683{ 21684 line = $ 0 21685 nfields = split(line, field, "@") 21686 substed = 0 21687 len = length(field[1]) 21688 for (i = 2; i < nfields; i++) { 21689 key = field[i] 21690 keylen = length(key) 21691 if (S_is_set[key]) { 21692 value = S[key] 21693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21694 len += length(value) + length(field[++i]) 21695 substed = 1 21696 } else 21697 len += 1 + keylen 21698 } 21699 21700 print line 21701} 21702 21703_ACAWK 21704_ACEOF 21705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21706if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21708else 21709 cat 21710fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21711 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 21712$as_echo "$as_me: error: could not setup config files machinery" >&2;} 21713 { (exit 1); exit 1; }; } 21714_ACEOF 21715 21716# VPATH may cause trouble with some makes, so we remove $(srcdir), 21717# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21718# trailing colons and then remove the whole line if VPATH becomes empty 21719# (actually we leave an empty line to preserve line numbers). 21720if test "x$srcdir" = x.; then 21721 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21722s/:*\$(srcdir):*/:/ 21723s/:*\${srcdir}:*/:/ 21724s/:*@srcdir@:*/:/ 21725s/^\([^=]*=[ ]*\):*/\1/ 21726s/:*$// 21727s/^[^=]*=[ ]*$// 21728}' 21729fi 21730 21731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21732fi # test -n "$CONFIG_FILES" 21733 21734# Set up the scripts for CONFIG_HEADERS section. 21735# No need to generate them if there are no CONFIG_HEADERS. 21736# This happens for instance with `./config.status Makefile'. 21737if test -n "$CONFIG_HEADERS"; then 21738cat >"$tmp/defines.awk" <<\_ACAWK || 21739BEGIN { 21740_ACEOF 21741 21742# Transform confdefs.h into an awk script `defines.awk', embedded as 21743# here-document in config.status, that substitutes the proper values into 21744# config.h.in to produce config.h. 21745 21746# Create a delimiter string that does not exist in confdefs.h, to ease 21747# handling of long lines. 21748ac_delim='%!_!# ' 21749for ac_last_try in false false :; do 21750 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 21751 if test -z "$ac_t"; then 21752 break 21753 elif $ac_last_try; then 21754 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 21755$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 21756 { (exit 1); exit 1; }; } 21757 else 21758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21759 fi 21760done 21761 21762# For the awk script, D is an array of macro values keyed by name, 21763# likewise P contains macro parameters if any. Preserve backslash 21764# newline sequences. 21765 21766ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21767sed -n ' 21768s/.\{148\}/&'"$ac_delim"'/g 21769t rset 21770:rset 21771s/^[ ]*#[ ]*define[ ][ ]*/ / 21772t def 21773d 21774:def 21775s/\\$// 21776t bsnl 21777s/["\\]/\\&/g 21778s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21779D["\1"]=" \3"/p 21780s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21781d 21782:bsnl 21783s/["\\]/\\&/g 21784s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21785D["\1"]=" \3\\\\\\n"\\/p 21786t cont 21787s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21788t cont 21789d 21790:cont 21791n 21792s/.\{148\}/&'"$ac_delim"'/g 21793t clear 21794:clear 21795s/\\$// 21796t bsnlc 21797s/["\\]/\\&/g; s/^/"/; s/$/"/p 21798d 21799:bsnlc 21800s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21801b cont 21802' <confdefs.h | sed ' 21803s/'"$ac_delim"'/"\\\ 21804"/g' >>$CONFIG_STATUS || ac_write_fail=1 21805 21806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21807 for (key in D) D_is_set[key] = 1 21808 FS = "" 21809} 21810/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21811 line = \$ 0 21812 split(line, arg, " ") 21813 if (arg[1] == "#") { 21814 defundef = arg[2] 21815 mac1 = arg[3] 21816 } else { 21817 defundef = substr(arg[1], 2) 21818 mac1 = arg[2] 21819 } 21820 split(mac1, mac2, "(") #) 21821 macro = mac2[1] 21822 prefix = substr(line, 1, index(line, defundef) - 1) 21823 if (D_is_set[macro]) { 21824 # Preserve the white space surrounding the "#". 21825 print prefix "define", macro P[macro] D[macro] 21826 next 21827 } else { 21828 # Replace #undef with comments. This is necessary, for example, 21829 # in the case of _POSIX_SOURCE, which is predefined and required 21830 # on some systems where configure will not decide to define it. 21831 if (defundef == "undef") { 21832 print "/*", prefix defundef, macro, "*/" 21833 next 21834 } 21835 } 21836} 21837{ print } 21838_ACAWK 21839_ACEOF 21840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21841 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 21842$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 21843 { (exit 1); exit 1; }; } 21844fi # test -n "$CONFIG_HEADERS" 21845 21846 21847eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21848shift 21849for ac_tag 21850do 21851 case $ac_tag in 21852 :[FHLC]) ac_mode=$ac_tag; continue;; 21853 esac 21854 case $ac_mode$ac_tag in 21855 :[FHL]*:*);; 21856 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 21857$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 21858 { (exit 1); exit 1; }; };; 21859 :[FH]-) ac_tag=-:-;; 21860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21861 esac 21862 ac_save_IFS=$IFS 21863 IFS=: 21864 set x $ac_tag 21865 IFS=$ac_save_IFS 21866 shift 21867 ac_file=$1 21868 shift 21869 21870 case $ac_mode in 21871 :L) ac_source=$1;; 21872 :[FH]) 21873 ac_file_inputs= 21874 for ac_f 21875 do 21876 case $ac_f in 21877 -) ac_f="$tmp/stdin";; 21878 *) # Look for the file first in the build tree, then in the source tree 21879 # (if the path is not absolute). The absolute path cannot be DOS-style, 21880 # because $ac_f cannot contain `:'. 21881 test -f "$ac_f" || 21882 case $ac_f in 21883 [\\/$]*) false;; 21884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21885 esac || 21886 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21887$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21888 { (exit 1); exit 1; }; };; 21889 esac 21890 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21891 ac_file_inputs="$ac_file_inputs '$ac_f'" 21892 done 21893 21894 # Let's still pretend it is `configure' which instantiates (i.e., don't 21895 # use $as_me), people would be surprised to read: 21896 # /* config.h. Generated by config.status. */ 21897 configure_input='Generated from '` 21898 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21899 `' by configure.' 21900 if test x"$ac_file" != x-; then 21901 configure_input="$ac_file. $configure_input" 21902 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 21903$as_echo "$as_me: creating $ac_file" >&6;} 21904 fi 21905 # Neutralize special characters interpreted by sed in replacement strings. 21906 case $configure_input in #( 21907 *\&* | *\|* | *\\* ) 21908 ac_sed_conf_input=`$as_echo "$configure_input" | 21909 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21910 *) ac_sed_conf_input=$configure_input;; 21911 esac 21912 21913 case $ac_tag in 21914 *:-:* | *:-) cat >"$tmp/stdin" \ 21915 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 21916$as_echo "$as_me: error: could not create $ac_file" >&2;} 21917 { (exit 1); exit 1; }; } ;; 21918 esac 21919 ;; 21920 esac 21921 21922 ac_dir=`$as_dirname -- "$ac_file" || 21923$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21924 X"$ac_file" : 'X\(//\)[^/]' \| \ 21925 X"$ac_file" : 'X\(//\)$' \| \ 21926 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21927$as_echo X"$ac_file" | 21928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21929 s//\1/ 21930 q 21931 } 21932 /^X\(\/\/\)[^/].*/{ 21933 s//\1/ 21934 q 21935 } 21936 /^X\(\/\/\)$/{ 21937 s//\1/ 21938 q 21939 } 21940 /^X\(\/\).*/{ 21941 s//\1/ 21942 q 21943 } 21944 s/.*/./; q'` 21945 { as_dir="$ac_dir" 21946 case $as_dir in #( 21947 -*) as_dir=./$as_dir;; 21948 esac 21949 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21950 as_dirs= 21951 while :; do 21952 case $as_dir in #( 21953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21954 *) as_qdir=$as_dir;; 21955 esac 21956 as_dirs="'$as_qdir' $as_dirs" 21957 as_dir=`$as_dirname -- "$as_dir" || 21958$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21959 X"$as_dir" : 'X\(//\)[^/]' \| \ 21960 X"$as_dir" : 'X\(//\)$' \| \ 21961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21962$as_echo X"$as_dir" | 21963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21964 s//\1/ 21965 q 21966 } 21967 /^X\(\/\/\)[^/].*/{ 21968 s//\1/ 21969 q 21970 } 21971 /^X\(\/\/\)$/{ 21972 s//\1/ 21973 q 21974 } 21975 /^X\(\/\).*/{ 21976 s//\1/ 21977 q 21978 } 21979 s/.*/./; q'` 21980 test -d "$as_dir" && break 21981 done 21982 test -z "$as_dirs" || eval "mkdir $as_dirs" 21983 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21984$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 21985 { (exit 1); exit 1; }; }; } 21986 ac_builddir=. 21987 21988case "$ac_dir" in 21989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21990*) 21991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21992 # A ".." for each directory in $ac_dir_suffix. 21993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21994 case $ac_top_builddir_sub in 21995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21997 esac ;; 21998esac 21999ac_abs_top_builddir=$ac_pwd 22000ac_abs_builddir=$ac_pwd$ac_dir_suffix 22001# for backward compatibility: 22002ac_top_builddir=$ac_top_build_prefix 22003 22004case $srcdir in 22005 .) # We are building in place. 22006 ac_srcdir=. 22007 ac_top_srcdir=$ac_top_builddir_sub 22008 ac_abs_top_srcdir=$ac_pwd ;; 22009 [\\/]* | ?:[\\/]* ) # Absolute name. 22010 ac_srcdir=$srcdir$ac_dir_suffix; 22011 ac_top_srcdir=$srcdir 22012 ac_abs_top_srcdir=$srcdir ;; 22013 *) # Relative name. 22014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22015 ac_top_srcdir=$ac_top_build_prefix$srcdir 22016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22017esac 22018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22019 22020 22021 case $ac_mode in 22022 :F) 22023 # 22024 # CONFIG_FILE 22025 # 22026 22027 case $INSTALL in 22028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22030 esac 22031 ac_MKDIR_P=$MKDIR_P 22032 case $MKDIR_P in 22033 [\\/$]* | ?:[\\/]* ) ;; 22034 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22035 esac 22036_ACEOF 22037 22038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22039# If the template does not know about datarootdir, expand it. 22040# FIXME: This hack should be removed a few years after 2.60. 22041ac_datarootdir_hack=; ac_datarootdir_seen= 22042 22043ac_sed_dataroot=' 22044/datarootdir/ { 22045 p 22046 q 22047} 22048/@datadir@/p 22049/@docdir@/p 22050/@infodir@/p 22051/@localedir@/p 22052/@mandir@/p 22053' 22054case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22055*datarootdir*) ac_datarootdir_seen=yes;; 22056*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22057 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22058$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22059_ACEOF 22060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22061 ac_datarootdir_hack=' 22062 s&@datadir@&$datadir&g 22063 s&@docdir@&$docdir&g 22064 s&@infodir@&$infodir&g 22065 s&@localedir@&$localedir&g 22066 s&@mandir@&$mandir&g 22067 s&\\\${datarootdir}&$datarootdir&g' ;; 22068esac 22069_ACEOF 22070 22071# Neutralize VPATH when `$srcdir' = `.'. 22072# Shell code in configure.ac might set extrasub. 22073# FIXME: do we really want to maintain this feature? 22074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22075ac_sed_extra="$ac_vpsub 22076$extrasub 22077_ACEOF 22078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22079:t 22080/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22081s|@configure_input@|$ac_sed_conf_input|;t t 22082s&@top_builddir@&$ac_top_builddir_sub&;t t 22083s&@top_build_prefix@&$ac_top_build_prefix&;t t 22084s&@srcdir@&$ac_srcdir&;t t 22085s&@abs_srcdir@&$ac_abs_srcdir&;t t 22086s&@top_srcdir@&$ac_top_srcdir&;t t 22087s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22088s&@builddir@&$ac_builddir&;t t 22089s&@abs_builddir@&$ac_abs_builddir&;t t 22090s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22091s&@INSTALL@&$ac_INSTALL&;t t 22092s&@MKDIR_P@&$ac_MKDIR_P&;t t 22093$ac_datarootdir_hack 22094" 22095eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22096 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22097$as_echo "$as_me: error: could not create $ac_file" >&2;} 22098 { (exit 1); exit 1; }; } 22099 22100test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22101 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22102 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22103 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22104which seems to be undefined. Please make sure it is defined." >&5 22105$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22106which seems to be undefined. Please make sure it is defined." >&2;} 22107 22108 rm -f "$tmp/stdin" 22109 case $ac_file in 22110 -) cat "$tmp/out" && rm -f "$tmp/out";; 22111 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22112 esac \ 22113 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22114$as_echo "$as_me: error: could not create $ac_file" >&2;} 22115 { (exit 1); exit 1; }; } 22116 ;; 22117 :H) 22118 # 22119 # CONFIG_HEADER 22120 # 22121 if test x"$ac_file" != x-; then 22122 { 22123 $as_echo "/* $configure_input */" \ 22124 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22125 } >"$tmp/config.h" \ 22126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22127$as_echo "$as_me: error: could not create $ac_file" >&2;} 22128 { (exit 1); exit 1; }; } 22129 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22130 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22131$as_echo "$as_me: $ac_file is unchanged" >&6;} 22132 else 22133 rm -f "$ac_file" 22134 mv "$tmp/config.h" "$ac_file" \ 22135 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22136$as_echo "$as_me: error: could not create $ac_file" >&2;} 22137 { (exit 1); exit 1; }; } 22138 fi 22139 else 22140 $as_echo "/* $configure_input */" \ 22141 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22142 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22143$as_echo "$as_me: error: could not create -" >&2;} 22144 { (exit 1); exit 1; }; } 22145 fi 22146# Compute "$ac_file"'s index in $config_headers. 22147_am_arg="$ac_file" 22148_am_stamp_count=1 22149for _am_header in $config_headers :; do 22150 case $_am_header in 22151 $_am_arg | $_am_arg:* ) 22152 break ;; 22153 * ) 22154 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22155 esac 22156done 22157echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22158$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22159 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22160 X"$_am_arg" : 'X\(//\)$' \| \ 22161 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22162$as_echo X"$_am_arg" | 22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22164 s//\1/ 22165 q 22166 } 22167 /^X\(\/\/\)[^/].*/{ 22168 s//\1/ 22169 q 22170 } 22171 /^X\(\/\/\)$/{ 22172 s//\1/ 22173 q 22174 } 22175 /^X\(\/\).*/{ 22176 s//\1/ 22177 q 22178 } 22179 s/.*/./; q'`/stamp-h$_am_stamp_count 22180 ;; 22181 22182 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22183$as_echo "$as_me: executing $ac_file commands" >&6;} 22184 ;; 22185 esac 22186 22187 22188 case $ac_file$ac_mode in 22189 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22190 # Autoconf 2.62 quotes --file arguments for eval, but not when files 22191 # are listed without --file. Let's play safe and only enable the eval 22192 # if we detect the quoting. 22193 case $CONFIG_FILES in 22194 *\'*) eval set x "$CONFIG_FILES" ;; 22195 *) set x $CONFIG_FILES ;; 22196 esac 22197 shift 22198 for mf 22199 do 22200 # Strip MF so we end up with the name of the file. 22201 mf=`echo "$mf" | sed -e 's/:.*$//'` 22202 # Check whether this is an Automake generated Makefile or not. 22203 # We used to match only the files named `Makefile.in', but 22204 # some people rename them; so instead we look at the file content. 22205 # Grep'ing the first line is not enough: some people post-process 22206 # each Makefile.in and add a new line on top of each file to say so. 22207 # Grep'ing the whole file is not good either: AIX grep has a line 22208 # limit of 2048, but all sed's we know have understand at least 4000. 22209 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22210 dirpart=`$as_dirname -- "$mf" || 22211$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22212 X"$mf" : 'X\(//\)[^/]' \| \ 22213 X"$mf" : 'X\(//\)$' \| \ 22214 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22215$as_echo X"$mf" | 22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22217 s//\1/ 22218 q 22219 } 22220 /^X\(\/\/\)[^/].*/{ 22221 s//\1/ 22222 q 22223 } 22224 /^X\(\/\/\)$/{ 22225 s//\1/ 22226 q 22227 } 22228 /^X\(\/\).*/{ 22229 s//\1/ 22230 q 22231 } 22232 s/.*/./; q'` 22233 else 22234 continue 22235 fi 22236 # Extract the definition of DEPDIR, am__include, and am__quote 22237 # from the Makefile without running `make'. 22238 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22239 test -z "$DEPDIR" && continue 22240 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22241 test -z "am__include" && continue 22242 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22243 # When using ansi2knr, U may be empty or an underscore; expand it 22244 U=`sed -n 's/^U = //p' < "$mf"` 22245 # Find all dependency output files, they are included files with 22246 # $(DEPDIR) in their names. We invoke sed twice because it is the 22247 # simplest approach to changing $(DEPDIR) to its actual value in the 22248 # expansion. 22249 for file in `sed -n " 22250 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22251 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22252 # Make sure the directory exists. 22253 test -f "$dirpart/$file" && continue 22254 fdir=`$as_dirname -- "$file" || 22255$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22256 X"$file" : 'X\(//\)[^/]' \| \ 22257 X"$file" : 'X\(//\)$' \| \ 22258 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22259$as_echo X"$file" | 22260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22261 s//\1/ 22262 q 22263 } 22264 /^X\(\/\/\)[^/].*/{ 22265 s//\1/ 22266 q 22267 } 22268 /^X\(\/\/\)$/{ 22269 s//\1/ 22270 q 22271 } 22272 /^X\(\/\).*/{ 22273 s//\1/ 22274 q 22275 } 22276 s/.*/./; q'` 22277 { as_dir=$dirpart/$fdir 22278 case $as_dir in #( 22279 -*) as_dir=./$as_dir;; 22280 esac 22281 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22282 as_dirs= 22283 while :; do 22284 case $as_dir in #( 22285 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22286 *) as_qdir=$as_dir;; 22287 esac 22288 as_dirs="'$as_qdir' $as_dirs" 22289 as_dir=`$as_dirname -- "$as_dir" || 22290$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22291 X"$as_dir" : 'X\(//\)[^/]' \| \ 22292 X"$as_dir" : 'X\(//\)$' \| \ 22293 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22294$as_echo X"$as_dir" | 22295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22296 s//\1/ 22297 q 22298 } 22299 /^X\(\/\/\)[^/].*/{ 22300 s//\1/ 22301 q 22302 } 22303 /^X\(\/\/\)$/{ 22304 s//\1/ 22305 q 22306 } 22307 /^X\(\/\).*/{ 22308 s//\1/ 22309 q 22310 } 22311 s/.*/./; q'` 22312 test -d "$as_dir" && break 22313 done 22314 test -z "$as_dirs" || eval "mkdir $as_dirs" 22315 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22316$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22317 { (exit 1); exit 1; }; }; } 22318 # echo "creating $dirpart/$file" 22319 echo '# dummy' > "$dirpart/$file" 22320 done 22321 done 22322} 22323 ;; 22324 22325 esac 22326done # for ac_tag 22327 22328 22329{ (exit 0); exit 0; } 22330_ACEOF 22331chmod +x $CONFIG_STATUS 22332ac_clean_files=$ac_clean_files_save 22333 22334test $ac_write_fail = 0 || 22335 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22336$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22337 { (exit 1); exit 1; }; } 22338 22339 22340# configure is writing to config.log, and then calls config.status. 22341# config.status does its own redirection, appending to config.log. 22342# Unfortunately, on DOS this fails, as config.log is still kept open 22343# by configure, so config.status won't be able to write to it; its 22344# output is simply discarded. So we exec the FD to /dev/null, 22345# effectively closing config.log, so it can be properly (re)opened and 22346# appended to by config.status. When coming back to configure, we 22347# need to make the FD available again. 22348if test "$no_create" != yes; then 22349 ac_cs_success=: 22350 ac_config_status_args= 22351 test "$silent" = yes && 22352 ac_config_status_args="$ac_config_status_args --quiet" 22353 exec 5>/dev/null 22354 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22355 exec 5>>config.log 22356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22357 # would make configure fail if this is the last instruction. 22358 $ac_cs_success || { (exit 1); exit 1; } 22359fi 22360if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22361 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22362$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22363fi 22364 22365 22366