1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.61 for funionfs 0.4.3. 4@%:@ 5@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7@%:@ This configure script is free software; the Free Software Foundation 8@%:@ gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIB@&t@OBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME='funionfs' 728PACKAGE_TARNAME='funionfs' 729PACKAGE_VERSION='0.4.3' 730PACKAGE_STRING='funionfs 0.4.3' 731PACKAGE_BUGREPORT='' 732 733# Factoring default headers for most tests. 734ac_includes_default="\ 735#include <stdio.h> 736#ifdef HAVE_SYS_TYPES_H 737# include <sys/types.h> 738#endif 739#ifdef HAVE_SYS_STAT_H 740# include <sys/stat.h> 741#endif 742#ifdef STDC_HEADERS 743# include <stdlib.h> 744# include <stddef.h> 745#else 746# ifdef HAVE_STDLIB_H 747# include <stdlib.h> 748# endif 749#endif 750#ifdef HAVE_STRING_H 751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 752# include <memory.h> 753# endif 754# include <string.h> 755#endif 756#ifdef HAVE_STRINGS_H 757# include <strings.h> 758#endif 759#ifdef HAVE_INTTYPES_H 760# include <inttypes.h> 761#endif 762#ifdef HAVE_STDINT_H 763# include <stdint.h> 764#endif 765#ifdef HAVE_UNISTD_H 766# include <unistd.h> 767#endif" 768 769ac_subst_vars='SHELL 770PATH_SEPARATOR 771PACKAGE_NAME 772PACKAGE_TARNAME 773PACKAGE_VERSION 774PACKAGE_STRING 775PACKAGE_BUGREPORT 776exec_prefix 777prefix 778program_transform_name 779bindir 780sbindir 781libexecdir 782datarootdir 783datadir 784sysconfdir 785sharedstatedir 786localstatedir 787includedir 788oldincludedir 789docdir 790infodir 791htmldir 792dvidir 793pdfdir 794psdir 795libdir 796localedir 797mandir 798DEFS 799ECHO_C 800ECHO_N 801ECHO_T 802LIBS 803build_alias 804host_alias 805target_alias 806MAINTAINER_MODE_TRUE 807MAINTAINER_MODE_FALSE 808MAINT 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830CC 831CFLAGS 832LDFLAGS 833CPPFLAGS 834ac_ct_CC 835EXEEXT 836OBJEXT 837DEPDIR 838am__include 839am__quote 840AMDEP_TRUE 841AMDEP_FALSE 842AMDEPBACKSLASH 843CCDEPMODE 844am__fastdepCC_TRUE 845am__fastdepCC_FALSE 846build 847build_cpu 848build_vendor 849build_os 850host 851host_cpu 852host_vendor 853host_os 854GREP 855EGREP 856LN_S 857ECHO 858AR 859RANLIB 860CPP 861CXX 862CXXFLAGS 863ac_ct_CXX 864CXXDEPMODE 865am__fastdepCXX_TRUE 866am__fastdepCXX_FALSE 867CXXCPP 868F77 869FFLAGS 870ac_ct_F77 871LIBTOOL 872LIB@&t@OBJS 873LTLIBOBJS' 874ac_subst_files='' 875 ac_precious_vars='build_alias 876host_alias 877target_alias 878CC 879CFLAGS 880LDFLAGS 881LIBS 882CPPFLAGS 883CPP 884CXX 885CXXFLAGS 886CCC 887CXXCPP 888F77 889FFLAGS' 890 891 892# Initialize some variables set by options. 893ac_init_help= 894ac_init_version=false 895# The variables have the same names as the options, with 896# dashes changed to underlines. 897cache_file=/dev/null 898exec_prefix=NONE 899no_create= 900no_recursion= 901prefix=NONE 902program_prefix=NONE 903program_suffix=NONE 904program_transform_name=s,x,x, 905silent= 906site= 907srcdir= 908verbose= 909x_includes=NONE 910x_libraries=NONE 911 912# Installation directory options. 913# These are left unexpanded so users can "make install exec_prefix=/foo" 914# and all the variables that are supposed to be based on exec_prefix 915# by default will actually change. 916# Use braces instead of parens because sh, perl, etc. also accept them. 917# (The list follows the same order as the GNU Coding Standards.) 918bindir='${exec_prefix}/bin' 919sbindir='${exec_prefix}/sbin' 920libexecdir='${exec_prefix}/libexec' 921datarootdir='${prefix}/share' 922datadir='${datarootdir}' 923sysconfdir='${prefix}/etc' 924sharedstatedir='${prefix}/com' 925localstatedir='${prefix}/var' 926includedir='${prefix}/include' 927oldincludedir='/usr/include' 928docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 929infodir='${datarootdir}/info' 930htmldir='${docdir}' 931dvidir='${docdir}' 932pdfdir='${docdir}' 933psdir='${docdir}' 934libdir='${exec_prefix}/lib' 935localedir='${datarootdir}/locale' 936mandir='${datarootdir}/man' 937 938ac_prev= 939ac_dashdash= 940for ac_option 941do 942 # If the previous option needs an argument, assign it. 943 if test -n "$ac_prev"; then 944 eval $ac_prev=\$ac_option 945 ac_prev= 946 continue 947 fi 948 949 case $ac_option in 950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 951 *) ac_optarg=yes ;; 952 esac 953 954 # Accept the important Cygnus configure options, so we can diagnose typos. 955 956 case $ac_dashdash$ac_option in 957 --) 958 ac_dashdash=yes ;; 959 960 -bindir | --bindir | --bindi | --bind | --bin | --bi) 961 ac_prev=bindir ;; 962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 963 bindir=$ac_optarg ;; 964 965 -build | --build | --buil | --bui | --bu) 966 ac_prev=build_alias ;; 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 968 build_alias=$ac_optarg ;; 969 970 -cache-file | --cache-file | --cache-fil | --cache-fi \ 971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 972 ac_prev=cache_file ;; 973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 975 cache_file=$ac_optarg ;; 976 977 --config-cache | -C) 978 cache_file=config.cache ;; 979 980 -datadir | --datadir | --datadi | --datad) 981 ac_prev=datadir ;; 982 -datadir=* | --datadir=* | --datadi=* | --datad=*) 983 datadir=$ac_optarg ;; 984 985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 986 | --dataroo | --dataro | --datar) 987 ac_prev=datarootdir ;; 988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 990 datarootdir=$ac_optarg ;; 991 992 -disable-* | --disable-*) 993 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 997 { (exit 1); exit 1; }; } 998 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 999 eval enable_$ac_feature=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1016 { (exit 1); exit 1; }; } 1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1018 eval enable_$ac_feature=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1212 { echo "$as_me: error: invalid package name: $ac_package" >&2 1213 { (exit 1); exit 1; }; } 1214 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1215 eval with_$ac_package=\$ac_optarg ;; 1216 1217 -without-* | --without-*) 1218 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 { echo "$as_me: error: invalid package name: $ac_package" >&2 1222 { (exit 1); exit 1; }; } 1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1224 eval with_$ac_package=no ;; 1225 1226 --x) 1227 # Obsolete; use --with-x. 1228 with_x=yes ;; 1229 1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1231 | --x-incl | --x-inc | --x-in | --x-i) 1232 ac_prev=x_includes ;; 1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1235 x_includes=$ac_optarg ;; 1236 1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1239 ac_prev=x_libraries ;; 1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1242 x_libraries=$ac_optarg ;; 1243 1244 -*) { echo "$as_me: error: unrecognized option: $ac_option 1245Try \`$0 --help' for more information." >&2 1246 { (exit 1); exit 1; }; } 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1253 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1254 { (exit 1); exit 1; }; } 1255 eval $ac_envvar=\$ac_optarg 1256 export $ac_envvar ;; 1257 1258 *) 1259 # FIXME: should be removed in autoconf 3.0. 1260 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1262 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1263 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1264 ;; 1265 1266 esac 1267done 1268 1269if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 { echo "$as_me: error: missing argument to $ac_option" >&2 1272 { (exit 1); exit 1; }; } 1273fi 1274 1275# Be sure to have absolute directory names. 1276for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1277 datadir sysconfdir sharedstatedir localstatedir includedir \ 1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1279 libdir localedir mandir 1280do 1281 eval ac_val=\$$ac_var 1282 case $ac_val in 1283 [\\/$]* | ?:[\\/]* ) continue;; 1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1285 esac 1286 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1287 { (exit 1); exit 1; }; } 1288done 1289 1290# There might be people who depend on the old broken behavior: `$host' 1291# used to hold the argument of --host etc. 1292# FIXME: To remove some day. 1293build=$build_alias 1294host=$host_alias 1295target=$target_alias 1296 1297# FIXME: To remove some day. 1298if test "x$host_alias" != x; then 1299 if test "x$build_alias" = x; then 1300 cross_compiling=maybe 1301 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1302 If a cross compiler is detected then cross compile mode will be used." >&2 1303 elif test "x$build_alias" != "x$host_alias"; then 1304 cross_compiling=yes 1305 fi 1306fi 1307 1308ac_tool_prefix= 1309test -n "$host_alias" && ac_tool_prefix=$host_alias- 1310 1311test "$silent" = yes && exec 6>/dev/null 1312 1313 1314ac_pwd=`pwd` && test -n "$ac_pwd" && 1315ac_ls_di=`ls -di .` && 1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1317 { echo "$as_me: error: Working directory cannot be determined" >&2 1318 { (exit 1); exit 1; }; } 1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1320 { echo "$as_me: error: pwd does not report name of working directory" >&2 1321 { (exit 1); exit 1; }; } 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$0" || 1329$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$0" : 'X\(//\)[^/]' \| \ 1331 X"$0" : 'X\(//\)$' \| \ 1332 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1333echo X"$0" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1361 { (exit 1); exit 1; }; } 1362fi 1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1364ac_abs_confdir=`( 1365 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1366 { (exit 1); exit 1; }; } 1367 pwd)` 1368# When building in place, set srcdir=. 1369if test "$ac_abs_confdir" = "$ac_pwd"; then 1370 srcdir=. 1371fi 1372# Remove unnecessary trailing slashes from srcdir. 1373# Double slashes in file names in object file debugging info 1374# mess up M-x gdb in Emacs. 1375case $srcdir in 1376*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1377esac 1378for ac_var in $ac_precious_vars; do 1379 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_env_${ac_var}_value=\$${ac_var} 1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1383done 1384 1385# 1386# Report the --help message. 1387# 1388if test "$ac_init_help" = "long"; then 1389 # Omit some internal or obsolete options to make the list less imposing. 1390 # This message is too long to be a string in the A/UX 3.1 sh. 1391 cat <<_ACEOF 1392\`configure' configures funionfs 0.4.3 to adapt to many kinds of systems. 1393 1394Usage: $0 [OPTION]... [VAR=VALUE]... 1395 1396To assign environment variables (e.g., CC, CFLAGS...), specify them as 1397VAR=VALUE. See below for descriptions of some of the useful variables. 1398 1399Defaults for the options are specified in brackets. 1400 1401Configuration: 1402 -h, --help display this help and exit 1403 --help=short display options specific to this package 1404 --help=recursive display the short help of all the included packages 1405 -V, --version display version information and exit 1406 -q, --quiet, --silent do not print \`checking...' messages 1407 --cache-file=FILE cache test results in FILE [disabled] 1408 -C, --config-cache alias for \`--cache-file=config.cache' 1409 -n, --no-create do not create output files 1410 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1411 1412Installation directories: 1413 --prefix=PREFIX install architecture-independent files in PREFIX 1414 [$ac_default_prefix] 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1416 [PREFIX] 1417 1418By default, \`make install' will install all the files in 1419\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1420an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1421for instance \`--prefix=\$HOME'. 1422 1423For better control, use the options below. 1424 1425Fine tuning of the installation directories: 1426 --bindir=DIR user executables [EPREFIX/bin] 1427 --sbindir=DIR system admin executables [EPREFIX/sbin] 1428 --libexecdir=DIR program executables [EPREFIX/libexec] 1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1432 --libdir=DIR object code libraries [EPREFIX/lib] 1433 --includedir=DIR C header files [PREFIX/include] 1434 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1437 --infodir=DIR info documentation [DATAROOTDIR/info] 1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1439 --mandir=DIR man documentation [DATAROOTDIR/man] 1440 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/funionfs@:>@ 1441 --htmldir=DIR html documentation [DOCDIR] 1442 --dvidir=DIR dvi documentation [DOCDIR] 1443 --pdfdir=DIR pdf documentation [DOCDIR] 1444 --psdir=DIR ps documentation [DOCDIR] 1445_ACEOF 1446 1447 cat <<\_ACEOF 1448 1449Program names: 1450 --program-prefix=PREFIX prepend PREFIX to installed program names 1451 --program-suffix=SUFFIX append SUFFIX to installed program names 1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1453 1454System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457_ACEOF 1458fi 1459 1460if test -n "$ac_init_help"; then 1461 case $ac_init_help in 1462 short | recursive ) echo "Configuration of funionfs 0.4.3:";; 1463 esac 1464 cat <<\_ACEOF 1465 1466Optional Features: 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-maintainer-mode enable make rules and dependencies not useful 1470 (and sometimes confusing) to the casual installer 1471 --disable-dependency-tracking speeds up one-time build 1472 --enable-dependency-tracking do not reject slow dependency extractors 1473 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1474 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1475 --enable-fast-install@<:@=PKGS@:>@ 1476 optimize for fast installation @<:@default=yes@:>@ 1477 --disable-libtool-lock avoid locking (might break parallel builds) 1478 1479Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1483 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1484 both@:>@ 1485 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@ 1486 1487Some influential environment variables: 1488 CC C compiler command 1489 CFLAGS C compiler flags 1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1491 nonstandard directory <lib dir> 1492 LIBS libraries to pass to the linker, e.g. -l<library> 1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1494 you have headers in a nonstandard directory <include dir> 1495 CPP C preprocessor 1496 CXX C++ compiler command 1497 CXXFLAGS C++ compiler flags 1498 CXXCPP C++ preprocessor 1499 F77 Fortran 77 compiler command 1500 FFLAGS Fortran 77 compiler flags 1501 1502Use these variables to override the choices made by `configure' or to help 1503it to find libraries and programs with nonstandard names/locations. 1504 1505_ACEOF 1506ac_status=$? 1507fi 1508 1509if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || continue 1513 ac_builddir=. 1514 1515case "$ac_dir" in 1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1517*) 1518 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1519 # A ".." for each directory in $ac_dir_suffix. 1520 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1521 case $ac_top_builddir_sub in 1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1524 esac ;; 1525esac 1526ac_abs_top_builddir=$ac_pwd 1527ac_abs_builddir=$ac_pwd$ac_dir_suffix 1528# for backward compatibility: 1529ac_top_builddir=$ac_top_build_prefix 1530 1531case $srcdir in 1532 .) # We are building in place. 1533 ac_srcdir=. 1534 ac_top_srcdir=$ac_top_builddir_sub 1535 ac_abs_top_srcdir=$ac_pwd ;; 1536 [\\/]* | ?:[\\/]* ) # Absolute name. 1537 ac_srcdir=$srcdir$ac_dir_suffix; 1538 ac_top_srcdir=$srcdir 1539 ac_abs_top_srcdir=$srcdir ;; 1540 *) # Relative name. 1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1542 ac_top_srcdir=$ac_top_build_prefix$srcdir 1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1544esac 1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1546 1547 cd "$ac_dir" || { ac_status=$?; continue; } 1548 # Check for guested configure. 1549 if test -f "$ac_srcdir/configure.gnu"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1552 elif test -f "$ac_srcdir/configure"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure" --help=recursive 1555 else 1556 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1557 fi || ac_status=$? 1558 cd "$ac_pwd" || { ac_status=$?; break; } 1559 done 1560fi 1561 1562test -n "$ac_init_help" && exit $ac_status 1563if $ac_init_version; then 1564 cat <<\_ACEOF 1565funionfs configure 0.4.3 1566generated by GNU Autoconf 2.61 1567 1568Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15692002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1570This configure script is free software; the Free Software Foundation 1571gives unlimited permission to copy, distribute and modify it. 1572_ACEOF 1573 exit 1574fi 1575cat >config.log <<_ACEOF 1576This file contains any messages produced by compilers while 1577running configure, to aid debugging if configure makes a mistake. 1578 1579It was created by funionfs $as_me 0.4.3, which was 1580generated by GNU Autoconf 2.61. Invocation command line was 1581 1582 $ $0 $@ 1583 1584_ACEOF 1585exec 5>>config.log 1586{ 1587cat <<_ASUNAME 1588@%:@@%:@ --------- @%:@@%:@ 1589@%:@@%:@ Platform. @%:@@%:@ 1590@%:@@%:@ --------- @%:@@%:@ 1591 1592hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1593uname -m = `(uname -m) 2>/dev/null || echo unknown` 1594uname -r = `(uname -r) 2>/dev/null || echo unknown` 1595uname -s = `(uname -s) 2>/dev/null || echo unknown` 1596uname -v = `(uname -v) 2>/dev/null || echo unknown` 1597 1598/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1599/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1600 1601/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1602/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1603/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1604/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1605/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1606/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1607/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1608 1609_ASUNAME 1610 1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1612for as_dir in $PATH 1613do 1614 IFS=$as_save_IFS 1615 test -z "$as_dir" && as_dir=. 1616 echo "PATH: $as_dir" 1617done 1618IFS=$as_save_IFS 1619 1620} >&5 1621 1622cat >&5 <<_ACEOF 1623 1624 1625@%:@@%:@ ----------- @%:@@%:@ 1626@%:@@%:@ Core tests. @%:@@%:@ 1627@%:@@%:@ ----------- @%:@@%:@ 1628 1629_ACEOF 1630 1631 1632# Keep a trace of the command line. 1633# Strip out --no-create and --no-recursion so they do not pile up. 1634# Strip out --silent because we don't want to record it for future runs. 1635# Also quote any args containing shell meta-characters. 1636# Make two passes to allow for proper duplicate-argument suppression. 1637ac_configure_args= 1638ac_configure_args0= 1639ac_configure_args1= 1640ac_must_keep_next=false 1641for ac_pass in 1 2 1642do 1643 for ac_arg 1644 do 1645 case $ac_arg in 1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1648 | -silent | --silent | --silen | --sile | --sil) 1649 continue ;; 1650 *\'*) 1651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1652 esac 1653 case $ac_pass in 1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1655 2) 1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1657 if test $ac_must_keep_next = true; then 1658 ac_must_keep_next=false # Got value, back to normal. 1659 else 1660 case $ac_arg in 1661 *=* | --config-cache | -C | -disable-* | --disable-* \ 1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1664 | -with-* | --with-* | -without-* | --without-* | --x) 1665 case "$ac_configure_args0 " in 1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1667 esac 1668 ;; 1669 -* ) ac_must_keep_next=true ;; 1670 esac 1671 fi 1672 ac_configure_args="$ac_configure_args '$ac_arg'" 1673 ;; 1674 esac 1675 done 1676done 1677$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1678$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1679 1680# When interrupted or exit'd, cleanup temporary files, and complete 1681# config.log. We remove comments because anyway the quotes in there 1682# would cause problems or look ugly. 1683# WARNING: Use '\'' to represent an apostrophe within the trap. 1684# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1685trap 'exit_status=$? 1686 # Save into config.log some information that might help in debugging. 1687 { 1688 echo 1689 1690 cat <<\_ASBOX 1691@%:@@%:@ ---------------- @%:@@%:@ 1692@%:@@%:@ Cache variables. @%:@@%:@ 1693@%:@@%:@ ---------------- @%:@@%:@ 1694_ASBOX 1695 echo 1696 # The following way of writing the cache mishandles newlines in values, 1697( 1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1699 eval ac_val=\$$ac_var 1700 case $ac_val in #( 1701 *${as_nl}*) 1702 case $ac_var in #( 1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1704echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1705 esac 1706 case $ac_var in #( 1707 _ | IFS | as_nl) ;; #( 1708 *) $as_unset $ac_var ;; 1709 esac ;; 1710 esac 1711 done 1712 (set) 2>&1 | 1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1714 *${as_nl}ac_space=\ *) 1715 sed -n \ 1716 "s/'\''/'\''\\\\'\'''\''/g; 1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1718 ;; #( 1719 *) 1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1721 ;; 1722 esac | 1723 sort 1724) 1725 echo 1726 1727 cat <<\_ASBOX 1728@%:@@%:@ ----------------- @%:@@%:@ 1729@%:@@%:@ Output variables. @%:@@%:@ 1730@%:@@%:@ ----------------- @%:@@%:@ 1731_ASBOX 1732 echo 1733 for ac_var in $ac_subst_vars 1734 do 1735 eval ac_val=\$$ac_var 1736 case $ac_val in 1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1738 esac 1739 echo "$ac_var='\''$ac_val'\''" 1740 done | sort 1741 echo 1742 1743 if test -n "$ac_subst_files"; then 1744 cat <<\_ASBOX 1745@%:@@%:@ ------------------- @%:@@%:@ 1746@%:@@%:@ File substitutions. @%:@@%:@ 1747@%:@@%:@ ------------------- @%:@@%:@ 1748_ASBOX 1749 echo 1750 for ac_var in $ac_subst_files 1751 do 1752 eval ac_val=\$$ac_var 1753 case $ac_val in 1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1755 esac 1756 echo "$ac_var='\''$ac_val'\''" 1757 done | sort 1758 echo 1759 fi 1760 1761 if test -s confdefs.h; then 1762 cat <<\_ASBOX 1763@%:@@%:@ ----------- @%:@@%:@ 1764@%:@@%:@ confdefs.h. @%:@@%:@ 1765@%:@@%:@ ----------- @%:@@%:@ 1766_ASBOX 1767 echo 1768 cat confdefs.h 1769 echo 1770 fi 1771 test "$ac_signal" != 0 && 1772 echo "$as_me: caught signal $ac_signal" 1773 echo "$as_me: exit $exit_status" 1774 } >&5 1775 rm -f core *.core core.conftest.* && 1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1777 exit $exit_status 1778' 0 1779for ac_signal in 1 2 13 15; do 1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1781done 1782ac_signal=0 1783 1784# confdefs.h avoids OS command line length limits that DEFS can exceed. 1785rm -f -r conftest* confdefs.h 1786 1787# Predefined preprocessor variables. 1788 1789cat >>confdefs.h <<_ACEOF 1790@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1791_ACEOF 1792 1793 1794cat >>confdefs.h <<_ACEOF 1795@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1796_ACEOF 1797 1798 1799cat >>confdefs.h <<_ACEOF 1800@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1801_ACEOF 1802 1803 1804cat >>confdefs.h <<_ACEOF 1805@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1806_ACEOF 1807 1808 1809cat >>confdefs.h <<_ACEOF 1810@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1811_ACEOF 1812 1813 1814# Let the site file select an alternate cache file if it wants to. 1815# Prefer explicitly selected file to automatically selected ones. 1816if test -n "$CONFIG_SITE"; then 1817 set x "$CONFIG_SITE" 1818elif test "x$prefix" != xNONE; then 1819 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1820else 1821 set x "$ac_default_prefix/share/config.site" \ 1822 "$ac_default_prefix/etc/config.site" 1823fi 1824shift 1825for ac_site_file 1826do 1827 if test -r "$ac_site_file"; then 1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1829echo "$as_me: loading site script $ac_site_file" >&6;} 1830 sed 's/^/| /' "$ac_site_file" >&5 1831 . "$ac_site_file" 1832 fi 1833done 1834 1835if test -r "$cache_file"; then 1836 # Some versions of bash will fail to source /dev/null (special 1837 # files actually), so we avoid doing that. 1838 if test -f "$cache_file"; then 1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1840echo "$as_me: loading cache $cache_file" >&6;} 1841 case $cache_file in 1842 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1843 *) . "./$cache_file";; 1844 esac 1845 fi 1846else 1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1848echo "$as_me: creating cache $cache_file" >&6;} 1849 >$cache_file 1850fi 1851 1852# Check that the precious variables saved in the cache have kept the same 1853# value. 1854ac_cache_corrupted=false 1855for ac_var in $ac_precious_vars; do 1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1857 eval ac_new_set=\$ac_env_${ac_var}_set 1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1859 eval ac_new_val=\$ac_env_${ac_var}_value 1860 case $ac_old_set,$ac_new_set in 1861 set,) 1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1863echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1864 ac_cache_corrupted=: ;; 1865 ,set) 1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1867echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1868 ac_cache_corrupted=: ;; 1869 ,);; 1870 *) 1871 if test "x$ac_old_val" != "x$ac_new_val"; then 1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1873echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1875echo "$as_me: former value: $ac_old_val" >&2;} 1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1877echo "$as_me: current value: $ac_new_val" >&2;} 1878 ac_cache_corrupted=: 1879 fi;; 1880 esac 1881 # Pass precious variables to config.status. 1882 if test "$ac_new_set" = set; then 1883 case $ac_new_val in 1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1885 *) ac_arg=$ac_var=$ac_new_val ;; 1886 esac 1887 case " $ac_configure_args " in 1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1890 esac 1891 fi 1892done 1893if $ac_cache_corrupted; then 1894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1895echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1897echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1898 { (exit 1); exit 1; }; } 1899fi 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925ac_ext=c 1926ac_cpp='$CPP $CPPFLAGS' 1927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1929ac_compiler_gnu=$ac_cv_c_compiler_gnu 1930 1931 1932 1933ac_config_headers="$ac_config_headers config.h" 1934 1935{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1936echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 1937 # Check whether --enable-maintainer-mode was given. 1938if test "${enable_maintainer_mode+set}" = set; then 1939 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 1940else 1941 USE_MAINTAINER_MODE=no 1942fi 1943 1944 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1945echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 1946 1947 1948if test $USE_MAINTAINER_MODE = yes; then 1949 MAINTAINER_MODE_TRUE= 1950 MAINTAINER_MODE_FALSE='#' 1951else 1952 MAINTAINER_MODE_TRUE='#' 1953 MAINTAINER_MODE_FALSE= 1954fi 1955 1956 MAINT=$MAINTAINER_MODE_TRUE 1957 1958 1959am__api_version="1.9" 1960ac_aux_dir= 1961for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1962 if test -f "$ac_dir/install-sh"; then 1963 ac_aux_dir=$ac_dir 1964 ac_install_sh="$ac_aux_dir/install-sh -c" 1965 break 1966 elif test -f "$ac_dir/install.sh"; then 1967 ac_aux_dir=$ac_dir 1968 ac_install_sh="$ac_aux_dir/install.sh -c" 1969 break 1970 elif test -f "$ac_dir/shtool"; then 1971 ac_aux_dir=$ac_dir 1972 ac_install_sh="$ac_aux_dir/shtool install -c" 1973 break 1974 fi 1975done 1976if test -z "$ac_aux_dir"; then 1977 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1978echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1979 { (exit 1); exit 1; }; } 1980fi 1981 1982# These three variables are undocumented and unsupported, 1983# and are intended to be withdrawn in a future Autoconf release. 1984# They can cause serious problems if a builder's source tree is in a directory 1985# whose full name contains unusual characters. 1986ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1987ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1988ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1989 1990 1991# Find a good install program. We prefer a C program (faster), 1992# so one script is as good as another. But avoid the broken or 1993# incompatible versions: 1994# SysV /etc/install, /usr/sbin/install 1995# SunOS /usr/etc/install 1996# IRIX /sbin/install 1997# AIX /bin/install 1998# AmigaOS /C/install, which installs bootblocks on floppy discs 1999# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2000# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2001# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2002# OS/2's system install, which has a completely different semantic 2003# ./install, which can be erroneously created by make from ./install.sh. 2004{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2005echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2006if test -z "$INSTALL"; then 2007if test "${ac_cv_path_install+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2011for as_dir in $PATH 2012do 2013 IFS=$as_save_IFS 2014 test -z "$as_dir" && as_dir=. 2015 # Account for people who put trailing slashes in PATH elements. 2016case $as_dir/ in 2017 ./ | .// | /cC/* | \ 2018 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2019 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2020 /usr/ucb/* ) ;; 2021 *) 2022 # OSF1 and SCO ODT 3.0 have their own names for install. 2023 # Don't use installbsd from OSF since it installs stuff as root 2024 # by default. 2025 for ac_prog in ginstall scoinst install; do 2026 for ac_exec_ext in '' $ac_executable_extensions; do 2027 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2028 if test $ac_prog = install && 2029 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2030 # AIX install. It has an incompatible calling convention. 2031 : 2032 elif test $ac_prog = install && 2033 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2034 # program-specific install script used by HP pwplus--don't use. 2035 : 2036 else 2037 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2038 break 3 2039 fi 2040 fi 2041 done 2042 done 2043 ;; 2044esac 2045done 2046IFS=$as_save_IFS 2047 2048 2049fi 2050 if test "${ac_cv_path_install+set}" = set; then 2051 INSTALL=$ac_cv_path_install 2052 else 2053 # As a last resort, use the slow shell script. Don't cache a 2054 # value for INSTALL within a source directory, because that will 2055 # break other packages using the cache if that directory is 2056 # removed, or if the value is a relative name. 2057 INSTALL=$ac_install_sh 2058 fi 2059fi 2060{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2061echo "${ECHO_T}$INSTALL" >&6; } 2062 2063# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2064# It thinks the first close brace ends the variable substitution. 2065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2066 2067test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2068 2069test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2070 2071{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2072echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2073# Just in case 2074sleep 1 2075echo timestamp > conftest.file 2076# Do `set' in a subshell so we don't clobber the current shell's 2077# arguments. Must try -L first in case configure is actually a 2078# symlink; some systems play weird games with the mod time of symlinks 2079# (eg FreeBSD returns the mod time of the symlink's containing 2080# directory). 2081if ( 2082 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2083 if test "$*" = "X"; then 2084 # -L didn't work. 2085 set X `ls -t $srcdir/configure conftest.file` 2086 fi 2087 rm -f conftest.file 2088 if test "$*" != "X $srcdir/configure conftest.file" \ 2089 && test "$*" != "X conftest.file $srcdir/configure"; then 2090 2091 # If neither matched, then we have a broken ls. This can happen 2092 # if, for instance, CONFIG_SHELL is bash and it inherits a 2093 # broken ls alias from the environment. This has actually 2094 # happened. Such a system could not be considered "sane". 2095 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2096alias in your environment" >&5 2097echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2098alias in your environment" >&2;} 2099 { (exit 1); exit 1; }; } 2100 fi 2101 2102 test "$2" = conftest.file 2103 ) 2104then 2105 # Ok. 2106 : 2107else 2108 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2109Check your system clock" >&5 2110echo "$as_me: error: newly created file is older than distributed files! 2111Check your system clock" >&2;} 2112 { (exit 1); exit 1; }; } 2113fi 2114{ echo "$as_me:$LINENO: result: yes" >&5 2115echo "${ECHO_T}yes" >&6; } 2116test "$program_prefix" != NONE && 2117 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2118# Use a double $ so make ignores it. 2119test "$program_suffix" != NONE && 2120 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2121# Double any \ or $. echo might interpret backslashes. 2122# By default was `s,x,x', remove it if useless. 2123cat <<\_ACEOF >conftest.sed 2124s/[\\$]/&&/g;s/;s,x,x,$// 2125_ACEOF 2126program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2127rm -f conftest.sed 2128 2129# expand $ac_aux_dir to an absolute path 2130am_aux_dir=`cd $ac_aux_dir && pwd` 2131 2132test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2133# Use eval to expand $SHELL 2134if eval "$MISSING --run true"; then 2135 am_missing_run="$MISSING --run " 2136else 2137 am_missing_run= 2138 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2139echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2140fi 2141 2142if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2143 # We used to keeping the `.' as first argument, in order to 2144 # allow $(mkdir_p) to be used without argument. As in 2145 # $(mkdir_p) $(somedir) 2146 # where $(somedir) is conditionally defined. However this is wrong 2147 # for two reasons: 2148 # 1. if the package is installed by a user who cannot write `.' 2149 # make install will fail, 2150 # 2. the above comment should most certainly read 2151 # $(mkdir_p) $(DESTDIR)$(somedir) 2152 # so it does not work when $(somedir) is undefined and 2153 # $(DESTDIR) is not. 2154 # To support the latter case, we have to write 2155 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2156 # so the `.' trick is pointless. 2157 mkdir_p='mkdir -p --' 2158else 2159 # On NextStep and OpenStep, the `mkdir' command does not 2160 # recognize any option. It will interpret all options as 2161 # directories to create, and then abort because `.' already 2162 # exists. 2163 for d in ./-p ./--version; 2164 do 2165 test -d $d && rmdir $d 2166 done 2167 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2168 if test -f "$ac_aux_dir/mkinstalldirs"; then 2169 mkdir_p='$(mkinstalldirs)' 2170 else 2171 mkdir_p='$(install_sh) -d' 2172 fi 2173fi 2174 2175for ac_prog in gawk mawk nawk awk 2176do 2177 # Extract the first word of "$ac_prog", so it can be a program name with args. 2178set dummy $ac_prog; ac_word=$2 2179{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2181if test "${ac_cv_prog_AWK+set}" = set; then 2182 echo $ECHO_N "(cached) $ECHO_C" >&6 2183else 2184 if test -n "$AWK"; then 2185 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2186else 2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2188for as_dir in $PATH 2189do 2190 IFS=$as_save_IFS 2191 test -z "$as_dir" && as_dir=. 2192 for ac_exec_ext in '' $ac_executable_extensions; do 2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2194 ac_cv_prog_AWK="$ac_prog" 2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2196 break 2 2197 fi 2198done 2199done 2200IFS=$as_save_IFS 2201 2202fi 2203fi 2204AWK=$ac_cv_prog_AWK 2205if test -n "$AWK"; then 2206 { echo "$as_me:$LINENO: result: $AWK" >&5 2207echo "${ECHO_T}$AWK" >&6; } 2208else 2209 { echo "$as_me:$LINENO: result: no" >&5 2210echo "${ECHO_T}no" >&6; } 2211fi 2212 2213 2214 test -n "$AWK" && break 2215done 2216 2217{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2218echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2219set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2220if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2221 echo $ECHO_N "(cached) $ECHO_C" >&6 2222else 2223 cat >conftest.make <<\_ACEOF 2224SHELL = /bin/sh 2225all: 2226 @echo '@@@%%%=$(MAKE)=@@@%%%' 2227_ACEOF 2228# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2229case `${MAKE-make} -f conftest.make 2>/dev/null` in 2230 *@@@%%%=?*=@@@%%%*) 2231 eval ac_cv_prog_make_${ac_make}_set=yes;; 2232 *) 2233 eval ac_cv_prog_make_${ac_make}_set=no;; 2234esac 2235rm -f conftest.make 2236fi 2237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2238 { echo "$as_me:$LINENO: result: yes" >&5 2239echo "${ECHO_T}yes" >&6; } 2240 SET_MAKE= 2241else 2242 { echo "$as_me:$LINENO: result: no" >&5 2243echo "${ECHO_T}no" >&6; } 2244 SET_MAKE="MAKE=${MAKE-make}" 2245fi 2246 2247rm -rf .tst 2>/dev/null 2248mkdir .tst 2>/dev/null 2249if test -d .tst; then 2250 am__leading_dot=. 2251else 2252 am__leading_dot=_ 2253fi 2254rmdir .tst 2>/dev/null 2255 2256# test to see if srcdir already configured 2257if test "`cd $srcdir && pwd`" != "`pwd`" && 2258 test -f $srcdir/config.status; then 2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2261 { (exit 1); exit 1; }; } 2262fi 2263 2264# test whether we have cygpath 2265if test -z "$CYGPATH_W"; then 2266 if (cygpath --version) >/dev/null 2>/dev/null; then 2267 CYGPATH_W='cygpath -w' 2268 else 2269 CYGPATH_W=echo 2270 fi 2271fi 2272 2273 2274# Define the identity of the package. 2275 PACKAGE='funionfs' 2276 VERSION='0.4.3' 2277 2278 2279cat >>confdefs.h <<_ACEOF 2280@%:@define PACKAGE "$PACKAGE" 2281_ACEOF 2282 2283 2284cat >>confdefs.h <<_ACEOF 2285@%:@define VERSION "$VERSION" 2286_ACEOF 2287 2288# Some tools Automake needs. 2289 2290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2291 2292 2293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2294 2295 2296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2297 2298 2299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2300 2301 2302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2303 2304install_sh=${install_sh-"$am_aux_dir/install-sh"} 2305 2306# Installed binaries are usually stripped using `strip' when the user 2307# run `make install-strip'. However `strip' might not be the right 2308# tool to use in cross-compilation environments, therefore Automake 2309# will honor the `STRIP' environment variable to overrule this program. 2310if test "$cross_compiling" != no; then 2311 if test -n "$ac_tool_prefix"; then 2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2313set dummy ${ac_tool_prefix}strip; ac_word=$2 2314{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2316if test "${ac_cv_prog_STRIP+set}" = set; then 2317 echo $ECHO_N "(cached) $ECHO_C" >&6 2318else 2319 if test -n "$STRIP"; then 2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2321else 2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 for ac_exec_ext in '' $ac_executable_extensions; do 2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2331 break 2 2332 fi 2333done 2334done 2335IFS=$as_save_IFS 2336 2337fi 2338fi 2339STRIP=$ac_cv_prog_STRIP 2340if test -n "$STRIP"; then 2341 { echo "$as_me:$LINENO: result: $STRIP" >&5 2342echo "${ECHO_T}$STRIP" >&6; } 2343else 2344 { echo "$as_me:$LINENO: result: no" >&5 2345echo "${ECHO_T}no" >&6; } 2346fi 2347 2348 2349fi 2350if test -z "$ac_cv_prog_STRIP"; then 2351 ac_ct_STRIP=$STRIP 2352 # Extract the first word of "strip", so it can be a program name with args. 2353set dummy strip; ac_word=$2 2354{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2357 echo $ECHO_N "(cached) $ECHO_C" >&6 2358else 2359 if test -n "$ac_ct_STRIP"; then 2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2369 ac_cv_prog_ac_ct_STRIP="strip" 2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2380if test -n "$ac_ct_STRIP"; then 2381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2382echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2383else 2384 { echo "$as_me:$LINENO: result: no" >&5 2385echo "${ECHO_T}no" >&6; } 2386fi 2387 2388 if test "x$ac_ct_STRIP" = x; then 2389 STRIP=":" 2390 else 2391 case $cross_compiling:$ac_tool_warned in 2392yes:) 2393{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2394whose name does not start with the host triplet. If you think this 2395configuration is useful to you, please write to autoconf@gnu.org." >&5 2396echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2397whose name does not start with the host triplet. If you think this 2398configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2399ac_tool_warned=yes ;; 2400esac 2401 STRIP=$ac_ct_STRIP 2402 fi 2403else 2404 STRIP="$ac_cv_prog_STRIP" 2405fi 2406 2407fi 2408INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2409 2410# We need awk for the "check" target. The system "awk" is bad on 2411# some platforms. 2412# Always define AMTAR for backward compatibility. 2413 2414AMTAR=${AMTAR-"${am_missing_run}tar"} 2415 2416am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2417 2418 2419 2420 2421 2422 2423ac_ext=c 2424ac_cpp='$CPP $CPPFLAGS' 2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2427ac_compiler_gnu=$ac_cv_c_compiler_gnu 2428if test -n "$ac_tool_prefix"; then 2429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2430set dummy ${ac_tool_prefix}gcc; ac_word=$2 2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2433if test "${ac_cv_prog_CC+set}" = set; then 2434 echo $ECHO_N "(cached) $ECHO_C" >&6 2435else 2436 if test -n "$CC"; then 2437 ac_cv_prog_CC="$CC" # Let the user override the test. 2438else 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2446 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451done 2452IFS=$as_save_IFS 2453 2454fi 2455fi 2456CC=$ac_cv_prog_CC 2457if test -n "$CC"; then 2458 { echo "$as_me:$LINENO: result: $CC" >&5 2459echo "${ECHO_T}$CC" >&6; } 2460else 2461 { echo "$as_me:$LINENO: result: no" >&5 2462echo "${ECHO_T}no" >&6; } 2463fi 2464 2465 2466fi 2467if test -z "$ac_cv_prog_CC"; then 2468 ac_ct_CC=$CC 2469 # Extract the first word of "gcc", so it can be a program name with args. 2470set dummy gcc; ac_word=$2 2471{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2474 echo $ECHO_N "(cached) $ECHO_C" >&6 2475else 2476 if test -n "$ac_ct_CC"; then 2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2486 ac_cv_prog_ac_ct_CC="gcc" 2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496ac_ct_CC=$ac_cv_prog_ac_ct_CC 2497if test -n "$ac_ct_CC"; then 2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2499echo "${ECHO_T}$ac_ct_CC" >&6; } 2500else 2501 { echo "$as_me:$LINENO: result: no" >&5 2502echo "${ECHO_T}no" >&6; } 2503fi 2504 2505 if test "x$ac_ct_CC" = x; then 2506 CC="" 2507 else 2508 case $cross_compiling:$ac_tool_warned in 2509yes:) 2510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2511whose name does not start with the host triplet. If you think this 2512configuration is useful to you, please write to autoconf@gnu.org." >&5 2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2514whose name does not start with the host triplet. If you think this 2515configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2516ac_tool_warned=yes ;; 2517esac 2518 CC=$ac_ct_CC 2519 fi 2520else 2521 CC="$ac_cv_prog_CC" 2522fi 2523 2524if test -z "$CC"; then 2525 if test -n "$ac_tool_prefix"; then 2526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2527set dummy ${ac_tool_prefix}cc; ac_word=$2 2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2530if test "${ac_cv_prog_CC+set}" = set; then 2531 echo $ECHO_N "(cached) $ECHO_C" >&6 2532else 2533 if test -n "$CC"; then 2534 ac_cv_prog_CC="$CC" # Let the user override the test. 2535else 2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2537for as_dir in $PATH 2538do 2539 IFS=$as_save_IFS 2540 test -z "$as_dir" && as_dir=. 2541 for ac_exec_ext in '' $ac_executable_extensions; do 2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2543 ac_cv_prog_CC="${ac_tool_prefix}cc" 2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2545 break 2 2546 fi 2547done 2548done 2549IFS=$as_save_IFS 2550 2551fi 2552fi 2553CC=$ac_cv_prog_CC 2554if test -n "$CC"; then 2555 { echo "$as_me:$LINENO: result: $CC" >&5 2556echo "${ECHO_T}$CC" >&6; } 2557else 2558 { echo "$as_me:$LINENO: result: no" >&5 2559echo "${ECHO_T}no" >&6; } 2560fi 2561 2562 2563 fi 2564fi 2565if test -z "$CC"; then 2566 # Extract the first word of "cc", so it can be a program name with args. 2567set dummy cc; ac_word=$2 2568{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2570if test "${ac_cv_prog_CC+set}" = set; then 2571 echo $ECHO_N "(cached) $ECHO_C" >&6 2572else 2573 if test -n "$CC"; then 2574 ac_cv_prog_CC="$CC" # Let the user override the test. 2575else 2576 ac_prog_rejected=no 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2585 ac_prog_rejected=yes 2586 continue 2587 fi 2588 ac_cv_prog_CC="cc" 2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593done 2594IFS=$as_save_IFS 2595 2596if test $ac_prog_rejected = yes; then 2597 # We found a bogon in the path, so make sure we never use it. 2598 set dummy $ac_cv_prog_CC 2599 shift 2600 if test $@%:@ != 0; then 2601 # We chose a different compiler from the bogus one. 2602 # However, it has the same basename, so the bogon will be chosen 2603 # first if we set CC to just the basename; use the full file name. 2604 shift 2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2606 fi 2607fi 2608fi 2609fi 2610CC=$ac_cv_prog_CC 2611if test -n "$CC"; then 2612 { echo "$as_me:$LINENO: result: $CC" >&5 2613echo "${ECHO_T}$CC" >&6; } 2614else 2615 { echo "$as_me:$LINENO: result: no" >&5 2616echo "${ECHO_T}no" >&6; } 2617fi 2618 2619 2620fi 2621if test -z "$CC"; then 2622 if test -n "$ac_tool_prefix"; then 2623 for ac_prog in cl.exe 2624 do 2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2629if test "${ac_cv_prog_CC+set}" = set; then 2630 echo $ECHO_N "(cached) $ECHO_C" >&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$ac_prog" 2643 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 { echo "$as_me:$LINENO: result: $CC" >&5 2655echo "${ECHO_T}$CC" >&6; } 2656else 2657 { echo "$as_me:$LINENO: result: no" >&5 2658echo "${ECHO_T}no" >&6; } 2659fi 2660 2661 2662 test -n "$CC" && break 2663 done 2664fi 2665if test -z "$CC"; then 2666 ac_ct_CC=$CC 2667 for ac_prog in cl.exe 2668do 2669 # Extract the first word of "$ac_prog", so it can be a program name with args. 2670set dummy $ac_prog; ac_word=$2 2671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2674 echo $ECHO_N "(cached) $ECHO_C" >&6 2675else 2676 if test -n "$ac_ct_CC"; then 2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2678else 2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2686 ac_cv_prog_ac_ct_CC="$ac_prog" 2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691done 2692IFS=$as_save_IFS 2693 2694fi 2695fi 2696ac_ct_CC=$ac_cv_prog_ac_ct_CC 2697if test -n "$ac_ct_CC"; then 2698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2699echo "${ECHO_T}$ac_ct_CC" >&6; } 2700else 2701 { echo "$as_me:$LINENO: result: no" >&5 2702echo "${ECHO_T}no" >&6; } 2703fi 2704 2705 2706 test -n "$ac_ct_CC" && break 2707done 2708 2709 if test "x$ac_ct_CC" = x; then 2710 CC="" 2711 else 2712 case $cross_compiling:$ac_tool_warned in 2713yes:) 2714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2715whose name does not start with the host triplet. If you think this 2716configuration is useful to you, please write to autoconf@gnu.org." >&5 2717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2718whose name does not start with the host triplet. If you think this 2719configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2720ac_tool_warned=yes ;; 2721esac 2722 CC=$ac_ct_CC 2723 fi 2724fi 2725 2726fi 2727 2728 2729test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2730See \`config.log' for more details." >&5 2731echo "$as_me: error: no acceptable C compiler found in \$PATH 2732See \`config.log' for more details." >&2;} 2733 { (exit 1); exit 1; }; } 2734 2735# Provide some information about the compiler. 2736echo "$as_me:$LINENO: checking for C compiler version" >&5 2737ac_compiler=`set X $ac_compile; echo $2` 2738{ (ac_try="$ac_compiler --version >&5" 2739case "(($ac_try" in 2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2741 *) ac_try_echo=$ac_try;; 2742esac 2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2744 (eval "$ac_compiler --version >&5") 2>&5 2745 ac_status=$? 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2747 (exit $ac_status); } 2748{ (ac_try="$ac_compiler -v >&5" 2749case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2754 (eval "$ac_compiler -v >&5") 2>&5 2755 ac_status=$? 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } 2758{ (ac_try="$ac_compiler -V >&5" 2759case "(($ac_try" in 2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2761 *) ac_try_echo=$ac_try;; 2762esac 2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2764 (eval "$ac_compiler -V >&5") 2>&5 2765 ac_status=$? 2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2767 (exit $ac_status); } 2768 2769cat >conftest.$ac_ext <<_ACEOF 2770/* confdefs.h. */ 2771_ACEOF 2772cat confdefs.h >>conftest.$ac_ext 2773cat >>conftest.$ac_ext <<_ACEOF 2774/* end confdefs.h. */ 2775 2776int 2777main () 2778{ 2779 2780 ; 2781 return 0; 2782} 2783_ACEOF 2784ac_clean_files_save=$ac_clean_files 2785ac_clean_files="$ac_clean_files a.out a.exe b.out" 2786# Try to create an executable without -o first, disregard a.out. 2787# It will help us diagnose broken compilers, and finding out an intuition 2788# of exeext. 2789{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2792# 2793# List of possible output files, starting from the most likely. 2794# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2795# only as a last resort. b.out is created by i960 compilers. 2796ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2797# 2798# The IRIX 6 linker writes into existing files which may not be 2799# executable, retaining their permissions. Remove them first so a 2800# subsequent execution test works. 2801ac_rmfiles= 2802for ac_file in $ac_files 2803do 2804 case $ac_file in 2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2807 esac 2808done 2809rm -f $ac_rmfiles 2810 2811if { (ac_try="$ac_link_default" 2812case "(($ac_try" in 2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2814 *) ac_try_echo=$ac_try;; 2815esac 2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2817 (eval "$ac_link_default") 2>&5 2818 ac_status=$? 2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2820 (exit $ac_status); }; then 2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2823# in a Makefile. We should not override ac_cv_exeext if it was cached, 2824# so that the user can short-circuit this test for compilers unknown to 2825# Autoconf. 2826for ac_file in $ac_files '' 2827do 2828 test -f "$ac_file" || continue 2829 case $ac_file in 2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2831 ;; 2832 [ab].out ) 2833 # We found the default executable, but exeext='' is most 2834 # certainly right. 2835 break;; 2836 *.* ) 2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2838 then :; else 2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2840 fi 2841 # We set ac_cv_exeext here because the later test for it is not 2842 # safe: cross compilers may not add the suffix if given an `-o' 2843 # argument, so we may need to know it at that point already. 2844 # Even if this section looks crufty: it has the advantage of 2845 # actually working. 2846 break;; 2847 * ) 2848 break;; 2849 esac 2850done 2851test "$ac_cv_exeext" = no && ac_cv_exeext= 2852 2853else 2854 ac_file='' 2855fi 2856 2857{ echo "$as_me:$LINENO: result: $ac_file" >&5 2858echo "${ECHO_T}$ac_file" >&6; } 2859if test -z "$ac_file"; then 2860 echo "$as_me: failed program was:" >&5 2861sed 's/^/| /' conftest.$ac_ext >&5 2862 2863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2864See \`config.log' for more details." >&5 2865echo "$as_me: error: C compiler cannot create executables 2866See \`config.log' for more details." >&2;} 2867 { (exit 77); exit 77; }; } 2868fi 2869 2870ac_exeext=$ac_cv_exeext 2871 2872# Check that the compiler produces executables we can run. If not, either 2873# the compiler is broken, or we cross compile. 2874{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2875echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2876# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2877# If not cross compiling, check that we can run a simple program. 2878if test "$cross_compiling" != yes; then 2879 if { ac_try='./$ac_file' 2880 { (case "(($ac_try" in 2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2882 *) ac_try_echo=$ac_try;; 2883esac 2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2885 (eval "$ac_try") 2>&5 2886 ac_status=$? 2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2888 (exit $ac_status); }; }; then 2889 cross_compiling=no 2890 else 2891 if test "$cross_compiling" = maybe; then 2892 cross_compiling=yes 2893 else 2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2895If you meant to cross compile, use \`--host'. 2896See \`config.log' for more details." >&5 2897echo "$as_me: error: cannot run C compiled programs. 2898If you meant to cross compile, use \`--host'. 2899See \`config.log' for more details." >&2;} 2900 { (exit 1); exit 1; }; } 2901 fi 2902 fi 2903fi 2904{ echo "$as_me:$LINENO: result: yes" >&5 2905echo "${ECHO_T}yes" >&6; } 2906 2907rm -f a.out a.exe conftest$ac_cv_exeext b.out 2908ac_clean_files=$ac_clean_files_save 2909# Check that the compiler produces executables we can run. If not, either 2910# the compiler is broken, or we cross compile. 2911{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2913{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2914echo "${ECHO_T}$cross_compiling" >&6; } 2915 2916{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2918if { (ac_try="$ac_link" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2924 (eval "$ac_link") 2>&5 2925 ac_status=$? 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); }; then 2928 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2929# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2930# work properly (i.e., refer to `conftest.exe'), while it won't with 2931# `rm'. 2932for ac_file in conftest.exe conftest conftest.*; do 2933 test -f "$ac_file" || continue 2934 case $ac_file in 2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2937 break;; 2938 * ) break;; 2939 esac 2940done 2941else 2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2943See \`config.log' for more details." >&5 2944echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2945See \`config.log' for more details." >&2;} 2946 { (exit 1); exit 1; }; } 2947fi 2948 2949rm -f conftest$ac_cv_exeext 2950{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2951echo "${ECHO_T}$ac_cv_exeext" >&6; } 2952 2953rm -f conftest.$ac_ext 2954EXEEXT=$ac_cv_exeext 2955ac_exeext=$EXEEXT 2956{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2957echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2958if test "${ac_cv_objext+set}" = set; then 2959 echo $ECHO_N "(cached) $ECHO_C" >&6 2960else 2961 cat >conftest.$ac_ext <<_ACEOF 2962/* confdefs.h. */ 2963_ACEOF 2964cat confdefs.h >>conftest.$ac_ext 2965cat >>conftest.$ac_ext <<_ACEOF 2966/* end confdefs.h. */ 2967 2968int 2969main () 2970{ 2971 2972 ; 2973 return 0; 2974} 2975_ACEOF 2976rm -f conftest.o conftest.obj 2977if { (ac_try="$ac_compile" 2978case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2983 (eval "$ac_compile") 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); }; then 2987 for ac_file in conftest.o conftest.obj conftest.*; do 2988 test -f "$ac_file" || continue; 2989 case $ac_file in 2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2992 break;; 2993 esac 2994done 2995else 2996 echo "$as_me: failed program was:" >&5 2997sed 's/^/| /' conftest.$ac_ext >&5 2998 2999{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3000See \`config.log' for more details." >&5 3001echo "$as_me: error: cannot compute suffix of object files: cannot compile 3002See \`config.log' for more details." >&2;} 3003 { (exit 1); exit 1; }; } 3004fi 3005 3006rm -f conftest.$ac_cv_objext conftest.$ac_ext 3007fi 3008{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3009echo "${ECHO_T}$ac_cv_objext" >&6; } 3010OBJEXT=$ac_cv_objext 3011ac_objext=$OBJEXT 3012{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3013echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3014if test "${ac_cv_c_compiler_gnu+set}" = set; then 3015 echo $ECHO_N "(cached) $ECHO_C" >&6 3016else 3017 cat >conftest.$ac_ext <<_ACEOF 3018/* confdefs.h. */ 3019_ACEOF 3020cat confdefs.h >>conftest.$ac_ext 3021cat >>conftest.$ac_ext <<_ACEOF 3022/* end confdefs.h. */ 3023 3024int 3025main () 3026{ 3027#ifndef __GNUC__ 3028 choke me 3029#endif 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext 3036if { (ac_try="$ac_compile" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_compile") 2>conftest.er1 3043 ac_status=$? 3044 grep -v '^ *+' conftest.er1 >conftest.err 3045 rm -f conftest.er1 3046 cat conftest.err >&5 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } && { 3049 test -z "$ac_c_werror_flag" || 3050 test ! -s conftest.err 3051 } && test -s conftest.$ac_objext; then 3052 ac_compiler_gnu=yes 3053else 3054 echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057 ac_compiler_gnu=no 3058fi 3059 3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3061ac_cv_c_compiler_gnu=$ac_compiler_gnu 3062 3063fi 3064{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3066GCC=`test $ac_compiler_gnu = yes && echo yes` 3067ac_test_CFLAGS=${CFLAGS+set} 3068ac_save_CFLAGS=$CFLAGS 3069{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3071if test "${ac_cv_prog_cc_g+set}" = set; then 3072 echo $ECHO_N "(cached) $ECHO_C" >&6 3073else 3074 ac_save_c_werror_flag=$ac_c_werror_flag 3075 ac_c_werror_flag=yes 3076 ac_cv_prog_cc_g=no 3077 CFLAGS="-g" 3078 cat >conftest.$ac_ext <<_ACEOF 3079/* confdefs.h. */ 3080_ACEOF 3081cat confdefs.h >>conftest.$ac_ext 3082cat >>conftest.$ac_ext <<_ACEOF 3083/* end confdefs.h. */ 3084 3085int 3086main () 3087{ 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093rm -f conftest.$ac_objext 3094if { (ac_try="$ac_compile" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3100 (eval "$ac_compile") 2>conftest.er1 3101 ac_status=$? 3102 grep -v '^ *+' conftest.er1 >conftest.err 3103 rm -f conftest.er1 3104 cat conftest.err >&5 3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3106 (exit $ac_status); } && { 3107 test -z "$ac_c_werror_flag" || 3108 test ! -s conftest.err 3109 } && test -s conftest.$ac_objext; then 3110 ac_cv_prog_cc_g=yes 3111else 3112 echo "$as_me: failed program was:" >&5 3113sed 's/^/| /' conftest.$ac_ext >&5 3114 3115 CFLAGS="" 3116 cat >conftest.$ac_ext <<_ACEOF 3117/* confdefs.h. */ 3118_ACEOF 3119cat confdefs.h >>conftest.$ac_ext 3120cat >>conftest.$ac_ext <<_ACEOF 3121/* end confdefs.h. */ 3122 3123int 3124main () 3125{ 3126 3127 ; 3128 return 0; 3129} 3130_ACEOF 3131rm -f conftest.$ac_objext 3132if { (ac_try="$ac_compile" 3133case "(($ac_try" in 3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3135 *) ac_try_echo=$ac_try;; 3136esac 3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3138 (eval "$ac_compile") 2>conftest.er1 3139 ac_status=$? 3140 grep -v '^ *+' conftest.er1 >conftest.err 3141 rm -f conftest.er1 3142 cat conftest.err >&5 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); } && { 3145 test -z "$ac_c_werror_flag" || 3146 test ! -s conftest.err 3147 } && test -s conftest.$ac_objext; then 3148 : 3149else 3150 echo "$as_me: failed program was:" >&5 3151sed 's/^/| /' conftest.$ac_ext >&5 3152 3153 ac_c_werror_flag=$ac_save_c_werror_flag 3154 CFLAGS="-g" 3155 cat >conftest.$ac_ext <<_ACEOF 3156/* confdefs.h. */ 3157_ACEOF 3158cat confdefs.h >>conftest.$ac_ext 3159cat >>conftest.$ac_ext <<_ACEOF 3160/* end confdefs.h. */ 3161 3162int 3163main () 3164{ 3165 3166 ; 3167 return 0; 3168} 3169_ACEOF 3170rm -f conftest.$ac_objext 3171if { (ac_try="$ac_compile" 3172case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3177 (eval "$ac_compile") 2>conftest.er1 3178 ac_status=$? 3179 grep -v '^ *+' conftest.er1 >conftest.err 3180 rm -f conftest.er1 3181 cat conftest.err >&5 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); } && { 3184 test -z "$ac_c_werror_flag" || 3185 test ! -s conftest.err 3186 } && test -s conftest.$ac_objext; then 3187 ac_cv_prog_cc_g=yes 3188else 3189 echo "$as_me: failed program was:" >&5 3190sed 's/^/| /' conftest.$ac_ext >&5 3191 3192 3193fi 3194 3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3196fi 3197 3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3199fi 3200 3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202 ac_c_werror_flag=$ac_save_c_werror_flag 3203fi 3204{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3205echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3206if test "$ac_test_CFLAGS" = set; then 3207 CFLAGS=$ac_save_CFLAGS 3208elif test $ac_cv_prog_cc_g = yes; then 3209 if test "$GCC" = yes; then 3210 CFLAGS="-g -O2" 3211 else 3212 CFLAGS="-g" 3213 fi 3214else 3215 if test "$GCC" = yes; then 3216 CFLAGS="-O2" 3217 else 3218 CFLAGS= 3219 fi 3220fi 3221{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3222echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3223if test "${ac_cv_prog_cc_c89+set}" = set; then 3224 echo $ECHO_N "(cached) $ECHO_C" >&6 3225else 3226 ac_cv_prog_cc_c89=no 3227ac_save_CC=$CC 3228cat >conftest.$ac_ext <<_ACEOF 3229/* confdefs.h. */ 3230_ACEOF 3231cat confdefs.h >>conftest.$ac_ext 3232cat >>conftest.$ac_ext <<_ACEOF 3233/* end confdefs.h. */ 3234#include <stdarg.h> 3235#include <stdio.h> 3236#include <sys/types.h> 3237#include <sys/stat.h> 3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3239struct buf { int x; }; 3240FILE * (*rcsopen) (struct buf *, struct stat *, int); 3241static char *e (p, i) 3242 char **p; 3243 int i; 3244{ 3245 return p[i]; 3246} 3247static char *f (char * (*g) (char **, int), char **p, ...) 3248{ 3249 char *s; 3250 va_list v; 3251 va_start (v,p); 3252 s = g (p, va_arg (v,int)); 3253 va_end (v); 3254 return s; 3255} 3256 3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3258 function prototypes and stuff, but not '\xHH' hex character constants. 3259 These don't provoke an error unfortunately, instead are silently treated 3260 as 'x'. The following induces an error, until -std is added to get 3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3262 array size at least. It's necessary to write '\x00'==0 to get something 3263 that's true only with -std. */ 3264int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3265 3266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3267 inside strings and character constants. */ 3268#define FOO(x) 'x' 3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3270 3271int test (int i, double x); 3272struct s1 {int (*f) (int a);}; 3273struct s2 {int (*f) (double a);}; 3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3275int argc; 3276char **argv; 3277int 3278main () 3279{ 3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3287do 3288 CC="$ac_save_CC $ac_arg" 3289 rm -f conftest.$ac_objext 3290if { (ac_try="$ac_compile" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3296 (eval "$ac_compile") 2>conftest.er1 3297 ac_status=$? 3298 grep -v '^ *+' conftest.er1 >conftest.err 3299 rm -f conftest.er1 3300 cat conftest.err >&5 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } && { 3303 test -z "$ac_c_werror_flag" || 3304 test ! -s conftest.err 3305 } && test -s conftest.$ac_objext; then 3306 ac_cv_prog_cc_c89=$ac_arg 3307else 3308 echo "$as_me: failed program was:" >&5 3309sed 's/^/| /' conftest.$ac_ext >&5 3310 3311 3312fi 3313 3314rm -f core conftest.err conftest.$ac_objext 3315 test "x$ac_cv_prog_cc_c89" != "xno" && break 3316done 3317rm -f conftest.$ac_ext 3318CC=$ac_save_CC 3319 3320fi 3321# AC_CACHE_VAL 3322case "x$ac_cv_prog_cc_c89" in 3323 x) 3324 { echo "$as_me:$LINENO: result: none needed" >&5 3325echo "${ECHO_T}none needed" >&6; } ;; 3326 xno) 3327 { echo "$as_me:$LINENO: result: unsupported" >&5 3328echo "${ECHO_T}unsupported" >&6; } ;; 3329 *) 3330 CC="$CC $ac_cv_prog_cc_c89" 3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3332echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3333esac 3334 3335 3336ac_ext=c 3337ac_cpp='$CPP $CPPFLAGS' 3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3340ac_compiler_gnu=$ac_cv_c_compiler_gnu 3341DEPDIR="${am__leading_dot}deps" 3342 3343ac_config_commands="$ac_config_commands depfiles" 3344 3345 3346am_make=${MAKE-make} 3347cat > confinc << 'END' 3348am__doit: 3349 @echo done 3350.PHONY: am__doit 3351END 3352# If we don't find an include directive, just comment out the code. 3353{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3354echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3355am__include="#" 3356am__quote= 3357_am_result=none 3358# First try GNU make style include. 3359echo "include confinc" > confmf 3360# We grep out `Entering directory' and `Leaving directory' 3361# messages which can occur if `w' ends up in MAKEFLAGS. 3362# In particular we don't look at `^make:' because GNU make might 3363# be invoked under some other name (usually "gmake"), in which 3364# case it prints its new name instead of `make'. 3365if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3366 am__include=include 3367 am__quote= 3368 _am_result=GNU 3369fi 3370# Now try BSD make style include. 3371if test "$am__include" = "#"; then 3372 echo '.include "confinc"' > confmf 3373 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3374 am__include=.include 3375 am__quote="\"" 3376 _am_result=BSD 3377 fi 3378fi 3379 3380 3381{ echo "$as_me:$LINENO: result: $_am_result" >&5 3382echo "${ECHO_T}$_am_result" >&6; } 3383rm -f confinc confmf 3384 3385# Check whether --enable-dependency-tracking was given. 3386if test "${enable_dependency_tracking+set}" = set; then 3387 enableval=$enable_dependency_tracking; 3388fi 3389 3390if test "x$enable_dependency_tracking" != xno; then 3391 am_depcomp="$ac_aux_dir/depcomp" 3392 AMDEPBACKSLASH='\' 3393fi 3394 3395 3396if test "x$enable_dependency_tracking" != xno; then 3397 AMDEP_TRUE= 3398 AMDEP_FALSE='#' 3399else 3400 AMDEP_TRUE='#' 3401 AMDEP_FALSE= 3402fi 3403 3404 3405 3406 3407depcc="$CC" am_compiler_list= 3408 3409{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3410echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3411if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3412 echo $ECHO_N "(cached) $ECHO_C" >&6 3413else 3414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3415 # We make a subdir and do the tests there. Otherwise we can end up 3416 # making bogus files that we don't know about and never remove. For 3417 # instance it was reported that on HP-UX the gcc test will end up 3418 # making a dummy file named `D' -- because `-MD' means `put the output 3419 # in D'. 3420 mkdir conftest.dir 3421 # Copy depcomp to subdir because otherwise we won't find it if we're 3422 # using a relative directory. 3423 cp "$am_depcomp" conftest.dir 3424 cd conftest.dir 3425 # We will build objects and dependencies in a subdirectory because 3426 # it helps to detect inapplicable dependency modes. For instance 3427 # both Tru64's cc and ICC support -MD to output dependencies as a 3428 # side effect of compilation, but ICC will put the dependencies in 3429 # the current directory while Tru64 will put them in the object 3430 # directory. 3431 mkdir sub 3432 3433 am_cv_CC_dependencies_compiler_type=none 3434 if test "$am_compiler_list" = ""; then 3435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3436 fi 3437 for depmode in $am_compiler_list; do 3438 # Setup a source with many dependencies, because some compilers 3439 # like to wrap large dependency lists on column 80 (with \), and 3440 # we should not choose a depcomp mode which is confused by this. 3441 # 3442 # We need to recreate these files for each test, as the compiler may 3443 # overwrite some of them when testing with obscure command lines. 3444 # This happens at least with the AIX C compiler. 3445 : > sub/conftest.c 3446 for i in 1 2 3 4 5 6; do 3447 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3449 # Solaris 8's {/usr,}/bin/sh. 3450 touch sub/conftst$i.h 3451 done 3452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3453 3454 case $depmode in 3455 nosideeffect) 3456 # after this tag, mechanisms are not by side-effect, so they'll 3457 # only be used when explicitly requested 3458 if test "x$enable_dependency_tracking" = xyes; then 3459 continue 3460 else 3461 break 3462 fi 3463 ;; 3464 none) break ;; 3465 esac 3466 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3467 # mode. It turns out that the SunPro C++ compiler does not properly 3468 # handle `-M -o', and we need to detect this. 3469 if depmode=$depmode \ 3470 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3472 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3473 >/dev/null 2>conftest.err && 3474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3475 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3477 # icc doesn't choke on unknown options, it will just issue warnings 3478 # or remarks (even with -Werror). So we grep stderr for any message 3479 # that says an option was ignored or not supported. 3480 # When given -MP, icc 7.0 and 7.1 complain thusly: 3481 # icc: Command line warning: ignoring option '-M'; no argument required 3482 # The diagnosis changed in icc 8.0: 3483 # icc: Command line remark: option '-MP' not supported 3484 if (grep 'ignoring option' conftest.err || 3485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3486 am_cv_CC_dependencies_compiler_type=$depmode 3487 break 3488 fi 3489 fi 3490 done 3491 3492 cd .. 3493 rm -rf conftest.dir 3494else 3495 am_cv_CC_dependencies_compiler_type=none 3496fi 3497 3498fi 3499{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3500echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3501CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3502 3503 3504 3505if 3506 test "x$enable_dependency_tracking" != xno \ 3507 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3508 am__fastdepCC_TRUE= 3509 am__fastdepCC_FALSE='#' 3510else 3511 am__fastdepCC_TRUE='#' 3512 am__fastdepCC_FALSE= 3513fi 3514 3515 3516# Check whether --enable-shared was given. 3517if test "${enable_shared+set}" = set; then 3518 enableval=$enable_shared; p=${PACKAGE-default} 3519 case $enableval in 3520 yes) enable_shared=yes ;; 3521 no) enable_shared=no ;; 3522 *) 3523 enable_shared=no 3524 # Look at the argument we got. We use all the common list separators. 3525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3526 for pkg in $enableval; do 3527 IFS="$lt_save_ifs" 3528 if test "X$pkg" = "X$p"; then 3529 enable_shared=yes 3530 fi 3531 done 3532 IFS="$lt_save_ifs" 3533 ;; 3534 esac 3535else 3536 enable_shared=yes 3537fi 3538 3539 3540# Check whether --enable-static was given. 3541if test "${enable_static+set}" = set; then 3542 enableval=$enable_static; p=${PACKAGE-default} 3543 case $enableval in 3544 yes) enable_static=yes ;; 3545 no) enable_static=no ;; 3546 *) 3547 enable_static=no 3548 # Look at the argument we got. We use all the common list separators. 3549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3550 for pkg in $enableval; do 3551 IFS="$lt_save_ifs" 3552 if test "X$pkg" = "X$p"; then 3553 enable_static=yes 3554 fi 3555 done 3556 IFS="$lt_save_ifs" 3557 ;; 3558 esac 3559else 3560 enable_static=yes 3561fi 3562 3563 3564# Check whether --enable-fast-install was given. 3565if test "${enable_fast_install+set}" = set; then 3566 enableval=$enable_fast_install; p=${PACKAGE-default} 3567 case $enableval in 3568 yes) enable_fast_install=yes ;; 3569 no) enable_fast_install=no ;; 3570 *) 3571 enable_fast_install=no 3572 # Look at the argument we got. We use all the common list separators. 3573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3574 for pkg in $enableval; do 3575 IFS="$lt_save_ifs" 3576 if test "X$pkg" = "X$p"; then 3577 enable_fast_install=yes 3578 fi 3579 done 3580 IFS="$lt_save_ifs" 3581 ;; 3582 esac 3583else 3584 enable_fast_install=yes 3585fi 3586 3587 3588# Make sure we can run config.sub. 3589$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3590 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3591echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3592 { (exit 1); exit 1; }; } 3593 3594{ echo "$as_me:$LINENO: checking build system type" >&5 3595echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3596if test "${ac_cv_build+set}" = set; then 3597 echo $ECHO_N "(cached) $ECHO_C" >&6 3598else 3599 ac_build_alias=$build_alias 3600test "x$ac_build_alias" = x && 3601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3602test "x$ac_build_alias" = x && 3603 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3604echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3605 { (exit 1); exit 1; }; } 3606ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3607 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3608echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3609 { (exit 1); exit 1; }; } 3610 3611fi 3612{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3613echo "${ECHO_T}$ac_cv_build" >&6; } 3614case $ac_cv_build in 3615*-*-*) ;; 3616*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3617echo "$as_me: error: invalid value of canonical build" >&2;} 3618 { (exit 1); exit 1; }; };; 3619esac 3620build=$ac_cv_build 3621ac_save_IFS=$IFS; IFS='-' 3622set x $ac_cv_build 3623shift 3624build_cpu=$1 3625build_vendor=$2 3626shift; shift 3627# Remember, the first character of IFS is used to create $*, 3628# except with old shells: 3629build_os=$* 3630IFS=$ac_save_IFS 3631case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3632 3633 3634{ echo "$as_me:$LINENO: checking host system type" >&5 3635echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3636if test "${ac_cv_host+set}" = set; then 3637 echo $ECHO_N "(cached) $ECHO_C" >&6 3638else 3639 if test "x$host_alias" = x; then 3640 ac_cv_host=$ac_cv_build 3641else 3642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3643 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3644echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3645 { (exit 1); exit 1; }; } 3646fi 3647 3648fi 3649{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3650echo "${ECHO_T}$ac_cv_host" >&6; } 3651case $ac_cv_host in 3652*-*-*) ;; 3653*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3654echo "$as_me: error: invalid value of canonical host" >&2;} 3655 { (exit 1); exit 1; }; };; 3656esac 3657host=$ac_cv_host 3658ac_save_IFS=$IFS; IFS='-' 3659set x $ac_cv_host 3660shift 3661host_cpu=$1 3662host_vendor=$2 3663shift; shift 3664# Remember, the first character of IFS is used to create $*, 3665# except with old shells: 3666host_os=$* 3667IFS=$ac_save_IFS 3668case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3669 3670 3671{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3672echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3673if test "${lt_cv_path_SED+set}" = set; then 3674 echo $ECHO_N "(cached) $ECHO_C" >&6 3675else 3676 # Loop through the user's path and test for sed and gsed. 3677# Then use that list of sed's as ones to test for truncation. 3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH 3680do 3681 IFS=$as_save_IFS 3682 test -z "$as_dir" && as_dir=. 3683 for lt_ac_prog in sed gsed; do 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3686 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3687 fi 3688 done 3689 done 3690done 3691lt_ac_max=0 3692lt_ac_count=0 3693# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3694# along with /bin/sed that truncates output. 3695for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3696 test ! -f $lt_ac_sed && continue 3697 cat /dev/null > conftest.in 3698 lt_ac_count=0 3699 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3700 # Check for GNU sed and select it if it is found. 3701 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3702 lt_cv_path_SED=$lt_ac_sed 3703 break 3704 fi 3705 while true; do 3706 cat conftest.in conftest.in >conftest.tmp 3707 mv conftest.tmp conftest.in 3708 cp conftest.in conftest.nl 3709 echo >>conftest.nl 3710 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3711 cmp -s conftest.out conftest.nl || break 3712 # 10000 chars as input seems more than enough 3713 test $lt_ac_count -gt 10 && break 3714 lt_ac_count=`expr $lt_ac_count + 1` 3715 if test $lt_ac_count -gt $lt_ac_max; then 3716 lt_ac_max=$lt_ac_count 3717 lt_cv_path_SED=$lt_ac_sed 3718 fi 3719 done 3720done 3721 3722fi 3723 3724SED=$lt_cv_path_SED 3725{ echo "$as_me:$LINENO: result: $SED" >&5 3726echo "${ECHO_T}$SED" >&6; } 3727 3728{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3729echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3730if test "${ac_cv_path_GREP+set}" = set; then 3731 echo $ECHO_N "(cached) $ECHO_C" >&6 3732else 3733 # Extract the first word of "grep ggrep" to use in msg output 3734if test -z "$GREP"; then 3735set dummy grep ggrep; ac_prog_name=$2 3736if test "${ac_cv_path_GREP+set}" = set; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 ac_path_GREP_found=false 3740# Loop through the user's path and test for each of PROGNAME-LIST 3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3743do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_prog in grep ggrep; do 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3749 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3750 # Check for GNU ac_path_GREP and select it if it is found. 3751 # Check for GNU $ac_path_GREP 3752case `"$ac_path_GREP" --version 2>&1` in 3753*GNU*) 3754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3755*) 3756 ac_count=0 3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3758 while : 3759 do 3760 cat "conftest.in" "conftest.in" >"conftest.tmp" 3761 mv "conftest.tmp" "conftest.in" 3762 cp "conftest.in" "conftest.nl" 3763 echo 'GREP' >> "conftest.nl" 3764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3766 ac_count=`expr $ac_count + 1` 3767 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3768 # Best one so far, save it but keep looking for a better one 3769 ac_cv_path_GREP="$ac_path_GREP" 3770 ac_path_GREP_max=$ac_count 3771 fi 3772 # 10*(2^10) chars as input seems more than enough 3773 test $ac_count -gt 10 && break 3774 done 3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3776esac 3777 3778 3779 $ac_path_GREP_found && break 3 3780 done 3781done 3782 3783done 3784IFS=$as_save_IFS 3785 3786 3787fi 3788 3789GREP="$ac_cv_path_GREP" 3790if test -z "$GREP"; then 3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3792echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3793 { (exit 1); exit 1; }; } 3794fi 3795 3796else 3797 ac_cv_path_GREP=$GREP 3798fi 3799 3800 3801fi 3802{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3803echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3804 GREP="$ac_cv_path_GREP" 3805 3806 3807{ echo "$as_me:$LINENO: checking for egrep" >&5 3808echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3809if test "${ac_cv_path_EGREP+set}" = set; then 3810 echo $ECHO_N "(cached) $ECHO_C" >&6 3811else 3812 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3813 then ac_cv_path_EGREP="$GREP -E" 3814 else 3815 # Extract the first word of "egrep" to use in msg output 3816if test -z "$EGREP"; then 3817set dummy egrep; ac_prog_name=$2 3818if test "${ac_cv_path_EGREP+set}" = set; then 3819 echo $ECHO_N "(cached) $ECHO_C" >&6 3820else 3821 ac_path_EGREP_found=false 3822# Loop through the user's path and test for each of PROGNAME-LIST 3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3824for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3825do 3826 IFS=$as_save_IFS 3827 test -z "$as_dir" && as_dir=. 3828 for ac_prog in egrep; do 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3831 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3832 # Check for GNU ac_path_EGREP and select it if it is found. 3833 # Check for GNU $ac_path_EGREP 3834case `"$ac_path_EGREP" --version 2>&1` in 3835*GNU*) 3836 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3837*) 3838 ac_count=0 3839 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3840 while : 3841 do 3842 cat "conftest.in" "conftest.in" >"conftest.tmp" 3843 mv "conftest.tmp" "conftest.in" 3844 cp "conftest.in" "conftest.nl" 3845 echo 'EGREP' >> "conftest.nl" 3846 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3848 ac_count=`expr $ac_count + 1` 3849 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3850 # Best one so far, save it but keep looking for a better one 3851 ac_cv_path_EGREP="$ac_path_EGREP" 3852 ac_path_EGREP_max=$ac_count 3853 fi 3854 # 10*(2^10) chars as input seems more than enough 3855 test $ac_count -gt 10 && break 3856 done 3857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3858esac 3859 3860 3861 $ac_path_EGREP_found && break 3 3862 done 3863done 3864 3865done 3866IFS=$as_save_IFS 3867 3868 3869fi 3870 3871EGREP="$ac_cv_path_EGREP" 3872if test -z "$EGREP"; then 3873 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3874echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3875 { (exit 1); exit 1; }; } 3876fi 3877 3878else 3879 ac_cv_path_EGREP=$EGREP 3880fi 3881 3882 3883 fi 3884fi 3885{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3886echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3887 EGREP="$ac_cv_path_EGREP" 3888 3889 3890 3891# Check whether --with-gnu-ld was given. 3892if test "${with_gnu_ld+set}" = set; then 3893 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3894else 3895 with_gnu_ld=no 3896fi 3897 3898ac_prog=ld 3899if test "$GCC" = yes; then 3900 # Check if gcc -print-prog-name=ld gives a path. 3901 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3902echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3903 case $host in 3904 *-*-mingw*) 3905 # gcc leaves a trailing carriage return which upsets mingw 3906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3907 *) 3908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3909 esac 3910 case $ac_prog in 3911 # Accept absolute paths. 3912 [\\/]* | ?:[\\/]*) 3913 re_direlt='/[^/][^/]*/\.\./' 3914 # Canonicalize the pathname of ld 3915 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3916 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3917 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3918 done 3919 test -z "$LD" && LD="$ac_prog" 3920 ;; 3921 "") 3922 # If it fails, then pretend we aren't using GCC. 3923 ac_prog=ld 3924 ;; 3925 *) 3926 # If it is relative, then search for the first ld in PATH. 3927 with_gnu_ld=unknown 3928 ;; 3929 esac 3930elif test "$with_gnu_ld" = yes; then 3931 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3932echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3933else 3934 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3935echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3936fi 3937if test "${lt_cv_path_LD+set}" = set; then 3938 echo $ECHO_N "(cached) $ECHO_C" >&6 3939else 3940 if test -z "$LD"; then 3941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3942 for ac_dir in $PATH; do 3943 IFS="$lt_save_ifs" 3944 test -z "$ac_dir" && ac_dir=. 3945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3946 lt_cv_path_LD="$ac_dir/$ac_prog" 3947 # Check to see if the program is GNU ld. I'd rather use --version, 3948 # but apparently some variants of GNU ld only accept -v. 3949 # Break only if it was the GNU/non-GNU ld that we prefer. 3950 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3951 *GNU* | *'with BFD'*) 3952 test "$with_gnu_ld" != no && break 3953 ;; 3954 *) 3955 test "$with_gnu_ld" != yes && break 3956 ;; 3957 esac 3958 fi 3959 done 3960 IFS="$lt_save_ifs" 3961else 3962 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3963fi 3964fi 3965 3966LD="$lt_cv_path_LD" 3967if test -n "$LD"; then 3968 { echo "$as_me:$LINENO: result: $LD" >&5 3969echo "${ECHO_T}$LD" >&6; } 3970else 3971 { echo "$as_me:$LINENO: result: no" >&5 3972echo "${ECHO_T}no" >&6; } 3973fi 3974test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3975echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3976 { (exit 1); exit 1; }; } 3977{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3978echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3979if test "${lt_cv_prog_gnu_ld+set}" = set; then 3980 echo $ECHO_N "(cached) $ECHO_C" >&6 3981else 3982 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3983case `$LD -v 2>&1 </dev/null` in 3984*GNU* | *'with BFD'*) 3985 lt_cv_prog_gnu_ld=yes 3986 ;; 3987*) 3988 lt_cv_prog_gnu_ld=no 3989 ;; 3990esac 3991fi 3992{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3993echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3994with_gnu_ld=$lt_cv_prog_gnu_ld 3995 3996 3997{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3998echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3999if test "${lt_cv_ld_reload_flag+set}" = set; then 4000 echo $ECHO_N "(cached) $ECHO_C" >&6 4001else 4002 lt_cv_ld_reload_flag='-r' 4003fi 4004{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4005echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4006reload_flag=$lt_cv_ld_reload_flag 4007case $reload_flag in 4008"" | " "*) ;; 4009*) reload_flag=" $reload_flag" ;; 4010esac 4011reload_cmds='$LD$reload_flag -o $output$reload_objs' 4012case $host_os in 4013 darwin*) 4014 if test "$GCC" = yes; then 4015 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4016 else 4017 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4018 fi 4019 ;; 4020esac 4021 4022{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4023echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4024if test "${lt_cv_path_NM+set}" = set; then 4025 echo $ECHO_N "(cached) $ECHO_C" >&6 4026else 4027 if test -n "$NM"; then 4028 # Let the user override the test. 4029 lt_cv_path_NM="$NM" 4030else 4031 lt_nm_to_check="${ac_tool_prefix}nm" 4032 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4033 lt_nm_to_check="$lt_nm_to_check nm" 4034 fi 4035 for lt_tmp_nm in $lt_nm_to_check; do 4036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4038 IFS="$lt_save_ifs" 4039 test -z "$ac_dir" && ac_dir=. 4040 tmp_nm="$ac_dir/$lt_tmp_nm" 4041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4042 # Check to see if the nm accepts a BSD-compat flag. 4043 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4044 # nm: unknown option "B" ignored 4045 # Tru64's nm complains that /dev/null is an invalid object file 4046 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4047 */dev/null* | *'Invalid file or object type'*) 4048 lt_cv_path_NM="$tmp_nm -B" 4049 break 4050 ;; 4051 *) 4052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4053 */dev/null*) 4054 lt_cv_path_NM="$tmp_nm -p" 4055 break 4056 ;; 4057 *) 4058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4059 continue # so that we can try to find one that supports BSD flags 4060 ;; 4061 esac 4062 ;; 4063 esac 4064 fi 4065 done 4066 IFS="$lt_save_ifs" 4067 done 4068 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4069fi 4070fi 4071{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4072echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4073NM="$lt_cv_path_NM" 4074 4075{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4076echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4077LN_S=$as_ln_s 4078if test "$LN_S" = "ln -s"; then 4079 { echo "$as_me:$LINENO: result: yes" >&5 4080echo "${ECHO_T}yes" >&6; } 4081else 4082 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4083echo "${ECHO_T}no, using $LN_S" >&6; } 4084fi 4085 4086{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4087echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4088if test "${lt_cv_deplibs_check_method+set}" = set; then 4089 echo $ECHO_N "(cached) $ECHO_C" >&6 4090else 4091 lt_cv_file_magic_cmd='$MAGIC_CMD' 4092lt_cv_file_magic_test_file= 4093lt_cv_deplibs_check_method='unknown' 4094# Need to set the preceding variable on all platforms that support 4095# interlibrary dependencies. 4096# 'none' -- dependencies not supported. 4097# `unknown' -- same as none, but documents that we really don't know. 4098# 'pass_all' -- all dependencies passed with no checks. 4099# 'test_compile' -- check by making test program. 4100# 'file_magic [[regex]]' -- check by looking for files in library path 4101# which responds to the $file_magic_cmd with a given extended regex. 4102# If you have `file' or equivalent on your system and you're not sure 4103# whether `pass_all' will *always* work, you probably want this one. 4104 4105case $host_os in 4106aix4* | aix5*) 4107 lt_cv_deplibs_check_method=pass_all 4108 ;; 4109 4110beos*) 4111 lt_cv_deplibs_check_method=pass_all 4112 ;; 4113 4114bsdi[45]*) 4115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4116 lt_cv_file_magic_cmd='/usr/bin/file -L' 4117 lt_cv_file_magic_test_file=/shlib/libc.so 4118 ;; 4119 4120cygwin*) 4121 # func_win32_libid is a shell function defined in ltmain.sh 4122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4123 lt_cv_file_magic_cmd='func_win32_libid' 4124 ;; 4125 4126mingw* | pw32*) 4127 # Base MSYS/MinGW do not provide the 'file' command needed by 4128 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4130 lt_cv_file_magic_cmd='$OBJDUMP -f' 4131 ;; 4132 4133darwin* | rhapsody*) 4134 lt_cv_deplibs_check_method=pass_all 4135 ;; 4136 4137freebsd* | dragonfly*) 4138 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4139 case $host_cpu in 4140 i*86 ) 4141 # Not sure whether the presence of OpenBSD here was a mistake. 4142 # Let's accept both of them until this is cleared up. 4143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4144 lt_cv_file_magic_cmd=/usr/bin/file 4145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4146 ;; 4147 esac 4148 else 4149 lt_cv_deplibs_check_method=pass_all 4150 fi 4151 ;; 4152 4153gnu*) 4154 lt_cv_deplibs_check_method=pass_all 4155 ;; 4156 4157hpux10.20* | hpux11*) 4158 lt_cv_file_magic_cmd=/usr/bin/file 4159 case $host_cpu in 4160 ia64*) 4161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4163 ;; 4164 hppa*64*) 4165 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]' 4166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4167 ;; 4168 *) 4169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4170 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4171 ;; 4172 esac 4173 ;; 4174 4175interix3*) 4176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4178 ;; 4179 4180irix5* | irix6* | nonstopux*) 4181 case $LD in 4182 *-32|*"-32 ") libmagic=32-bit;; 4183 *-n32|*"-n32 ") libmagic=N32;; 4184 *-64|*"-64 ") libmagic=64-bit;; 4185 *) libmagic=never-match;; 4186 esac 4187 lt_cv_deplibs_check_method=pass_all 4188 ;; 4189 4190# This must be Linux ELF. 4191linux* | k*bsd*-gnu) 4192 lt_cv_deplibs_check_method=pass_all 4193 ;; 4194 4195netbsd* | netbsdelf*-gnu) 4196 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4198 else 4199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4200 fi 4201 ;; 4202 4203newos6*) 4204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4205 lt_cv_file_magic_cmd=/usr/bin/file 4206 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4207 ;; 4208 4209nto-qnx*) 4210 lt_cv_deplibs_check_method=unknown 4211 ;; 4212 4213openbsd*) 4214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4216 else 4217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4218 fi 4219 ;; 4220 4221osf3* | osf4* | osf5*) 4222 lt_cv_deplibs_check_method=pass_all 4223 ;; 4224 4225solaris*) 4226 lt_cv_deplibs_check_method=pass_all 4227 ;; 4228 4229sysv4 | sysv4.3*) 4230 case $host_vendor in 4231 motorola) 4232 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]' 4233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4234 ;; 4235 ncr) 4236 lt_cv_deplibs_check_method=pass_all 4237 ;; 4238 sequent) 4239 lt_cv_file_magic_cmd='/bin/file' 4240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4241 ;; 4242 sni) 4243 lt_cv_file_magic_cmd='/bin/file' 4244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4245 lt_cv_file_magic_test_file=/lib/libc.so 4246 ;; 4247 siemens) 4248 lt_cv_deplibs_check_method=pass_all 4249 ;; 4250 pc) 4251 lt_cv_deplibs_check_method=pass_all 4252 ;; 4253 esac 4254 ;; 4255 4256sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4257 lt_cv_deplibs_check_method=pass_all 4258 ;; 4259esac 4260 4261fi 4262{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4263echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4264file_magic_cmd=$lt_cv_file_magic_cmd 4265deplibs_check_method=$lt_cv_deplibs_check_method 4266test -z "$deplibs_check_method" && deplibs_check_method=unknown 4267 4268 4269 4270 4271# If no C compiler was specified, use CC. 4272LTCC=${LTCC-"$CC"} 4273 4274# If no C compiler flags were specified, use CFLAGS. 4275LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4276 4277# Allow CC to be a program name with arguments. 4278compiler=$CC 4279 4280 4281# Check whether --enable-libtool-lock was given. 4282if test "${enable_libtool_lock+set}" = set; then 4283 enableval=$enable_libtool_lock; 4284fi 4285 4286test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4287 4288# Some flags need to be propagated to the compiler or linker for good 4289# libtool support. 4290case $host in 4291ia64-*-hpux*) 4292 # Find out which ABI we are using. 4293 echo 'int i;' > conftest.$ac_ext 4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4295 (eval $ac_compile) 2>&5 4296 ac_status=$? 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); }; then 4299 case `/usr/bin/file conftest.$ac_objext` in 4300 *ELF-32*) 4301 HPUX_IA64_MODE="32" 4302 ;; 4303 *ELF-64*) 4304 HPUX_IA64_MODE="64" 4305 ;; 4306 esac 4307 fi 4308 rm -rf conftest* 4309 ;; 4310*-*-irix6*) 4311 # Find out which ABI we are using. 4312 echo '#line __oline__ "configure"' > conftest.$ac_ext 4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4314 (eval $ac_compile) 2>&5 4315 ac_status=$? 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); }; then 4318 if test "$lt_cv_prog_gnu_ld" = yes; then 4319 case `/usr/bin/file conftest.$ac_objext` in 4320 *32-bit*) 4321 LD="${LD-ld} -melf32bsmip" 4322 ;; 4323 *N32*) 4324 LD="${LD-ld} -melf32bmipn32" 4325 ;; 4326 *64-bit*) 4327 LD="${LD-ld} -melf64bmip" 4328 ;; 4329 esac 4330 else 4331 case `/usr/bin/file conftest.$ac_objext` in 4332 *32-bit*) 4333 LD="${LD-ld} -32" 4334 ;; 4335 *N32*) 4336 LD="${LD-ld} -n32" 4337 ;; 4338 *64-bit*) 4339 LD="${LD-ld} -64" 4340 ;; 4341 esac 4342 fi 4343 fi 4344 rm -rf conftest* 4345 ;; 4346 4347x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4348 # Find out which ABI we are using. 4349 echo 'int i;' > conftest.$ac_ext 4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4351 (eval $ac_compile) 2>&5 4352 ac_status=$? 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); }; then 4355 case `/usr/bin/file conftest.o` in 4356 *32-bit*) 4357 case $host in 4358 x86_64-*linux*) 4359 LD="${LD-ld} -m elf_i386" 4360 ;; 4361 ppc64-*linux*|powerpc64-*linux*) 4362 LD="${LD-ld} -m elf32ppclinux" 4363 ;; 4364 s390x-*linux*) 4365 LD="${LD-ld} -m elf_s390" 4366 ;; 4367 sparc64-*linux*) 4368 LD="${LD-ld} -m elf32_sparc" 4369 ;; 4370 esac 4371 ;; 4372 *64-bit*) 4373 case $host in 4374 x86_64-*linux*) 4375 LD="${LD-ld} -m elf_x86_64" 4376 ;; 4377 ppc*-*linux*|powerpc*-*linux*) 4378 LD="${LD-ld} -m elf64ppc" 4379 ;; 4380 s390*-*linux*) 4381 LD="${LD-ld} -m elf64_s390" 4382 ;; 4383 sparc*-*linux*) 4384 LD="${LD-ld} -m elf64_sparc" 4385 ;; 4386 esac 4387 ;; 4388 esac 4389 fi 4390 rm -rf conftest* 4391 ;; 4392 4393*-*-sco3.2v5*) 4394 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4395 SAVE_CFLAGS="$CFLAGS" 4396 CFLAGS="$CFLAGS -belf" 4397 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4398echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4399if test "${lt_cv_cc_needs_belf+set}" = set; then 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 4401else 4402 ac_ext=c 4403ac_cpp='$CPP $CPPFLAGS' 4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4406ac_compiler_gnu=$ac_cv_c_compiler_gnu 4407 4408 cat >conftest.$ac_ext <<_ACEOF 4409/* confdefs.h. */ 4410_ACEOF 4411cat confdefs.h >>conftest.$ac_ext 4412cat >>conftest.$ac_ext <<_ACEOF 4413/* end confdefs.h. */ 4414 4415int 4416main () 4417{ 4418 4419 ; 4420 return 0; 4421} 4422_ACEOF 4423rm -f conftest.$ac_objext conftest$ac_exeext 4424if { (ac_try="$ac_link" 4425case "(($ac_try" in 4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4427 *) ac_try_echo=$ac_try;; 4428esac 4429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4430 (eval "$ac_link") 2>conftest.er1 4431 ac_status=$? 4432 grep -v '^ *+' conftest.er1 >conftest.err 4433 rm -f conftest.er1 4434 cat conftest.err >&5 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && { 4437 test -z "$ac_c_werror_flag" || 4438 test ! -s conftest.err 4439 } && test -s conftest$ac_exeext && 4440 $as_test_x conftest$ac_exeext; then 4441 lt_cv_cc_needs_belf=yes 4442else 4443 echo "$as_me: failed program was:" >&5 4444sed 's/^/| /' conftest.$ac_ext >&5 4445 4446 lt_cv_cc_needs_belf=no 4447fi 4448 4449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4450 conftest$ac_exeext conftest.$ac_ext 4451 ac_ext=c 4452ac_cpp='$CPP $CPPFLAGS' 4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4455ac_compiler_gnu=$ac_cv_c_compiler_gnu 4456 4457fi 4458{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4459echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4460 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4462 CFLAGS="$SAVE_CFLAGS" 4463 fi 4464 ;; 4465sparc*-*solaris*) 4466 # Find out which ABI we are using. 4467 echo 'int i;' > conftest.$ac_ext 4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4469 (eval $ac_compile) 2>&5 4470 ac_status=$? 4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4472 (exit $ac_status); }; then 4473 case `/usr/bin/file conftest.o` in 4474 *64-bit*) 4475 case $lt_cv_prog_gnu_ld in 4476 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4477 *) LD="${LD-ld} -64" ;; 4478 esac 4479 ;; 4480 esac 4481 fi 4482 rm -rf conftest* 4483 ;; 4484 4485 4486esac 4487 4488need_locks="$enable_libtool_lock" 4489 4490 4491ac_ext=c 4492ac_cpp='$CPP $CPPFLAGS' 4493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4495ac_compiler_gnu=$ac_cv_c_compiler_gnu 4496{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4497echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4498# On Suns, sometimes $CPP names a directory. 4499if test -n "$CPP" && test -d "$CPP"; then 4500 CPP= 4501fi 4502if test -z "$CPP"; then 4503 if test "${ac_cv_prog_CPP+set}" = set; then 4504 echo $ECHO_N "(cached) $ECHO_C" >&6 4505else 4506 # Double quotes because CPP needs to be expanded 4507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4508 do 4509 ac_preproc_ok=false 4510for ac_c_preproc_warn_flag in '' yes 4511do 4512 # Use a header file that comes with gcc, so configuring glibc 4513 # with a fresh cross-compiler works. 4514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4515 # <limits.h> exists even on freestanding compilers. 4516 # On the NeXT, cc -E runs the code through the compiler's parser, 4517 # not just through cpp. "Syntax error" is here to catch this case. 4518 cat >conftest.$ac_ext <<_ACEOF 4519/* confdefs.h. */ 4520_ACEOF 4521cat confdefs.h >>conftest.$ac_ext 4522cat >>conftest.$ac_ext <<_ACEOF 4523/* end confdefs.h. */ 4524@%:@ifdef __STDC__ 4525@%:@ include <limits.h> 4526@%:@else 4527@%:@ include <assert.h> 4528@%:@endif 4529 Syntax error 4530_ACEOF 4531if { (ac_try="$ac_cpp conftest.$ac_ext" 4532case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4538 ac_status=$? 4539 grep -v '^ *+' conftest.er1 >conftest.err 4540 rm -f conftest.er1 4541 cat conftest.err >&5 4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4543 (exit $ac_status); } >/dev/null && { 4544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4545 test ! -s conftest.err 4546 }; then 4547 : 4548else 4549 echo "$as_me: failed program was:" >&5 4550sed 's/^/| /' conftest.$ac_ext >&5 4551 4552 # Broken: fails on valid input. 4553continue 4554fi 4555 4556rm -f conftest.err conftest.$ac_ext 4557 4558 # OK, works on sane cases. Now check whether nonexistent headers 4559 # can be detected and how. 4560 cat >conftest.$ac_ext <<_ACEOF 4561/* confdefs.h. */ 4562_ACEOF 4563cat confdefs.h >>conftest.$ac_ext 4564cat >>conftest.$ac_ext <<_ACEOF 4565/* end confdefs.h. */ 4566@%:@include <ac_nonexistent.h> 4567_ACEOF 4568if { (ac_try="$ac_cpp conftest.$ac_ext" 4569case "(($ac_try" in 4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4571 *) ac_try_echo=$ac_try;; 4572esac 4573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4575 ac_status=$? 4576 grep -v '^ *+' conftest.er1 >conftest.err 4577 rm -f conftest.er1 4578 cat conftest.err >&5 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4580 (exit $ac_status); } >/dev/null && { 4581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4582 test ! -s conftest.err 4583 }; then 4584 # Broken: success on invalid input. 4585continue 4586else 4587 echo "$as_me: failed program was:" >&5 4588sed 's/^/| /' conftest.$ac_ext >&5 4589 4590 # Passes both tests. 4591ac_preproc_ok=: 4592break 4593fi 4594 4595rm -f conftest.err conftest.$ac_ext 4596 4597done 4598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4599rm -f conftest.err conftest.$ac_ext 4600if $ac_preproc_ok; then 4601 break 4602fi 4603 4604 done 4605 ac_cv_prog_CPP=$CPP 4606 4607fi 4608 CPP=$ac_cv_prog_CPP 4609else 4610 ac_cv_prog_CPP=$CPP 4611fi 4612{ echo "$as_me:$LINENO: result: $CPP" >&5 4613echo "${ECHO_T}$CPP" >&6; } 4614ac_preproc_ok=false 4615for ac_c_preproc_warn_flag in '' yes 4616do 4617 # Use a header file that comes with gcc, so configuring glibc 4618 # with a fresh cross-compiler works. 4619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4620 # <limits.h> exists even on freestanding compilers. 4621 # On the NeXT, cc -E runs the code through the compiler's parser, 4622 # not just through cpp. "Syntax error" is here to catch this case. 4623 cat >conftest.$ac_ext <<_ACEOF 4624/* confdefs.h. */ 4625_ACEOF 4626cat confdefs.h >>conftest.$ac_ext 4627cat >>conftest.$ac_ext <<_ACEOF 4628/* end confdefs.h. */ 4629@%:@ifdef __STDC__ 4630@%:@ include <limits.h> 4631@%:@else 4632@%:@ include <assert.h> 4633@%:@endif 4634 Syntax error 4635_ACEOF 4636if { (ac_try="$ac_cpp conftest.$ac_ext" 4637case "(($ac_try" in 4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4639 *) ac_try_echo=$ac_try;; 4640esac 4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4643 ac_status=$? 4644 grep -v '^ *+' conftest.er1 >conftest.err 4645 rm -f conftest.er1 4646 cat conftest.err >&5 4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4648 (exit $ac_status); } >/dev/null && { 4649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4650 test ! -s conftest.err 4651 }; then 4652 : 4653else 4654 echo "$as_me: failed program was:" >&5 4655sed 's/^/| /' conftest.$ac_ext >&5 4656 4657 # Broken: fails on valid input. 4658continue 4659fi 4660 4661rm -f conftest.err conftest.$ac_ext 4662 4663 # OK, works on sane cases. Now check whether nonexistent headers 4664 # can be detected and how. 4665 cat >conftest.$ac_ext <<_ACEOF 4666/* confdefs.h. */ 4667_ACEOF 4668cat confdefs.h >>conftest.$ac_ext 4669cat >>conftest.$ac_ext <<_ACEOF 4670/* end confdefs.h. */ 4671@%:@include <ac_nonexistent.h> 4672_ACEOF 4673if { (ac_try="$ac_cpp conftest.$ac_ext" 4674case "(($ac_try" in 4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4676 *) ac_try_echo=$ac_try;; 4677esac 4678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4680 ac_status=$? 4681 grep -v '^ *+' conftest.er1 >conftest.err 4682 rm -f conftest.er1 4683 cat conftest.err >&5 4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4685 (exit $ac_status); } >/dev/null && { 4686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4687 test ! -s conftest.err 4688 }; then 4689 # Broken: success on invalid input. 4690continue 4691else 4692 echo "$as_me: failed program was:" >&5 4693sed 's/^/| /' conftest.$ac_ext >&5 4694 4695 # Passes both tests. 4696ac_preproc_ok=: 4697break 4698fi 4699 4700rm -f conftest.err conftest.$ac_ext 4701 4702done 4703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4704rm -f conftest.err conftest.$ac_ext 4705if $ac_preproc_ok; then 4706 : 4707else 4708 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4709See \`config.log' for more details." >&5 4710echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4711See \`config.log' for more details." >&2;} 4712 { (exit 1); exit 1; }; } 4713fi 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 4721 4722{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4723echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4724if test "${ac_cv_header_stdc+set}" = set; then 4725 echo $ECHO_N "(cached) $ECHO_C" >&6 4726else 4727 cat >conftest.$ac_ext <<_ACEOF 4728/* confdefs.h. */ 4729_ACEOF 4730cat confdefs.h >>conftest.$ac_ext 4731cat >>conftest.$ac_ext <<_ACEOF 4732/* end confdefs.h. */ 4733#include <stdlib.h> 4734#include <stdarg.h> 4735#include <string.h> 4736#include <float.h> 4737 4738int 4739main () 4740{ 4741 4742 ; 4743 return 0; 4744} 4745_ACEOF 4746rm -f conftest.$ac_objext 4747if { (ac_try="$ac_compile" 4748case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751esac 4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4753 (eval "$ac_compile") 2>conftest.er1 4754 ac_status=$? 4755 grep -v '^ *+' conftest.er1 >conftest.err 4756 rm -f conftest.er1 4757 cat conftest.err >&5 4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4759 (exit $ac_status); } && { 4760 test -z "$ac_c_werror_flag" || 4761 test ! -s conftest.err 4762 } && test -s conftest.$ac_objext; then 4763 ac_cv_header_stdc=yes 4764else 4765 echo "$as_me: failed program was:" >&5 4766sed 's/^/| /' conftest.$ac_ext >&5 4767 4768 ac_cv_header_stdc=no 4769fi 4770 4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4772 4773if test $ac_cv_header_stdc = yes; then 4774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4775 cat >conftest.$ac_ext <<_ACEOF 4776/* confdefs.h. */ 4777_ACEOF 4778cat confdefs.h >>conftest.$ac_ext 4779cat >>conftest.$ac_ext <<_ACEOF 4780/* end confdefs.h. */ 4781#include <string.h> 4782 4783_ACEOF 4784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4785 $EGREP "memchr" >/dev/null 2>&1; then 4786 : 4787else 4788 ac_cv_header_stdc=no 4789fi 4790rm -f conftest* 4791 4792fi 4793 4794if test $ac_cv_header_stdc = yes; then 4795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4796 cat >conftest.$ac_ext <<_ACEOF 4797/* confdefs.h. */ 4798_ACEOF 4799cat confdefs.h >>conftest.$ac_ext 4800cat >>conftest.$ac_ext <<_ACEOF 4801/* end confdefs.h. */ 4802#include <stdlib.h> 4803 4804_ACEOF 4805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4806 $EGREP "free" >/dev/null 2>&1; then 4807 : 4808else 4809 ac_cv_header_stdc=no 4810fi 4811rm -f conftest* 4812 4813fi 4814 4815if test $ac_cv_header_stdc = yes; then 4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4817 if test "$cross_compiling" = yes; then 4818 : 4819else 4820 cat >conftest.$ac_ext <<_ACEOF 4821/* confdefs.h. */ 4822_ACEOF 4823cat confdefs.h >>conftest.$ac_ext 4824cat >>conftest.$ac_ext <<_ACEOF 4825/* end confdefs.h. */ 4826#include <ctype.h> 4827#include <stdlib.h> 4828#if ((' ' & 0x0FF) == 0x020) 4829# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4830# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4831#else 4832# define ISLOWER(c) \ 4833 (('a' <= (c) && (c) <= 'i') \ 4834 || ('j' <= (c) && (c) <= 'r') \ 4835 || ('s' <= (c) && (c) <= 'z')) 4836# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4837#endif 4838 4839#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4840int 4841main () 4842{ 4843 int i; 4844 for (i = 0; i < 256; i++) 4845 if (XOR (islower (i), ISLOWER (i)) 4846 || toupper (i) != TOUPPER (i)) 4847 return 2; 4848 return 0; 4849} 4850_ACEOF 4851rm -f conftest$ac_exeext 4852if { (ac_try="$ac_link" 4853case "(($ac_try" in 4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4855 *) ac_try_echo=$ac_try;; 4856esac 4857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4858 (eval "$ac_link") 2>&5 4859 ac_status=$? 4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4862 { (case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865esac 4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_try") 2>&5 4868 ac_status=$? 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); }; }; then 4871 : 4872else 4873 echo "$as_me: program exited with status $ac_status" >&5 4874echo "$as_me: failed program was:" >&5 4875sed 's/^/| /' conftest.$ac_ext >&5 4876 4877( exit $ac_status ) 4878ac_cv_header_stdc=no 4879fi 4880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4881fi 4882 4883 4884fi 4885fi 4886{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4887echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4888if test $ac_cv_header_stdc = yes; then 4889 4890cat >>confdefs.h <<\_ACEOF 4891@%:@define STDC_HEADERS 1 4892_ACEOF 4893 4894fi 4895 4896# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4907 inttypes.h stdint.h unistd.h 4908do 4909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4910{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4913 echo $ECHO_N "(cached) $ECHO_C" >&6 4914else 4915 cat >conftest.$ac_ext <<_ACEOF 4916/* confdefs.h. */ 4917_ACEOF 4918cat confdefs.h >>conftest.$ac_ext 4919cat >>conftest.$ac_ext <<_ACEOF 4920/* end confdefs.h. */ 4921$ac_includes_default 4922 4923@%:@include <$ac_header> 4924_ACEOF 4925rm -f conftest.$ac_objext 4926if { (ac_try="$ac_compile" 4927case "(($ac_try" in 4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4929 *) ac_try_echo=$ac_try;; 4930esac 4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4932 (eval "$ac_compile") 2>conftest.er1 4933 ac_status=$? 4934 grep -v '^ *+' conftest.er1 >conftest.err 4935 rm -f conftest.er1 4936 cat conftest.err >&5 4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4938 (exit $ac_status); } && { 4939 test -z "$ac_c_werror_flag" || 4940 test ! -s conftest.err 4941 } && test -s conftest.$ac_objext; then 4942 eval "$as_ac_Header=yes" 4943else 4944 echo "$as_me: failed program was:" >&5 4945sed 's/^/| /' conftest.$ac_ext >&5 4946 4947 eval "$as_ac_Header=no" 4948fi 4949 4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4951fi 4952ac_res=`eval echo '${'$as_ac_Header'}'` 4953 { echo "$as_me:$LINENO: result: $ac_res" >&5 4954echo "${ECHO_T}$ac_res" >&6; } 4955if test `eval echo '${'$as_ac_Header'}'` = yes; then 4956 cat >>confdefs.h <<_ACEOF 4957@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4958_ACEOF 4959 4960fi 4961 4962done 4963 4964 4965 4966for ac_header in dlfcn.h 4967do 4968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4970 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4973 echo $ECHO_N "(cached) $ECHO_C" >&6 4974fi 4975ac_res=`eval echo '${'$as_ac_Header'}'` 4976 { echo "$as_me:$LINENO: result: $ac_res" >&5 4977echo "${ECHO_T}$ac_res" >&6; } 4978else 4979 # Is the header compilable? 4980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4982cat >conftest.$ac_ext <<_ACEOF 4983/* confdefs.h. */ 4984_ACEOF 4985cat confdefs.h >>conftest.$ac_ext 4986cat >>conftest.$ac_ext <<_ACEOF 4987/* end confdefs.h. */ 4988$ac_includes_default 4989@%:@include <$ac_header> 4990_ACEOF 4991rm -f conftest.$ac_objext 4992if { (ac_try="$ac_compile" 4993case "(($ac_try" in 4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4995 *) ac_try_echo=$ac_try;; 4996esac 4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4998 (eval "$ac_compile") 2>conftest.er1 4999 ac_status=$? 5000 grep -v '^ *+' conftest.er1 >conftest.err 5001 rm -f conftest.er1 5002 cat conftest.err >&5 5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5004 (exit $ac_status); } && { 5005 test -z "$ac_c_werror_flag" || 5006 test ! -s conftest.err 5007 } && test -s conftest.$ac_objext; then 5008 ac_header_compiler=yes 5009else 5010 echo "$as_me: failed program was:" >&5 5011sed 's/^/| /' conftest.$ac_ext >&5 5012 5013 ac_header_compiler=no 5014fi 5015 5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5017{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5018echo "${ECHO_T}$ac_header_compiler" >&6; } 5019 5020# Is the header present? 5021{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5023cat >conftest.$ac_ext <<_ACEOF 5024/* confdefs.h. */ 5025_ACEOF 5026cat confdefs.h >>conftest.$ac_ext 5027cat >>conftest.$ac_ext <<_ACEOF 5028/* end confdefs.h. */ 5029@%:@include <$ac_header> 5030_ACEOF 5031if { (ac_try="$ac_cpp conftest.$ac_ext" 5032case "(($ac_try" in 5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5034 *) ac_try_echo=$ac_try;; 5035esac 5036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5038 ac_status=$? 5039 grep -v '^ *+' conftest.er1 >conftest.err 5040 rm -f conftest.er1 5041 cat conftest.err >&5 5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5043 (exit $ac_status); } >/dev/null && { 5044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5045 test ! -s conftest.err 5046 }; then 5047 ac_header_preproc=yes 5048else 5049 echo "$as_me: failed program was:" >&5 5050sed 's/^/| /' conftest.$ac_ext >&5 5051 5052 ac_header_preproc=no 5053fi 5054 5055rm -f conftest.err conftest.$ac_ext 5056{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5057echo "${ECHO_T}$ac_header_preproc" >&6; } 5058 5059# So? What about this header? 5060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5061 yes:no: ) 5062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5066 ac_header_preproc=yes 5067 ;; 5068 no:yes:* ) 5069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5076echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5081 5082 ;; 5083esac 5084{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5087 echo $ECHO_N "(cached) $ECHO_C" >&6 5088else 5089 eval "$as_ac_Header=\$ac_header_preproc" 5090fi 5091ac_res=`eval echo '${'$as_ac_Header'}'` 5092 { echo "$as_me:$LINENO: result: $ac_res" >&5 5093echo "${ECHO_T}$ac_res" >&6; } 5094 5095fi 5096if test `eval echo '${'$as_ac_Header'}'` = yes; then 5097 cat >>confdefs.h <<_ACEOF 5098@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5099_ACEOF 5100 5101fi 5102 5103done 5104 5105ac_ext=cpp 5106ac_cpp='$CXXCPP $CPPFLAGS' 5107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5110if test -z "$CXX"; then 5111 if test -n "$CCC"; then 5112 CXX=$CCC 5113 else 5114 if test -n "$ac_tool_prefix"; then 5115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5116 do 5117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5118set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5121if test "${ac_cv_prog_CXX+set}" = set; then 5122 echo $ECHO_N "(cached) $ECHO_C" >&6 5123else 5124 if test -n "$CXX"; then 5125 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5126else 5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5128for as_dir in $PATH 5129do 5130 IFS=$as_save_IFS 5131 test -z "$as_dir" && as_dir=. 5132 for ac_exec_ext in '' $ac_executable_extensions; do 5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5136 break 2 5137 fi 5138done 5139done 5140IFS=$as_save_IFS 5141 5142fi 5143fi 5144CXX=$ac_cv_prog_CXX 5145if test -n "$CXX"; then 5146 { echo "$as_me:$LINENO: result: $CXX" >&5 5147echo "${ECHO_T}$CXX" >&6; } 5148else 5149 { echo "$as_me:$LINENO: result: no" >&5 5150echo "${ECHO_T}no" >&6; } 5151fi 5152 5153 5154 test -n "$CXX" && break 5155 done 5156fi 5157if test -z "$CXX"; then 5158 ac_ct_CXX=$CXX 5159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5160do 5161 # Extract the first word of "$ac_prog", so it can be a program name with args. 5162set dummy $ac_prog; ac_word=$2 5163{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5165if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5166 echo $ECHO_N "(cached) $ECHO_C" >&6 5167else 5168 if test -n "$ac_ct_CXX"; then 5169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5170else 5171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5172for as_dir in $PATH 5173do 5174 IFS=$as_save_IFS 5175 test -z "$as_dir" && as_dir=. 5176 for ac_exec_ext in '' $ac_executable_extensions; do 5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5178 ac_cv_prog_ac_ct_CXX="$ac_prog" 5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5180 break 2 5181 fi 5182done 5183done 5184IFS=$as_save_IFS 5185 5186fi 5187fi 5188ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5189if test -n "$ac_ct_CXX"; then 5190 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5191echo "${ECHO_T}$ac_ct_CXX" >&6; } 5192else 5193 { echo "$as_me:$LINENO: result: no" >&5 5194echo "${ECHO_T}no" >&6; } 5195fi 5196 5197 5198 test -n "$ac_ct_CXX" && break 5199done 5200 5201 if test "x$ac_ct_CXX" = x; then 5202 CXX="g++" 5203 else 5204 case $cross_compiling:$ac_tool_warned in 5205yes:) 5206{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5207whose name does not start with the host triplet. If you think this 5208configuration is useful to you, please write to autoconf@gnu.org." >&5 5209echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5210whose name does not start with the host triplet. If you think this 5211configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5212ac_tool_warned=yes ;; 5213esac 5214 CXX=$ac_ct_CXX 5215 fi 5216fi 5217 5218 fi 5219fi 5220# Provide some information about the compiler. 5221echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5222ac_compiler=`set X $ac_compile; echo $2` 5223{ (ac_try="$ac_compiler --version >&5" 5224case "(($ac_try" in 5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5226 *) ac_try_echo=$ac_try;; 5227esac 5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5229 (eval "$ac_compiler --version >&5") 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); } 5233{ (ac_try="$ac_compiler -v >&5" 5234case "(($ac_try" in 5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5236 *) ac_try_echo=$ac_try;; 5237esac 5238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5239 (eval "$ac_compiler -v >&5") 2>&5 5240 ac_status=$? 5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); } 5243{ (ac_try="$ac_compiler -V >&5" 5244case "(($ac_try" in 5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5246 *) ac_try_echo=$ac_try;; 5247esac 5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5249 (eval "$ac_compiler -V >&5") 2>&5 5250 ac_status=$? 5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5252 (exit $ac_status); } 5253 5254{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5255echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5256if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5257 echo $ECHO_N "(cached) $ECHO_C" >&6 5258else 5259 cat >conftest.$ac_ext <<_ACEOF 5260/* confdefs.h. */ 5261_ACEOF 5262cat confdefs.h >>conftest.$ac_ext 5263cat >>conftest.$ac_ext <<_ACEOF 5264/* end confdefs.h. */ 5265 5266int 5267main () 5268{ 5269#ifndef __GNUC__ 5270 choke me 5271#endif 5272 5273 ; 5274 return 0; 5275} 5276_ACEOF 5277rm -f conftest.$ac_objext 5278if { (ac_try="$ac_compile" 5279case "(($ac_try" in 5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5281 *) ac_try_echo=$ac_try;; 5282esac 5283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5284 (eval "$ac_compile") 2>conftest.er1 5285 ac_status=$? 5286 grep -v '^ *+' conftest.er1 >conftest.err 5287 rm -f conftest.er1 5288 cat conftest.err >&5 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); } && { 5291 test -z "$ac_cxx_werror_flag" || 5292 test ! -s conftest.err 5293 } && test -s conftest.$ac_objext; then 5294 ac_compiler_gnu=yes 5295else 5296 echo "$as_me: failed program was:" >&5 5297sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 ac_compiler_gnu=no 5300fi 5301 5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5303ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5304 5305fi 5306{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5307echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5308GXX=`test $ac_compiler_gnu = yes && echo yes` 5309ac_test_CXXFLAGS=${CXXFLAGS+set} 5310ac_save_CXXFLAGS=$CXXFLAGS 5311{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5312echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5313if test "${ac_cv_prog_cxx_g+set}" = set; then 5314 echo $ECHO_N "(cached) $ECHO_C" >&6 5315else 5316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5317 ac_cxx_werror_flag=yes 5318 ac_cv_prog_cxx_g=no 5319 CXXFLAGS="-g" 5320 cat >conftest.$ac_ext <<_ACEOF 5321/* confdefs.h. */ 5322_ACEOF 5323cat confdefs.h >>conftest.$ac_ext 5324cat >>conftest.$ac_ext <<_ACEOF 5325/* end confdefs.h. */ 5326 5327int 5328main () 5329{ 5330 5331 ; 5332 return 0; 5333} 5334_ACEOF 5335rm -f conftest.$ac_objext 5336if { (ac_try="$ac_compile" 5337case "(($ac_try" in 5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5339 *) ac_try_echo=$ac_try;; 5340esac 5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5342 (eval "$ac_compile") 2>conftest.er1 5343 ac_status=$? 5344 grep -v '^ *+' conftest.er1 >conftest.err 5345 rm -f conftest.er1 5346 cat conftest.err >&5 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5348 (exit $ac_status); } && { 5349 test -z "$ac_cxx_werror_flag" || 5350 test ! -s conftest.err 5351 } && test -s conftest.$ac_objext; then 5352 ac_cv_prog_cxx_g=yes 5353else 5354 echo "$as_me: failed program was:" >&5 5355sed 's/^/| /' conftest.$ac_ext >&5 5356 5357 CXXFLAGS="" 5358 cat >conftest.$ac_ext <<_ACEOF 5359/* confdefs.h. */ 5360_ACEOF 5361cat confdefs.h >>conftest.$ac_ext 5362cat >>conftest.$ac_ext <<_ACEOF 5363/* end confdefs.h. */ 5364 5365int 5366main () 5367{ 5368 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373rm -f conftest.$ac_objext 5374if { (ac_try="$ac_compile" 5375case "(($ac_try" in 5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5377 *) ac_try_echo=$ac_try;; 5378esac 5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5380 (eval "$ac_compile") 2>conftest.er1 5381 ac_status=$? 5382 grep -v '^ *+' conftest.er1 >conftest.err 5383 rm -f conftest.er1 5384 cat conftest.err >&5 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } && { 5387 test -z "$ac_cxx_werror_flag" || 5388 test ! -s conftest.err 5389 } && test -s conftest.$ac_objext; then 5390 : 5391else 5392 echo "$as_me: failed program was:" >&5 5393sed 's/^/| /' conftest.$ac_ext >&5 5394 5395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5396 CXXFLAGS="-g" 5397 cat >conftest.$ac_ext <<_ACEOF 5398/* confdefs.h. */ 5399_ACEOF 5400cat confdefs.h >>conftest.$ac_ext 5401cat >>conftest.$ac_ext <<_ACEOF 5402/* end confdefs.h. */ 5403 5404int 5405main () 5406{ 5407 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412rm -f conftest.$ac_objext 5413if { (ac_try="$ac_compile" 5414case "(($ac_try" in 5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5416 *) ac_try_echo=$ac_try;; 5417esac 5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5419 (eval "$ac_compile") 2>conftest.er1 5420 ac_status=$? 5421 grep -v '^ *+' conftest.er1 >conftest.err 5422 rm -f conftest.er1 5423 cat conftest.err >&5 5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5425 (exit $ac_status); } && { 5426 test -z "$ac_cxx_werror_flag" || 5427 test ! -s conftest.err 5428 } && test -s conftest.$ac_objext; then 5429 ac_cv_prog_cxx_g=yes 5430else 5431 echo "$as_me: failed program was:" >&5 5432sed 's/^/| /' conftest.$ac_ext >&5 5433 5434 5435fi 5436 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438fi 5439 5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5441fi 5442 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5445fi 5446{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5447echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5448if test "$ac_test_CXXFLAGS" = set; then 5449 CXXFLAGS=$ac_save_CXXFLAGS 5450elif test $ac_cv_prog_cxx_g = yes; then 5451 if test "$GXX" = yes; then 5452 CXXFLAGS="-g -O2" 5453 else 5454 CXXFLAGS="-g" 5455 fi 5456else 5457 if test "$GXX" = yes; then 5458 CXXFLAGS="-O2" 5459 else 5460 CXXFLAGS= 5461 fi 5462fi 5463ac_ext=cpp 5464ac_cpp='$CXXCPP $CPPFLAGS' 5465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5468 5469depcc="$CXX" am_compiler_list= 5470 5471{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5472echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5473if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5474 echo $ECHO_N "(cached) $ECHO_C" >&6 5475else 5476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5477 # We make a subdir and do the tests there. Otherwise we can end up 5478 # making bogus files that we don't know about and never remove. For 5479 # instance it was reported that on HP-UX the gcc test will end up 5480 # making a dummy file named `D' -- because `-MD' means `put the output 5481 # in D'. 5482 mkdir conftest.dir 5483 # Copy depcomp to subdir because otherwise we won't find it if we're 5484 # using a relative directory. 5485 cp "$am_depcomp" conftest.dir 5486 cd conftest.dir 5487 # We will build objects and dependencies in a subdirectory because 5488 # it helps to detect inapplicable dependency modes. For instance 5489 # both Tru64's cc and ICC support -MD to output dependencies as a 5490 # side effect of compilation, but ICC will put the dependencies in 5491 # the current directory while Tru64 will put them in the object 5492 # directory. 5493 mkdir sub 5494 5495 am_cv_CXX_dependencies_compiler_type=none 5496 if test "$am_compiler_list" = ""; then 5497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5498 fi 5499 for depmode in $am_compiler_list; do 5500 # Setup a source with many dependencies, because some compilers 5501 # like to wrap large dependency lists on column 80 (with \), and 5502 # we should not choose a depcomp mode which is confused by this. 5503 # 5504 # We need to recreate these files for each test, as the compiler may 5505 # overwrite some of them when testing with obscure command lines. 5506 # This happens at least with the AIX C compiler. 5507 : > sub/conftest.c 5508 for i in 1 2 3 4 5 6; do 5509 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5511 # Solaris 8's {/usr,}/bin/sh. 5512 touch sub/conftst$i.h 5513 done 5514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5515 5516 case $depmode in 5517 nosideeffect) 5518 # after this tag, mechanisms are not by side-effect, so they'll 5519 # only be used when explicitly requested 5520 if test "x$enable_dependency_tracking" = xyes; then 5521 continue 5522 else 5523 break 5524 fi 5525 ;; 5526 none) break ;; 5527 esac 5528 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5529 # mode. It turns out that the SunPro C++ compiler does not properly 5530 # handle `-M -o', and we need to detect this. 5531 if depmode=$depmode \ 5532 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5534 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5535 >/dev/null 2>conftest.err && 5536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5539 # icc doesn't choke on unknown options, it will just issue warnings 5540 # or remarks (even with -Werror). So we grep stderr for any message 5541 # that says an option was ignored or not supported. 5542 # When given -MP, icc 7.0 and 7.1 complain thusly: 5543 # icc: Command line warning: ignoring option '-M'; no argument required 5544 # The diagnosis changed in icc 8.0: 5545 # icc: Command line remark: option '-MP' not supported 5546 if (grep 'ignoring option' conftest.err || 5547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5548 am_cv_CXX_dependencies_compiler_type=$depmode 5549 break 5550 fi 5551 fi 5552 done 5553 5554 cd .. 5555 rm -rf conftest.dir 5556else 5557 am_cv_CXX_dependencies_compiler_type=none 5558fi 5559 5560fi 5561{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5562echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5563CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5564 5565 5566 5567if 5568 test "x$enable_dependency_tracking" != xno \ 5569 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5570 am__fastdepCXX_TRUE= 5571 am__fastdepCXX_FALSE='#' 5572else 5573 am__fastdepCXX_TRUE='#' 5574 am__fastdepCXX_FALSE= 5575fi 5576 5577 5578 5579 5580if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5581 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5582 (test "X$CXX" != "Xg++"))) ; then 5583 ac_ext=cpp 5584ac_cpp='$CXXCPP $CPPFLAGS' 5585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5588{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5589echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5590if test -z "$CXXCPP"; then 5591 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5592 echo $ECHO_N "(cached) $ECHO_C" >&6 5593else 5594 # Double quotes because CXXCPP needs to be expanded 5595 for CXXCPP in "$CXX -E" "/lib/cpp" 5596 do 5597 ac_preproc_ok=false 5598for ac_cxx_preproc_warn_flag in '' yes 5599do 5600 # Use a header file that comes with gcc, so configuring glibc 5601 # with a fresh cross-compiler works. 5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5603 # <limits.h> exists even on freestanding compilers. 5604 # On the NeXT, cc -E runs the code through the compiler's parser, 5605 # not just through cpp. "Syntax error" is here to catch this case. 5606 cat >conftest.$ac_ext <<_ACEOF 5607/* confdefs.h. */ 5608_ACEOF 5609cat confdefs.h >>conftest.$ac_ext 5610cat >>conftest.$ac_ext <<_ACEOF 5611/* end confdefs.h. */ 5612@%:@ifdef __STDC__ 5613@%:@ include <limits.h> 5614@%:@else 5615@%:@ include <assert.h> 5616@%:@endif 5617 Syntax error 5618_ACEOF 5619if { (ac_try="$ac_cpp conftest.$ac_ext" 5620case "(($ac_try" in 5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5622 *) ac_try_echo=$ac_try;; 5623esac 5624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5626 ac_status=$? 5627 grep -v '^ *+' conftest.er1 >conftest.err 5628 rm -f conftest.er1 5629 cat conftest.err >&5 5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5631 (exit $ac_status); } >/dev/null && { 5632 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5633 test ! -s conftest.err 5634 }; then 5635 : 5636else 5637 echo "$as_me: failed program was:" >&5 5638sed 's/^/| /' conftest.$ac_ext >&5 5639 5640 # Broken: fails on valid input. 5641continue 5642fi 5643 5644rm -f conftest.err conftest.$ac_ext 5645 5646 # OK, works on sane cases. Now check whether nonexistent headers 5647 # can be detected and how. 5648 cat >conftest.$ac_ext <<_ACEOF 5649/* confdefs.h. */ 5650_ACEOF 5651cat confdefs.h >>conftest.$ac_ext 5652cat >>conftest.$ac_ext <<_ACEOF 5653/* end confdefs.h. */ 5654@%:@include <ac_nonexistent.h> 5655_ACEOF 5656if { (ac_try="$ac_cpp conftest.$ac_ext" 5657case "(($ac_try" in 5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5659 *) ac_try_echo=$ac_try;; 5660esac 5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5663 ac_status=$? 5664 grep -v '^ *+' conftest.er1 >conftest.err 5665 rm -f conftest.er1 5666 cat conftest.err >&5 5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 (exit $ac_status); } >/dev/null && { 5669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5670 test ! -s conftest.err 5671 }; then 5672 # Broken: success on invalid input. 5673continue 5674else 5675 echo "$as_me: failed program was:" >&5 5676sed 's/^/| /' conftest.$ac_ext >&5 5677 5678 # Passes both tests. 5679ac_preproc_ok=: 5680break 5681fi 5682 5683rm -f conftest.err conftest.$ac_ext 5684 5685done 5686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5687rm -f conftest.err conftest.$ac_ext 5688if $ac_preproc_ok; then 5689 break 5690fi 5691 5692 done 5693 ac_cv_prog_CXXCPP=$CXXCPP 5694 5695fi 5696 CXXCPP=$ac_cv_prog_CXXCPP 5697else 5698 ac_cv_prog_CXXCPP=$CXXCPP 5699fi 5700{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5701echo "${ECHO_T}$CXXCPP" >&6; } 5702ac_preproc_ok=false 5703for ac_cxx_preproc_warn_flag in '' yes 5704do 5705 # Use a header file that comes with gcc, so configuring glibc 5706 # with a fresh cross-compiler works. 5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5708 # <limits.h> exists even on freestanding compilers. 5709 # On the NeXT, cc -E runs the code through the compiler's parser, 5710 # not just through cpp. "Syntax error" is here to catch this case. 5711 cat >conftest.$ac_ext <<_ACEOF 5712/* confdefs.h. */ 5713_ACEOF 5714cat confdefs.h >>conftest.$ac_ext 5715cat >>conftest.$ac_ext <<_ACEOF 5716/* end confdefs.h. */ 5717@%:@ifdef __STDC__ 5718@%:@ include <limits.h> 5719@%:@else 5720@%:@ include <assert.h> 5721@%:@endif 5722 Syntax error 5723_ACEOF 5724if { (ac_try="$ac_cpp conftest.$ac_ext" 5725case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5731 ac_status=$? 5732 grep -v '^ *+' conftest.er1 >conftest.err 5733 rm -f conftest.er1 5734 cat conftest.err >&5 5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5736 (exit $ac_status); } >/dev/null && { 5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5738 test ! -s conftest.err 5739 }; then 5740 : 5741else 5742 echo "$as_me: failed program was:" >&5 5743sed 's/^/| /' conftest.$ac_ext >&5 5744 5745 # Broken: fails on valid input. 5746continue 5747fi 5748 5749rm -f conftest.err conftest.$ac_ext 5750 5751 # OK, works on sane cases. Now check whether nonexistent headers 5752 # can be detected and how. 5753 cat >conftest.$ac_ext <<_ACEOF 5754/* confdefs.h. */ 5755_ACEOF 5756cat confdefs.h >>conftest.$ac_ext 5757cat >>conftest.$ac_ext <<_ACEOF 5758/* end confdefs.h. */ 5759@%:@include <ac_nonexistent.h> 5760_ACEOF 5761if { (ac_try="$ac_cpp conftest.$ac_ext" 5762case "(($ac_try" in 5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5764 *) ac_try_echo=$ac_try;; 5765esac 5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5768 ac_status=$? 5769 grep -v '^ *+' conftest.er1 >conftest.err 5770 rm -f conftest.er1 5771 cat conftest.err >&5 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); } >/dev/null && { 5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5775 test ! -s conftest.err 5776 }; then 5777 # Broken: success on invalid input. 5778continue 5779else 5780 echo "$as_me: failed program was:" >&5 5781sed 's/^/| /' conftest.$ac_ext >&5 5782 5783 # Passes both tests. 5784ac_preproc_ok=: 5785break 5786fi 5787 5788rm -f conftest.err conftest.$ac_ext 5789 5790done 5791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5792rm -f conftest.err conftest.$ac_ext 5793if $ac_preproc_ok; then 5794 : 5795else 5796 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5797See \`config.log' for more details." >&5 5798echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5799See \`config.log' for more details." >&2;} 5800 { (exit 1); exit 1; }; } 5801fi 5802 5803ac_ext=cpp 5804ac_cpp='$CXXCPP $CPPFLAGS' 5805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5808 5809fi 5810 5811 5812ac_ext=f 5813ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5814ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5815ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5816if test -n "$ac_tool_prefix"; then 5817 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 5818 do 5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5821{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5823if test "${ac_cv_prog_F77+set}" = set; then 5824 echo $ECHO_N "(cached) $ECHO_C" >&6 5825else 5826 if test -n "$F77"; then 5827 ac_cv_prog_F77="$F77" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5836 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846F77=$ac_cv_prog_F77 5847if test -n "$F77"; then 5848 { echo "$as_me:$LINENO: result: $F77" >&5 5849echo "${ECHO_T}$F77" >&6; } 5850else 5851 { echo "$as_me:$LINENO: result: no" >&5 5852echo "${ECHO_T}no" >&6; } 5853fi 5854 5855 5856 test -n "$F77" && break 5857 done 5858fi 5859if test -z "$F77"; then 5860 ac_ct_F77=$F77 5861 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 5862do 5863 # Extract the first word of "$ac_prog", so it can be a program name with args. 5864set dummy $ac_prog; ac_word=$2 5865{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5867if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5868 echo $ECHO_N "(cached) $ECHO_C" >&6 5869else 5870 if test -n "$ac_ct_F77"; then 5871 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5872else 5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874for as_dir in $PATH 5875do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5880 ac_cv_prog_ac_ct_F77="$ac_prog" 5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884done 5885done 5886IFS=$as_save_IFS 5887 5888fi 5889fi 5890ac_ct_F77=$ac_cv_prog_ac_ct_F77 5891if test -n "$ac_ct_F77"; then 5892 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5893echo "${ECHO_T}$ac_ct_F77" >&6; } 5894else 5895 { echo "$as_me:$LINENO: result: no" >&5 5896echo "${ECHO_T}no" >&6; } 5897fi 5898 5899 5900 test -n "$ac_ct_F77" && break 5901done 5902 5903 if test "x$ac_ct_F77" = x; then 5904 F77="" 5905 else 5906 case $cross_compiling:$ac_tool_warned in 5907yes:) 5908{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5909whose name does not start with the host triplet. If you think this 5910configuration is useful to you, please write to autoconf@gnu.org." >&5 5911echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5912whose name does not start with the host triplet. If you think this 5913configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5914ac_tool_warned=yes ;; 5915esac 5916 F77=$ac_ct_F77 5917 fi 5918fi 5919 5920 5921# Provide some information about the compiler. 5922echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5923ac_compiler=`set X $ac_compile; echo $2` 5924{ (ac_try="$ac_compiler --version >&5" 5925case "(($ac_try" in 5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5927 *) ac_try_echo=$ac_try;; 5928esac 5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5930 (eval "$ac_compiler --version >&5") 2>&5 5931 ac_status=$? 5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5933 (exit $ac_status); } 5934{ (ac_try="$ac_compiler -v >&5" 5935case "(($ac_try" in 5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5937 *) ac_try_echo=$ac_try;; 5938esac 5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5940 (eval "$ac_compiler -v >&5") 2>&5 5941 ac_status=$? 5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5943 (exit $ac_status); } 5944{ (ac_try="$ac_compiler -V >&5" 5945case "(($ac_try" in 5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5947 *) ac_try_echo=$ac_try;; 5948esac 5949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5950 (eval "$ac_compiler -V >&5") 2>&5 5951 ac_status=$? 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); } 5954rm -f a.out 5955 5956# If we don't use `.F' as extension, the preprocessor is not run on the 5957# input file. (Note that this only needs to work for GNU compilers.) 5958ac_save_ext=$ac_ext 5959ac_ext=F 5960{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5961echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5962if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5963 echo $ECHO_N "(cached) $ECHO_C" >&6 5964else 5965 cat >conftest.$ac_ext <<_ACEOF 5966 program main 5967#ifndef __GNUC__ 5968 choke me 5969#endif 5970 5971 end 5972_ACEOF 5973rm -f conftest.$ac_objext 5974if { (ac_try="$ac_compile" 5975case "(($ac_try" in 5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5977 *) ac_try_echo=$ac_try;; 5978esac 5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5980 (eval "$ac_compile") 2>conftest.er1 5981 ac_status=$? 5982 grep -v '^ *+' conftest.er1 >conftest.err 5983 rm -f conftest.er1 5984 cat conftest.err >&5 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } && { 5987 test -z "$ac_f77_werror_flag" || 5988 test ! -s conftest.err 5989 } && test -s conftest.$ac_objext; then 5990 ac_compiler_gnu=yes 5991else 5992 echo "$as_me: failed program was:" >&5 5993sed 's/^/| /' conftest.$ac_ext >&5 5994 5995 ac_compiler_gnu=no 5996fi 5997 5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5999ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6000 6001fi 6002{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6003echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6004ac_ext=$ac_save_ext 6005ac_test_FFLAGS=${FFLAGS+set} 6006ac_save_FFLAGS=$FFLAGS 6007FFLAGS= 6008{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6009echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6010if test "${ac_cv_prog_f77_g+set}" = set; then 6011 echo $ECHO_N "(cached) $ECHO_C" >&6 6012else 6013 FFLAGS=-g 6014cat >conftest.$ac_ext <<_ACEOF 6015 program main 6016 6017 end 6018_ACEOF 6019rm -f conftest.$ac_objext 6020if { (ac_try="$ac_compile" 6021case "(($ac_try" in 6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6023 *) ac_try_echo=$ac_try;; 6024esac 6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6026 (eval "$ac_compile") 2>conftest.er1 6027 ac_status=$? 6028 grep -v '^ *+' conftest.er1 >conftest.err 6029 rm -f conftest.er1 6030 cat conftest.err >&5 6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6032 (exit $ac_status); } && { 6033 test -z "$ac_f77_werror_flag" || 6034 test ! -s conftest.err 6035 } && test -s conftest.$ac_objext; then 6036 ac_cv_prog_f77_g=yes 6037else 6038 echo "$as_me: failed program was:" >&5 6039sed 's/^/| /' conftest.$ac_ext >&5 6040 6041 ac_cv_prog_f77_g=no 6042fi 6043 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045 6046fi 6047{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6048echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6049if test "$ac_test_FFLAGS" = set; then 6050 FFLAGS=$ac_save_FFLAGS 6051elif test $ac_cv_prog_f77_g = yes; then 6052 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6053 FFLAGS="-g -O2" 6054 else 6055 FFLAGS="-g" 6056 fi 6057else 6058 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6059 FFLAGS="-O2" 6060 else 6061 FFLAGS= 6062 fi 6063fi 6064 6065G77=`test $ac_compiler_gnu = yes && echo yes` 6066ac_ext=c 6067ac_cpp='$CPP $CPPFLAGS' 6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6070ac_compiler_gnu=$ac_cv_c_compiler_gnu 6071 6072 6073 6074# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6075 6076# find the maximum length of command line arguments 6077{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6078echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6079if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6080 echo $ECHO_N "(cached) $ECHO_C" >&6 6081else 6082 i=0 6083 teststring="ABCD" 6084 6085 case $build_os in 6086 msdosdjgpp*) 6087 # On DJGPP, this test can blow up pretty badly due to problems in libc 6088 # (any single argument exceeding 2000 bytes causes a buffer overrun 6089 # during glob expansion). Even if it were fixed, the result of this 6090 # check would be larger than it should be. 6091 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6092 ;; 6093 6094 gnu*) 6095 # Under GNU Hurd, this test is not required because there is 6096 # no limit to the length of command line arguments. 6097 # Libtool will interpret -1 as no limit whatsoever 6098 lt_cv_sys_max_cmd_len=-1; 6099 ;; 6100 6101 cygwin* | mingw*) 6102 # On Win9x/ME, this test blows up -- it succeeds, but takes 6103 # about 5 minutes as the teststring grows exponentially. 6104 # Worse, since 9x/ME are not pre-emptively multitasking, 6105 # you end up with a "frozen" computer, even though with patience 6106 # the test eventually succeeds (with a max line length of 256k). 6107 # Instead, let's just punt: use the minimum linelength reported by 6108 # all of the supported platforms: 8192 (on NT/2K/XP). 6109 lt_cv_sys_max_cmd_len=8192; 6110 ;; 6111 6112 amigaos*) 6113 # On AmigaOS with pdksh, this test takes hours, literally. 6114 # So we just punt and use a minimum line length of 8192. 6115 lt_cv_sys_max_cmd_len=8192; 6116 ;; 6117 6118 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6119 # This has been around since 386BSD, at least. Likely further. 6120 if test -x /sbin/sysctl; then 6121 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6122 elif test -x /usr/sbin/sysctl; then 6123 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6124 else 6125 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6126 fi 6127 # And add a safety zone 6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6130 ;; 6131 6132 interix*) 6133 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6134 lt_cv_sys_max_cmd_len=196608 6135 ;; 6136 6137 osf*) 6138 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6139 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6140 # nice to cause kernel panics so lets avoid the loop below. 6141 # First set a reasonable default. 6142 lt_cv_sys_max_cmd_len=16384 6143 # 6144 if test -x /sbin/sysconfig; then 6145 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6146 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6147 esac 6148 fi 6149 ;; 6150 sco3.2v5*) 6151 lt_cv_sys_max_cmd_len=102400 6152 ;; 6153 sysv5* | sco5v6* | sysv4.2uw2*) 6154 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6155 if test -n "$kargmax"; then 6156 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6157 else 6158 lt_cv_sys_max_cmd_len=32768 6159 fi 6160 ;; 6161 *) 6162 # If test is not a shell built-in, we'll probably end up computing a 6163 # maximum length that is only half of the actual maximum length, but 6164 # we can't tell. 6165 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6166 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6167 = "XX$teststring") >/dev/null 2>&1 && 6168 new_result=`expr "X$teststring" : ".*" 2>&1` && 6169 lt_cv_sys_max_cmd_len=$new_result && 6170 test $i != 17 # 1/2 MB should be enough 6171 do 6172 i=`expr $i + 1` 6173 teststring=$teststring$teststring 6174 done 6175 teststring= 6176 # Add a significant safety factor because C++ compilers can tack on massive 6177 # amounts of additional arguments before passing them to the linker. 6178 # It appears as though 1/2 is a usable value. 6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6180 ;; 6181 esac 6182 6183fi 6184 6185if test -n $lt_cv_sys_max_cmd_len ; then 6186 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6187echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6188else 6189 { echo "$as_me:$LINENO: result: none" >&5 6190echo "${ECHO_T}none" >&6; } 6191fi 6192 6193 6194 6195 6196# Check for command to grab the raw symbol name followed by C symbol from nm. 6197{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6198echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6199if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6200 echo $ECHO_N "(cached) $ECHO_C" >&6 6201else 6202 6203# These are sane defaults that work on at least a few old systems. 6204# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6205 6206# Character class describing NM global symbol codes. 6207symcode='[BCDEGRST]' 6208 6209# Regexp to match symbols that can be accessed directly from C. 6210sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6211 6212# Transform an extracted symbol line into a proper C declaration 6213lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6214 6215# Transform an extracted symbol line into symbol name and symbol address 6216lt_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'" 6217 6218# Define system-specific variables. 6219case $host_os in 6220aix*) 6221 symcode='[BCDT]' 6222 ;; 6223cygwin* | mingw* | pw32*) 6224 symcode='[ABCDGISTW]' 6225 ;; 6226hpux*) # Its linker distinguishes data from code symbols 6227 if test "$host_cpu" = ia64; then 6228 symcode='[ABCDEGRST]' 6229 fi 6230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6231 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'" 6232 ;; 6233linux* | k*bsd*-gnu) 6234 if test "$host_cpu" = ia64; then 6235 symcode='[ABCDGIRSTW]' 6236 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6237 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'" 6238 fi 6239 ;; 6240irix* | nonstopux*) 6241 symcode='[BCDEGRST]' 6242 ;; 6243osf*) 6244 symcode='[BCDEGQRST]' 6245 ;; 6246solaris*) 6247 symcode='[BDRT]' 6248 ;; 6249sco3.2v5*) 6250 symcode='[DT]' 6251 ;; 6252sysv4.2uw2*) 6253 symcode='[DT]' 6254 ;; 6255sysv5* | sco5v6* | unixware* | OpenUNIX*) 6256 symcode='[ABDT]' 6257 ;; 6258sysv4) 6259 symcode='[DFNSTU]' 6260 ;; 6261esac 6262 6263# Handle CRLF in mingw tool chain 6264opt_cr= 6265case $build_os in 6266mingw*) 6267 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6268 ;; 6269esac 6270 6271# If we're using GNU nm, then use its standard symbol codes. 6272case `$NM -V 2>&1` in 6273*GNU* | *'with BFD'*) 6274 symcode='[ABCDGIRSTW]' ;; 6275esac 6276 6277# Try without a prefix undercore, then with it. 6278for ac_symprfx in "" "_"; do 6279 6280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6281 symxfrm="\\1 $ac_symprfx\\2 \\2" 6282 6283 # Write the raw and C identifiers. 6284 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6285 6286 # Check to see that the pipe works correctly. 6287 pipe_works=no 6288 6289 rm -f conftest* 6290 cat > conftest.$ac_ext <<EOF 6291#ifdef __cplusplus 6292extern "C" { 6293#endif 6294char nm_test_var; 6295void nm_test_func(){} 6296#ifdef __cplusplus 6297} 6298#endif 6299int main(){nm_test_var='a';nm_test_func();return(0);} 6300EOF 6301 6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6303 (eval $ac_compile) 2>&5 6304 ac_status=$? 6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); }; then 6307 # Now try to grab the symbols. 6308 nlist=conftest.nm 6309 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6310 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6311 ac_status=$? 6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6313 (exit $ac_status); } && test -s "$nlist"; then 6314 # Try sorting and uniquifying the output. 6315 if sort "$nlist" | uniq > "$nlist"T; then 6316 mv -f "$nlist"T "$nlist" 6317 else 6318 rm -f "$nlist"T 6319 fi 6320 6321 # Make sure that we snagged all the symbols we need. 6322 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6323 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6324 cat <<EOF > conftest.$ac_ext 6325#ifdef __cplusplus 6326extern "C" { 6327#endif 6328 6329EOF 6330 # Now generate the symbol file. 6331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6332 6333 cat <<EOF >> conftest.$ac_ext 6334#if defined (__STDC__) && __STDC__ 6335# define lt_ptr_t void * 6336#else 6337# define lt_ptr_t char * 6338# define const 6339#endif 6340 6341/* The mapping between symbol names and symbols. */ 6342const struct { 6343 const char *name; 6344 lt_ptr_t address; 6345} 6346lt_preloaded_symbols[] = 6347{ 6348EOF 6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6350 cat <<\EOF >> conftest.$ac_ext 6351 {0, (lt_ptr_t) 0} 6352}; 6353 6354#ifdef __cplusplus 6355} 6356#endif 6357EOF 6358 # Now try linking the two files. 6359 mv conftest.$ac_objext conftstm.$ac_objext 6360 lt_save_LIBS="$LIBS" 6361 lt_save_CFLAGS="$CFLAGS" 6362 LIBS="conftstm.$ac_objext" 6363 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6365 (eval $ac_link) 2>&5 6366 ac_status=$? 6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6368 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6369 pipe_works=yes 6370 fi 6371 LIBS="$lt_save_LIBS" 6372 CFLAGS="$lt_save_CFLAGS" 6373 else 6374 echo "cannot find nm_test_func in $nlist" >&5 6375 fi 6376 else 6377 echo "cannot find nm_test_var in $nlist" >&5 6378 fi 6379 else 6380 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6381 fi 6382 else 6383 echo "$progname: failed program was:" >&5 6384 cat conftest.$ac_ext >&5 6385 fi 6386 rm -f conftest* conftst* 6387 6388 # Do not use the global_symbol_pipe unless it works. 6389 if test "$pipe_works" = yes; then 6390 break 6391 else 6392 lt_cv_sys_global_symbol_pipe= 6393 fi 6394done 6395 6396fi 6397 6398if test -z "$lt_cv_sys_global_symbol_pipe"; then 6399 lt_cv_sys_global_symbol_to_cdecl= 6400fi 6401if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6402 { echo "$as_me:$LINENO: result: failed" >&5 6403echo "${ECHO_T}failed" >&6; } 6404else 6405 { echo "$as_me:$LINENO: result: ok" >&5 6406echo "${ECHO_T}ok" >&6; } 6407fi 6408 6409{ echo "$as_me:$LINENO: checking for objdir" >&5 6410echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6411if test "${lt_cv_objdir+set}" = set; then 6412 echo $ECHO_N "(cached) $ECHO_C" >&6 6413else 6414 rm -f .libs 2>/dev/null 6415mkdir .libs 2>/dev/null 6416if test -d .libs; then 6417 lt_cv_objdir=.libs 6418else 6419 # MS-DOS does not allow filenames that begin with a dot. 6420 lt_cv_objdir=_libs 6421fi 6422rmdir .libs 2>/dev/null 6423fi 6424{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6425echo "${ECHO_T}$lt_cv_objdir" >&6; } 6426objdir=$lt_cv_objdir 6427 6428 6429 6430 6431 6432case $host_os in 6433aix3*) 6434 # AIX sometimes has problems with the GCC collect2 program. For some 6435 # reason, if we set the COLLECT_NAMES environment variable, the problems 6436 # vanish in a puff of smoke. 6437 if test "X${COLLECT_NAMES+set}" != Xset; then 6438 COLLECT_NAMES= 6439 export COLLECT_NAMES 6440 fi 6441 ;; 6442esac 6443 6444# Sed substitution that helps us do robust quoting. It backslashifies 6445# metacharacters that are still active within double-quoted strings. 6446Xsed='sed -e 1s/^X//' 6447sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6448 6449# Same as above, but do not quote variable references. 6450double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6451 6452# Sed substitution to delay expansion of an escaped shell variable in a 6453# double_quote_subst'ed string. 6454delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6455 6456# Sed substitution to avoid accidental globbing in evaled expressions 6457no_glob_subst='s/\*/\\\*/g' 6458 6459# Constants: 6460rm="rm -f" 6461 6462# Global variables: 6463default_ofile=libtool 6464can_build_shared=yes 6465 6466# All known linkers require a `.a' archive for static linking (except MSVC, 6467# which needs '.lib'). 6468libext=a 6469ltmain="$ac_aux_dir/ltmain.sh" 6470ofile="$default_ofile" 6471with_gnu_ld="$lt_cv_prog_gnu_ld" 6472 6473if test -n "$ac_tool_prefix"; then 6474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6475set dummy ${ac_tool_prefix}ar; ac_word=$2 6476{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6478if test "${ac_cv_prog_AR+set}" = set; then 6479 echo $ECHO_N "(cached) $ECHO_C" >&6 6480else 6481 if test -n "$AR"; then 6482 ac_cv_prog_AR="$AR" # Let the user override the test. 6483else 6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485for as_dir in $PATH 6486do 6487 IFS=$as_save_IFS 6488 test -z "$as_dir" && as_dir=. 6489 for ac_exec_ext in '' $ac_executable_extensions; do 6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6491 ac_cv_prog_AR="${ac_tool_prefix}ar" 6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6493 break 2 6494 fi 6495done 6496done 6497IFS=$as_save_IFS 6498 6499fi 6500fi 6501AR=$ac_cv_prog_AR 6502if test -n "$AR"; then 6503 { echo "$as_me:$LINENO: result: $AR" >&5 6504echo "${ECHO_T}$AR" >&6; } 6505else 6506 { echo "$as_me:$LINENO: result: no" >&5 6507echo "${ECHO_T}no" >&6; } 6508fi 6509 6510 6511fi 6512if test -z "$ac_cv_prog_AR"; then 6513 ac_ct_AR=$AR 6514 # Extract the first word of "ar", so it can be a program name with args. 6515set dummy ar; ac_word=$2 6516{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6518if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6519 echo $ECHO_N "(cached) $ECHO_C" >&6 6520else 6521 if test -n "$ac_ct_AR"; then 6522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6523else 6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525for as_dir in $PATH 6526do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_exec_ext in '' $ac_executable_extensions; do 6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6531 ac_cv_prog_ac_ct_AR="ar" 6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6533 break 2 6534 fi 6535done 6536done 6537IFS=$as_save_IFS 6538 6539fi 6540fi 6541ac_ct_AR=$ac_cv_prog_ac_ct_AR 6542if test -n "$ac_ct_AR"; then 6543 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6544echo "${ECHO_T}$ac_ct_AR" >&6; } 6545else 6546 { echo "$as_me:$LINENO: result: no" >&5 6547echo "${ECHO_T}no" >&6; } 6548fi 6549 6550 if test "x$ac_ct_AR" = x; then 6551 AR="false" 6552 else 6553 case $cross_compiling:$ac_tool_warned in 6554yes:) 6555{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6556whose name does not start with the host triplet. If you think this 6557configuration is useful to you, please write to autoconf@gnu.org." >&5 6558echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6559whose name does not start with the host triplet. If you think this 6560configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6561ac_tool_warned=yes ;; 6562esac 6563 AR=$ac_ct_AR 6564 fi 6565else 6566 AR="$ac_cv_prog_AR" 6567fi 6568 6569if test -n "$ac_tool_prefix"; then 6570 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6571set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6572{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6574if test "${ac_cv_prog_RANLIB+set}" = set; then 6575 echo $ECHO_N "(cached) $ECHO_C" >&6 6576else 6577 if test -n "$RANLIB"; then 6578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6579else 6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6581for as_dir in $PATH 6582do 6583 IFS=$as_save_IFS 6584 test -z "$as_dir" && as_dir=. 6585 for ac_exec_ext in '' $ac_executable_extensions; do 6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6589 break 2 6590 fi 6591done 6592done 6593IFS=$as_save_IFS 6594 6595fi 6596fi 6597RANLIB=$ac_cv_prog_RANLIB 6598if test -n "$RANLIB"; then 6599 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6600echo "${ECHO_T}$RANLIB" >&6; } 6601else 6602 { echo "$as_me:$LINENO: result: no" >&5 6603echo "${ECHO_T}no" >&6; } 6604fi 6605 6606 6607fi 6608if test -z "$ac_cv_prog_RANLIB"; then 6609 ac_ct_RANLIB=$RANLIB 6610 # Extract the first word of "ranlib", so it can be a program name with args. 6611set dummy ranlib; ac_word=$2 6612{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6614if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6615 echo $ECHO_N "(cached) $ECHO_C" >&6 6616else 6617 if test -n "$ac_ct_RANLIB"; then 6618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6627 ac_cv_prog_ac_ct_RANLIB="ranlib" 6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6638if test -n "$ac_ct_RANLIB"; then 6639 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6640echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6641else 6642 { echo "$as_me:$LINENO: result: no" >&5 6643echo "${ECHO_T}no" >&6; } 6644fi 6645 6646 if test "x$ac_ct_RANLIB" = x; then 6647 RANLIB=":" 6648 else 6649 case $cross_compiling:$ac_tool_warned in 6650yes:) 6651{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6652whose name does not start with the host triplet. If you think this 6653configuration is useful to you, please write to autoconf@gnu.org." >&5 6654echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6655whose name does not start with the host triplet. If you think this 6656configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6657ac_tool_warned=yes ;; 6658esac 6659 RANLIB=$ac_ct_RANLIB 6660 fi 6661else 6662 RANLIB="$ac_cv_prog_RANLIB" 6663fi 6664 6665if test -n "$ac_tool_prefix"; then 6666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6667set dummy ${ac_tool_prefix}strip; ac_word=$2 6668{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6670if test "${ac_cv_prog_STRIP+set}" = set; then 6671 echo $ECHO_N "(cached) $ECHO_C" >&6 6672else 6673 if test -n "$STRIP"; then 6674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6683 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688done 6689IFS=$as_save_IFS 6690 6691fi 6692fi 6693STRIP=$ac_cv_prog_STRIP 6694if test -n "$STRIP"; then 6695 { echo "$as_me:$LINENO: result: $STRIP" >&5 6696echo "${ECHO_T}$STRIP" >&6; } 6697else 6698 { echo "$as_me:$LINENO: result: no" >&5 6699echo "${ECHO_T}no" >&6; } 6700fi 6701 6702 6703fi 6704if test -z "$ac_cv_prog_STRIP"; then 6705 ac_ct_STRIP=$STRIP 6706 # Extract the first word of "strip", so it can be a program name with args. 6707set dummy strip; ac_word=$2 6708{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6710if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6711 echo $ECHO_N "(cached) $ECHO_C" >&6 6712else 6713 if test -n "$ac_ct_STRIP"; then 6714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6715else 6716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6723 ac_cv_prog_ac_ct_STRIP="strip" 6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728done 6729IFS=$as_save_IFS 6730 6731fi 6732fi 6733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6734if test -n "$ac_ct_STRIP"; then 6735 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6736echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6737else 6738 { echo "$as_me:$LINENO: result: no" >&5 6739echo "${ECHO_T}no" >&6; } 6740fi 6741 6742 if test "x$ac_ct_STRIP" = x; then 6743 STRIP=":" 6744 else 6745 case $cross_compiling:$ac_tool_warned in 6746yes:) 6747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6748whose name does not start with the host triplet. If you think this 6749configuration is useful to you, please write to autoconf@gnu.org." >&5 6750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6751whose name does not start with the host triplet. If you think this 6752configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6753ac_tool_warned=yes ;; 6754esac 6755 STRIP=$ac_ct_STRIP 6756 fi 6757else 6758 STRIP="$ac_cv_prog_STRIP" 6759fi 6760 6761 6762old_CC="$CC" 6763old_CFLAGS="$CFLAGS" 6764 6765# Set sane defaults for various variables 6766test -z "$AR" && AR=ar 6767test -z "$AR_FLAGS" && AR_FLAGS=cru 6768test -z "$AS" && AS=as 6769test -z "$CC" && CC=cc 6770test -z "$LTCC" && LTCC=$CC 6771test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6772test -z "$DLLTOOL" && DLLTOOL=dlltool 6773test -z "$LD" && LD=ld 6774test -z "$LN_S" && LN_S="ln -s" 6775test -z "$MAGIC_CMD" && MAGIC_CMD=file 6776test -z "$NM" && NM=nm 6777test -z "$SED" && SED=sed 6778test -z "$OBJDUMP" && OBJDUMP=objdump 6779test -z "$RANLIB" && RANLIB=: 6780test -z "$STRIP" && STRIP=: 6781test -z "$ac_objext" && ac_objext=o 6782 6783# Determine commands to create old-style static archives. 6784old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6785old_postinstall_cmds='chmod 644 $oldlib' 6786old_postuninstall_cmds= 6787 6788if test -n "$RANLIB"; then 6789 case $host_os in 6790 openbsd*) 6791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6792 ;; 6793 *) 6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6795 ;; 6796 esac 6797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6798fi 6799 6800for cc_temp in $compiler""; do 6801 case $cc_temp in 6802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6804 \-*) ;; 6805 *) break;; 6806 esac 6807done 6808cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6809 6810 6811# Only perform the check for file, if the check method requires it 6812case $deplibs_check_method in 6813file_magic*) 6814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6815 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6816echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6817if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6818 echo $ECHO_N "(cached) $ECHO_C" >&6 6819else 6820 case $MAGIC_CMD in 6821[\\/*] | ?:[\\/]*) 6822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6823 ;; 6824*) 6825 lt_save_MAGIC_CMD="$MAGIC_CMD" 6826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6828 for ac_dir in $ac_dummy; do 6829 IFS="$lt_save_ifs" 6830 test -z "$ac_dir" && ac_dir=. 6831 if test -f $ac_dir/${ac_tool_prefix}file; then 6832 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6833 if test -n "$file_magic_test_file"; then 6834 case $deplibs_check_method in 6835 "file_magic "*) 6836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6839 $EGREP "$file_magic_regex" > /dev/null; then 6840 : 6841 else 6842 cat <<EOF 1>&2 6843 6844*** Warning: the command libtool uses to detect shared libraries, 6845*** $file_magic_cmd, produces output that libtool cannot recognize. 6846*** The result is that libtool may fail to recognize shared libraries 6847*** as such. This will affect the creation of libtool libraries that 6848*** depend on shared libraries, but programs linked with such libtool 6849*** libraries will work regardless of this problem. Nevertheless, you 6850*** may want to report the problem to your system manager and/or to 6851*** bug-libtool@gnu.org 6852 6853EOF 6854 fi ;; 6855 esac 6856 fi 6857 break 6858 fi 6859 done 6860 IFS="$lt_save_ifs" 6861 MAGIC_CMD="$lt_save_MAGIC_CMD" 6862 ;; 6863esac 6864fi 6865 6866MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6867if test -n "$MAGIC_CMD"; then 6868 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6869echo "${ECHO_T}$MAGIC_CMD" >&6; } 6870else 6871 { echo "$as_me:$LINENO: result: no" >&5 6872echo "${ECHO_T}no" >&6; } 6873fi 6874 6875if test -z "$lt_cv_path_MAGIC_CMD"; then 6876 if test -n "$ac_tool_prefix"; then 6877 { echo "$as_me:$LINENO: checking for file" >&5 6878echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6880 echo $ECHO_N "(cached) $ECHO_C" >&6 6881else 6882 case $MAGIC_CMD in 6883[\\/*] | ?:[\\/]*) 6884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6885 ;; 6886*) 6887 lt_save_MAGIC_CMD="$MAGIC_CMD" 6888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6890 for ac_dir in $ac_dummy; do 6891 IFS="$lt_save_ifs" 6892 test -z "$ac_dir" && ac_dir=. 6893 if test -f $ac_dir/file; then 6894 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6895 if test -n "$file_magic_test_file"; then 6896 case $deplibs_check_method in 6897 "file_magic "*) 6898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6901 $EGREP "$file_magic_regex" > /dev/null; then 6902 : 6903 else 6904 cat <<EOF 1>&2 6905 6906*** Warning: the command libtool uses to detect shared libraries, 6907*** $file_magic_cmd, produces output that libtool cannot recognize. 6908*** The result is that libtool may fail to recognize shared libraries 6909*** as such. This will affect the creation of libtool libraries that 6910*** depend on shared libraries, but programs linked with such libtool 6911*** libraries will work regardless of this problem. Nevertheless, you 6912*** may want to report the problem to your system manager and/or to 6913*** bug-libtool@gnu.org 6914 6915EOF 6916 fi ;; 6917 esac 6918 fi 6919 break 6920 fi 6921 done 6922 IFS="$lt_save_ifs" 6923 MAGIC_CMD="$lt_save_MAGIC_CMD" 6924 ;; 6925esac 6926fi 6927 6928MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6929if test -n "$MAGIC_CMD"; then 6930 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6931echo "${ECHO_T}$MAGIC_CMD" >&6; } 6932else 6933 { echo "$as_me:$LINENO: result: no" >&5 6934echo "${ECHO_T}no" >&6; } 6935fi 6936 6937 else 6938 MAGIC_CMD=: 6939 fi 6940fi 6941 6942 fi 6943 ;; 6944esac 6945 6946enable_dlopen=no 6947enable_win32_dll=no 6948 6949# Check whether --enable-libtool-lock was given. 6950if test "${enable_libtool_lock+set}" = set; then 6951 enableval=$enable_libtool_lock; 6952fi 6953 6954test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6955 6956 6957# Check whether --with-pic was given. 6958if test "${with_pic+set}" = set; then 6959 withval=$with_pic; pic_mode="$withval" 6960else 6961 pic_mode=default 6962fi 6963 6964test -z "$pic_mode" && pic_mode=default 6965 6966# Use C for the default configuration in the libtool script 6967tagname= 6968lt_save_CC="$CC" 6969ac_ext=c 6970ac_cpp='$CPP $CPPFLAGS' 6971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6973ac_compiler_gnu=$ac_cv_c_compiler_gnu 6974 6975 6976# Source file extension for C test sources. 6977ac_ext=c 6978 6979# Object file extension for compiled C test sources. 6980objext=o 6981objext=$objext 6982 6983# Code to be used in simple compile tests 6984lt_simple_compile_test_code="int some_variable = 0;\n" 6985 6986# Code to be used in simple link tests 6987lt_simple_link_test_code='int main(){return(0);}\n' 6988 6989 6990# If no C compiler was specified, use CC. 6991LTCC=${LTCC-"$CC"} 6992 6993# If no C compiler flags were specified, use CFLAGS. 6994LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6995 6996# Allow CC to be a program name with arguments. 6997compiler=$CC 6998 6999 7000# save warnings/boilerplate of simple test code 7001ac_outfile=conftest.$ac_objext 7002printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7003eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7004_lt_compiler_boilerplate=`cat conftest.err` 7005$rm conftest* 7006 7007ac_outfile=conftest.$ac_objext 7008printf "$lt_simple_link_test_code" >conftest.$ac_ext 7009eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7010_lt_linker_boilerplate=`cat conftest.err` 7011$rm conftest* 7012 7013 7014 7015lt_prog_compiler_no_builtin_flag= 7016 7017if test "$GCC" = yes; then 7018 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7019 7020 7021{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7022echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7023if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7024 echo $ECHO_N "(cached) $ECHO_C" >&6 7025else 7026 lt_cv_prog_compiler_rtti_exceptions=no 7027 ac_outfile=conftest.$ac_objext 7028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7029 lt_compiler_flag="-fno-rtti -fno-exceptions" 7030 # Insert the option either (1) after the last *FLAGS variable, or 7031 # (2) before a word containing "conftest.", or (3) at the end. 7032 # Note that $ac_compile itself does not contain backslashes and begins 7033 # with a dollar sign (not a hyphen), so the echo should work correctly. 7034 # The option is referenced via a variable to avoid confusing sed. 7035 lt_compile=`echo "$ac_compile" | $SED \ 7036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7038 -e 's:$: $lt_compiler_flag:'` 7039 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7040 (eval "$lt_compile" 2>conftest.err) 7041 ac_status=$? 7042 cat conftest.err >&5 7043 echo "$as_me:__oline__: \$? = $ac_status" >&5 7044 if (exit $ac_status) && test -s "$ac_outfile"; then 7045 # The compiler can only warn and ignore the option if not recognized 7046 # So say no if there are warnings other than the usual output. 7047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7050 lt_cv_prog_compiler_rtti_exceptions=yes 7051 fi 7052 fi 7053 $rm conftest* 7054 7055fi 7056{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7057echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7058 7059if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7061else 7062 : 7063fi 7064 7065fi 7066 7067lt_prog_compiler_wl= 7068lt_prog_compiler_pic= 7069lt_prog_compiler_static= 7070 7071{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7072echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7073 7074 if test "$GCC" = yes; then 7075 lt_prog_compiler_wl='-Wl,' 7076 lt_prog_compiler_static='-static' 7077 7078 case $host_os in 7079 aix*) 7080 # All AIX code is PIC. 7081 if test "$host_cpu" = ia64; then 7082 # AIX 5 now supports IA64 processor 7083 lt_prog_compiler_static='-Bstatic' 7084 fi 7085 ;; 7086 7087 amigaos*) 7088 # FIXME: we need at least 68020 code to build shared libraries, but 7089 # adding the `-m68020' flag to GCC prevents building anything better, 7090 # like `-m68040'. 7091 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7092 ;; 7093 7094 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7095 # PIC is the default for these OSes. 7096 ;; 7097 7098 mingw* | pw32* | os2*) 7099 # This hack is so that the source file can tell whether it is being 7100 # built for inclusion in a dll (and should export symbols for example). 7101 lt_prog_compiler_pic='-DDLL_EXPORT' 7102 ;; 7103 7104 darwin* | rhapsody*) 7105 # PIC is the default on this platform 7106 # Common symbols not allowed in MH_DYLIB files 7107 lt_prog_compiler_pic='-fno-common' 7108 ;; 7109 7110 interix3*) 7111 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7112 # Instead, we relocate shared libraries at runtime. 7113 ;; 7114 7115 msdosdjgpp*) 7116 # Just because we use GCC doesn't mean we suddenly get shared libraries 7117 # on systems that don't support them. 7118 lt_prog_compiler_can_build_shared=no 7119 enable_shared=no 7120 ;; 7121 7122 sysv4*MP*) 7123 if test -d /usr/nec; then 7124 lt_prog_compiler_pic=-Kconform_pic 7125 fi 7126 ;; 7127 7128 hpux*) 7129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7130 # not for PA HP-UX. 7131 case $host_cpu in 7132 hppa*64*|ia64*) 7133 # +Z the default 7134 ;; 7135 *) 7136 lt_prog_compiler_pic='-fPIC' 7137 ;; 7138 esac 7139 ;; 7140 7141 *) 7142 lt_prog_compiler_pic='-fPIC' 7143 ;; 7144 esac 7145 else 7146 # PORTME Check for flag to pass linker flags through the system compiler. 7147 case $host_os in 7148 aix*) 7149 lt_prog_compiler_wl='-Wl,' 7150 if test "$host_cpu" = ia64; then 7151 # AIX 5 now supports IA64 processor 7152 lt_prog_compiler_static='-Bstatic' 7153 else 7154 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7155 fi 7156 ;; 7157 darwin*) 7158 # PIC is the default on this platform 7159 # Common symbols not allowed in MH_DYLIB files 7160 case $cc_basename in 7161 xlc*) 7162 lt_prog_compiler_pic='-qnocommon' 7163 lt_prog_compiler_wl='-Wl,' 7164 ;; 7165 esac 7166 ;; 7167 7168 mingw* | pw32* | os2*) 7169 # This hack is so that the source file can tell whether it is being 7170 # built for inclusion in a dll (and should export symbols for example). 7171 lt_prog_compiler_pic='-DDLL_EXPORT' 7172 ;; 7173 7174 hpux9* | hpux10* | hpux11*) 7175 lt_prog_compiler_wl='-Wl,' 7176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7177 # not for PA HP-UX. 7178 case $host_cpu in 7179 hppa*64*|ia64*) 7180 # +Z the default 7181 ;; 7182 *) 7183 lt_prog_compiler_pic='+Z' 7184 ;; 7185 esac 7186 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7187 lt_prog_compiler_static='${wl}-a ${wl}archive' 7188 ;; 7189 7190 irix5* | irix6* | nonstopux*) 7191 lt_prog_compiler_wl='-Wl,' 7192 # PIC (with -KPIC) is the default. 7193 lt_prog_compiler_static='-non_shared' 7194 ;; 7195 7196 newsos6) 7197 lt_prog_compiler_pic='-KPIC' 7198 lt_prog_compiler_static='-Bstatic' 7199 ;; 7200 7201 linux* | k*bsd*-gnu) 7202 case $cc_basename in 7203 icc* | ecc*) 7204 lt_prog_compiler_wl='-Wl,' 7205 lt_prog_compiler_pic='-KPIC' 7206 lt_prog_compiler_static='-static' 7207 ;; 7208 pgcc* | pgf77* | pgf90* | pgf95*) 7209 # Portland Group compilers (*not* the Pentium gcc compiler, 7210 # which looks to be a dead project) 7211 lt_prog_compiler_wl='-Wl,' 7212 lt_prog_compiler_pic='-fpic' 7213 lt_prog_compiler_static='-Bstatic' 7214 ;; 7215 ccc*) 7216 lt_prog_compiler_wl='-Wl,' 7217 # All Alpha code is PIC. 7218 lt_prog_compiler_static='-non_shared' 7219 ;; 7220 esac 7221 ;; 7222 7223 osf3* | osf4* | osf5*) 7224 lt_prog_compiler_wl='-Wl,' 7225 # All OSF/1 code is PIC. 7226 lt_prog_compiler_static='-non_shared' 7227 ;; 7228 7229 solaris*) 7230 lt_prog_compiler_pic='-KPIC' 7231 lt_prog_compiler_static='-Bstatic' 7232 case $cc_basename in 7233 f77* | f90* | f95*) 7234 lt_prog_compiler_wl='-Qoption ld ';; 7235 *) 7236 lt_prog_compiler_wl='-Wl,';; 7237 esac 7238 ;; 7239 7240 sunos4*) 7241 lt_prog_compiler_wl='-Qoption ld ' 7242 lt_prog_compiler_pic='-PIC' 7243 lt_prog_compiler_static='-Bstatic' 7244 ;; 7245 7246 sysv4 | sysv4.2uw2* | sysv4.3*) 7247 lt_prog_compiler_wl='-Wl,' 7248 lt_prog_compiler_pic='-KPIC' 7249 lt_prog_compiler_static='-Bstatic' 7250 ;; 7251 7252 sysv4*MP*) 7253 if test -d /usr/nec ;then 7254 lt_prog_compiler_pic='-Kconform_pic' 7255 lt_prog_compiler_static='-Bstatic' 7256 fi 7257 ;; 7258 7259 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7260 lt_prog_compiler_wl='-Wl,' 7261 lt_prog_compiler_pic='-KPIC' 7262 lt_prog_compiler_static='-Bstatic' 7263 ;; 7264 7265 unicos*) 7266 lt_prog_compiler_wl='-Wl,' 7267 lt_prog_compiler_can_build_shared=no 7268 ;; 7269 7270 uts4*) 7271 lt_prog_compiler_pic='-pic' 7272 lt_prog_compiler_static='-Bstatic' 7273 ;; 7274 7275 *) 7276 lt_prog_compiler_can_build_shared=no 7277 ;; 7278 esac 7279 fi 7280 7281{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7282echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7283 7284# 7285# Check to make sure the PIC flag actually works. 7286# 7287if test -n "$lt_prog_compiler_pic"; then 7288 7289{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7290echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7291if test "${lt_prog_compiler_pic_works+set}" = set; then 7292 echo $ECHO_N "(cached) $ECHO_C" >&6 7293else 7294 lt_prog_compiler_pic_works=no 7295 ac_outfile=conftest.$ac_objext 7296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7298 # Insert the option either (1) after the last *FLAGS variable, or 7299 # (2) before a word containing "conftest.", or (3) at the end. 7300 # Note that $ac_compile itself does not contain backslashes and begins 7301 # with a dollar sign (not a hyphen), so the echo should work correctly. 7302 # The option is referenced via a variable to avoid confusing sed. 7303 lt_compile=`echo "$ac_compile" | $SED \ 7304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7306 -e 's:$: $lt_compiler_flag:'` 7307 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7308 (eval "$lt_compile" 2>conftest.err) 7309 ac_status=$? 7310 cat conftest.err >&5 7311 echo "$as_me:__oline__: \$? = $ac_status" >&5 7312 if (exit $ac_status) && test -s "$ac_outfile"; then 7313 # The compiler can only warn and ignore the option if not recognized 7314 # So say no if there are warnings other than the usual output. 7315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7318 lt_prog_compiler_pic_works=yes 7319 fi 7320 fi 7321 $rm conftest* 7322 7323fi 7324{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7325echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7326 7327if test x"$lt_prog_compiler_pic_works" = xyes; then 7328 case $lt_prog_compiler_pic in 7329 "" | " "*) ;; 7330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7331 esac 7332else 7333 lt_prog_compiler_pic= 7334 lt_prog_compiler_can_build_shared=no 7335fi 7336 7337fi 7338case $host_os in 7339 # For platforms which do not support PIC, -DPIC is meaningless: 7340 *djgpp*) 7341 lt_prog_compiler_pic= 7342 ;; 7343 *) 7344 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7345 ;; 7346esac 7347 7348# 7349# Check to make sure the static flag actually works. 7350# 7351wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7352{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7353echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7354if test "${lt_prog_compiler_static_works+set}" = set; then 7355 echo $ECHO_N "(cached) $ECHO_C" >&6 7356else 7357 lt_prog_compiler_static_works=no 7358 save_LDFLAGS="$LDFLAGS" 7359 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7360 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7362 # The linker can only warn and ignore the option if not recognized 7363 # So say no if there are warnings 7364 if test -s conftest.err; then 7365 # Append any errors to the config.log. 7366 cat conftest.err 1>&5 7367 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7369 if diff conftest.exp conftest.er2 >/dev/null; then 7370 lt_prog_compiler_static_works=yes 7371 fi 7372 else 7373 lt_prog_compiler_static_works=yes 7374 fi 7375 fi 7376 $rm conftest* 7377 LDFLAGS="$save_LDFLAGS" 7378 7379fi 7380{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7381echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7382 7383if test x"$lt_prog_compiler_static_works" = xyes; then 7384 : 7385else 7386 lt_prog_compiler_static= 7387fi 7388 7389 7390{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7391echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7392if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7393 echo $ECHO_N "(cached) $ECHO_C" >&6 7394else 7395 lt_cv_prog_compiler_c_o=no 7396 $rm -r conftest 2>/dev/null 7397 mkdir conftest 7398 cd conftest 7399 mkdir out 7400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7401 7402 lt_compiler_flag="-o out/conftest2.$ac_objext" 7403 # Insert the option either (1) after the last *FLAGS variable, or 7404 # (2) before a word containing "conftest.", or (3) at the end. 7405 # Note that $ac_compile itself does not contain backslashes and begins 7406 # with a dollar sign (not a hyphen), so the echo should work correctly. 7407 lt_compile=`echo "$ac_compile" | $SED \ 7408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7410 -e 's:$: $lt_compiler_flag:'` 7411 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7412 (eval "$lt_compile" 2>out/conftest.err) 7413 ac_status=$? 7414 cat out/conftest.err >&5 7415 echo "$as_me:__oline__: \$? = $ac_status" >&5 7416 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7417 then 7418 # The compiler can only warn and ignore the option if not recognized 7419 # So say no if there are warnings 7420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7423 lt_cv_prog_compiler_c_o=yes 7424 fi 7425 fi 7426 chmod u+w . 2>&5 7427 $rm conftest* 7428 # SGI C++ compiler will create directory out/ii_files/ for 7429 # template instantiation 7430 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7431 $rm out/* && rmdir out 7432 cd .. 7433 rmdir conftest 7434 $rm conftest* 7435 7436fi 7437{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7438echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7439 7440 7441hard_links="nottested" 7442if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7443 # do not overwrite the value of need_locks provided by the user 7444 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7445echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7446 hard_links=yes 7447 $rm conftest* 7448 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7449 touch conftest.a 7450 ln conftest.a conftest.b 2>&5 || hard_links=no 7451 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7452 { echo "$as_me:$LINENO: result: $hard_links" >&5 7453echo "${ECHO_T}$hard_links" >&6; } 7454 if test "$hard_links" = no; then 7455 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7456echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7457 need_locks=warn 7458 fi 7459else 7460 need_locks=no 7461fi 7462 7463{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7464echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7465 7466 runpath_var= 7467 allow_undefined_flag= 7468 enable_shared_with_static_runtimes=no 7469 archive_cmds= 7470 archive_expsym_cmds= 7471 old_archive_From_new_cmds= 7472 old_archive_from_expsyms_cmds= 7473 export_dynamic_flag_spec= 7474 whole_archive_flag_spec= 7475 thread_safe_flag_spec= 7476 hardcode_libdir_flag_spec= 7477 hardcode_libdir_flag_spec_ld= 7478 hardcode_libdir_separator= 7479 hardcode_direct=no 7480 hardcode_minus_L=no 7481 hardcode_shlibpath_var=unsupported 7482 link_all_deplibs=unknown 7483 hardcode_automatic=no 7484 module_cmds= 7485 module_expsym_cmds= 7486 always_export_symbols=no 7487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7488 # include_expsyms should be a list of space-separated symbols to be *always* 7489 # included in the symbol list 7490 include_expsyms= 7491 # exclude_expsyms can be an extended regexp of symbols to exclude 7492 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7493 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7494 # as well as any symbol that contains `d'. 7495 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7497 # platforms (ab)use it in PIC code, but their linkers get confused if 7498 # the symbol is explicitly referenced. Since portable code cannot 7499 # rely on this symbol name, it's probably fine to never include it in 7500 # preloaded symbol tables. 7501 extract_expsyms_cmds= 7502 # Just being paranoid about ensuring that cc_basename is set. 7503 for cc_temp in $compiler""; do 7504 case $cc_temp in 7505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7507 \-*) ;; 7508 *) break;; 7509 esac 7510done 7511cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7512 7513 case $host_os in 7514 cygwin* | mingw* | pw32*) 7515 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7516 # When not using gcc, we currently assume that we are using 7517 # Microsoft Visual C++. 7518 if test "$GCC" != yes; then 7519 with_gnu_ld=no 7520 fi 7521 ;; 7522 interix*) 7523 # we just hope/assume this is gcc and not c89 (= MSVC++) 7524 with_gnu_ld=yes 7525 ;; 7526 openbsd*) 7527 with_gnu_ld=no 7528 ;; 7529 esac 7530 7531 ld_shlibs=yes 7532 if test "$with_gnu_ld" = yes; then 7533 # If archive_cmds runs LD, not CC, wlarc should be empty 7534 wlarc='${wl}' 7535 7536 # Set some defaults for GNU ld with shared library support. These 7537 # are reset later if shared libraries are not supported. Putting them 7538 # here allows them to be overridden if necessary. 7539 runpath_var=LD_RUN_PATH 7540 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7541 export_dynamic_flag_spec='${wl}--export-dynamic' 7542 # ancient GNU ld didn't support --whole-archive et. al. 7543 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7544 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7545 else 7546 whole_archive_flag_spec= 7547 fi 7548 supports_anon_versioning=no 7549 case `$LD -v 2>/dev/null` in 7550 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7551 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7552 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7553 *\ 2.11.*) ;; # other 2.11 versions 7554 *) supports_anon_versioning=yes ;; 7555 esac 7556 7557 # See if GNU ld supports shared libraries. 7558 case $host_os in 7559 aix3* | aix4* | aix5*) 7560 # On AIX/PPC, the GNU linker is very broken 7561 if test "$host_cpu" != ia64; then 7562 ld_shlibs=no 7563 cat <<EOF 1>&2 7564 7565*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7566*** to be unable to reliably create shared libraries on AIX. 7567*** Therefore, libtool is disabling shared libraries support. If you 7568*** really care for shared libraries, you may want to modify your PATH 7569*** so that a non-GNU linker is found, and then restart. 7570 7571EOF 7572 fi 7573 ;; 7574 7575 amigaos*) 7576 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)' 7577 hardcode_libdir_flag_spec='-L$libdir' 7578 hardcode_minus_L=yes 7579 7580 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7581 # that the semantics of dynamic libraries on AmigaOS, at least up 7582 # to version 4, is to share data among multiple programs linked 7583 # with the same dynamic library. Since this doesn't match the 7584 # behavior of shared libraries on other platforms, we can't use 7585 # them. 7586 ld_shlibs=no 7587 ;; 7588 7589 beos*) 7590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7591 allow_undefined_flag=unsupported 7592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7593 # support --undefined. This deserves some investigation. FIXME 7594 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7595 else 7596 ld_shlibs=no 7597 fi 7598 ;; 7599 7600 cygwin* | mingw* | pw32*) 7601 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7602 # as there is no search path for DLLs. 7603 hardcode_libdir_flag_spec='-L$libdir' 7604 allow_undefined_flag=unsupported 7605 always_export_symbols=no 7606 enable_shared_with_static_runtimes=yes 7607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7608 7609 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7611 # If the export-symbols file already is a .def file (1st line 7612 # is EXPORTS), use it as is; otherwise, prepend... 7613 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7614 cp $export_symbols $output_objdir/$soname.def; 7615 else 7616 echo EXPORTS > $output_objdir/$soname.def; 7617 cat $export_symbols >> $output_objdir/$soname.def; 7618 fi~ 7619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7620 else 7621 ld_shlibs=no 7622 fi 7623 ;; 7624 7625 interix3*) 7626 hardcode_direct=no 7627 hardcode_shlibpath_var=no 7628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7629 export_dynamic_flag_spec='${wl}-E' 7630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7631 # Instead, shared libraries are loaded at an image base (0x10000000 by 7632 # default) and relocated if they conflict, which is a slow very memory 7633 # consuming and fragmenting process. To avoid this, we pick a random, 7634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7635 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7637 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' 7638 ;; 7639 7640 linux* | k*bsd*-gnu) 7641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7642 tmp_addflag= 7643 case $cc_basename,$host_cpu in 7644 pgcc*) # Portland Group C compiler 7645 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' 7646 tmp_addflag=' $pic_flag' 7647 ;; 7648 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7649 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' 7650 tmp_addflag=' $pic_flag -Mnomain' ;; 7651 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7652 tmp_addflag=' -i_dynamic' ;; 7653 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7654 tmp_addflag=' -i_dynamic -nofor_main' ;; 7655 ifc* | ifort*) # Intel Fortran compiler 7656 tmp_addflag=' -nofor_main' ;; 7657 esac 7658 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7659 7660 if test $supports_anon_versioning = yes; then 7661 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7663 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7664 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7665 fi 7666 link_all_deplibs=no 7667 else 7668 ld_shlibs=no 7669 fi 7670 ;; 7671 7672 netbsd* | netbsdelf*-gnu) 7673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7674 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7675 wlarc= 7676 else 7677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7679 fi 7680 ;; 7681 7682 solaris*) 7683 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7684 ld_shlibs=no 7685 cat <<EOF 1>&2 7686 7687*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7688*** create shared libraries on Solaris systems. Therefore, libtool 7689*** is disabling shared libraries support. We urge you to upgrade GNU 7690*** binutils to release 2.9.1 or newer. Another option is to modify 7691*** your PATH or compiler configuration so that the native linker is 7692*** used, and then restart. 7693 7694EOF 7695 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7698 else 7699 ld_shlibs=no 7700 fi 7701 ;; 7702 7703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7704 case `$LD -v 2>&1` in 7705 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7706 ld_shlibs=no 7707 cat <<_LT_EOF 1>&2 7708 7709*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7710*** reliably create shared libraries on SCO systems. Therefore, libtool 7711*** is disabling shared libraries support. We urge you to upgrade GNU 7712*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7713*** your PATH or compiler configuration so that the native linker is 7714*** used, and then restart. 7715 7716_LT_EOF 7717 ;; 7718 *) 7719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7720 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7723 else 7724 ld_shlibs=no 7725 fi 7726 ;; 7727 esac 7728 ;; 7729 7730 sunos4*) 7731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7732 wlarc= 7733 hardcode_direct=yes 7734 hardcode_shlibpath_var=no 7735 ;; 7736 7737 *) 7738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7741 else 7742 ld_shlibs=no 7743 fi 7744 ;; 7745 esac 7746 7747 if test "$ld_shlibs" = no; then 7748 runpath_var= 7749 hardcode_libdir_flag_spec= 7750 export_dynamic_flag_spec= 7751 whole_archive_flag_spec= 7752 fi 7753 else 7754 # PORTME fill in a description of your system's linker (not GNU ld) 7755 case $host_os in 7756 aix3*) 7757 allow_undefined_flag=unsupported 7758 always_export_symbols=yes 7759 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' 7760 # Note: this linker hardcodes the directories in LIBPATH if there 7761 # are no directories specified by -L. 7762 hardcode_minus_L=yes 7763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7764 # Neither direct hardcoding nor static linking is supported with a 7765 # broken collect2. 7766 hardcode_direct=unsupported 7767 fi 7768 ;; 7769 7770 aix4* | aix5*) 7771 if test "$host_cpu" = ia64; then 7772 # On IA64, the linker does run time linking by default, so we don't 7773 # have to do anything special. 7774 aix_use_runtimelinking=no 7775 exp_sym_flag='-Bexport' 7776 no_entry_flag="" 7777 else 7778 # If we're using GNU nm, then we don't want the "-C" option. 7779 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7780 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7781 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' 7782 else 7783 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' 7784 fi 7785 aix_use_runtimelinking=no 7786 7787 # Test if we are trying to use run time linking or normal 7788 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7789 # need to do runtime linking. 7790 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7791 for ld_flag in $LDFLAGS; do 7792 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7793 aix_use_runtimelinking=yes 7794 break 7795 fi 7796 done 7797 ;; 7798 esac 7799 7800 exp_sym_flag='-bexport' 7801 no_entry_flag='-bnoentry' 7802 fi 7803 7804 # When large executables or shared objects are built, AIX ld can 7805 # have problems creating the table of contents. If linking a library 7806 # or program results in "error TOC overflow" add -mminimal-toc to 7807 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7808 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7809 7810 archive_cmds='' 7811 hardcode_direct=yes 7812 hardcode_libdir_separator=':' 7813 link_all_deplibs=yes 7814 7815 if test "$GCC" = yes; then 7816 case $host_os in aix4.[012]|aix4.[012].*) 7817 # We only want to do this on AIX 4.2 and lower, the check 7818 # below for broken collect2 doesn't work under 4.3+ 7819 collect2name=`${CC} -print-prog-name=collect2` 7820 if test -f "$collect2name" && \ 7821 strings "$collect2name" | grep resolve_lib_name >/dev/null 7822 then 7823 # We have reworked collect2 7824 hardcode_direct=yes 7825 else 7826 # We have old collect2 7827 hardcode_direct=unsupported 7828 # It fails to find uninstalled libraries when the uninstalled 7829 # path is not listed in the libpath. Setting hardcode_minus_L 7830 # to unsupported forces relinking 7831 hardcode_minus_L=yes 7832 hardcode_libdir_flag_spec='-L$libdir' 7833 hardcode_libdir_separator= 7834 fi 7835 ;; 7836 esac 7837 shared_flag='-shared' 7838 if test "$aix_use_runtimelinking" = yes; then 7839 shared_flag="$shared_flag "'${wl}-G' 7840 fi 7841 else 7842 # not using gcc 7843 if test "$host_cpu" = ia64; then 7844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7845 # chokes on -Wl,-G. The following line is correct: 7846 shared_flag='-G' 7847 else 7848 if test "$aix_use_runtimelinking" = yes; then 7849 shared_flag='${wl}-G' 7850 else 7851 shared_flag='${wl}-bM:SRE' 7852 fi 7853 fi 7854 fi 7855 7856 # It seems that -bexpall does not export symbols beginning with 7857 # underscore (_), so it is better to generate a list of symbols to export. 7858 always_export_symbols=yes 7859 if test "$aix_use_runtimelinking" = yes; then 7860 # Warning - without using the other runtime loading flags (-brtl), 7861 # -berok will link without error, but may produce a broken library. 7862 allow_undefined_flag='-berok' 7863 # Determine the default libpath from the value encoded in an empty executable. 7864 cat >conftest.$ac_ext <<_ACEOF 7865/* confdefs.h. */ 7866_ACEOF 7867cat confdefs.h >>conftest.$ac_ext 7868cat >>conftest.$ac_ext <<_ACEOF 7869/* end confdefs.h. */ 7870 7871int 7872main () 7873{ 7874 7875 ; 7876 return 0; 7877} 7878_ACEOF 7879rm -f conftest.$ac_objext conftest$ac_exeext 7880if { (ac_try="$ac_link" 7881case "(($ac_try" in 7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7883 *) ac_try_echo=$ac_try;; 7884esac 7885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7886 (eval "$ac_link") 2>conftest.er1 7887 ac_status=$? 7888 grep -v '^ *+' conftest.er1 >conftest.err 7889 rm -f conftest.er1 7890 cat conftest.err >&5 7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7892 (exit $ac_status); } && { 7893 test -z "$ac_c_werror_flag" || 7894 test ! -s conftest.err 7895 } && test -s conftest$ac_exeext && 7896 $as_test_x conftest$ac_exeext; then 7897 7898aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7899}'` 7900# Check for a 64-bit object if we didn't find anything. 7901if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7902}'`; fi 7903else 7904 echo "$as_me: failed program was:" >&5 7905sed 's/^/| /' conftest.$ac_ext >&5 7906 7907 7908fi 7909 7910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7911 conftest$ac_exeext conftest.$ac_ext 7912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7913 7914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7915 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" 7916 else 7917 if test "$host_cpu" = ia64; then 7918 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7919 allow_undefined_flag="-z nodefs" 7920 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" 7921 else 7922 # Determine the default libpath from the value encoded in an empty executable. 7923 cat >conftest.$ac_ext <<_ACEOF 7924/* confdefs.h. */ 7925_ACEOF 7926cat confdefs.h >>conftest.$ac_ext 7927cat >>conftest.$ac_ext <<_ACEOF 7928/* end confdefs.h. */ 7929 7930int 7931main () 7932{ 7933 7934 ; 7935 return 0; 7936} 7937_ACEOF 7938rm -f conftest.$ac_objext conftest$ac_exeext 7939if { (ac_try="$ac_link" 7940case "(($ac_try" in 7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7942 *) ac_try_echo=$ac_try;; 7943esac 7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7945 (eval "$ac_link") 2>conftest.er1 7946 ac_status=$? 7947 grep -v '^ *+' conftest.er1 >conftest.err 7948 rm -f conftest.er1 7949 cat conftest.err >&5 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); } && { 7952 test -z "$ac_c_werror_flag" || 7953 test ! -s conftest.err 7954 } && test -s conftest$ac_exeext && 7955 $as_test_x conftest$ac_exeext; then 7956 7957aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7958}'` 7959# Check for a 64-bit object if we didn't find anything. 7960if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7961}'`; fi 7962else 7963 echo "$as_me: failed program was:" >&5 7964sed 's/^/| /' conftest.$ac_ext >&5 7965 7966 7967fi 7968 7969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7970 conftest$ac_exeext conftest.$ac_ext 7971if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7972 7973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7974 # Warning - without using the other run time loading flags, 7975 # -berok will link without error, but may produce a broken library. 7976 no_undefined_flag=' ${wl}-bernotok' 7977 allow_undefined_flag=' ${wl}-berok' 7978 # Exported symbols can be pulled into shared objects from archives 7979 whole_archive_flag_spec='$convenience' 7980 archive_cmds_need_lc=yes 7981 # This is similar to how AIX traditionally builds its shared libraries. 7982 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' 7983 fi 7984 fi 7985 ;; 7986 7987 amigaos*) 7988 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)' 7989 hardcode_libdir_flag_spec='-L$libdir' 7990 hardcode_minus_L=yes 7991 # see comment about different semantics on the GNU ld section 7992 ld_shlibs=no 7993 ;; 7994 7995 bsdi[45]*) 7996 export_dynamic_flag_spec=-rdynamic 7997 ;; 7998 7999 cygwin* | mingw* | pw32*) 8000 # When not using gcc, we currently assume that we are using 8001 # Microsoft Visual C++. 8002 # hardcode_libdir_flag_spec is actually meaningless, as there is 8003 # no search path for DLLs. 8004 hardcode_libdir_flag_spec=' ' 8005 allow_undefined_flag=unsupported 8006 # Tell ltmain to make .lib files, not .a files. 8007 libext=lib 8008 # Tell ltmain to make .dll files, not .so files. 8009 shrext_cmds=".dll" 8010 # FIXME: Setting linknames here is a bad hack. 8011 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8012 # The linker will automatically build a .lib file if we build a DLL. 8013 old_archive_From_new_cmds='true' 8014 # FIXME: Should let the user specify the lib program. 8015 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8016 fix_srcfile_path='`cygpath -w "$srcfile"`' 8017 enable_shared_with_static_runtimes=yes 8018 ;; 8019 8020 darwin* | rhapsody*) 8021 case $host_os in 8022 rhapsody* | darwin1.[012]) 8023 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8024 ;; 8025 *) # Darwin 1.3 on 8026 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8027 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8028 else 8029 case ${MACOSX_DEPLOYMENT_TARGET} in 8030 10.[012]) 8031 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8032 ;; 8033 10.*) 8034 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8035 ;; 8036 esac 8037 fi 8038 ;; 8039 esac 8040 archive_cmds_need_lc=no 8041 hardcode_direct=no 8042 hardcode_automatic=yes 8043 hardcode_shlibpath_var=unsupported 8044 whole_archive_flag_spec='' 8045 link_all_deplibs=yes 8046 if test "$GCC" = yes ; then 8047 output_verbose_link_cmd='echo' 8048 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8049 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8050 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8051 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8052 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}' 8053 else 8054 case $cc_basename in 8055 xlc*) 8056 output_verbose_link_cmd='echo' 8057 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8058 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8059 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8060 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8061 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}' 8062 ;; 8063 *) 8064 ld_shlibs=no 8065 ;; 8066 esac 8067 fi 8068 ;; 8069 8070 dgux*) 8071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8072 hardcode_libdir_flag_spec='-L$libdir' 8073 hardcode_shlibpath_var=no 8074 ;; 8075 8076 freebsd1*) 8077 ld_shlibs=no 8078 ;; 8079 8080 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8081 # support. Future versions do this automatically, but an explicit c++rt0.o 8082 # does not break anything, and helps significantly (at the cost of a little 8083 # extra space). 8084 freebsd2.2*) 8085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8086 hardcode_libdir_flag_spec='-R$libdir' 8087 hardcode_direct=yes 8088 hardcode_shlibpath_var=no 8089 ;; 8090 8091 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8092 freebsd2*) 8093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8094 hardcode_direct=yes 8095 hardcode_minus_L=yes 8096 hardcode_shlibpath_var=no 8097 ;; 8098 8099 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8100 freebsd* | dragonfly*) 8101 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8102 hardcode_libdir_flag_spec='-R$libdir' 8103 hardcode_direct=yes 8104 hardcode_shlibpath_var=no 8105 ;; 8106 8107 hpux9*) 8108 if test "$GCC" = yes; then 8109 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' 8110 else 8111 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' 8112 fi 8113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8114 hardcode_libdir_separator=: 8115 hardcode_direct=yes 8116 8117 # hardcode_minus_L: Not really in the search PATH, 8118 # but as the default location of the library. 8119 hardcode_minus_L=yes 8120 export_dynamic_flag_spec='${wl}-E' 8121 ;; 8122 8123 hpux10*) 8124 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8126 else 8127 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8128 fi 8129 if test "$with_gnu_ld" = no; then 8130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8131 hardcode_libdir_separator=: 8132 8133 hardcode_direct=yes 8134 export_dynamic_flag_spec='${wl}-E' 8135 8136 # hardcode_minus_L: Not really in the search PATH, 8137 # but as the default location of the library. 8138 hardcode_minus_L=yes 8139 fi 8140 ;; 8141 8142 hpux11*) 8143 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8144 case $host_cpu in 8145 hppa*64*) 8146 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8147 ;; 8148 ia64*) 8149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8150 ;; 8151 *) 8152 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8153 ;; 8154 esac 8155 else 8156 case $host_cpu in 8157 hppa*64*) 8158 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8159 ;; 8160 ia64*) 8161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8162 ;; 8163 *) 8164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8165 ;; 8166 esac 8167 fi 8168 if test "$with_gnu_ld" = no; then 8169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8170 hardcode_libdir_separator=: 8171 8172 case $host_cpu in 8173 hppa*64*|ia64*) 8174 hardcode_libdir_flag_spec_ld='+b $libdir' 8175 hardcode_direct=no 8176 hardcode_shlibpath_var=no 8177 ;; 8178 *) 8179 hardcode_direct=yes 8180 export_dynamic_flag_spec='${wl}-E' 8181 8182 # hardcode_minus_L: Not really in the search PATH, 8183 # but as the default location of the library. 8184 hardcode_minus_L=yes 8185 ;; 8186 esac 8187 fi 8188 ;; 8189 8190 irix5* | irix6* | nonstopux*) 8191 if test "$GCC" = yes; then 8192 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' 8193 else 8194 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' 8195 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8196 fi 8197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8198 hardcode_libdir_separator=: 8199 link_all_deplibs=yes 8200 ;; 8201 8202 netbsd* | netbsdelf*-gnu) 8203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8205 else 8206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8207 fi 8208 hardcode_libdir_flag_spec='-R$libdir' 8209 hardcode_direct=yes 8210 hardcode_shlibpath_var=no 8211 ;; 8212 8213 newsos6) 8214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8215 hardcode_direct=yes 8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8217 hardcode_libdir_separator=: 8218 hardcode_shlibpath_var=no 8219 ;; 8220 8221 openbsd*) 8222 hardcode_direct=yes 8223 hardcode_shlibpath_var=no 8224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8226 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8228 export_dynamic_flag_spec='${wl}-E' 8229 else 8230 case $host_os in 8231 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8233 hardcode_libdir_flag_spec='-R$libdir' 8234 ;; 8235 *) 8236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8238 ;; 8239 esac 8240 fi 8241 ;; 8242 8243 os2*) 8244 hardcode_libdir_flag_spec='-L$libdir' 8245 hardcode_minus_L=yes 8246 allow_undefined_flag=unsupported 8247 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' 8248 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8249 ;; 8250 8251 osf3*) 8252 if test "$GCC" = yes; then 8253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8254 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' 8255 else 8256 allow_undefined_flag=' -expect_unresolved \*' 8257 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' 8258 fi 8259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8260 hardcode_libdir_separator=: 8261 ;; 8262 8263 osf4* | osf5*) # as osf3* with the addition of -msym flag 8264 if test "$GCC" = yes; then 8265 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8266 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' 8267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8268 else 8269 allow_undefined_flag=' -expect_unresolved \*' 8270 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' 8271 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8272 $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' 8273 8274 # Both c and cxx compiler support -rpath directly 8275 hardcode_libdir_flag_spec='-rpath $libdir' 8276 fi 8277 hardcode_libdir_separator=: 8278 ;; 8279 8280 solaris*) 8281 no_undefined_flag=' -z text' 8282 if test "$GCC" = yes; then 8283 wlarc='${wl}' 8284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8285 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8286 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8287 else 8288 wlarc='' 8289 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8290 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8291 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8292 fi 8293 hardcode_libdir_flag_spec='-R$libdir' 8294 hardcode_shlibpath_var=no 8295 case $host_os in 8296 solaris2.[0-5] | solaris2.[0-5].*) ;; 8297 *) 8298 # The compiler driver will combine linker options so we 8299 # cannot just pass the convience library names through 8300 # without $wl, iff we do not link with $LD. 8301 # Luckily, gcc supports the same syntax we need for Sun Studio. 8302 # Supported since Solaris 2.6 (maybe 2.5.1?) 8303 case $wlarc in 8304 '') 8305 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8306 *) 8307 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8308 esac ;; 8309 esac 8310 link_all_deplibs=yes 8311 ;; 8312 8313 sunos4*) 8314 if test "x$host_vendor" = xsequent; then 8315 # Use $CC to link under sequent, because it throws in some extra .o 8316 # files that make .init and .fini sections work. 8317 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8318 else 8319 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8320 fi 8321 hardcode_libdir_flag_spec='-L$libdir' 8322 hardcode_direct=yes 8323 hardcode_minus_L=yes 8324 hardcode_shlibpath_var=no 8325 ;; 8326 8327 sysv4) 8328 case $host_vendor in 8329 sni) 8330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8331 hardcode_direct=yes # is this really true??? 8332 ;; 8333 siemens) 8334 ## LD is ld it makes a PLAMLIB 8335 ## CC just makes a GrossModule. 8336 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8337 reload_cmds='$CC -r -o $output$reload_objs' 8338 hardcode_direct=no 8339 ;; 8340 motorola) 8341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8342 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8343 ;; 8344 esac 8345 runpath_var='LD_RUN_PATH' 8346 hardcode_shlibpath_var=no 8347 ;; 8348 8349 sysv4.3*) 8350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8351 hardcode_shlibpath_var=no 8352 export_dynamic_flag_spec='-Bexport' 8353 ;; 8354 8355 sysv4*MP*) 8356 if test -d /usr/nec; then 8357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8358 hardcode_shlibpath_var=no 8359 runpath_var=LD_RUN_PATH 8360 hardcode_runpath_var=yes 8361 ld_shlibs=yes 8362 fi 8363 ;; 8364 8365 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8366 no_undefined_flag='${wl}-z,text' 8367 archive_cmds_need_lc=no 8368 hardcode_shlibpath_var=no 8369 runpath_var='LD_RUN_PATH' 8370 8371 if test "$GCC" = yes; then 8372 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8373 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8374 else 8375 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8376 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8377 fi 8378 ;; 8379 8380 sysv5* | sco3.2v5* | sco5v6*) 8381 # Note: We can NOT use -z defs as we might desire, because we do not 8382 # link with -lc, and that would cause any symbols used from libc to 8383 # always be unresolved, which means just about no library would 8384 # ever link correctly. If we're not using GNU ld we use -z text 8385 # though, which does catch some bad symbols but isn't as heavy-handed 8386 # as -z defs. 8387 no_undefined_flag='${wl}-z,text' 8388 allow_undefined_flag='${wl}-z,nodefs' 8389 archive_cmds_need_lc=no 8390 hardcode_shlibpath_var=no 8391 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8392 hardcode_libdir_separator=':' 8393 link_all_deplibs=yes 8394 export_dynamic_flag_spec='${wl}-Bexport' 8395 runpath_var='LD_RUN_PATH' 8396 8397 if test "$GCC" = yes; then 8398 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8399 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8400 else 8401 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8402 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8403 fi 8404 ;; 8405 8406 uts4*) 8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8408 hardcode_libdir_flag_spec='-L$libdir' 8409 hardcode_shlibpath_var=no 8410 ;; 8411 8412 *) 8413 ld_shlibs=no 8414 ;; 8415 esac 8416 fi 8417 8418{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8419echo "${ECHO_T}$ld_shlibs" >&6; } 8420test "$ld_shlibs" = no && can_build_shared=no 8421 8422# 8423# Do we need to explicitly link libc? 8424# 8425case "x$archive_cmds_need_lc" in 8426x|xyes) 8427 # Assume -lc should be added 8428 archive_cmds_need_lc=yes 8429 8430 if test "$enable_shared" = yes && test "$GCC" = yes; then 8431 case $archive_cmds in 8432 *'~'*) 8433 # FIXME: we may have to deal with multi-command sequences. 8434 ;; 8435 '$CC '*) 8436 # Test whether the compiler implicitly links with -lc since on some 8437 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8438 # to ld, don't add -lc before -lgcc. 8439 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8440echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8441 $rm conftest* 8442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8443 8444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8445 (eval $ac_compile) 2>&5 8446 ac_status=$? 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8448 (exit $ac_status); } 2>conftest.err; then 8449 soname=conftest 8450 lib=conftest 8451 libobjs=conftest.$ac_objext 8452 deplibs= 8453 wl=$lt_prog_compiler_wl 8454 pic_flag=$lt_prog_compiler_pic 8455 compiler_flags=-v 8456 linker_flags=-v 8457 verstring= 8458 output_objdir=. 8459 libname=conftest 8460 lt_save_allow_undefined_flag=$allow_undefined_flag 8461 allow_undefined_flag= 8462 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8463 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8464 ac_status=$? 8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8466 (exit $ac_status); } 8467 then 8468 archive_cmds_need_lc=no 8469 else 8470 archive_cmds_need_lc=yes 8471 fi 8472 allow_undefined_flag=$lt_save_allow_undefined_flag 8473 else 8474 cat conftest.err 1>&5 8475 fi 8476 $rm conftest* 8477 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8478echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8479 ;; 8480 esac 8481 fi 8482 ;; 8483esac 8484 8485{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8486echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8487library_names_spec= 8488libname_spec='lib$name' 8489soname_spec= 8490shrext_cmds=".so" 8491postinstall_cmds= 8492postuninstall_cmds= 8493finish_cmds= 8494finish_eval= 8495shlibpath_var= 8496shlibpath_overrides_runpath=unknown 8497version_type=none 8498dynamic_linker="$host_os ld.so" 8499sys_lib_dlsearch_path_spec="/lib /usr/lib" 8500if test "$GCC" = yes; then 8501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8502 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8503 # if the path contains ";" then we assume it to be the separator 8504 # otherwise default to the standard path separator (i.e. ":") - it is 8505 # assumed that no part of a normal pathname contains ";" but that should 8506 # okay in the real world where ";" in dirpaths is itself problematic. 8507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8508 else 8509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8510 fi 8511else 8512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8513fi 8514need_lib_prefix=unknown 8515hardcode_into_libs=no 8516 8517# when you set need_version to no, make sure it does not cause -set_version 8518# flags to be left without arguments 8519need_version=unknown 8520 8521case $host_os in 8522aix3*) 8523 version_type=linux 8524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8525 shlibpath_var=LIBPATH 8526 8527 # AIX 3 has no versioning support, so we append a major version to the name. 8528 soname_spec='${libname}${release}${shared_ext}$major' 8529 ;; 8530 8531aix4* | aix5*) 8532 version_type=linux 8533 need_lib_prefix=no 8534 need_version=no 8535 hardcode_into_libs=yes 8536 if test "$host_cpu" = ia64; then 8537 # AIX 5 supports IA64 8538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8539 shlibpath_var=LD_LIBRARY_PATH 8540 else 8541 # With GCC up to 2.95.x, collect2 would create an import file 8542 # for dependence libraries. The import file would start with 8543 # the line `#! .'. This would cause the generated library to 8544 # depend on `.', always an invalid library. This was fixed in 8545 # development snapshots of GCC prior to 3.0. 8546 case $host_os in 8547 aix4 | aix4.[01] | aix4.[01].*) 8548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8549 echo ' yes ' 8550 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8551 : 8552 else 8553 can_build_shared=no 8554 fi 8555 ;; 8556 esac 8557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8558 # soname into executable. Probably we can add versioning support to 8559 # collect2, so additional links can be useful in future. 8560 if test "$aix_use_runtimelinking" = yes; then 8561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8562 # instead of lib<name>.a to let people know that these are not 8563 # typical AIX shared libraries. 8564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8565 else 8566 # We preserve .a as extension for shared libraries through AIX4.2 8567 # and later when we are not doing run time linking. 8568 library_names_spec='${libname}${release}.a $libname.a' 8569 soname_spec='${libname}${release}${shared_ext}$major' 8570 fi 8571 shlibpath_var=LIBPATH 8572 fi 8573 ;; 8574 8575amigaos*) 8576 library_names_spec='$libname.ixlibrary $libname.a' 8577 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8578 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' 8579 ;; 8580 8581beos*) 8582 library_names_spec='${libname}${shared_ext}' 8583 dynamic_linker="$host_os ld.so" 8584 shlibpath_var=LIBRARY_PATH 8585 ;; 8586 8587bsdi[45]*) 8588 version_type=linux 8589 need_version=no 8590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8591 soname_spec='${libname}${release}${shared_ext}$major' 8592 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8593 shlibpath_var=LD_LIBRARY_PATH 8594 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8595 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8596 # the default ld.so.conf also contains /usr/contrib/lib and 8597 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8598 # libtool to hard-code these into programs 8599 ;; 8600 8601cygwin* | mingw* | pw32*) 8602 version_type=windows 8603 shrext_cmds=".dll" 8604 need_version=no 8605 need_lib_prefix=no 8606 8607 case $GCC,$host_os in 8608 yes,cygwin* | yes,mingw* | yes,pw32*) 8609 library_names_spec='$libname.dll.a' 8610 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8611 postinstall_cmds='base_file=`basename \${file}`~ 8612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8613 dldir=$destdir/`dirname \$dlpath`~ 8614 test -d \$dldir || mkdir -p \$dldir~ 8615 $install_prog $dir/$dlname \$dldir/$dlname~ 8616 chmod a+x \$dldir/$dlname' 8617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8618 dlpath=$dir/\$dldll~ 8619 $rm \$dlpath' 8620 shlibpath_overrides_runpath=yes 8621 8622 case $host_os in 8623 cygwin*) 8624 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8626 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8627 ;; 8628 mingw*) 8629 # MinGW DLLs use traditional 'lib' prefix 8630 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8631 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8632 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8633 # It is most probably a Windows format PATH printed by 8634 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8635 # path with ; separators, and with drive letters. We can handle the 8636 # drive letters (cygwin fileutils understands them), so leave them, 8637 # especially as we might pass files found there to a mingw objdump, 8638 # which wouldn't understand a cygwinified path. Ahh. 8639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8640 else 8641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8642 fi 8643 ;; 8644 pw32*) 8645 # pw32 DLLs use 'pw' prefix rather than 'lib' 8646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8647 ;; 8648 esac 8649 ;; 8650 8651 *) 8652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8653 ;; 8654 esac 8655 dynamic_linker='Win32 ld.exe' 8656 # FIXME: first we should search . and the directory the executable is in 8657 shlibpath_var=PATH 8658 ;; 8659 8660darwin* | rhapsody*) 8661 dynamic_linker="$host_os dyld" 8662 version_type=darwin 8663 need_lib_prefix=no 8664 need_version=no 8665 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8666 soname_spec='${libname}${release}${major}$shared_ext' 8667 shlibpath_overrides_runpath=yes 8668 shlibpath_var=DYLD_LIBRARY_PATH 8669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8670 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8671 if test "$GCC" = yes; then 8672 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8673 else 8674 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8675 fi 8676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8677 ;; 8678 8679dgux*) 8680 version_type=linux 8681 need_lib_prefix=no 8682 need_version=no 8683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8684 soname_spec='${libname}${release}${shared_ext}$major' 8685 shlibpath_var=LD_LIBRARY_PATH 8686 ;; 8687 8688freebsd1*) 8689 dynamic_linker=no 8690 ;; 8691 8692freebsd* | dragonfly*) 8693 # DragonFly does not have aout. When/if they implement a new 8694 # versioning mechanism, adjust this. 8695 if test -x /usr/bin/objformat; then 8696 objformat=`/usr/bin/objformat` 8697 else 8698 case $host_os in 8699 freebsd[123]*) objformat=aout ;; 8700 *) objformat=elf ;; 8701 esac 8702 fi 8703 version_type=freebsd-$objformat 8704 case $version_type in 8705 freebsd-elf*) 8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8707 need_version=no 8708 need_lib_prefix=no 8709 ;; 8710 freebsd-*) 8711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8712 need_version=yes 8713 ;; 8714 esac 8715 shlibpath_var=LD_LIBRARY_PATH 8716 case $host_os in 8717 freebsd2*) 8718 shlibpath_overrides_runpath=yes 8719 ;; 8720 freebsd3.[01]* | freebsdelf3.[01]*) 8721 shlibpath_overrides_runpath=yes 8722 hardcode_into_libs=yes 8723 ;; 8724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8726 shlibpath_overrides_runpath=no 8727 hardcode_into_libs=yes 8728 ;; 8729 freebsd*) # from 4.6 on 8730 shlibpath_overrides_runpath=yes 8731 hardcode_into_libs=yes 8732 ;; 8733 esac 8734 ;; 8735 8736gnu*) 8737 version_type=linux 8738 need_lib_prefix=no 8739 need_version=no 8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8741 soname_spec='${libname}${release}${shared_ext}$major' 8742 shlibpath_var=LD_LIBRARY_PATH 8743 hardcode_into_libs=yes 8744 ;; 8745 8746hpux9* | hpux10* | hpux11*) 8747 # Give a soname corresponding to the major version so that dld.sl refuses to 8748 # link against other versions. 8749 version_type=sunos 8750 need_lib_prefix=no 8751 need_version=no 8752 case $host_cpu in 8753 ia64*) 8754 shrext_cmds='.so' 8755 hardcode_into_libs=yes 8756 dynamic_linker="$host_os dld.so" 8757 shlibpath_var=LD_LIBRARY_PATH 8758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8760 soname_spec='${libname}${release}${shared_ext}$major' 8761 if test "X$HPUX_IA64_MODE" = X32; then 8762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8763 else 8764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8765 fi 8766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8767 ;; 8768 hppa*64*) 8769 shrext_cmds='.sl' 8770 hardcode_into_libs=yes 8771 dynamic_linker="$host_os dld.sl" 8772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8775 soname_spec='${libname}${release}${shared_ext}$major' 8776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8778 ;; 8779 *) 8780 shrext_cmds='.sl' 8781 dynamic_linker="$host_os dld.sl" 8782 shlibpath_var=SHLIB_PATH 8783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 ;; 8787 esac 8788 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8789 postinstall_cmds='chmod 555 $lib' 8790 ;; 8791 8792interix3*) 8793 version_type=linux 8794 need_lib_prefix=no 8795 need_version=no 8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8797 soname_spec='${libname}${release}${shared_ext}$major' 8798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8799 shlibpath_var=LD_LIBRARY_PATH 8800 shlibpath_overrides_runpath=no 8801 hardcode_into_libs=yes 8802 ;; 8803 8804irix5* | irix6* | nonstopux*) 8805 case $host_os in 8806 nonstopux*) version_type=nonstopux ;; 8807 *) 8808 if test "$lt_cv_prog_gnu_ld" = yes; then 8809 version_type=linux 8810 else 8811 version_type=irix 8812 fi ;; 8813 esac 8814 need_lib_prefix=no 8815 need_version=no 8816 soname_spec='${libname}${release}${shared_ext}$major' 8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8818 case $host_os in 8819 irix5* | nonstopux*) 8820 libsuff= shlibsuff= 8821 ;; 8822 *) 8823 case $LD in # libtool.m4 will add one of these switches to LD 8824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8825 libsuff= shlibsuff= libmagic=32-bit;; 8826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8827 libsuff=32 shlibsuff=N32 libmagic=N32;; 8828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8829 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8830 *) libsuff= shlibsuff= libmagic=never-match;; 8831 esac 8832 ;; 8833 esac 8834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8835 shlibpath_overrides_runpath=no 8836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8838 hardcode_into_libs=yes 8839 ;; 8840 8841# No shared lib support for Linux oldld, aout, or coff. 8842linux*oldld* | linux*aout* | linux*coff*) 8843 dynamic_linker=no 8844 ;; 8845 8846# This must be Linux ELF. 8847linux* | k*bsd*-gnu) 8848 version_type=linux 8849 need_lib_prefix=no 8850 need_version=no 8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8852 soname_spec='${libname}${release}${shared_ext}$major' 8853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8854 shlibpath_var=LD_LIBRARY_PATH 8855 shlibpath_overrides_runpath=no 8856 # This implies no fast_install, which is unacceptable. 8857 # Some rework will be needed to allow for fast_install 8858 # before this can be enabled. 8859 hardcode_into_libs=yes 8860 8861 # Append ld.so.conf contents to the search path 8862 if test -f /etc/ld.so.conf; then 8863 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8865 fi 8866 8867 # We used to test for /lib/ld.so.1 and disable shared libraries on 8868 # powerpc, because MkLinux only supported shared libraries with the 8869 # GNU dynamic linker. Since this was broken with cross compilers, 8870 # most powerpc-linux boxes support dynamic linking these days and 8871 # people can always --disable-shared, the test was removed, and we 8872 # assume the GNU/Linux dynamic linker is in use. 8873 dynamic_linker='GNU/Linux ld.so' 8874 ;; 8875 8876netbsdelf*-gnu) 8877 version_type=linux 8878 need_lib_prefix=no 8879 need_version=no 8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8881 soname_spec='${libname}${release}${shared_ext}$major' 8882 shlibpath_var=LD_LIBRARY_PATH 8883 shlibpath_overrides_runpath=no 8884 hardcode_into_libs=yes 8885 dynamic_linker='NetBSD ld.elf_so' 8886 ;; 8887 8888netbsd*) 8889 version_type=sunos 8890 need_lib_prefix=no 8891 need_version=no 8892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8895 dynamic_linker='NetBSD (a.out) ld.so' 8896 else 8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8898 soname_spec='${libname}${release}${shared_ext}$major' 8899 dynamic_linker='NetBSD ld.elf_so' 8900 fi 8901 shlibpath_var=LD_LIBRARY_PATH 8902 shlibpath_overrides_runpath=yes 8903 hardcode_into_libs=yes 8904 ;; 8905 8906newsos6) 8907 version_type=linux 8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8909 shlibpath_var=LD_LIBRARY_PATH 8910 shlibpath_overrides_runpath=yes 8911 ;; 8912 8913nto-qnx*) 8914 version_type=linux 8915 need_lib_prefix=no 8916 need_version=no 8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8918 soname_spec='${libname}${release}${shared_ext}$major' 8919 shlibpath_var=LD_LIBRARY_PATH 8920 shlibpath_overrides_runpath=yes 8921 ;; 8922 8923openbsd*) 8924 version_type=sunos 8925 sys_lib_dlsearch_path_spec="/usr/lib" 8926 need_lib_prefix=no 8927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8928 case $host_os in 8929 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8930 *) need_version=no ;; 8931 esac 8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8934 shlibpath_var=LD_LIBRARY_PATH 8935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8936 case $host_os in 8937 openbsd2.[89] | openbsd2.[89].*) 8938 shlibpath_overrides_runpath=no 8939 ;; 8940 *) 8941 shlibpath_overrides_runpath=yes 8942 ;; 8943 esac 8944 else 8945 shlibpath_overrides_runpath=yes 8946 fi 8947 ;; 8948 8949os2*) 8950 libname_spec='$name' 8951 shrext_cmds=".dll" 8952 need_lib_prefix=no 8953 library_names_spec='$libname${shared_ext} $libname.a' 8954 dynamic_linker='OS/2 ld.exe' 8955 shlibpath_var=LIBPATH 8956 ;; 8957 8958osf3* | osf4* | osf5*) 8959 version_type=osf 8960 need_lib_prefix=no 8961 need_version=no 8962 soname_spec='${libname}${release}${shared_ext}$major' 8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8964 shlibpath_var=LD_LIBRARY_PATH 8965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8967 ;; 8968 8969solaris*) 8970 version_type=linux 8971 need_lib_prefix=no 8972 need_version=no 8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8974 soname_spec='${libname}${release}${shared_ext}$major' 8975 shlibpath_var=LD_LIBRARY_PATH 8976 shlibpath_overrides_runpath=yes 8977 hardcode_into_libs=yes 8978 # ldd complains unless libraries are executable 8979 postinstall_cmds='chmod +x $lib' 8980 ;; 8981 8982sunos4*) 8983 version_type=sunos 8984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8985 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8986 shlibpath_var=LD_LIBRARY_PATH 8987 shlibpath_overrides_runpath=yes 8988 if test "$with_gnu_ld" = yes; then 8989 need_lib_prefix=no 8990 fi 8991 need_version=yes 8992 ;; 8993 8994sysv4 | sysv4.3*) 8995 version_type=linux 8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8997 soname_spec='${libname}${release}${shared_ext}$major' 8998 shlibpath_var=LD_LIBRARY_PATH 8999 case $host_vendor in 9000 sni) 9001 shlibpath_overrides_runpath=no 9002 need_lib_prefix=no 9003 export_dynamic_flag_spec='${wl}-Blargedynsym' 9004 runpath_var=LD_RUN_PATH 9005 ;; 9006 siemens) 9007 need_lib_prefix=no 9008 ;; 9009 motorola) 9010 need_lib_prefix=no 9011 need_version=no 9012 shlibpath_overrides_runpath=no 9013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9014 ;; 9015 esac 9016 ;; 9017 9018sysv4*MP*) 9019 if test -d /usr/nec ;then 9020 version_type=linux 9021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9022 soname_spec='$libname${shared_ext}.$major' 9023 shlibpath_var=LD_LIBRARY_PATH 9024 fi 9025 ;; 9026 9027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9028 version_type=freebsd-elf 9029 need_lib_prefix=no 9030 need_version=no 9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9032 soname_spec='${libname}${release}${shared_ext}$major' 9033 shlibpath_var=LD_LIBRARY_PATH 9034 hardcode_into_libs=yes 9035 if test "$with_gnu_ld" = yes; then 9036 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9037 shlibpath_overrides_runpath=no 9038 else 9039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9040 shlibpath_overrides_runpath=yes 9041 case $host_os in 9042 sco3.2v5*) 9043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9044 ;; 9045 esac 9046 fi 9047 sys_lib_dlsearch_path_spec='/usr/lib' 9048 ;; 9049 9050uts4*) 9051 version_type=linux 9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9053 soname_spec='${libname}${release}${shared_ext}$major' 9054 shlibpath_var=LD_LIBRARY_PATH 9055 ;; 9056 9057*) 9058 dynamic_linker=no 9059 ;; 9060esac 9061{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9062echo "${ECHO_T}$dynamic_linker" >&6; } 9063test "$dynamic_linker" = no && can_build_shared=no 9064 9065variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9066if test "$GCC" = yes; then 9067 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9068fi 9069 9070{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9071echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9072hardcode_action= 9073if test -n "$hardcode_libdir_flag_spec" || \ 9074 test -n "$runpath_var" || \ 9075 test "X$hardcode_automatic" = "Xyes" ; then 9076 9077 # We can hardcode non-existant directories. 9078 if test "$hardcode_direct" != no && 9079 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9080 # have to relink, otherwise we might link with an installed library 9081 # when we should be linking with a yet-to-be-installed one 9082 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9083 test "$hardcode_minus_L" != no; then 9084 # Linking always hardcodes the temporary library directory. 9085 hardcode_action=relink 9086 else 9087 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9088 hardcode_action=immediate 9089 fi 9090else 9091 # We cannot hardcode anything, or else we can only hardcode existing 9092 # directories. 9093 hardcode_action=unsupported 9094fi 9095{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9096echo "${ECHO_T}$hardcode_action" >&6; } 9097 9098if test "$hardcode_action" = relink; then 9099 # Fast installation is not supported 9100 enable_fast_install=no 9101elif test "$shlibpath_overrides_runpath" = yes || 9102 test "$enable_shared" = no; then 9103 # Fast installation is not necessary 9104 enable_fast_install=needless 9105fi 9106 9107striplib= 9108old_striplib= 9109{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9110echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9111if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9112 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9113 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9114 { echo "$as_me:$LINENO: result: yes" >&5 9115echo "${ECHO_T}yes" >&6; } 9116else 9117# FIXME - insert some real tests, host_os isn't really good enough 9118 case $host_os in 9119 darwin*) 9120 if test -n "$STRIP" ; then 9121 striplib="$STRIP -x" 9122 { echo "$as_me:$LINENO: result: yes" >&5 9123echo "${ECHO_T}yes" >&6; } 9124 else 9125 { echo "$as_me:$LINENO: result: no" >&5 9126echo "${ECHO_T}no" >&6; } 9127fi 9128 ;; 9129 *) 9130 { echo "$as_me:$LINENO: result: no" >&5 9131echo "${ECHO_T}no" >&6; } 9132 ;; 9133 esac 9134fi 9135 9136if test "x$enable_dlopen" != xyes; then 9137 enable_dlopen=unknown 9138 enable_dlopen_self=unknown 9139 enable_dlopen_self_static=unknown 9140else 9141 lt_cv_dlopen=no 9142 lt_cv_dlopen_libs= 9143 9144 case $host_os in 9145 beos*) 9146 lt_cv_dlopen="load_add_on" 9147 lt_cv_dlopen_libs= 9148 lt_cv_dlopen_self=yes 9149 ;; 9150 9151 mingw* | pw32*) 9152 lt_cv_dlopen="LoadLibrary" 9153 lt_cv_dlopen_libs= 9154 ;; 9155 9156 cygwin*) 9157 lt_cv_dlopen="dlopen" 9158 lt_cv_dlopen_libs= 9159 ;; 9160 9161 darwin*) 9162 # if libdl is installed we need to link against it 9163 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9164echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9165if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9166 echo $ECHO_N "(cached) $ECHO_C" >&6 9167else 9168 ac_check_lib_save_LIBS=$LIBS 9169LIBS="-ldl $LIBS" 9170cat >conftest.$ac_ext <<_ACEOF 9171/* confdefs.h. */ 9172_ACEOF 9173cat confdefs.h >>conftest.$ac_ext 9174cat >>conftest.$ac_ext <<_ACEOF 9175/* end confdefs.h. */ 9176 9177/* Override any GCC internal prototype to avoid an error. 9178 Use char because int might match the return type of a GCC 9179 builtin and then its argument prototype would still apply. */ 9180#ifdef __cplusplus 9181extern "C" 9182#endif 9183char dlopen (); 9184int 9185main () 9186{ 9187return dlopen (); 9188 ; 9189 return 0; 9190} 9191_ACEOF 9192rm -f conftest.$ac_objext conftest$ac_exeext 9193if { (ac_try="$ac_link" 9194case "(($ac_try" in 9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9196 *) ac_try_echo=$ac_try;; 9197esac 9198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9199 (eval "$ac_link") 2>conftest.er1 9200 ac_status=$? 9201 grep -v '^ *+' conftest.er1 >conftest.err 9202 rm -f conftest.er1 9203 cat conftest.err >&5 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); } && { 9206 test -z "$ac_c_werror_flag" || 9207 test ! -s conftest.err 9208 } && test -s conftest$ac_exeext && 9209 $as_test_x conftest$ac_exeext; then 9210 ac_cv_lib_dl_dlopen=yes 9211else 9212 echo "$as_me: failed program was:" >&5 9213sed 's/^/| /' conftest.$ac_ext >&5 9214 9215 ac_cv_lib_dl_dlopen=no 9216fi 9217 9218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9219 conftest$ac_exeext conftest.$ac_ext 9220LIBS=$ac_check_lib_save_LIBS 9221fi 9222{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9223echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9224if test $ac_cv_lib_dl_dlopen = yes; then 9225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9226else 9227 9228 lt_cv_dlopen="dyld" 9229 lt_cv_dlopen_libs= 9230 lt_cv_dlopen_self=yes 9231 9232fi 9233 9234 ;; 9235 9236 *) 9237 { echo "$as_me:$LINENO: checking for shl_load" >&5 9238echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9239if test "${ac_cv_func_shl_load+set}" = set; then 9240 echo $ECHO_N "(cached) $ECHO_C" >&6 9241else 9242 cat >conftest.$ac_ext <<_ACEOF 9243/* confdefs.h. */ 9244_ACEOF 9245cat confdefs.h >>conftest.$ac_ext 9246cat >>conftest.$ac_ext <<_ACEOF 9247/* end confdefs.h. */ 9248/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9249 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9250#define shl_load innocuous_shl_load 9251 9252/* System header to define __stub macros and hopefully few prototypes, 9253 which can conflict with char shl_load (); below. 9254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9255 <limits.h> exists even on freestanding compilers. */ 9256 9257#ifdef __STDC__ 9258# include <limits.h> 9259#else 9260# include <assert.h> 9261#endif 9262 9263#undef shl_load 9264 9265/* Override any GCC internal prototype to avoid an error. 9266 Use char because int might match the return type of a GCC 9267 builtin and then its argument prototype would still apply. */ 9268#ifdef __cplusplus 9269extern "C" 9270#endif 9271char shl_load (); 9272/* The GNU C library defines this for functions which it implements 9273 to always fail with ENOSYS. Some functions are actually named 9274 something starting with __ and the normal name is an alias. */ 9275#if defined __stub_shl_load || defined __stub___shl_load 9276choke me 9277#endif 9278 9279int 9280main () 9281{ 9282return shl_load (); 9283 ; 9284 return 0; 9285} 9286_ACEOF 9287rm -f conftest.$ac_objext conftest$ac_exeext 9288if { (ac_try="$ac_link" 9289case "(($ac_try" in 9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9291 *) ac_try_echo=$ac_try;; 9292esac 9293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9294 (eval "$ac_link") 2>conftest.er1 9295 ac_status=$? 9296 grep -v '^ *+' conftest.er1 >conftest.err 9297 rm -f conftest.er1 9298 cat conftest.err >&5 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9300 (exit $ac_status); } && { 9301 test -z "$ac_c_werror_flag" || 9302 test ! -s conftest.err 9303 } && test -s conftest$ac_exeext && 9304 $as_test_x conftest$ac_exeext; then 9305 ac_cv_func_shl_load=yes 9306else 9307 echo "$as_me: failed program was:" >&5 9308sed 's/^/| /' conftest.$ac_ext >&5 9309 9310 ac_cv_func_shl_load=no 9311fi 9312 9313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9314 conftest$ac_exeext conftest.$ac_ext 9315fi 9316{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9317echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9318if test $ac_cv_func_shl_load = yes; then 9319 lt_cv_dlopen="shl_load" 9320else 9321 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9322echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9323if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9324 echo $ECHO_N "(cached) $ECHO_C" >&6 9325else 9326 ac_check_lib_save_LIBS=$LIBS 9327LIBS="-ldld $LIBS" 9328cat >conftest.$ac_ext <<_ACEOF 9329/* confdefs.h. */ 9330_ACEOF 9331cat confdefs.h >>conftest.$ac_ext 9332cat >>conftest.$ac_ext <<_ACEOF 9333/* end confdefs.h. */ 9334 9335/* Override any GCC internal prototype to avoid an error. 9336 Use char because int might match the return type of a GCC 9337 builtin and then its argument prototype would still apply. */ 9338#ifdef __cplusplus 9339extern "C" 9340#endif 9341char shl_load (); 9342int 9343main () 9344{ 9345return shl_load (); 9346 ; 9347 return 0; 9348} 9349_ACEOF 9350rm -f conftest.$ac_objext conftest$ac_exeext 9351if { (ac_try="$ac_link" 9352case "(($ac_try" in 9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9354 *) ac_try_echo=$ac_try;; 9355esac 9356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9357 (eval "$ac_link") 2>conftest.er1 9358 ac_status=$? 9359 grep -v '^ *+' conftest.er1 >conftest.err 9360 rm -f conftest.er1 9361 cat conftest.err >&5 9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9363 (exit $ac_status); } && { 9364 test -z "$ac_c_werror_flag" || 9365 test ! -s conftest.err 9366 } && test -s conftest$ac_exeext && 9367 $as_test_x conftest$ac_exeext; then 9368 ac_cv_lib_dld_shl_load=yes 9369else 9370 echo "$as_me: failed program was:" >&5 9371sed 's/^/| /' conftest.$ac_ext >&5 9372 9373 ac_cv_lib_dld_shl_load=no 9374fi 9375 9376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9377 conftest$ac_exeext conftest.$ac_ext 9378LIBS=$ac_check_lib_save_LIBS 9379fi 9380{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9381echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9382if test $ac_cv_lib_dld_shl_load = yes; then 9383 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9384else 9385 { echo "$as_me:$LINENO: checking for dlopen" >&5 9386echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9387if test "${ac_cv_func_dlopen+set}" = set; then 9388 echo $ECHO_N "(cached) $ECHO_C" >&6 9389else 9390 cat >conftest.$ac_ext <<_ACEOF 9391/* confdefs.h. */ 9392_ACEOF 9393cat confdefs.h >>conftest.$ac_ext 9394cat >>conftest.$ac_ext <<_ACEOF 9395/* end confdefs.h. */ 9396/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9397 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9398#define dlopen innocuous_dlopen 9399 9400/* System header to define __stub macros and hopefully few prototypes, 9401 which can conflict with char dlopen (); below. 9402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9403 <limits.h> exists even on freestanding compilers. */ 9404 9405#ifdef __STDC__ 9406# include <limits.h> 9407#else 9408# include <assert.h> 9409#endif 9410 9411#undef dlopen 9412 9413/* Override any GCC internal prototype to avoid an error. 9414 Use char because int might match the return type of a GCC 9415 builtin and then its argument prototype would still apply. */ 9416#ifdef __cplusplus 9417extern "C" 9418#endif 9419char dlopen (); 9420/* The GNU C library defines this for functions which it implements 9421 to always fail with ENOSYS. Some functions are actually named 9422 something starting with __ and the normal name is an alias. */ 9423#if defined __stub_dlopen || defined __stub___dlopen 9424choke me 9425#endif 9426 9427int 9428main () 9429{ 9430return dlopen (); 9431 ; 9432 return 0; 9433} 9434_ACEOF 9435rm -f conftest.$ac_objext conftest$ac_exeext 9436if { (ac_try="$ac_link" 9437case "(($ac_try" in 9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9439 *) ac_try_echo=$ac_try;; 9440esac 9441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9442 (eval "$ac_link") 2>conftest.er1 9443 ac_status=$? 9444 grep -v '^ *+' conftest.er1 >conftest.err 9445 rm -f conftest.er1 9446 cat conftest.err >&5 9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9448 (exit $ac_status); } && { 9449 test -z "$ac_c_werror_flag" || 9450 test ! -s conftest.err 9451 } && test -s conftest$ac_exeext && 9452 $as_test_x conftest$ac_exeext; then 9453 ac_cv_func_dlopen=yes 9454else 9455 echo "$as_me: failed program was:" >&5 9456sed 's/^/| /' conftest.$ac_ext >&5 9457 9458 ac_cv_func_dlopen=no 9459fi 9460 9461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9462 conftest$ac_exeext conftest.$ac_ext 9463fi 9464{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9465echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9466if test $ac_cv_func_dlopen = yes; then 9467 lt_cv_dlopen="dlopen" 9468else 9469 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9470echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9471if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9472 echo $ECHO_N "(cached) $ECHO_C" >&6 9473else 9474 ac_check_lib_save_LIBS=$LIBS 9475LIBS="-ldl $LIBS" 9476cat >conftest.$ac_ext <<_ACEOF 9477/* confdefs.h. */ 9478_ACEOF 9479cat confdefs.h >>conftest.$ac_ext 9480cat >>conftest.$ac_ext <<_ACEOF 9481/* end confdefs.h. */ 9482 9483/* Override any GCC internal prototype to avoid an error. 9484 Use char because int might match the return type of a GCC 9485 builtin and then its argument prototype would still apply. */ 9486#ifdef __cplusplus 9487extern "C" 9488#endif 9489char dlopen (); 9490int 9491main () 9492{ 9493return dlopen (); 9494 ; 9495 return 0; 9496} 9497_ACEOF 9498rm -f conftest.$ac_objext conftest$ac_exeext 9499if { (ac_try="$ac_link" 9500case "(($ac_try" in 9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9502 *) ac_try_echo=$ac_try;; 9503esac 9504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9505 (eval "$ac_link") 2>conftest.er1 9506 ac_status=$? 9507 grep -v '^ *+' conftest.er1 >conftest.err 9508 rm -f conftest.er1 9509 cat conftest.err >&5 9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9511 (exit $ac_status); } && { 9512 test -z "$ac_c_werror_flag" || 9513 test ! -s conftest.err 9514 } && test -s conftest$ac_exeext && 9515 $as_test_x conftest$ac_exeext; then 9516 ac_cv_lib_dl_dlopen=yes 9517else 9518 echo "$as_me: failed program was:" >&5 9519sed 's/^/| /' conftest.$ac_ext >&5 9520 9521 ac_cv_lib_dl_dlopen=no 9522fi 9523 9524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9525 conftest$ac_exeext conftest.$ac_ext 9526LIBS=$ac_check_lib_save_LIBS 9527fi 9528{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9529echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9530if test $ac_cv_lib_dl_dlopen = yes; then 9531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9532else 9533 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9534echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9535if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9536 echo $ECHO_N "(cached) $ECHO_C" >&6 9537else 9538 ac_check_lib_save_LIBS=$LIBS 9539LIBS="-lsvld $LIBS" 9540cat >conftest.$ac_ext <<_ACEOF 9541/* confdefs.h. */ 9542_ACEOF 9543cat confdefs.h >>conftest.$ac_ext 9544cat >>conftest.$ac_ext <<_ACEOF 9545/* end confdefs.h. */ 9546 9547/* Override any GCC internal prototype to avoid an error. 9548 Use char because int might match the return type of a GCC 9549 builtin and then its argument prototype would still apply. */ 9550#ifdef __cplusplus 9551extern "C" 9552#endif 9553char dlopen (); 9554int 9555main () 9556{ 9557return dlopen (); 9558 ; 9559 return 0; 9560} 9561_ACEOF 9562rm -f conftest.$ac_objext conftest$ac_exeext 9563if { (ac_try="$ac_link" 9564case "(($ac_try" in 9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9566 *) ac_try_echo=$ac_try;; 9567esac 9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9569 (eval "$ac_link") 2>conftest.er1 9570 ac_status=$? 9571 grep -v '^ *+' conftest.er1 >conftest.err 9572 rm -f conftest.er1 9573 cat conftest.err >&5 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 (exit $ac_status); } && { 9576 test -z "$ac_c_werror_flag" || 9577 test ! -s conftest.err 9578 } && test -s conftest$ac_exeext && 9579 $as_test_x conftest$ac_exeext; then 9580 ac_cv_lib_svld_dlopen=yes 9581else 9582 echo "$as_me: failed program was:" >&5 9583sed 's/^/| /' conftest.$ac_ext >&5 9584 9585 ac_cv_lib_svld_dlopen=no 9586fi 9587 9588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9589 conftest$ac_exeext conftest.$ac_ext 9590LIBS=$ac_check_lib_save_LIBS 9591fi 9592{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9593echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9594if test $ac_cv_lib_svld_dlopen = yes; then 9595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9596else 9597 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9598echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9599if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9600 echo $ECHO_N "(cached) $ECHO_C" >&6 9601else 9602 ac_check_lib_save_LIBS=$LIBS 9603LIBS="-ldld $LIBS" 9604cat >conftest.$ac_ext <<_ACEOF 9605/* confdefs.h. */ 9606_ACEOF 9607cat confdefs.h >>conftest.$ac_ext 9608cat >>conftest.$ac_ext <<_ACEOF 9609/* end confdefs.h. */ 9610 9611/* Override any GCC internal prototype to avoid an error. 9612 Use char because int might match the return type of a GCC 9613 builtin and then its argument prototype would still apply. */ 9614#ifdef __cplusplus 9615extern "C" 9616#endif 9617char dld_link (); 9618int 9619main () 9620{ 9621return dld_link (); 9622 ; 9623 return 0; 9624} 9625_ACEOF 9626rm -f conftest.$ac_objext conftest$ac_exeext 9627if { (ac_try="$ac_link" 9628case "(($ac_try" in 9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9630 *) ac_try_echo=$ac_try;; 9631esac 9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9633 (eval "$ac_link") 2>conftest.er1 9634 ac_status=$? 9635 grep -v '^ *+' conftest.er1 >conftest.err 9636 rm -f conftest.er1 9637 cat conftest.err >&5 9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9639 (exit $ac_status); } && { 9640 test -z "$ac_c_werror_flag" || 9641 test ! -s conftest.err 9642 } && test -s conftest$ac_exeext && 9643 $as_test_x conftest$ac_exeext; then 9644 ac_cv_lib_dld_dld_link=yes 9645else 9646 echo "$as_me: failed program was:" >&5 9647sed 's/^/| /' conftest.$ac_ext >&5 9648 9649 ac_cv_lib_dld_dld_link=no 9650fi 9651 9652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9653 conftest$ac_exeext conftest.$ac_ext 9654LIBS=$ac_check_lib_save_LIBS 9655fi 9656{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9657echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9658if test $ac_cv_lib_dld_dld_link = yes; then 9659 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9660fi 9661 9662 9663fi 9664 9665 9666fi 9667 9668 9669fi 9670 9671 9672fi 9673 9674 9675fi 9676 9677 ;; 9678 esac 9679 9680 if test "x$lt_cv_dlopen" != xno; then 9681 enable_dlopen=yes 9682 else 9683 enable_dlopen=no 9684 fi 9685 9686 case $lt_cv_dlopen in 9687 dlopen) 9688 save_CPPFLAGS="$CPPFLAGS" 9689 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9690 9691 save_LDFLAGS="$LDFLAGS" 9692 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9693 9694 save_LIBS="$LIBS" 9695 LIBS="$lt_cv_dlopen_libs $LIBS" 9696 9697 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9698echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9699if test "${lt_cv_dlopen_self+set}" = set; then 9700 echo $ECHO_N "(cached) $ECHO_C" >&6 9701else 9702 if test "$cross_compiling" = yes; then : 9703 lt_cv_dlopen_self=cross 9704else 9705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9706 lt_status=$lt_dlunknown 9707 cat > conftest.$ac_ext <<EOF 9708#line __oline__ "configure" 9709#include "confdefs.h" 9710 9711#if HAVE_DLFCN_H 9712#include <dlfcn.h> 9713#endif 9714 9715#include <stdio.h> 9716 9717#ifdef RTLD_GLOBAL 9718# define LT_DLGLOBAL RTLD_GLOBAL 9719#else 9720# ifdef DL_GLOBAL 9721# define LT_DLGLOBAL DL_GLOBAL 9722# else 9723# define LT_DLGLOBAL 0 9724# endif 9725#endif 9726 9727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9728 find out it does not work in some platform. */ 9729#ifndef LT_DLLAZY_OR_NOW 9730# ifdef RTLD_LAZY 9731# define LT_DLLAZY_OR_NOW RTLD_LAZY 9732# else 9733# ifdef DL_LAZY 9734# define LT_DLLAZY_OR_NOW DL_LAZY 9735# else 9736# ifdef RTLD_NOW 9737# define LT_DLLAZY_OR_NOW RTLD_NOW 9738# else 9739# ifdef DL_NOW 9740# define LT_DLLAZY_OR_NOW DL_NOW 9741# else 9742# define LT_DLLAZY_OR_NOW 0 9743# endif 9744# endif 9745# endif 9746# endif 9747#endif 9748 9749#ifdef __cplusplus 9750extern "C" void exit (int); 9751#endif 9752 9753void fnord() { int i=42;} 9754int main () 9755{ 9756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9757 int status = $lt_dlunknown; 9758 9759 if (self) 9760 { 9761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9763 /* dlclose (self); */ 9764 } 9765 else 9766 puts (dlerror ()); 9767 9768 exit (status); 9769} 9770EOF 9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9772 (eval $ac_link) 2>&5 9773 ac_status=$? 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9776 (./conftest; exit; ) >&5 2>/dev/null 9777 lt_status=$? 9778 case x$lt_status in 9779 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9780 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9781 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9782 esac 9783 else : 9784 # compilation failed 9785 lt_cv_dlopen_self=no 9786 fi 9787fi 9788rm -fr conftest* 9789 9790 9791fi 9792{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9793echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9794 9795 if test "x$lt_cv_dlopen_self" = xyes; then 9796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9797 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9798echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9799if test "${lt_cv_dlopen_self_static+set}" = set; then 9800 echo $ECHO_N "(cached) $ECHO_C" >&6 9801else 9802 if test "$cross_compiling" = yes; then : 9803 lt_cv_dlopen_self_static=cross 9804else 9805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9806 lt_status=$lt_dlunknown 9807 cat > conftest.$ac_ext <<EOF 9808#line __oline__ "configure" 9809#include "confdefs.h" 9810 9811#if HAVE_DLFCN_H 9812#include <dlfcn.h> 9813#endif 9814 9815#include <stdio.h> 9816 9817#ifdef RTLD_GLOBAL 9818# define LT_DLGLOBAL RTLD_GLOBAL 9819#else 9820# ifdef DL_GLOBAL 9821# define LT_DLGLOBAL DL_GLOBAL 9822# else 9823# define LT_DLGLOBAL 0 9824# endif 9825#endif 9826 9827/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9828 find out it does not work in some platform. */ 9829#ifndef LT_DLLAZY_OR_NOW 9830# ifdef RTLD_LAZY 9831# define LT_DLLAZY_OR_NOW RTLD_LAZY 9832# else 9833# ifdef DL_LAZY 9834# define LT_DLLAZY_OR_NOW DL_LAZY 9835# else 9836# ifdef RTLD_NOW 9837# define LT_DLLAZY_OR_NOW RTLD_NOW 9838# else 9839# ifdef DL_NOW 9840# define LT_DLLAZY_OR_NOW DL_NOW 9841# else 9842# define LT_DLLAZY_OR_NOW 0 9843# endif 9844# endif 9845# endif 9846# endif 9847#endif 9848 9849#ifdef __cplusplus 9850extern "C" void exit (int); 9851#endif 9852 9853void fnord() { int i=42;} 9854int main () 9855{ 9856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9857 int status = $lt_dlunknown; 9858 9859 if (self) 9860 { 9861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9862 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9863 /* dlclose (self); */ 9864 } 9865 else 9866 puts (dlerror ()); 9867 9868 exit (status); 9869} 9870EOF 9871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9872 (eval $ac_link) 2>&5 9873 ac_status=$? 9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9875 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9876 (./conftest; exit; ) >&5 2>/dev/null 9877 lt_status=$? 9878 case x$lt_status in 9879 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9880 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9881 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9882 esac 9883 else : 9884 # compilation failed 9885 lt_cv_dlopen_self_static=no 9886 fi 9887fi 9888rm -fr conftest* 9889 9890 9891fi 9892{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9893echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9894 fi 9895 9896 CPPFLAGS="$save_CPPFLAGS" 9897 LDFLAGS="$save_LDFLAGS" 9898 LIBS="$save_LIBS" 9899 ;; 9900 esac 9901 9902 case $lt_cv_dlopen_self in 9903 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9904 *) enable_dlopen_self=unknown ;; 9905 esac 9906 9907 case $lt_cv_dlopen_self_static in 9908 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9909 *) enable_dlopen_self_static=unknown ;; 9910 esac 9911fi 9912 9913 9914# Report which library types will actually be built 9915{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9916echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9917{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9918echo "${ECHO_T}$can_build_shared" >&6; } 9919 9920{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9921echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9922test "$can_build_shared" = "no" && enable_shared=no 9923 9924# On AIX, shared libraries and static libraries use the same namespace, and 9925# are all built from PIC. 9926case $host_os in 9927aix3*) 9928 test "$enable_shared" = yes && enable_static=no 9929 if test -n "$RANLIB"; then 9930 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9931 postinstall_cmds='$RANLIB $lib' 9932 fi 9933 ;; 9934 9935aix4* | aix5*) 9936 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9937 test "$enable_shared" = yes && enable_static=no 9938 fi 9939 ;; 9940esac 9941{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9942echo "${ECHO_T}$enable_shared" >&6; } 9943 9944{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9945echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9946# Make sure either enable_shared or enable_static is yes. 9947test "$enable_shared" = yes || enable_static=yes 9948{ echo "$as_me:$LINENO: result: $enable_static" >&5 9949echo "${ECHO_T}$enable_static" >&6; } 9950 9951# The else clause should only fire when bootstrapping the 9952# libtool distribution, otherwise you forgot to ship ltmain.sh 9953# with your package, and you will get complaints that there are 9954# no rules to generate ltmain.sh. 9955if test -f "$ltmain"; then 9956 # See if we are running on zsh, and set the options which allow our commands through 9957 # without removal of \ escapes. 9958 if test -n "${ZSH_VERSION+set}" ; then 9959 setopt NO_GLOB_SUBST 9960 fi 9961 # Now quote all the things that may contain metacharacters while being 9962 # careful not to overquote the AC_SUBSTed values. We take copies of the 9963 # variables and quote the copies for generation of the libtool script. 9964 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9965 SED SHELL STRIP \ 9966 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9967 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9968 deplibs_check_method reload_flag reload_cmds need_locks \ 9969 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9970 lt_cv_sys_global_symbol_to_c_name_address \ 9971 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9972 old_postinstall_cmds old_postuninstall_cmds \ 9973 compiler \ 9974 CC \ 9975 LD \ 9976 lt_prog_compiler_wl \ 9977 lt_prog_compiler_pic \ 9978 lt_prog_compiler_static \ 9979 lt_prog_compiler_no_builtin_flag \ 9980 export_dynamic_flag_spec \ 9981 thread_safe_flag_spec \ 9982 whole_archive_flag_spec \ 9983 enable_shared_with_static_runtimes \ 9984 old_archive_cmds \ 9985 old_archive_from_new_cmds \ 9986 predep_objects \ 9987 postdep_objects \ 9988 predeps \ 9989 postdeps \ 9990 compiler_lib_search_path \ 9991 archive_cmds \ 9992 archive_expsym_cmds \ 9993 postinstall_cmds \ 9994 postuninstall_cmds \ 9995 old_archive_from_expsyms_cmds \ 9996 allow_undefined_flag \ 9997 no_undefined_flag \ 9998 export_symbols_cmds \ 9999 hardcode_libdir_flag_spec \ 10000 hardcode_libdir_flag_spec_ld \ 10001 hardcode_libdir_separator \ 10002 hardcode_automatic \ 10003 module_cmds \ 10004 module_expsym_cmds \ 10005 lt_cv_prog_compiler_c_o \ 10006 exclude_expsyms \ 10007 include_expsyms; do 10008 10009 case $var in 10010 old_archive_cmds | \ 10011 old_archive_from_new_cmds | \ 10012 archive_cmds | \ 10013 archive_expsym_cmds | \ 10014 module_cmds | \ 10015 module_expsym_cmds | \ 10016 old_archive_from_expsyms_cmds | \ 10017 export_symbols_cmds | \ 10018 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10019 postinstall_cmds | postuninstall_cmds | \ 10020 old_postinstall_cmds | old_postuninstall_cmds | \ 10021 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10022 # Double-quote double-evaled strings. 10023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10024 ;; 10025 *) 10026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10027 ;; 10028 esac 10029 done 10030 10031 case $lt_echo in 10032 *'\$0 --fallback-echo"') 10033 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10034 ;; 10035 esac 10036 10037cfgfile="${ofile}T" 10038 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10039 $rm -f "$cfgfile" 10040 { echo "$as_me:$LINENO: creating $ofile" >&5 10041echo "$as_me: creating $ofile" >&6;} 10042 10043 cat <<__EOF__ >> "$cfgfile" 10044#! $SHELL 10045 10046# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10047# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10048# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10049# 10050# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10051# Free Software Foundation, Inc. 10052# 10053# This file is part of GNU Libtool: 10054# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10055# 10056# This program is free software; you can redistribute it and/or modify 10057# it under the terms of the GNU General Public License as published by 10058# the Free Software Foundation; either version 2 of the License, or 10059# (at your option) any later version. 10060# 10061# This program is distributed in the hope that it will be useful, but 10062# WITHOUT ANY WARRANTY; without even the implied warranty of 10063# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10064# General Public License for more details. 10065# 10066# You should have received a copy of the GNU General Public License 10067# along with this program; if not, write to the Free Software 10068# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10069# 10070# As a special exception to the GNU General Public License, if you 10071# distribute this file as part of a program that contains a 10072# configuration script generated by Autoconf, you may include it under 10073# the same distribution terms that you use for the rest of that program. 10074 10075# A sed program that does not truncate output. 10076SED=$lt_SED 10077 10078# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10079Xsed="$SED -e 1s/^X//" 10080 10081# The HP-UX ksh and POSIX shell print the target directory to stdout 10082# if CDPATH is set. 10083(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10084 10085# The names of the tagged configurations supported by this script. 10086available_tags= 10087 10088# ### BEGIN LIBTOOL CONFIG 10089 10090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10091 10092# Shell to use when invoking shell scripts. 10093SHELL=$lt_SHELL 10094 10095# Whether or not to build shared libraries. 10096build_libtool_libs=$enable_shared 10097 10098# Whether or not to build static libraries. 10099build_old_libs=$enable_static 10100 10101# Whether or not to add -lc for building shared libraries. 10102build_libtool_need_lc=$archive_cmds_need_lc 10103 10104# Whether or not to disallow shared libs when runtime libs are static 10105allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10106 10107# Whether or not to optimize for fast installation. 10108fast_install=$enable_fast_install 10109 10110# The host system. 10111host_alias=$host_alias 10112host=$host 10113host_os=$host_os 10114 10115# The build system. 10116build_alias=$build_alias 10117build=$build 10118build_os=$build_os 10119 10120# An echo program that does not interpret backslashes. 10121echo=$lt_echo 10122 10123# The archiver. 10124AR=$lt_AR 10125AR_FLAGS=$lt_AR_FLAGS 10126 10127# A C compiler. 10128LTCC=$lt_LTCC 10129 10130# LTCC compiler flags. 10131LTCFLAGS=$lt_LTCFLAGS 10132 10133# A language-specific compiler. 10134CC=$lt_compiler 10135 10136# Is the compiler the GNU C compiler? 10137with_gcc=$GCC 10138 10139# An ERE matcher. 10140EGREP=$lt_EGREP 10141 10142# The linker used to build libraries. 10143LD=$lt_LD 10144 10145# Whether we need hard or soft links. 10146LN_S=$lt_LN_S 10147 10148# A BSD-compatible nm program. 10149NM=$lt_NM 10150 10151# A symbol stripping program 10152STRIP=$lt_STRIP 10153 10154# Used to examine libraries when file_magic_cmd begins "file" 10155MAGIC_CMD=$MAGIC_CMD 10156 10157# Used on cygwin: DLL creation program. 10158DLLTOOL="$DLLTOOL" 10159 10160# Used on cygwin: object dumper. 10161OBJDUMP="$OBJDUMP" 10162 10163# Used on cygwin: assembler. 10164AS="$AS" 10165 10166# The name of the directory that contains temporary libtool files. 10167objdir=$objdir 10168 10169# How to create reloadable object files. 10170reload_flag=$lt_reload_flag 10171reload_cmds=$lt_reload_cmds 10172 10173# How to pass a linker flag through the compiler. 10174wl=$lt_lt_prog_compiler_wl 10175 10176# Object file suffix (normally "o"). 10177objext="$ac_objext" 10178 10179# Old archive suffix (normally "a"). 10180libext="$libext" 10181 10182# Shared library suffix (normally ".so"). 10183shrext_cmds='$shrext_cmds' 10184 10185# Executable file suffix (normally ""). 10186exeext="$exeext" 10187 10188# Additional compiler flags for building library objects. 10189pic_flag=$lt_lt_prog_compiler_pic 10190pic_mode=$pic_mode 10191 10192# What is the maximum length of a command? 10193max_cmd_len=$lt_cv_sys_max_cmd_len 10194 10195# Does compiler simultaneously support -c and -o options? 10196compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10197 10198# Must we lock files when doing compilation? 10199need_locks=$lt_need_locks 10200 10201# Do we need the lib prefix for modules? 10202need_lib_prefix=$need_lib_prefix 10203 10204# Do we need a version for libraries? 10205need_version=$need_version 10206 10207# Whether dlopen is supported. 10208dlopen_support=$enable_dlopen 10209 10210# Whether dlopen of programs is supported. 10211dlopen_self=$enable_dlopen_self 10212 10213# Whether dlopen of statically linked programs is supported. 10214dlopen_self_static=$enable_dlopen_self_static 10215 10216# Compiler flag to prevent dynamic linking. 10217link_static_flag=$lt_lt_prog_compiler_static 10218 10219# Compiler flag to turn off builtin functions. 10220no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10221 10222# Compiler flag to allow reflexive dlopens. 10223export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10224 10225# Compiler flag to generate shared objects directly from archives. 10226whole_archive_flag_spec=$lt_whole_archive_flag_spec 10227 10228# Compiler flag to generate thread-safe objects. 10229thread_safe_flag_spec=$lt_thread_safe_flag_spec 10230 10231# Library versioning type. 10232version_type=$version_type 10233 10234# Format of library name prefix. 10235libname_spec=$lt_libname_spec 10236 10237# List of archive names. First name is the real one, the rest are links. 10238# The last name is the one that the linker finds with -lNAME. 10239library_names_spec=$lt_library_names_spec 10240 10241# The coded name of the library, if different from the real name. 10242soname_spec=$lt_soname_spec 10243 10244# Commands used to build and install an old-style archive. 10245RANLIB=$lt_RANLIB 10246old_archive_cmds=$lt_old_archive_cmds 10247old_postinstall_cmds=$lt_old_postinstall_cmds 10248old_postuninstall_cmds=$lt_old_postuninstall_cmds 10249 10250# Create an old-style archive from a shared archive. 10251old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10252 10253# Create a temporary old-style archive to link instead of a shared archive. 10254old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10255 10256# Commands used to build and install a shared archive. 10257archive_cmds=$lt_archive_cmds 10258archive_expsym_cmds=$lt_archive_expsym_cmds 10259postinstall_cmds=$lt_postinstall_cmds 10260postuninstall_cmds=$lt_postuninstall_cmds 10261 10262# Commands used to build a loadable module (assumed same as above if empty) 10263module_cmds=$lt_module_cmds 10264module_expsym_cmds=$lt_module_expsym_cmds 10265 10266# Commands to strip libraries. 10267old_striplib=$lt_old_striplib 10268striplib=$lt_striplib 10269 10270# Dependencies to place before the objects being linked to create a 10271# shared library. 10272predep_objects=$lt_predep_objects 10273 10274# Dependencies to place after the objects being linked to create a 10275# shared library. 10276postdep_objects=$lt_postdep_objects 10277 10278# Dependencies to place before the objects being linked to create a 10279# shared library. 10280predeps=$lt_predeps 10281 10282# Dependencies to place after the objects being linked to create a 10283# shared library. 10284postdeps=$lt_postdeps 10285 10286# The library search path used internally by the compiler when linking 10287# a shared library. 10288compiler_lib_search_path=$lt_compiler_lib_search_path 10289 10290# Method to check whether dependent libraries are shared objects. 10291deplibs_check_method=$lt_deplibs_check_method 10292 10293# Command to use when deplibs_check_method == file_magic. 10294file_magic_cmd=$lt_file_magic_cmd 10295 10296# Flag that allows shared libraries with undefined symbols to be built. 10297allow_undefined_flag=$lt_allow_undefined_flag 10298 10299# Flag that forces no undefined symbols. 10300no_undefined_flag=$lt_no_undefined_flag 10301 10302# Commands used to finish a libtool library installation in a directory. 10303finish_cmds=$lt_finish_cmds 10304 10305# Same as above, but a single script fragment to be evaled but not shown. 10306finish_eval=$lt_finish_eval 10307 10308# Take the output of nm and produce a listing of raw symbols and C names. 10309global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10310 10311# Transform the output of nm in a proper C declaration 10312global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10313 10314# Transform the output of nm in a C name address pair 10315global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10316 10317# This is the shared library runtime path variable. 10318runpath_var=$runpath_var 10319 10320# This is the shared library path variable. 10321shlibpath_var=$shlibpath_var 10322 10323# Is shlibpath searched before the hard-coded library search path? 10324shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10325 10326# How to hardcode a shared library path into an executable. 10327hardcode_action=$hardcode_action 10328 10329# Whether we should hardcode library paths into libraries. 10330hardcode_into_libs=$hardcode_into_libs 10331 10332# Flag to hardcode \$libdir into a binary during linking. 10333# This must work even if \$libdir does not exist. 10334hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10335 10336# If ld is used when linking, flag to hardcode \$libdir into 10337# a binary during linking. This must work even if \$libdir does 10338# not exist. 10339hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10340 10341# Whether we need a single -rpath flag with a separated argument. 10342hardcode_libdir_separator=$lt_hardcode_libdir_separator 10343 10344# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10345# resulting binary. 10346hardcode_direct=$hardcode_direct 10347 10348# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10349# resulting binary. 10350hardcode_minus_L=$hardcode_minus_L 10351 10352# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10353# the resulting binary. 10354hardcode_shlibpath_var=$hardcode_shlibpath_var 10355 10356# Set to yes if building a shared library automatically hardcodes DIR into the library 10357# and all subsequent libraries and executables linked against it. 10358hardcode_automatic=$hardcode_automatic 10359 10360# Variables whose values should be saved in libtool wrapper scripts and 10361# restored at relink time. 10362variables_saved_for_relink="$variables_saved_for_relink" 10363 10364# Whether libtool must link a program against all its dependency libraries. 10365link_all_deplibs=$link_all_deplibs 10366 10367# Compile-time system search path for libraries 10368sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10369 10370# Run-time system search path for libraries 10371sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10372 10373# Fix the shell variable \$srcfile for the compiler. 10374fix_srcfile_path="$fix_srcfile_path" 10375 10376# Set to yes if exported symbols are required. 10377always_export_symbols=$always_export_symbols 10378 10379# The commands to list exported symbols. 10380export_symbols_cmds=$lt_export_symbols_cmds 10381 10382# The commands to extract the exported symbol list from a shared archive. 10383extract_expsyms_cmds=$lt_extract_expsyms_cmds 10384 10385# Symbols that should not be listed in the preloaded symbols. 10386exclude_expsyms=$lt_exclude_expsyms 10387 10388# Symbols that must always be exported. 10389include_expsyms=$lt_include_expsyms 10390 10391# ### END LIBTOOL CONFIG 10392 10393__EOF__ 10394 10395 10396 case $host_os in 10397 aix3*) 10398 cat <<\EOF >> "$cfgfile" 10399 10400# AIX sometimes has problems with the GCC collect2 program. For some 10401# reason, if we set the COLLECT_NAMES environment variable, the problems 10402# vanish in a puff of smoke. 10403if test "X${COLLECT_NAMES+set}" != Xset; then 10404 COLLECT_NAMES= 10405 export COLLECT_NAMES 10406fi 10407EOF 10408 ;; 10409 esac 10410 10411 # We use sed instead of cat because bash on DJGPP gets confused if 10412 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10413 # text mode, it properly converts lines to CR/LF. This bash problem 10414 # is reportedly fixed, but why not run on old versions too? 10415 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10416 10417 mv -f "$cfgfile" "$ofile" || \ 10418 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10419 chmod +x "$ofile" 10420 10421else 10422 # If there is no Makefile yet, we rely on a make rule to execute 10423 # `config.status --recheck' to rerun these tests and create the 10424 # libtool script then. 10425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10426 if test -f "$ltmain_in"; then 10427 test -f Makefile && make "$ltmain" 10428 fi 10429fi 10430 10431 10432ac_ext=c 10433ac_cpp='$CPP $CPPFLAGS' 10434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10436ac_compiler_gnu=$ac_cv_c_compiler_gnu 10437 10438CC="$lt_save_CC" 10439 10440 10441# Check whether --with-tags was given. 10442if test "${with_tags+set}" = set; then 10443 withval=$with_tags; tagnames="$withval" 10444fi 10445 10446 10447if test -f "$ltmain" && test -n "$tagnames"; then 10448 if test ! -f "${ofile}"; then 10449 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10450echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10451 fi 10452 10453 if test -z "$LTCC"; then 10454 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10455 if test -z "$LTCC"; then 10456 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10457echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10458 else 10459 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10460echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10461 fi 10462 fi 10463 if test -z "$LTCFLAGS"; then 10464 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10465 fi 10466 10467 # Extract list of available tagged configurations in $ofile. 10468 # Note that this assumes the entire list is on one line. 10469 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10470 10471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10472 for tagname in $tagnames; do 10473 IFS="$lt_save_ifs" 10474 # Check whether tagname contains only valid characters 10475 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10476 "") ;; 10477 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10478echo "$as_me: error: invalid tag name: $tagname" >&2;} 10479 { (exit 1); exit 1; }; } 10480 ;; 10481 esac 10482 10483 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10484 then 10485 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10486echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10487 { (exit 1); exit 1; }; } 10488 fi 10489 10490 # Update the list of available tags. 10491 if test -n "$tagname"; then 10492 echo appending configuration tag \"$tagname\" to $ofile 10493 10494 case $tagname in 10495 CXX) 10496 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10497 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10498 (test "X$CXX" != "Xg++"))) ; then 10499 ac_ext=cpp 10500ac_cpp='$CXXCPP $CPPFLAGS' 10501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10504 10505 10506 10507 10508archive_cmds_need_lc_CXX=no 10509allow_undefined_flag_CXX= 10510always_export_symbols_CXX=no 10511archive_expsym_cmds_CXX= 10512export_dynamic_flag_spec_CXX= 10513hardcode_direct_CXX=no 10514hardcode_libdir_flag_spec_CXX= 10515hardcode_libdir_flag_spec_ld_CXX= 10516hardcode_libdir_separator_CXX= 10517hardcode_minus_L_CXX=no 10518hardcode_shlibpath_var_CXX=unsupported 10519hardcode_automatic_CXX=no 10520module_cmds_CXX= 10521module_expsym_cmds_CXX= 10522link_all_deplibs_CXX=unknown 10523old_archive_cmds_CXX=$old_archive_cmds 10524no_undefined_flag_CXX= 10525whole_archive_flag_spec_CXX= 10526enable_shared_with_static_runtimes_CXX=no 10527 10528# Dependencies to place before and after the object being linked: 10529predep_objects_CXX= 10530postdep_objects_CXX= 10531predeps_CXX= 10532postdeps_CXX= 10533compiler_lib_search_path_CXX= 10534 10535# Source file extension for C++ test sources. 10536ac_ext=cpp 10537 10538# Object file extension for compiled C++ test sources. 10539objext=o 10540objext_CXX=$objext 10541 10542# Code to be used in simple compile tests 10543lt_simple_compile_test_code="int some_variable = 0;\n" 10544 10545# Code to be used in simple link tests 10546lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10547 10548# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10549 10550# If no C compiler was specified, use CC. 10551LTCC=${LTCC-"$CC"} 10552 10553# If no C compiler flags were specified, use CFLAGS. 10554LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10555 10556# Allow CC to be a program name with arguments. 10557compiler=$CC 10558 10559 10560# save warnings/boilerplate of simple test code 10561ac_outfile=conftest.$ac_objext 10562printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10564_lt_compiler_boilerplate=`cat conftest.err` 10565$rm conftest* 10566 10567ac_outfile=conftest.$ac_objext 10568printf "$lt_simple_link_test_code" >conftest.$ac_ext 10569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10570_lt_linker_boilerplate=`cat conftest.err` 10571$rm conftest* 10572 10573 10574# Allow CC to be a program name with arguments. 10575lt_save_CC=$CC 10576lt_save_LD=$LD 10577lt_save_GCC=$GCC 10578GCC=$GXX 10579lt_save_with_gnu_ld=$with_gnu_ld 10580lt_save_path_LD=$lt_cv_path_LD 10581if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10582 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10583else 10584 $as_unset lt_cv_prog_gnu_ld 10585fi 10586if test -n "${lt_cv_path_LDCXX+set}"; then 10587 lt_cv_path_LD=$lt_cv_path_LDCXX 10588else 10589 $as_unset lt_cv_path_LD 10590fi 10591test -z "${LDCXX+set}" || LD=$LDCXX 10592CC=${CXX-"c++"} 10593compiler=$CC 10594compiler_CXX=$CC 10595for cc_temp in $compiler""; do 10596 case $cc_temp in 10597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10599 \-*) ;; 10600 *) break;; 10601 esac 10602done 10603cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10604 10605 10606# We don't want -fno-exception wen compiling C++ code, so set the 10607# no_builtin_flag separately 10608if test "$GXX" = yes; then 10609 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10610else 10611 lt_prog_compiler_no_builtin_flag_CXX= 10612fi 10613 10614if test "$GXX" = yes; then 10615 # Set up default GNU C++ configuration 10616 10617 10618# Check whether --with-gnu-ld was given. 10619if test "${with_gnu_ld+set}" = set; then 10620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10621else 10622 with_gnu_ld=no 10623fi 10624 10625ac_prog=ld 10626if test "$GCC" = yes; then 10627 # Check if gcc -print-prog-name=ld gives a path. 10628 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10629echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10630 case $host in 10631 *-*-mingw*) 10632 # gcc leaves a trailing carriage return which upsets mingw 10633 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10634 *) 10635 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10636 esac 10637 case $ac_prog in 10638 # Accept absolute paths. 10639 [\\/]* | ?:[\\/]*) 10640 re_direlt='/[^/][^/]*/\.\./' 10641 # Canonicalize the pathname of ld 10642 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10643 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10644 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10645 done 10646 test -z "$LD" && LD="$ac_prog" 10647 ;; 10648 "") 10649 # If it fails, then pretend we aren't using GCC. 10650 ac_prog=ld 10651 ;; 10652 *) 10653 # If it is relative, then search for the first ld in PATH. 10654 with_gnu_ld=unknown 10655 ;; 10656 esac 10657elif test "$with_gnu_ld" = yes; then 10658 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10659echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10660else 10661 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10662echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10663fi 10664if test "${lt_cv_path_LD+set}" = set; then 10665 echo $ECHO_N "(cached) $ECHO_C" >&6 10666else 10667 if test -z "$LD"; then 10668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10669 for ac_dir in $PATH; do 10670 IFS="$lt_save_ifs" 10671 test -z "$ac_dir" && ac_dir=. 10672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10673 lt_cv_path_LD="$ac_dir/$ac_prog" 10674 # Check to see if the program is GNU ld. I'd rather use --version, 10675 # but apparently some variants of GNU ld only accept -v. 10676 # Break only if it was the GNU/non-GNU ld that we prefer. 10677 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10678 *GNU* | *'with BFD'*) 10679 test "$with_gnu_ld" != no && break 10680 ;; 10681 *) 10682 test "$with_gnu_ld" != yes && break 10683 ;; 10684 esac 10685 fi 10686 done 10687 IFS="$lt_save_ifs" 10688else 10689 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10690fi 10691fi 10692 10693LD="$lt_cv_path_LD" 10694if test -n "$LD"; then 10695 { echo "$as_me:$LINENO: result: $LD" >&5 10696echo "${ECHO_T}$LD" >&6; } 10697else 10698 { echo "$as_me:$LINENO: result: no" >&5 10699echo "${ECHO_T}no" >&6; } 10700fi 10701test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10702echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10703 { (exit 1); exit 1; }; } 10704{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10705echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10706if test "${lt_cv_prog_gnu_ld+set}" = set; then 10707 echo $ECHO_N "(cached) $ECHO_C" >&6 10708else 10709 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10710case `$LD -v 2>&1 </dev/null` in 10711*GNU* | *'with BFD'*) 10712 lt_cv_prog_gnu_ld=yes 10713 ;; 10714*) 10715 lt_cv_prog_gnu_ld=no 10716 ;; 10717esac 10718fi 10719{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10720echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10721with_gnu_ld=$lt_cv_prog_gnu_ld 10722 10723 10724 10725 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10726 # archiving commands below assume that GNU ld is being used. 10727 if test "$with_gnu_ld" = yes; then 10728 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10729 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' 10730 10731 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10732 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10733 10734 # If archive_cmds runs LD, not CC, wlarc should be empty 10735 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10736 # investigate it a little bit more. (MM) 10737 wlarc='${wl}' 10738 10739 # ancient GNU ld didn't support --whole-archive et. al. 10740 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10741 grep 'no-whole-archive' > /dev/null; then 10742 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10743 else 10744 whole_archive_flag_spec_CXX= 10745 fi 10746 else 10747 with_gnu_ld=no 10748 wlarc= 10749 10750 # A generic and very simple default shared library creation 10751 # command for GNU C++ for the case where it uses the native 10752 # linker, instead of GNU ld. If possible, this setting should 10753 # overridden to take advantage of the native linker features on 10754 # the platform it is being used on. 10755 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10756 fi 10757 10758 # Commands to make compiler produce verbose output that lists 10759 # what "hidden" libraries, object files and flags are used when 10760 # linking a shared library. 10761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10762 10763else 10764 GXX=no 10765 with_gnu_ld=no 10766 wlarc= 10767fi 10768 10769# PORTME: fill in a description of your system's C++ link characteristics 10770{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10771echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10772ld_shlibs_CXX=yes 10773case $host_os in 10774 aix3*) 10775 # FIXME: insert proper C++ library support 10776 ld_shlibs_CXX=no 10777 ;; 10778 aix4* | aix5*) 10779 if test "$host_cpu" = ia64; then 10780 # On IA64, the linker does run time linking by default, so we don't 10781 # have to do anything special. 10782 aix_use_runtimelinking=no 10783 exp_sym_flag='-Bexport' 10784 no_entry_flag="" 10785 else 10786 aix_use_runtimelinking=no 10787 10788 # Test if we are trying to use run time linking or normal 10789 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10790 # need to do runtime linking. 10791 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10792 for ld_flag in $LDFLAGS; do 10793 case $ld_flag in 10794 *-brtl*) 10795 aix_use_runtimelinking=yes 10796 break 10797 ;; 10798 esac 10799 done 10800 ;; 10801 esac 10802 10803 exp_sym_flag='-bexport' 10804 no_entry_flag='-bnoentry' 10805 fi 10806 10807 # When large executables or shared objects are built, AIX ld can 10808 # have problems creating the table of contents. If linking a library 10809 # or program results in "error TOC overflow" add -mminimal-toc to 10810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10812 10813 archive_cmds_CXX='' 10814 hardcode_direct_CXX=yes 10815 hardcode_libdir_separator_CXX=':' 10816 link_all_deplibs_CXX=yes 10817 10818 if test "$GXX" = yes; then 10819 case $host_os in aix4.[012]|aix4.[012].*) 10820 # We only want to do this on AIX 4.2 and lower, the check 10821 # below for broken collect2 doesn't work under 4.3+ 10822 collect2name=`${CC} -print-prog-name=collect2` 10823 if test -f "$collect2name" && \ 10824 strings "$collect2name" | grep resolve_lib_name >/dev/null 10825 then 10826 # We have reworked collect2 10827 hardcode_direct_CXX=yes 10828 else 10829 # We have old collect2 10830 hardcode_direct_CXX=unsupported 10831 # It fails to find uninstalled libraries when the uninstalled 10832 # path is not listed in the libpath. Setting hardcode_minus_L 10833 # to unsupported forces relinking 10834 hardcode_minus_L_CXX=yes 10835 hardcode_libdir_flag_spec_CXX='-L$libdir' 10836 hardcode_libdir_separator_CXX= 10837 fi 10838 ;; 10839 esac 10840 shared_flag='-shared' 10841 if test "$aix_use_runtimelinking" = yes; then 10842 shared_flag="$shared_flag "'${wl}-G' 10843 fi 10844 else 10845 # not using gcc 10846 if test "$host_cpu" = ia64; then 10847 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10848 # chokes on -Wl,-G. The following line is correct: 10849 shared_flag='-G' 10850 else 10851 if test "$aix_use_runtimelinking" = yes; then 10852 shared_flag='${wl}-G' 10853 else 10854 shared_flag='${wl}-bM:SRE' 10855 fi 10856 fi 10857 fi 10858 10859 # It seems that -bexpall does not export symbols beginning with 10860 # underscore (_), so it is better to generate a list of symbols to export. 10861 always_export_symbols_CXX=yes 10862 if test "$aix_use_runtimelinking" = yes; then 10863 # Warning - without using the other runtime loading flags (-brtl), 10864 # -berok will link without error, but may produce a broken library. 10865 allow_undefined_flag_CXX='-berok' 10866 # Determine the default libpath from the value encoded in an empty executable. 10867 cat >conftest.$ac_ext <<_ACEOF 10868/* confdefs.h. */ 10869_ACEOF 10870cat confdefs.h >>conftest.$ac_ext 10871cat >>conftest.$ac_ext <<_ACEOF 10872/* end confdefs.h. */ 10873 10874int 10875main () 10876{ 10877 10878 ; 10879 return 0; 10880} 10881_ACEOF 10882rm -f conftest.$ac_objext conftest$ac_exeext 10883if { (ac_try="$ac_link" 10884case "(($ac_try" in 10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10886 *) ac_try_echo=$ac_try;; 10887esac 10888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10889 (eval "$ac_link") 2>conftest.er1 10890 ac_status=$? 10891 grep -v '^ *+' conftest.er1 >conftest.err 10892 rm -f conftest.er1 10893 cat conftest.err >&5 10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10895 (exit $ac_status); } && { 10896 test -z "$ac_cxx_werror_flag" || 10897 test ! -s conftest.err 10898 } && test -s conftest$ac_exeext && 10899 $as_test_x conftest$ac_exeext; then 10900 10901aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10902}'` 10903# Check for a 64-bit object if we didn't find anything. 10904if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10905}'`; fi 10906else 10907 echo "$as_me: failed program was:" >&5 10908sed 's/^/| /' conftest.$ac_ext >&5 10909 10910 10911fi 10912 10913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10914 conftest$ac_exeext conftest.$ac_ext 10915if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10916 10917 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10918 10919 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" 10920 else 10921 if test "$host_cpu" = ia64; then 10922 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10923 allow_undefined_flag_CXX="-z nodefs" 10924 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" 10925 else 10926 # Determine the default libpath from the value encoded in an empty executable. 10927 cat >conftest.$ac_ext <<_ACEOF 10928/* confdefs.h. */ 10929_ACEOF 10930cat confdefs.h >>conftest.$ac_ext 10931cat >>conftest.$ac_ext <<_ACEOF 10932/* end confdefs.h. */ 10933 10934int 10935main () 10936{ 10937 10938 ; 10939 return 0; 10940} 10941_ACEOF 10942rm -f conftest.$ac_objext conftest$ac_exeext 10943if { (ac_try="$ac_link" 10944case "(($ac_try" in 10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10946 *) ac_try_echo=$ac_try;; 10947esac 10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10949 (eval "$ac_link") 2>conftest.er1 10950 ac_status=$? 10951 grep -v '^ *+' conftest.er1 >conftest.err 10952 rm -f conftest.er1 10953 cat conftest.err >&5 10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10955 (exit $ac_status); } && { 10956 test -z "$ac_cxx_werror_flag" || 10957 test ! -s conftest.err 10958 } && test -s conftest$ac_exeext && 10959 $as_test_x conftest$ac_exeext; then 10960 10961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10962}'` 10963# Check for a 64-bit object if we didn't find anything. 10964if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10965}'`; fi 10966else 10967 echo "$as_me: failed program was:" >&5 10968sed 's/^/| /' conftest.$ac_ext >&5 10969 10970 10971fi 10972 10973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10974 conftest$ac_exeext conftest.$ac_ext 10975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10976 10977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10978 # Warning - without using the other run time loading flags, 10979 # -berok will link without error, but may produce a broken library. 10980 no_undefined_flag_CXX=' ${wl}-bernotok' 10981 allow_undefined_flag_CXX=' ${wl}-berok' 10982 # Exported symbols can be pulled into shared objects from archives 10983 whole_archive_flag_spec_CXX='$convenience' 10984 archive_cmds_need_lc_CXX=yes 10985 # This is similar to how AIX traditionally builds its shared libraries. 10986 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' 10987 fi 10988 fi 10989 ;; 10990 10991 beos*) 10992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10993 allow_undefined_flag_CXX=unsupported 10994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10995 # support --undefined. This deserves some investigation. FIXME 10996 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10997 else 10998 ld_shlibs_CXX=no 10999 fi 11000 ;; 11001 11002 chorus*) 11003 case $cc_basename in 11004 *) 11005 # FIXME: insert proper C++ library support 11006 ld_shlibs_CXX=no 11007 ;; 11008 esac 11009 ;; 11010 11011 cygwin* | mingw* | pw32*) 11012 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11013 # as there is no search path for DLLs. 11014 hardcode_libdir_flag_spec_CXX='-L$libdir' 11015 allow_undefined_flag_CXX=unsupported 11016 always_export_symbols_CXX=no 11017 enable_shared_with_static_runtimes_CXX=yes 11018 11019 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11020 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' 11021 # If the export-symbols file already is a .def file (1st line 11022 # is EXPORTS), use it as is; otherwise, prepend... 11023 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11024 cp $export_symbols $output_objdir/$soname.def; 11025 else 11026 echo EXPORTS > $output_objdir/$soname.def; 11027 cat $export_symbols >> $output_objdir/$soname.def; 11028 fi~ 11029 $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' 11030 else 11031 ld_shlibs_CXX=no 11032 fi 11033 ;; 11034 darwin* | rhapsody*) 11035 case $host_os in 11036 rhapsody* | darwin1.[012]) 11037 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11038 ;; 11039 *) # Darwin 1.3 on 11040 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11041 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11042 else 11043 case ${MACOSX_DEPLOYMENT_TARGET} in 11044 10.[012]) 11045 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11046 ;; 11047 10.*) 11048 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11049 ;; 11050 esac 11051 fi 11052 ;; 11053 esac 11054 archive_cmds_need_lc_CXX=no 11055 hardcode_direct_CXX=no 11056 hardcode_automatic_CXX=yes 11057 hardcode_shlibpath_var_CXX=unsupported 11058 whole_archive_flag_spec_CXX='' 11059 link_all_deplibs_CXX=yes 11060 11061 if test "$GXX" = yes ; then 11062 lt_int_apple_cc_single_mod=no 11063 output_verbose_link_cmd='echo' 11064 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11065 lt_int_apple_cc_single_mod=yes 11066 fi 11067 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11068 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11069 else 11070 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' 11071 fi 11072 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11073 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11075 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11076 else 11077 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11078 fi 11079 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}' 11080 else 11081 case $cc_basename in 11082 xlc*) 11083 output_verbose_link_cmd='echo' 11084 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11085 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11086 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11087 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11088 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}' 11089 ;; 11090 *) 11091 ld_shlibs_CXX=no 11092 ;; 11093 esac 11094 fi 11095 ;; 11096 11097 dgux*) 11098 case $cc_basename in 11099 ec++*) 11100 # FIXME: insert proper C++ library support 11101 ld_shlibs_CXX=no 11102 ;; 11103 ghcx*) 11104 # Green Hills C++ Compiler 11105 # FIXME: insert proper C++ library support 11106 ld_shlibs_CXX=no 11107 ;; 11108 *) 11109 # FIXME: insert proper C++ library support 11110 ld_shlibs_CXX=no 11111 ;; 11112 esac 11113 ;; 11114 freebsd[12]*) 11115 # C++ shared libraries reported to be fairly broken before switch to ELF 11116 ld_shlibs_CXX=no 11117 ;; 11118 freebsd-elf*) 11119 archive_cmds_need_lc_CXX=no 11120 ;; 11121 freebsd* | dragonfly*) 11122 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11123 # conventions 11124 ld_shlibs_CXX=yes 11125 ;; 11126 gnu*) 11127 ;; 11128 hpux9*) 11129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11130 hardcode_libdir_separator_CXX=: 11131 export_dynamic_flag_spec_CXX='${wl}-E' 11132 hardcode_direct_CXX=yes 11133 hardcode_minus_L_CXX=yes # Not in the search PATH, 11134 # but as the default 11135 # location of the library. 11136 11137 case $cc_basename in 11138 CC*) 11139 # FIXME: insert proper C++ library support 11140 ld_shlibs_CXX=no 11141 ;; 11142 aCC*) 11143 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' 11144 # Commands to make compiler produce verbose output that lists 11145 # what "hidden" libraries, object files and flags are used when 11146 # linking a shared library. 11147 # 11148 # There doesn't appear to be a way to prevent this compiler from 11149 # explicitly linking system object files so we need to strip them 11150 # from the output so that they don't get included in the library 11151 # dependencies. 11152 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' 11153 ;; 11154 *) 11155 if test "$GXX" = yes; then 11156 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' 11157 else 11158 # FIXME: insert proper C++ library support 11159 ld_shlibs_CXX=no 11160 fi 11161 ;; 11162 esac 11163 ;; 11164 hpux10*|hpux11*) 11165 if test $with_gnu_ld = no; then 11166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11167 hardcode_libdir_separator_CXX=: 11168 11169 case $host_cpu in 11170 hppa*64*|ia64*) 11171 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11172 ;; 11173 *) 11174 export_dynamic_flag_spec_CXX='${wl}-E' 11175 ;; 11176 esac 11177 fi 11178 case $host_cpu in 11179 hppa*64*|ia64*) 11180 hardcode_direct_CXX=no 11181 hardcode_shlibpath_var_CXX=no 11182 ;; 11183 *) 11184 hardcode_direct_CXX=yes 11185 hardcode_minus_L_CXX=yes # Not in the search PATH, 11186 # but as the default 11187 # location of the library. 11188 ;; 11189 esac 11190 11191 case $cc_basename in 11192 CC*) 11193 # FIXME: insert proper C++ library support 11194 ld_shlibs_CXX=no 11195 ;; 11196 aCC*) 11197 case $host_cpu in 11198 hppa*64*) 11199 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11200 ;; 11201 ia64*) 11202 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11203 ;; 11204 *) 11205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11206 ;; 11207 esac 11208 # Commands to make compiler produce verbose output that lists 11209 # what "hidden" libraries, object files and flags are used when 11210 # linking a shared library. 11211 # 11212 # There doesn't appear to be a way to prevent this compiler from 11213 # explicitly linking system object files so we need to strip them 11214 # from the output so that they don't get included in the library 11215 # dependencies. 11216 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' 11217 ;; 11218 *) 11219 if test "$GXX" = yes; then 11220 if test $with_gnu_ld = no; then 11221 case $host_cpu in 11222 hppa*64*) 11223 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11224 ;; 11225 ia64*) 11226 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11227 ;; 11228 *) 11229 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' 11230 ;; 11231 esac 11232 fi 11233 else 11234 # FIXME: insert proper C++ library support 11235 ld_shlibs_CXX=no 11236 fi 11237 ;; 11238 esac 11239 ;; 11240 interix3*) 11241 hardcode_direct_CXX=no 11242 hardcode_shlibpath_var_CXX=no 11243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11244 export_dynamic_flag_spec_CXX='${wl}-E' 11245 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11246 # Instead, shared libraries are loaded at an image base (0x10000000 by 11247 # default) and relocated if they conflict, which is a slow very memory 11248 # consuming and fragmenting process. To avoid this, we pick a random, 11249 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11250 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11251 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' 11252 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' 11253 ;; 11254 irix5* | irix6*) 11255 case $cc_basename in 11256 CC*) 11257 # SGI C++ 11258 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' 11259 11260 # Archives containing C++ object files must be created using 11261 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11262 # necessary to make sure instantiated templates are included 11263 # in the archive. 11264 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11265 ;; 11266 *) 11267 if test "$GXX" = yes; then 11268 if test "$with_gnu_ld" = no; then 11269 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' 11270 else 11271 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' 11272 fi 11273 fi 11274 link_all_deplibs_CXX=yes 11275 ;; 11276 esac 11277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11278 hardcode_libdir_separator_CXX=: 11279 ;; 11280 linux* | k*bsd*-gnu) 11281 case $cc_basename in 11282 KCC*) 11283 # Kuck and Associates, Inc. (KAI) C++ Compiler 11284 11285 # KCC will only create a shared library if the output file 11286 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11287 # to its proper name (with version) after linking. 11288 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' 11289 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' 11290 # Commands to make compiler produce verbose output that lists 11291 # what "hidden" libraries, object files and flags are used when 11292 # linking a shared library. 11293 # 11294 # There doesn't appear to be a way to prevent this compiler from 11295 # explicitly linking system object files so we need to strip them 11296 # from the output so that they don't get included in the library 11297 # dependencies. 11298 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' 11299 11300 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11301 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11302 11303 # Archives containing C++ object files must be created using 11304 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11305 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11306 ;; 11307 icpc*) 11308 # Intel C++ 11309 with_gnu_ld=yes 11310 # version 8.0 and above of icpc choke on multiply defined symbols 11311 # if we add $predep_objects and $postdep_objects, however 7.1 and 11312 # earlier do not add the objects themselves. 11313 case `$CC -V 2>&1` in 11314 *"Version 7."*) 11315 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11316 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' 11317 ;; 11318 *) # Version 8.0 or newer 11319 tmp_idyn= 11320 case $host_cpu in 11321 ia64*) tmp_idyn=' -i_dynamic';; 11322 esac 11323 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11324 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' 11325 ;; 11326 esac 11327 archive_cmds_need_lc_CXX=no 11328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11331 ;; 11332 pgCC*) 11333 # Portland Group C++ compiler 11334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11335 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' 11336 11337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11339 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' 11340 ;; 11341 cxx*) 11342 # Compaq C++ 11343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11344 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' 11345 11346 runpath_var=LD_RUN_PATH 11347 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11348 hardcode_libdir_separator_CXX=: 11349 11350 # Commands to make compiler produce verbose output that lists 11351 # what "hidden" libraries, object files and flags are used when 11352 # linking a shared library. 11353 # 11354 # There doesn't appear to be a way to prevent this compiler from 11355 # explicitly linking system object files so we need to strip them 11356 # from the output so that they don't get included in the library 11357 # dependencies. 11358 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' 11359 ;; 11360 esac 11361 ;; 11362 lynxos*) 11363 # FIXME: insert proper C++ library support 11364 ld_shlibs_CXX=no 11365 ;; 11366 m88k*) 11367 # FIXME: insert proper C++ library support 11368 ld_shlibs_CXX=no 11369 ;; 11370 mvs*) 11371 case $cc_basename in 11372 cxx*) 11373 # FIXME: insert proper C++ library support 11374 ld_shlibs_CXX=no 11375 ;; 11376 *) 11377 # FIXME: insert proper C++ library support 11378 ld_shlibs_CXX=no 11379 ;; 11380 esac 11381 ;; 11382 netbsd* | netbsdelf*-gnu) 11383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11384 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11385 wlarc= 11386 hardcode_libdir_flag_spec_CXX='-R$libdir' 11387 hardcode_direct_CXX=yes 11388 hardcode_shlibpath_var_CXX=no 11389 fi 11390 # Workaround some broken pre-1.5 toolchains 11391 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11392 ;; 11393 openbsd2*) 11394 # C++ shared libraries are fairly broken 11395 ld_shlibs_CXX=no 11396 ;; 11397 openbsd*) 11398 hardcode_direct_CXX=yes 11399 hardcode_shlibpath_var_CXX=no 11400 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11403 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11404 export_dynamic_flag_spec_CXX='${wl}-E' 11405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11406 fi 11407 output_verbose_link_cmd='echo' 11408 ;; 11409 osf3*) 11410 case $cc_basename in 11411 KCC*) 11412 # Kuck and Associates, Inc. (KAI) C++ Compiler 11413 11414 # KCC will only create a shared library if the output file 11415 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11416 # to its proper name (with version) after linking. 11417 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' 11418 11419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11420 hardcode_libdir_separator_CXX=: 11421 11422 # Archives containing C++ object files must be created using 11423 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11424 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11425 11426 ;; 11427 RCC*) 11428 # Rational C++ 2.4.1 11429 # FIXME: insert proper C++ library support 11430 ld_shlibs_CXX=no 11431 ;; 11432 cxx*) 11433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11434 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' 11435 11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11437 hardcode_libdir_separator_CXX=: 11438 11439 # Commands to make compiler produce verbose output that lists 11440 # what "hidden" libraries, object files and flags are used when 11441 # linking a shared library. 11442 # 11443 # There doesn't appear to be a way to prevent this compiler from 11444 # explicitly linking system object files so we need to strip them 11445 # from the output so that they don't get included in the library 11446 # dependencies. 11447 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' 11448 ;; 11449 *) 11450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11452 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' 11453 11454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11455 hardcode_libdir_separator_CXX=: 11456 11457 # Commands to make compiler produce verbose output that lists 11458 # what "hidden" libraries, object files and flags are used when 11459 # linking a shared library. 11460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11461 11462 else 11463 # FIXME: insert proper C++ library support 11464 ld_shlibs_CXX=no 11465 fi 11466 ;; 11467 esac 11468 ;; 11469 osf4* | osf5*) 11470 case $cc_basename in 11471 KCC*) 11472 # Kuck and Associates, Inc. (KAI) C++ Compiler 11473 11474 # KCC will only create a shared library if the output file 11475 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11476 # to its proper name (with version) after linking. 11477 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' 11478 11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11480 hardcode_libdir_separator_CXX=: 11481 11482 # Archives containing C++ object files must be created using 11483 # the KAI C++ compiler. 11484 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11485 ;; 11486 RCC*) 11487 # Rational C++ 2.4.1 11488 # FIXME: insert proper C++ library support 11489 ld_shlibs_CXX=no 11490 ;; 11491 cxx*) 11492 allow_undefined_flag_CXX=' -expect_unresolved \*' 11493 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' 11494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11495 echo "-hidden">> $lib.exp~ 11496 $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~ 11497 $rm $lib.exp' 11498 11499 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11500 hardcode_libdir_separator_CXX=: 11501 11502 # Commands to make compiler produce verbose output that lists 11503 # what "hidden" libraries, object files and flags are used when 11504 # linking a shared library. 11505 # 11506 # There doesn't appear to be a way to prevent this compiler from 11507 # explicitly linking system object files so we need to strip them 11508 # from the output so that they don't get included in the library 11509 # dependencies. 11510 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' 11511 ;; 11512 *) 11513 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11514 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11515 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' 11516 11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11518 hardcode_libdir_separator_CXX=: 11519 11520 # Commands to make compiler produce verbose output that lists 11521 # what "hidden" libraries, object files and flags are used when 11522 # linking a shared library. 11523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11524 11525 else 11526 # FIXME: insert proper C++ library support 11527 ld_shlibs_CXX=no 11528 fi 11529 ;; 11530 esac 11531 ;; 11532 psos*) 11533 # FIXME: insert proper C++ library support 11534 ld_shlibs_CXX=no 11535 ;; 11536 sunos4*) 11537 case $cc_basename in 11538 CC*) 11539 # Sun C++ 4.x 11540 # FIXME: insert proper C++ library support 11541 ld_shlibs_CXX=no 11542 ;; 11543 lcc*) 11544 # Lucid 11545 # FIXME: insert proper C++ library support 11546 ld_shlibs_CXX=no 11547 ;; 11548 *) 11549 # FIXME: insert proper C++ library support 11550 ld_shlibs_CXX=no 11551 ;; 11552 esac 11553 ;; 11554 solaris*) 11555 case $cc_basename in 11556 CC*) 11557 # Sun C++ 4.2, 5.x and Centerline C++ 11558 archive_cmds_need_lc_CXX=yes 11559 no_undefined_flag_CXX=' -zdefs' 11560 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11561 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11562 $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' 11563 11564 hardcode_libdir_flag_spec_CXX='-R$libdir' 11565 hardcode_shlibpath_var_CXX=no 11566 case $host_os in 11567 solaris2.[0-5] | solaris2.[0-5].*) ;; 11568 *) 11569 # The C++ compiler is used as linker so we must use $wl 11570 # flag to pass the commands to the underlying system 11571 # linker. We must also pass each convience library through 11572 # to the system linker between allextract/defaultextract. 11573 # The C++ compiler will combine linker options so we 11574 # cannot just pass the convience library names through 11575 # without $wl. 11576 # Supported since Solaris 2.6 (maybe 2.5.1?) 11577 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11578 ;; 11579 esac 11580 link_all_deplibs_CXX=yes 11581 11582 output_verbose_link_cmd='echo' 11583 11584 # Archives containing C++ object files must be created using 11585 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11586 # necessary to make sure instantiated templates are included 11587 # in the archive. 11588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11589 ;; 11590 gcx*) 11591 # Green Hills C++ Compiler 11592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11593 11594 # The C++ compiler must be used to create the archive. 11595 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11596 ;; 11597 *) 11598 # GNU C++ compiler with Solaris linker 11599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11600 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11601 if $CC --version | grep -v '^2\.7' > /dev/null; then 11602 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11603 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11604 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11605 11606 # Commands to make compiler produce verbose output that lists 11607 # what "hidden" libraries, object files and flags are used when 11608 # linking a shared library. 11609 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11610 else 11611 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11612 # platform. 11613 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11614 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11615 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11616 11617 # Commands to make compiler produce verbose output that lists 11618 # what "hidden" libraries, object files and flags are used when 11619 # linking a shared library. 11620 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11621 fi 11622 11623 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11624 fi 11625 ;; 11626 esac 11627 ;; 11628 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11629 no_undefined_flag_CXX='${wl}-z,text' 11630 archive_cmds_need_lc_CXX=no 11631 hardcode_shlibpath_var_CXX=no 11632 runpath_var='LD_RUN_PATH' 11633 11634 case $cc_basename in 11635 CC*) 11636 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11637 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11638 ;; 11639 *) 11640 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11641 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11642 ;; 11643 esac 11644 ;; 11645 sysv5* | sco3.2v5* | sco5v6*) 11646 # Note: We can NOT use -z defs as we might desire, because we do not 11647 # link with -lc, and that would cause any symbols used from libc to 11648 # always be unresolved, which means just about no library would 11649 # ever link correctly. If we're not using GNU ld we use -z text 11650 # though, which does catch some bad symbols but isn't as heavy-handed 11651 # as -z defs. 11652 # For security reasons, it is highly recommended that you always 11653 # use absolute paths for naming shared libraries, and exclude the 11654 # DT_RUNPATH tag from executables and libraries. But doing so 11655 # requires that you compile everything twice, which is a pain. 11656 # So that behaviour is only enabled if SCOABSPATH is set to a 11657 # non-empty value in the environment. Most likely only useful for 11658 # creating official distributions of packages. 11659 # This is a hack until libtool officially supports absolute path 11660 # names for shared libraries. 11661 no_undefined_flag_CXX='${wl}-z,text' 11662 allow_undefined_flag_CXX='${wl}-z,nodefs' 11663 archive_cmds_need_lc_CXX=no 11664 hardcode_shlibpath_var_CXX=no 11665 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11666 hardcode_libdir_separator_CXX=':' 11667 link_all_deplibs_CXX=yes 11668 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11669 runpath_var='LD_RUN_PATH' 11670 11671 case $cc_basename in 11672 CC*) 11673 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11674 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11675 ;; 11676 *) 11677 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11678 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11679 ;; 11680 esac 11681 ;; 11682 tandem*) 11683 case $cc_basename in 11684 NCC*) 11685 # NonStop-UX NCC 3.20 11686 # FIXME: insert proper C++ library support 11687 ld_shlibs_CXX=no 11688 ;; 11689 *) 11690 # FIXME: insert proper C++ library support 11691 ld_shlibs_CXX=no 11692 ;; 11693 esac 11694 ;; 11695 vxworks*) 11696 # FIXME: insert proper C++ library support 11697 ld_shlibs_CXX=no 11698 ;; 11699 *) 11700 # FIXME: insert proper C++ library support 11701 ld_shlibs_CXX=no 11702 ;; 11703esac 11704{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11705echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11706test "$ld_shlibs_CXX" = no && can_build_shared=no 11707 11708GCC_CXX="$GXX" 11709LD_CXX="$LD" 11710 11711 11712cat > conftest.$ac_ext <<EOF 11713class Foo 11714{ 11715public: 11716 Foo (void) { a = 0; } 11717private: 11718 int a; 11719}; 11720EOF 11721 11722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11723 (eval $ac_compile) 2>&5 11724 ac_status=$? 11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11726 (exit $ac_status); }; then 11727 # Parse the compiler output and extract the necessary 11728 # objects, libraries and library flags. 11729 11730 # Sentinel used to keep track of whether or not we are before 11731 # the conftest object file. 11732 pre_test_object_deps_done=no 11733 11734 # The `*' in the case matches for architectures that use `case' in 11735 # $output_verbose_cmd can trigger glob expansion during the loop 11736 # eval without this substitution. 11737 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11738 11739 for p in `eval $output_verbose_link_cmd`; do 11740 case $p in 11741 11742 -L* | -R* | -l*) 11743 # Some compilers place space between "-{L,R}" and the path. 11744 # Remove the space. 11745 if test $p = "-L" \ 11746 || test $p = "-R"; then 11747 prev=$p 11748 continue 11749 else 11750 prev= 11751 fi 11752 11753 if test "$pre_test_object_deps_done" = no; then 11754 case $p in 11755 -L* | -R*) 11756 # Internal compiler library paths should come after those 11757 # provided the user. The postdeps already come after the 11758 # user supplied libs so there is no need to process them. 11759 if test -z "$compiler_lib_search_path_CXX"; then 11760 compiler_lib_search_path_CXX="${prev}${p}" 11761 else 11762 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11763 fi 11764 ;; 11765 # The "-l" case would never come before the object being 11766 # linked, so don't bother handling this case. 11767 esac 11768 else 11769 if test -z "$postdeps_CXX"; then 11770 postdeps_CXX="${prev}${p}" 11771 else 11772 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11773 fi 11774 fi 11775 ;; 11776 11777 *.$objext) 11778 # This assumes that the test object file only shows up 11779 # once in the compiler output. 11780 if test "$p" = "conftest.$objext"; then 11781 pre_test_object_deps_done=yes 11782 continue 11783 fi 11784 11785 if test "$pre_test_object_deps_done" = no; then 11786 if test -z "$predep_objects_CXX"; then 11787 predep_objects_CXX="$p" 11788 else 11789 predep_objects_CXX="$predep_objects_CXX $p" 11790 fi 11791 else 11792 if test -z "$postdep_objects_CXX"; then 11793 postdep_objects_CXX="$p" 11794 else 11795 postdep_objects_CXX="$postdep_objects_CXX $p" 11796 fi 11797 fi 11798 ;; 11799 11800 *) ;; # Ignore the rest. 11801 11802 esac 11803 done 11804 11805 # Clean up. 11806 rm -f a.out a.exe 11807else 11808 echo "libtool.m4: error: problem compiling CXX test program" 11809fi 11810 11811$rm -f confest.$objext 11812 11813# PORTME: override above test on systems where it is broken 11814case $host_os in 11815interix3*) 11816 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11817 # hack all around it, let's just trust "g++" to DTRT. 11818 predep_objects_CXX= 11819 postdep_objects_CXX= 11820 postdeps_CXX= 11821 ;; 11822 11823solaris*) 11824 case $cc_basename in 11825 CC*) 11826 # Adding this requires a known-good setup of shared libraries for 11827 # Sun compiler versions before 5.6, else PIC objects from an old 11828 # archive will be linked into the output, leading to subtle bugs. 11829 postdeps_CXX='-lCstd -lCrun' 11830 ;; 11831 esac 11832 ;; 11833esac 11834 11835 11836case " $postdeps_CXX " in 11837*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11838esac 11839 11840lt_prog_compiler_wl_CXX= 11841lt_prog_compiler_pic_CXX= 11842lt_prog_compiler_static_CXX= 11843 11844{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11845echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11846 11847 # C++ specific cases for pic, static, wl, etc. 11848 if test "$GXX" = yes; then 11849 lt_prog_compiler_wl_CXX='-Wl,' 11850 lt_prog_compiler_static_CXX='-static' 11851 11852 case $host_os in 11853 aix*) 11854 # All AIX code is PIC. 11855 if test "$host_cpu" = ia64; then 11856 # AIX 5 now supports IA64 processor 11857 lt_prog_compiler_static_CXX='-Bstatic' 11858 fi 11859 ;; 11860 amigaos*) 11861 # FIXME: we need at least 68020 code to build shared libraries, but 11862 # adding the `-m68020' flag to GCC prevents building anything better, 11863 # like `-m68040'. 11864 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11865 ;; 11866 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11867 # PIC is the default for these OSes. 11868 ;; 11869 mingw* | os2* | pw32*) 11870 # This hack is so that the source file can tell whether it is being 11871 # built for inclusion in a dll (and should export symbols for example). 11872 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11873 ;; 11874 darwin* | rhapsody*) 11875 # PIC is the default on this platform 11876 # Common symbols not allowed in MH_DYLIB files 11877 lt_prog_compiler_pic_CXX='-fno-common' 11878 ;; 11879 *djgpp*) 11880 # DJGPP does not support shared libraries at all 11881 lt_prog_compiler_pic_CXX= 11882 ;; 11883 interix3*) 11884 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11885 # Instead, we relocate shared libraries at runtime. 11886 ;; 11887 sysv4*MP*) 11888 if test -d /usr/nec; then 11889 lt_prog_compiler_pic_CXX=-Kconform_pic 11890 fi 11891 ;; 11892 hpux*) 11893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11894 # not for PA HP-UX. 11895 case $host_cpu in 11896 hppa*64*|ia64*) 11897 ;; 11898 *) 11899 lt_prog_compiler_pic_CXX='-fPIC' 11900 ;; 11901 esac 11902 ;; 11903 *) 11904 lt_prog_compiler_pic_CXX='-fPIC' 11905 ;; 11906 esac 11907 else 11908 case $host_os in 11909 aix4* | aix5*) 11910 # All AIX code is PIC. 11911 if test "$host_cpu" = ia64; then 11912 # AIX 5 now supports IA64 processor 11913 lt_prog_compiler_static_CXX='-Bstatic' 11914 else 11915 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11916 fi 11917 ;; 11918 chorus*) 11919 case $cc_basename in 11920 cxch68*) 11921 # Green Hills C++ Compiler 11922 # _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" 11923 ;; 11924 esac 11925 ;; 11926 darwin*) 11927 # PIC is the default on this platform 11928 # Common symbols not allowed in MH_DYLIB files 11929 case $cc_basename in 11930 xlc*) 11931 lt_prog_compiler_pic_CXX='-qnocommon' 11932 lt_prog_compiler_wl_CXX='-Wl,' 11933 ;; 11934 esac 11935 ;; 11936 dgux*) 11937 case $cc_basename in 11938 ec++*) 11939 lt_prog_compiler_pic_CXX='-KPIC' 11940 ;; 11941 ghcx*) 11942 # Green Hills C++ Compiler 11943 lt_prog_compiler_pic_CXX='-pic' 11944 ;; 11945 *) 11946 ;; 11947 esac 11948 ;; 11949 freebsd* | dragonfly*) 11950 # FreeBSD uses GNU C++ 11951 ;; 11952 hpux9* | hpux10* | hpux11*) 11953 case $cc_basename in 11954 CC*) 11955 lt_prog_compiler_wl_CXX='-Wl,' 11956 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11957 if test "$host_cpu" != ia64; then 11958 lt_prog_compiler_pic_CXX='+Z' 11959 fi 11960 ;; 11961 aCC*) 11962 lt_prog_compiler_wl_CXX='-Wl,' 11963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11964 case $host_cpu in 11965 hppa*64*|ia64*) 11966 # +Z the default 11967 ;; 11968 *) 11969 lt_prog_compiler_pic_CXX='+Z' 11970 ;; 11971 esac 11972 ;; 11973 *) 11974 ;; 11975 esac 11976 ;; 11977 interix*) 11978 # This is c89, which is MS Visual C++ (no shared libs) 11979 # Anyone wants to do a port? 11980 ;; 11981 irix5* | irix6* | nonstopux*) 11982 case $cc_basename in 11983 CC*) 11984 lt_prog_compiler_wl_CXX='-Wl,' 11985 lt_prog_compiler_static_CXX='-non_shared' 11986 # CC pic flag -KPIC is the default. 11987 ;; 11988 *) 11989 ;; 11990 esac 11991 ;; 11992 linux* | k*bsd*-gnu) 11993 case $cc_basename in 11994 KCC*) 11995 # KAI C++ Compiler 11996 lt_prog_compiler_wl_CXX='--backend -Wl,' 11997 lt_prog_compiler_pic_CXX='-fPIC' 11998 ;; 11999 icpc* | ecpc*) 12000 # Intel C++ 12001 lt_prog_compiler_wl_CXX='-Wl,' 12002 lt_prog_compiler_pic_CXX='-KPIC' 12003 lt_prog_compiler_static_CXX='-static' 12004 ;; 12005 pgCC*) 12006 # Portland Group C++ compiler. 12007 lt_prog_compiler_wl_CXX='-Wl,' 12008 lt_prog_compiler_pic_CXX='-fpic' 12009 lt_prog_compiler_static_CXX='-Bstatic' 12010 ;; 12011 cxx*) 12012 # Compaq C++ 12013 # Make sure the PIC flag is empty. It appears that all Alpha 12014 # Linux and Compaq Tru64 Unix objects are PIC. 12015 lt_prog_compiler_pic_CXX= 12016 lt_prog_compiler_static_CXX='-non_shared' 12017 ;; 12018 *) 12019 ;; 12020 esac 12021 ;; 12022 lynxos*) 12023 ;; 12024 m88k*) 12025 ;; 12026 mvs*) 12027 case $cc_basename in 12028 cxx*) 12029 lt_prog_compiler_pic_CXX='-W c,exportall' 12030 ;; 12031 *) 12032 ;; 12033 esac 12034 ;; 12035 netbsd* | netbsdelf*-gnu) 12036 ;; 12037 osf3* | osf4* | osf5*) 12038 case $cc_basename in 12039 KCC*) 12040 lt_prog_compiler_wl_CXX='--backend -Wl,' 12041 ;; 12042 RCC*) 12043 # Rational C++ 2.4.1 12044 lt_prog_compiler_pic_CXX='-pic' 12045 ;; 12046 cxx*) 12047 # Digital/Compaq C++ 12048 lt_prog_compiler_wl_CXX='-Wl,' 12049 # Make sure the PIC flag is empty. It appears that all Alpha 12050 # Linux and Compaq Tru64 Unix objects are PIC. 12051 lt_prog_compiler_pic_CXX= 12052 lt_prog_compiler_static_CXX='-non_shared' 12053 ;; 12054 *) 12055 ;; 12056 esac 12057 ;; 12058 psos*) 12059 ;; 12060 solaris*) 12061 case $cc_basename in 12062 CC*) 12063 # Sun C++ 4.2, 5.x and Centerline C++ 12064 lt_prog_compiler_pic_CXX='-KPIC' 12065 lt_prog_compiler_static_CXX='-Bstatic' 12066 lt_prog_compiler_wl_CXX='-Qoption ld ' 12067 ;; 12068 gcx*) 12069 # Green Hills C++ Compiler 12070 lt_prog_compiler_pic_CXX='-PIC' 12071 ;; 12072 *) 12073 ;; 12074 esac 12075 ;; 12076 sunos4*) 12077 case $cc_basename in 12078 CC*) 12079 # Sun C++ 4.x 12080 lt_prog_compiler_pic_CXX='-pic' 12081 lt_prog_compiler_static_CXX='-Bstatic' 12082 ;; 12083 lcc*) 12084 # Lucid 12085 lt_prog_compiler_pic_CXX='-pic' 12086 ;; 12087 *) 12088 ;; 12089 esac 12090 ;; 12091 tandem*) 12092 case $cc_basename in 12093 NCC*) 12094 # NonStop-UX NCC 3.20 12095 lt_prog_compiler_pic_CXX='-KPIC' 12096 ;; 12097 *) 12098 ;; 12099 esac 12100 ;; 12101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12102 case $cc_basename in 12103 CC*) 12104 lt_prog_compiler_wl_CXX='-Wl,' 12105 lt_prog_compiler_pic_CXX='-KPIC' 12106 lt_prog_compiler_static_CXX='-Bstatic' 12107 ;; 12108 esac 12109 ;; 12110 vxworks*) 12111 ;; 12112 *) 12113 lt_prog_compiler_can_build_shared_CXX=no 12114 ;; 12115 esac 12116 fi 12117 12118{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12119echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12120 12121# 12122# Check to make sure the PIC flag actually works. 12123# 12124if test -n "$lt_prog_compiler_pic_CXX"; then 12125 12126{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12127echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12128if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12129 echo $ECHO_N "(cached) $ECHO_C" >&6 12130else 12131 lt_prog_compiler_pic_works_CXX=no 12132 ac_outfile=conftest.$ac_objext 12133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12134 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12135 # Insert the option either (1) after the last *FLAGS variable, or 12136 # (2) before a word containing "conftest.", or (3) at the end. 12137 # Note that $ac_compile itself does not contain backslashes and begins 12138 # with a dollar sign (not a hyphen), so the echo should work correctly. 12139 # The option is referenced via a variable to avoid confusing sed. 12140 lt_compile=`echo "$ac_compile" | $SED \ 12141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12143 -e 's:$: $lt_compiler_flag:'` 12144 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12145 (eval "$lt_compile" 2>conftest.err) 12146 ac_status=$? 12147 cat conftest.err >&5 12148 echo "$as_me:__oline__: \$? = $ac_status" >&5 12149 if (exit $ac_status) && test -s "$ac_outfile"; then 12150 # The compiler can only warn and ignore the option if not recognized 12151 # So say no if there are warnings other than the usual output. 12152 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12155 lt_prog_compiler_pic_works_CXX=yes 12156 fi 12157 fi 12158 $rm conftest* 12159 12160fi 12161{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12162echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12163 12164if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12165 case $lt_prog_compiler_pic_CXX in 12166 "" | " "*) ;; 12167 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12168 esac 12169else 12170 lt_prog_compiler_pic_CXX= 12171 lt_prog_compiler_can_build_shared_CXX=no 12172fi 12173 12174fi 12175case $host_os in 12176 # For platforms which do not support PIC, -DPIC is meaningless: 12177 *djgpp*) 12178 lt_prog_compiler_pic_CXX= 12179 ;; 12180 *) 12181 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12182 ;; 12183esac 12184 12185# 12186# Check to make sure the static flag actually works. 12187# 12188wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12189{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12190echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12191if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12192 echo $ECHO_N "(cached) $ECHO_C" >&6 12193else 12194 lt_prog_compiler_static_works_CXX=no 12195 save_LDFLAGS="$LDFLAGS" 12196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12197 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12199 # The linker can only warn and ignore the option if not recognized 12200 # So say no if there are warnings 12201 if test -s conftest.err; then 12202 # Append any errors to the config.log. 12203 cat conftest.err 1>&5 12204 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12206 if diff conftest.exp conftest.er2 >/dev/null; then 12207 lt_prog_compiler_static_works_CXX=yes 12208 fi 12209 else 12210 lt_prog_compiler_static_works_CXX=yes 12211 fi 12212 fi 12213 $rm conftest* 12214 LDFLAGS="$save_LDFLAGS" 12215 12216fi 12217{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12218echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12219 12220if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12221 : 12222else 12223 lt_prog_compiler_static_CXX= 12224fi 12225 12226 12227{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12228echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12229if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12230 echo $ECHO_N "(cached) $ECHO_C" >&6 12231else 12232 lt_cv_prog_compiler_c_o_CXX=no 12233 $rm -r conftest 2>/dev/null 12234 mkdir conftest 12235 cd conftest 12236 mkdir out 12237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12238 12239 lt_compiler_flag="-o out/conftest2.$ac_objext" 12240 # Insert the option either (1) after the last *FLAGS variable, or 12241 # (2) before a word containing "conftest.", or (3) at the end. 12242 # Note that $ac_compile itself does not contain backslashes and begins 12243 # with a dollar sign (not a hyphen), so the echo should work correctly. 12244 lt_compile=`echo "$ac_compile" | $SED \ 12245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12247 -e 's:$: $lt_compiler_flag:'` 12248 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12249 (eval "$lt_compile" 2>out/conftest.err) 12250 ac_status=$? 12251 cat out/conftest.err >&5 12252 echo "$as_me:__oline__: \$? = $ac_status" >&5 12253 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12254 then 12255 # The compiler can only warn and ignore the option if not recognized 12256 # So say no if there are warnings 12257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12260 lt_cv_prog_compiler_c_o_CXX=yes 12261 fi 12262 fi 12263 chmod u+w . 2>&5 12264 $rm conftest* 12265 # SGI C++ compiler will create directory out/ii_files/ for 12266 # template instantiation 12267 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12268 $rm out/* && rmdir out 12269 cd .. 12270 rmdir conftest 12271 $rm conftest* 12272 12273fi 12274{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12275echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12276 12277 12278hard_links="nottested" 12279if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12280 # do not overwrite the value of need_locks provided by the user 12281 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12282echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12283 hard_links=yes 12284 $rm conftest* 12285 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12286 touch conftest.a 12287 ln conftest.a conftest.b 2>&5 || hard_links=no 12288 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12289 { echo "$as_me:$LINENO: result: $hard_links" >&5 12290echo "${ECHO_T}$hard_links" >&6; } 12291 if test "$hard_links" = no; then 12292 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12293echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12294 need_locks=warn 12295 fi 12296else 12297 need_locks=no 12298fi 12299 12300{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12301echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12302 12303 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12304 case $host_os in 12305 aix4* | aix5*) 12306 # If we're using GNU nm, then we don't want the "-C" option. 12307 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12309 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' 12310 else 12311 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' 12312 fi 12313 ;; 12314 pw32*) 12315 export_symbols_cmds_CXX="$ltdll_cmds" 12316 ;; 12317 cygwin* | mingw*) 12318 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' 12319 ;; 12320 linux* | k*bsd*-gnu) 12321 link_all_deplibs_CXX=no 12322 ;; 12323 *) 12324 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12325 ;; 12326 esac 12327 12328{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12329echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12330test "$ld_shlibs_CXX" = no && can_build_shared=no 12331 12332# 12333# Do we need to explicitly link libc? 12334# 12335case "x$archive_cmds_need_lc_CXX" in 12336x|xyes) 12337 # Assume -lc should be added 12338 archive_cmds_need_lc_CXX=yes 12339 12340 if test "$enable_shared" = yes && test "$GCC" = yes; then 12341 case $archive_cmds_CXX in 12342 *'~'*) 12343 # FIXME: we may have to deal with multi-command sequences. 12344 ;; 12345 '$CC '*) 12346 # Test whether the compiler implicitly links with -lc since on some 12347 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12348 # to ld, don't add -lc before -lgcc. 12349 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12350echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12351 $rm conftest* 12352 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12353 12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12355 (eval $ac_compile) 2>&5 12356 ac_status=$? 12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12358 (exit $ac_status); } 2>conftest.err; then 12359 soname=conftest 12360 lib=conftest 12361 libobjs=conftest.$ac_objext 12362 deplibs= 12363 wl=$lt_prog_compiler_wl_CXX 12364 pic_flag=$lt_prog_compiler_pic_CXX 12365 compiler_flags=-v 12366 linker_flags=-v 12367 verstring= 12368 output_objdir=. 12369 libname=conftest 12370 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12371 allow_undefined_flag_CXX= 12372 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12373 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12374 ac_status=$? 12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12376 (exit $ac_status); } 12377 then 12378 archive_cmds_need_lc_CXX=no 12379 else 12380 archive_cmds_need_lc_CXX=yes 12381 fi 12382 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12383 else 12384 cat conftest.err 1>&5 12385 fi 12386 $rm conftest* 12387 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12388echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12389 ;; 12390 esac 12391 fi 12392 ;; 12393esac 12394 12395{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12396echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12397library_names_spec= 12398libname_spec='lib$name' 12399soname_spec= 12400shrext_cmds=".so" 12401postinstall_cmds= 12402postuninstall_cmds= 12403finish_cmds= 12404finish_eval= 12405shlibpath_var= 12406shlibpath_overrides_runpath=unknown 12407version_type=none 12408dynamic_linker="$host_os ld.so" 12409sys_lib_dlsearch_path_spec="/lib /usr/lib" 12410if test "$GCC" = yes; then 12411 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12412 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12413 # if the path contains ";" then we assume it to be the separator 12414 # otherwise default to the standard path separator (i.e. ":") - it is 12415 # assumed that no part of a normal pathname contains ";" but that should 12416 # okay in the real world where ";" in dirpaths is itself problematic. 12417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12418 else 12419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12420 fi 12421else 12422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12423fi 12424need_lib_prefix=unknown 12425hardcode_into_libs=no 12426 12427# when you set need_version to no, make sure it does not cause -set_version 12428# flags to be left without arguments 12429need_version=unknown 12430 12431case $host_os in 12432aix3*) 12433 version_type=linux 12434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12435 shlibpath_var=LIBPATH 12436 12437 # AIX 3 has no versioning support, so we append a major version to the name. 12438 soname_spec='${libname}${release}${shared_ext}$major' 12439 ;; 12440 12441aix4* | aix5*) 12442 version_type=linux 12443 need_lib_prefix=no 12444 need_version=no 12445 hardcode_into_libs=yes 12446 if test "$host_cpu" = ia64; then 12447 # AIX 5 supports IA64 12448 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12449 shlibpath_var=LD_LIBRARY_PATH 12450 else 12451 # With GCC up to 2.95.x, collect2 would create an import file 12452 # for dependence libraries. The import file would start with 12453 # the line `#! .'. This would cause the generated library to 12454 # depend on `.', always an invalid library. This was fixed in 12455 # development snapshots of GCC prior to 3.0. 12456 case $host_os in 12457 aix4 | aix4.[01] | aix4.[01].*) 12458 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12459 echo ' yes ' 12460 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12461 : 12462 else 12463 can_build_shared=no 12464 fi 12465 ;; 12466 esac 12467 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12468 # soname into executable. Probably we can add versioning support to 12469 # collect2, so additional links can be useful in future. 12470 if test "$aix_use_runtimelinking" = yes; then 12471 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12472 # instead of lib<name>.a to let people know that these are not 12473 # typical AIX shared libraries. 12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12475 else 12476 # We preserve .a as extension for shared libraries through AIX4.2 12477 # and later when we are not doing run time linking. 12478 library_names_spec='${libname}${release}.a $libname.a' 12479 soname_spec='${libname}${release}${shared_ext}$major' 12480 fi 12481 shlibpath_var=LIBPATH 12482 fi 12483 ;; 12484 12485amigaos*) 12486 library_names_spec='$libname.ixlibrary $libname.a' 12487 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12488 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' 12489 ;; 12490 12491beos*) 12492 library_names_spec='${libname}${shared_ext}' 12493 dynamic_linker="$host_os ld.so" 12494 shlibpath_var=LIBRARY_PATH 12495 ;; 12496 12497bsdi[45]*) 12498 version_type=linux 12499 need_version=no 12500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12501 soname_spec='${libname}${release}${shared_ext}$major' 12502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12503 shlibpath_var=LD_LIBRARY_PATH 12504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12506 # the default ld.so.conf also contains /usr/contrib/lib and 12507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12508 # libtool to hard-code these into programs 12509 ;; 12510 12511cygwin* | mingw* | pw32*) 12512 version_type=windows 12513 shrext_cmds=".dll" 12514 need_version=no 12515 need_lib_prefix=no 12516 12517 case $GCC,$host_os in 12518 yes,cygwin* | yes,mingw* | yes,pw32*) 12519 library_names_spec='$libname.dll.a' 12520 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12521 postinstall_cmds='base_file=`basename \${file}`~ 12522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12523 dldir=$destdir/`dirname \$dlpath`~ 12524 test -d \$dldir || mkdir -p \$dldir~ 12525 $install_prog $dir/$dlname \$dldir/$dlname~ 12526 chmod a+x \$dldir/$dlname' 12527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12528 dlpath=$dir/\$dldll~ 12529 $rm \$dlpath' 12530 shlibpath_overrides_runpath=yes 12531 12532 case $host_os in 12533 cygwin*) 12534 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12536 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12537 ;; 12538 mingw*) 12539 # MinGW DLLs use traditional 'lib' prefix 12540 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12542 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12543 # It is most probably a Windows format PATH printed by 12544 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12545 # path with ; separators, and with drive letters. We can handle the 12546 # drive letters (cygwin fileutils understands them), so leave them, 12547 # especially as we might pass files found there to a mingw objdump, 12548 # which wouldn't understand a cygwinified path. Ahh. 12549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12550 else 12551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12552 fi 12553 ;; 12554 pw32*) 12555 # pw32 DLLs use 'pw' prefix rather than 'lib' 12556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12557 ;; 12558 esac 12559 ;; 12560 12561 *) 12562 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12563 ;; 12564 esac 12565 dynamic_linker='Win32 ld.exe' 12566 # FIXME: first we should search . and the directory the executable is in 12567 shlibpath_var=PATH 12568 ;; 12569 12570darwin* | rhapsody*) 12571 dynamic_linker="$host_os dyld" 12572 version_type=darwin 12573 need_lib_prefix=no 12574 need_version=no 12575 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12576 soname_spec='${libname}${release}${major}$shared_ext' 12577 shlibpath_overrides_runpath=yes 12578 shlibpath_var=DYLD_LIBRARY_PATH 12579 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12580 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12581 if test "$GCC" = yes; then 12582 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 12583 else 12584 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12585 fi 12586 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12587 ;; 12588 12589dgux*) 12590 version_type=linux 12591 need_lib_prefix=no 12592 need_version=no 12593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12594 soname_spec='${libname}${release}${shared_ext}$major' 12595 shlibpath_var=LD_LIBRARY_PATH 12596 ;; 12597 12598freebsd1*) 12599 dynamic_linker=no 12600 ;; 12601 12602freebsd* | dragonfly*) 12603 # DragonFly does not have aout. When/if they implement a new 12604 # versioning mechanism, adjust this. 12605 if test -x /usr/bin/objformat; then 12606 objformat=`/usr/bin/objformat` 12607 else 12608 case $host_os in 12609 freebsd[123]*) objformat=aout ;; 12610 *) objformat=elf ;; 12611 esac 12612 fi 12613 version_type=freebsd-$objformat 12614 case $version_type in 12615 freebsd-elf*) 12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12617 need_version=no 12618 need_lib_prefix=no 12619 ;; 12620 freebsd-*) 12621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12622 need_version=yes 12623 ;; 12624 esac 12625 shlibpath_var=LD_LIBRARY_PATH 12626 case $host_os in 12627 freebsd2*) 12628 shlibpath_overrides_runpath=yes 12629 ;; 12630 freebsd3.[01]* | freebsdelf3.[01]*) 12631 shlibpath_overrides_runpath=yes 12632 hardcode_into_libs=yes 12633 ;; 12634 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12635 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12636 shlibpath_overrides_runpath=no 12637 hardcode_into_libs=yes 12638 ;; 12639 freebsd*) # from 4.6 on 12640 shlibpath_overrides_runpath=yes 12641 hardcode_into_libs=yes 12642 ;; 12643 esac 12644 ;; 12645 12646gnu*) 12647 version_type=linux 12648 need_lib_prefix=no 12649 need_version=no 12650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12651 soname_spec='${libname}${release}${shared_ext}$major' 12652 shlibpath_var=LD_LIBRARY_PATH 12653 hardcode_into_libs=yes 12654 ;; 12655 12656hpux9* | hpux10* | hpux11*) 12657 # Give a soname corresponding to the major version so that dld.sl refuses to 12658 # link against other versions. 12659 version_type=sunos 12660 need_lib_prefix=no 12661 need_version=no 12662 case $host_cpu in 12663 ia64*) 12664 shrext_cmds='.so' 12665 hardcode_into_libs=yes 12666 dynamic_linker="$host_os dld.so" 12667 shlibpath_var=LD_LIBRARY_PATH 12668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12670 soname_spec='${libname}${release}${shared_ext}$major' 12671 if test "X$HPUX_IA64_MODE" = X32; then 12672 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12673 else 12674 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12675 fi 12676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12677 ;; 12678 hppa*64*) 12679 shrext_cmds='.sl' 12680 hardcode_into_libs=yes 12681 dynamic_linker="$host_os dld.sl" 12682 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12685 soname_spec='${libname}${release}${shared_ext}$major' 12686 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12688 ;; 12689 *) 12690 shrext_cmds='.sl' 12691 dynamic_linker="$host_os dld.sl" 12692 shlibpath_var=SHLIB_PATH 12693 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12695 soname_spec='${libname}${release}${shared_ext}$major' 12696 ;; 12697 esac 12698 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12699 postinstall_cmds='chmod 555 $lib' 12700 ;; 12701 12702interix3*) 12703 version_type=linux 12704 need_lib_prefix=no 12705 need_version=no 12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12707 soname_spec='${libname}${release}${shared_ext}$major' 12708 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12709 shlibpath_var=LD_LIBRARY_PATH 12710 shlibpath_overrides_runpath=no 12711 hardcode_into_libs=yes 12712 ;; 12713 12714irix5* | irix6* | nonstopux*) 12715 case $host_os in 12716 nonstopux*) version_type=nonstopux ;; 12717 *) 12718 if test "$lt_cv_prog_gnu_ld" = yes; then 12719 version_type=linux 12720 else 12721 version_type=irix 12722 fi ;; 12723 esac 12724 need_lib_prefix=no 12725 need_version=no 12726 soname_spec='${libname}${release}${shared_ext}$major' 12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12728 case $host_os in 12729 irix5* | nonstopux*) 12730 libsuff= shlibsuff= 12731 ;; 12732 *) 12733 case $LD in # libtool.m4 will add one of these switches to LD 12734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12735 libsuff= shlibsuff= libmagic=32-bit;; 12736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12737 libsuff=32 shlibsuff=N32 libmagic=N32;; 12738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12739 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12740 *) libsuff= shlibsuff= libmagic=never-match;; 12741 esac 12742 ;; 12743 esac 12744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12745 shlibpath_overrides_runpath=no 12746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12748 hardcode_into_libs=yes 12749 ;; 12750 12751# No shared lib support for Linux oldld, aout, or coff. 12752linux*oldld* | linux*aout* | linux*coff*) 12753 dynamic_linker=no 12754 ;; 12755 12756# This must be Linux ELF. 12757linux* | k*bsd*-gnu) 12758 version_type=linux 12759 need_lib_prefix=no 12760 need_version=no 12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12762 soname_spec='${libname}${release}${shared_ext}$major' 12763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12764 shlibpath_var=LD_LIBRARY_PATH 12765 shlibpath_overrides_runpath=no 12766 # This implies no fast_install, which is unacceptable. 12767 # Some rework will be needed to allow for fast_install 12768 # before this can be enabled. 12769 hardcode_into_libs=yes 12770 12771 # Append ld.so.conf contents to the search path 12772 if test -f /etc/ld.so.conf; then 12773 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12775 fi 12776 12777 # We used to test for /lib/ld.so.1 and disable shared libraries on 12778 # powerpc, because MkLinux only supported shared libraries with the 12779 # GNU dynamic linker. Since this was broken with cross compilers, 12780 # most powerpc-linux boxes support dynamic linking these days and 12781 # people can always --disable-shared, the test was removed, and we 12782 # assume the GNU/Linux dynamic linker is in use. 12783 dynamic_linker='GNU/Linux ld.so' 12784 ;; 12785 12786netbsdelf*-gnu) 12787 version_type=linux 12788 need_lib_prefix=no 12789 need_version=no 12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12791 soname_spec='${libname}${release}${shared_ext}$major' 12792 shlibpath_var=LD_LIBRARY_PATH 12793 shlibpath_overrides_runpath=no 12794 hardcode_into_libs=yes 12795 dynamic_linker='NetBSD ld.elf_so' 12796 ;; 12797 12798netbsd*) 12799 version_type=sunos 12800 need_lib_prefix=no 12801 need_version=no 12802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12805 dynamic_linker='NetBSD (a.out) ld.so' 12806 else 12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12808 soname_spec='${libname}${release}${shared_ext}$major' 12809 dynamic_linker='NetBSD ld.elf_so' 12810 fi 12811 shlibpath_var=LD_LIBRARY_PATH 12812 shlibpath_overrides_runpath=yes 12813 hardcode_into_libs=yes 12814 ;; 12815 12816newsos6) 12817 version_type=linux 12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12819 shlibpath_var=LD_LIBRARY_PATH 12820 shlibpath_overrides_runpath=yes 12821 ;; 12822 12823nto-qnx*) 12824 version_type=linux 12825 need_lib_prefix=no 12826 need_version=no 12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12828 soname_spec='${libname}${release}${shared_ext}$major' 12829 shlibpath_var=LD_LIBRARY_PATH 12830 shlibpath_overrides_runpath=yes 12831 ;; 12832 12833openbsd*) 12834 version_type=sunos 12835 sys_lib_dlsearch_path_spec="/usr/lib" 12836 need_lib_prefix=no 12837 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12838 case $host_os in 12839 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12840 *) need_version=no ;; 12841 esac 12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12844 shlibpath_var=LD_LIBRARY_PATH 12845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12846 case $host_os in 12847 openbsd2.[89] | openbsd2.[89].*) 12848 shlibpath_overrides_runpath=no 12849 ;; 12850 *) 12851 shlibpath_overrides_runpath=yes 12852 ;; 12853 esac 12854 else 12855 shlibpath_overrides_runpath=yes 12856 fi 12857 ;; 12858 12859os2*) 12860 libname_spec='$name' 12861 shrext_cmds=".dll" 12862 need_lib_prefix=no 12863 library_names_spec='$libname${shared_ext} $libname.a' 12864 dynamic_linker='OS/2 ld.exe' 12865 shlibpath_var=LIBPATH 12866 ;; 12867 12868osf3* | osf4* | osf5*) 12869 version_type=osf 12870 need_lib_prefix=no 12871 need_version=no 12872 soname_spec='${libname}${release}${shared_ext}$major' 12873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12874 shlibpath_var=LD_LIBRARY_PATH 12875 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12876 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12877 ;; 12878 12879solaris*) 12880 version_type=linux 12881 need_lib_prefix=no 12882 need_version=no 12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12884 soname_spec='${libname}${release}${shared_ext}$major' 12885 shlibpath_var=LD_LIBRARY_PATH 12886 shlibpath_overrides_runpath=yes 12887 hardcode_into_libs=yes 12888 # ldd complains unless libraries are executable 12889 postinstall_cmds='chmod +x $lib' 12890 ;; 12891 12892sunos4*) 12893 version_type=sunos 12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12896 shlibpath_var=LD_LIBRARY_PATH 12897 shlibpath_overrides_runpath=yes 12898 if test "$with_gnu_ld" = yes; then 12899 need_lib_prefix=no 12900 fi 12901 need_version=yes 12902 ;; 12903 12904sysv4 | sysv4.3*) 12905 version_type=linux 12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12907 soname_spec='${libname}${release}${shared_ext}$major' 12908 shlibpath_var=LD_LIBRARY_PATH 12909 case $host_vendor in 12910 sni) 12911 shlibpath_overrides_runpath=no 12912 need_lib_prefix=no 12913 export_dynamic_flag_spec='${wl}-Blargedynsym' 12914 runpath_var=LD_RUN_PATH 12915 ;; 12916 siemens) 12917 need_lib_prefix=no 12918 ;; 12919 motorola) 12920 need_lib_prefix=no 12921 need_version=no 12922 shlibpath_overrides_runpath=no 12923 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12924 ;; 12925 esac 12926 ;; 12927 12928sysv4*MP*) 12929 if test -d /usr/nec ;then 12930 version_type=linux 12931 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12932 soname_spec='$libname${shared_ext}.$major' 12933 shlibpath_var=LD_LIBRARY_PATH 12934 fi 12935 ;; 12936 12937sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12938 version_type=freebsd-elf 12939 need_lib_prefix=no 12940 need_version=no 12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12942 soname_spec='${libname}${release}${shared_ext}$major' 12943 shlibpath_var=LD_LIBRARY_PATH 12944 hardcode_into_libs=yes 12945 if test "$with_gnu_ld" = yes; then 12946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12947 shlibpath_overrides_runpath=no 12948 else 12949 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12950 shlibpath_overrides_runpath=yes 12951 case $host_os in 12952 sco3.2v5*) 12953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12954 ;; 12955 esac 12956 fi 12957 sys_lib_dlsearch_path_spec='/usr/lib' 12958 ;; 12959 12960uts4*) 12961 version_type=linux 12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12963 soname_spec='${libname}${release}${shared_ext}$major' 12964 shlibpath_var=LD_LIBRARY_PATH 12965 ;; 12966 12967*) 12968 dynamic_linker=no 12969 ;; 12970esac 12971{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12972echo "${ECHO_T}$dynamic_linker" >&6; } 12973test "$dynamic_linker" = no && can_build_shared=no 12974 12975variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12976if test "$GCC" = yes; then 12977 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12978fi 12979 12980{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12981echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12982hardcode_action_CXX= 12983if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12984 test -n "$runpath_var_CXX" || \ 12985 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12986 12987 # We can hardcode non-existant directories. 12988 if test "$hardcode_direct_CXX" != no && 12989 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12990 # have to relink, otherwise we might link with an installed library 12991 # when we should be linking with a yet-to-be-installed one 12992 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12993 test "$hardcode_minus_L_CXX" != no; then 12994 # Linking always hardcodes the temporary library directory. 12995 hardcode_action_CXX=relink 12996 else 12997 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12998 hardcode_action_CXX=immediate 12999 fi 13000else 13001 # We cannot hardcode anything, or else we can only hardcode existing 13002 # directories. 13003 hardcode_action_CXX=unsupported 13004fi 13005{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13006echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13007 13008if test "$hardcode_action_CXX" = relink; then 13009 # Fast installation is not supported 13010 enable_fast_install=no 13011elif test "$shlibpath_overrides_runpath" = yes || 13012 test "$enable_shared" = no; then 13013 # Fast installation is not necessary 13014 enable_fast_install=needless 13015fi 13016 13017 13018# The else clause should only fire when bootstrapping the 13019# libtool distribution, otherwise you forgot to ship ltmain.sh 13020# with your package, and you will get complaints that there are 13021# no rules to generate ltmain.sh. 13022if test -f "$ltmain"; then 13023 # See if we are running on zsh, and set the options which allow our commands through 13024 # without removal of \ escapes. 13025 if test -n "${ZSH_VERSION+set}" ; then 13026 setopt NO_GLOB_SUBST 13027 fi 13028 # Now quote all the things that may contain metacharacters while being 13029 # careful not to overquote the AC_SUBSTed values. We take copies of the 13030 # variables and quote the copies for generation of the libtool script. 13031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13032 SED SHELL STRIP \ 13033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13035 deplibs_check_method reload_flag reload_cmds need_locks \ 13036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13037 lt_cv_sys_global_symbol_to_c_name_address \ 13038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13039 old_postinstall_cmds old_postuninstall_cmds \ 13040 compiler_CXX \ 13041 CC_CXX \ 13042 LD_CXX \ 13043 lt_prog_compiler_wl_CXX \ 13044 lt_prog_compiler_pic_CXX \ 13045 lt_prog_compiler_static_CXX \ 13046 lt_prog_compiler_no_builtin_flag_CXX \ 13047 export_dynamic_flag_spec_CXX \ 13048 thread_safe_flag_spec_CXX \ 13049 whole_archive_flag_spec_CXX \ 13050 enable_shared_with_static_runtimes_CXX \ 13051 old_archive_cmds_CXX \ 13052 old_archive_from_new_cmds_CXX \ 13053 predep_objects_CXX \ 13054 postdep_objects_CXX \ 13055 predeps_CXX \ 13056 postdeps_CXX \ 13057 compiler_lib_search_path_CXX \ 13058 archive_cmds_CXX \ 13059 archive_expsym_cmds_CXX \ 13060 postinstall_cmds_CXX \ 13061 postuninstall_cmds_CXX \ 13062 old_archive_from_expsyms_cmds_CXX \ 13063 allow_undefined_flag_CXX \ 13064 no_undefined_flag_CXX \ 13065 export_symbols_cmds_CXX \ 13066 hardcode_libdir_flag_spec_CXX \ 13067 hardcode_libdir_flag_spec_ld_CXX \ 13068 hardcode_libdir_separator_CXX \ 13069 hardcode_automatic_CXX \ 13070 module_cmds_CXX \ 13071 module_expsym_cmds_CXX \ 13072 lt_cv_prog_compiler_c_o_CXX \ 13073 exclude_expsyms_CXX \ 13074 include_expsyms_CXX; do 13075 13076 case $var in 13077 old_archive_cmds_CXX | \ 13078 old_archive_from_new_cmds_CXX | \ 13079 archive_cmds_CXX | \ 13080 archive_expsym_cmds_CXX | \ 13081 module_cmds_CXX | \ 13082 module_expsym_cmds_CXX | \ 13083 old_archive_from_expsyms_cmds_CXX | \ 13084 export_symbols_cmds_CXX | \ 13085 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13086 postinstall_cmds | postuninstall_cmds | \ 13087 old_postinstall_cmds | old_postuninstall_cmds | \ 13088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13089 # Double-quote double-evaled strings. 13090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13091 ;; 13092 *) 13093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13094 ;; 13095 esac 13096 done 13097 13098 case $lt_echo in 13099 *'\$0 --fallback-echo"') 13100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13101 ;; 13102 esac 13103 13104cfgfile="$ofile" 13105 13106 cat <<__EOF__ >> "$cfgfile" 13107# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13108 13109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13110 13111# Shell to use when invoking shell scripts. 13112SHELL=$lt_SHELL 13113 13114# Whether or not to build shared libraries. 13115build_libtool_libs=$enable_shared 13116 13117# Whether or not to build static libraries. 13118build_old_libs=$enable_static 13119 13120# Whether or not to add -lc for building shared libraries. 13121build_libtool_need_lc=$archive_cmds_need_lc_CXX 13122 13123# Whether or not to disallow shared libs when runtime libs are static 13124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13125 13126# Whether or not to optimize for fast installation. 13127fast_install=$enable_fast_install 13128 13129# The host system. 13130host_alias=$host_alias 13131host=$host 13132host_os=$host_os 13133 13134# The build system. 13135build_alias=$build_alias 13136build=$build 13137build_os=$build_os 13138 13139# An echo program that does not interpret backslashes. 13140echo=$lt_echo 13141 13142# The archiver. 13143AR=$lt_AR 13144AR_FLAGS=$lt_AR_FLAGS 13145 13146# A C compiler. 13147LTCC=$lt_LTCC 13148 13149# LTCC compiler flags. 13150LTCFLAGS=$lt_LTCFLAGS 13151 13152# A language-specific compiler. 13153CC=$lt_compiler_CXX 13154 13155# Is the compiler the GNU C compiler? 13156with_gcc=$GCC_CXX 13157 13158# An ERE matcher. 13159EGREP=$lt_EGREP 13160 13161# The linker used to build libraries. 13162LD=$lt_LD_CXX 13163 13164# Whether we need hard or soft links. 13165LN_S=$lt_LN_S 13166 13167# A BSD-compatible nm program. 13168NM=$lt_NM 13169 13170# A symbol stripping program 13171STRIP=$lt_STRIP 13172 13173# Used to examine libraries when file_magic_cmd begins "file" 13174MAGIC_CMD=$MAGIC_CMD 13175 13176# Used on cygwin: DLL creation program. 13177DLLTOOL="$DLLTOOL" 13178 13179# Used on cygwin: object dumper. 13180OBJDUMP="$OBJDUMP" 13181 13182# Used on cygwin: assembler. 13183AS="$AS" 13184 13185# The name of the directory that contains temporary libtool files. 13186objdir=$objdir 13187 13188# How to create reloadable object files. 13189reload_flag=$lt_reload_flag 13190reload_cmds=$lt_reload_cmds 13191 13192# How to pass a linker flag through the compiler. 13193wl=$lt_lt_prog_compiler_wl_CXX 13194 13195# Object file suffix (normally "o"). 13196objext="$ac_objext" 13197 13198# Old archive suffix (normally "a"). 13199libext="$libext" 13200 13201# Shared library suffix (normally ".so"). 13202shrext_cmds='$shrext_cmds' 13203 13204# Executable file suffix (normally ""). 13205exeext="$exeext" 13206 13207# Additional compiler flags for building library objects. 13208pic_flag=$lt_lt_prog_compiler_pic_CXX 13209pic_mode=$pic_mode 13210 13211# What is the maximum length of a command? 13212max_cmd_len=$lt_cv_sys_max_cmd_len 13213 13214# Does compiler simultaneously support -c and -o options? 13215compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13216 13217# Must we lock files when doing compilation? 13218need_locks=$lt_need_locks 13219 13220# Do we need the lib prefix for modules? 13221need_lib_prefix=$need_lib_prefix 13222 13223# Do we need a version for libraries? 13224need_version=$need_version 13225 13226# Whether dlopen is supported. 13227dlopen_support=$enable_dlopen 13228 13229# Whether dlopen of programs is supported. 13230dlopen_self=$enable_dlopen_self 13231 13232# Whether dlopen of statically linked programs is supported. 13233dlopen_self_static=$enable_dlopen_self_static 13234 13235# Compiler flag to prevent dynamic linking. 13236link_static_flag=$lt_lt_prog_compiler_static_CXX 13237 13238# Compiler flag to turn off builtin functions. 13239no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13240 13241# Compiler flag to allow reflexive dlopens. 13242export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13243 13244# Compiler flag to generate shared objects directly from archives. 13245whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13246 13247# Compiler flag to generate thread-safe objects. 13248thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13249 13250# Library versioning type. 13251version_type=$version_type 13252 13253# Format of library name prefix. 13254libname_spec=$lt_libname_spec 13255 13256# List of archive names. First name is the real one, the rest are links. 13257# The last name is the one that the linker finds with -lNAME. 13258library_names_spec=$lt_library_names_spec 13259 13260# The coded name of the library, if different from the real name. 13261soname_spec=$lt_soname_spec 13262 13263# Commands used to build and install an old-style archive. 13264RANLIB=$lt_RANLIB 13265old_archive_cmds=$lt_old_archive_cmds_CXX 13266old_postinstall_cmds=$lt_old_postinstall_cmds 13267old_postuninstall_cmds=$lt_old_postuninstall_cmds 13268 13269# Create an old-style archive from a shared archive. 13270old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13271 13272# Create a temporary old-style archive to link instead of a shared archive. 13273old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13274 13275# Commands used to build and install a shared archive. 13276archive_cmds=$lt_archive_cmds_CXX 13277archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13278postinstall_cmds=$lt_postinstall_cmds 13279postuninstall_cmds=$lt_postuninstall_cmds 13280 13281# Commands used to build a loadable module (assumed same as above if empty) 13282module_cmds=$lt_module_cmds_CXX 13283module_expsym_cmds=$lt_module_expsym_cmds_CXX 13284 13285# Commands to strip libraries. 13286old_striplib=$lt_old_striplib 13287striplib=$lt_striplib 13288 13289# Dependencies to place before the objects being linked to create a 13290# shared library. 13291predep_objects=$lt_predep_objects_CXX 13292 13293# Dependencies to place after the objects being linked to create a 13294# shared library. 13295postdep_objects=$lt_postdep_objects_CXX 13296 13297# Dependencies to place before the objects being linked to create a 13298# shared library. 13299predeps=$lt_predeps_CXX 13300 13301# Dependencies to place after the objects being linked to create a 13302# shared library. 13303postdeps=$lt_postdeps_CXX 13304 13305# The library search path used internally by the compiler when linking 13306# a shared library. 13307compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13308 13309# Method to check whether dependent libraries are shared objects. 13310deplibs_check_method=$lt_deplibs_check_method 13311 13312# Command to use when deplibs_check_method == file_magic. 13313file_magic_cmd=$lt_file_magic_cmd 13314 13315# Flag that allows shared libraries with undefined symbols to be built. 13316allow_undefined_flag=$lt_allow_undefined_flag_CXX 13317 13318# Flag that forces no undefined symbols. 13319no_undefined_flag=$lt_no_undefined_flag_CXX 13320 13321# Commands used to finish a libtool library installation in a directory. 13322finish_cmds=$lt_finish_cmds 13323 13324# Same as above, but a single script fragment to be evaled but not shown. 13325finish_eval=$lt_finish_eval 13326 13327# Take the output of nm and produce a listing of raw symbols and C names. 13328global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13329 13330# Transform the output of nm in a proper C declaration 13331global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13332 13333# Transform the output of nm in a C name address pair 13334global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13335 13336# This is the shared library runtime path variable. 13337runpath_var=$runpath_var 13338 13339# This is the shared library path variable. 13340shlibpath_var=$shlibpath_var 13341 13342# Is shlibpath searched before the hard-coded library search path? 13343shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13344 13345# How to hardcode a shared library path into an executable. 13346hardcode_action=$hardcode_action_CXX 13347 13348# Whether we should hardcode library paths into libraries. 13349hardcode_into_libs=$hardcode_into_libs 13350 13351# Flag to hardcode \$libdir into a binary during linking. 13352# This must work even if \$libdir does not exist. 13353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13354 13355# If ld is used when linking, flag to hardcode \$libdir into 13356# a binary during linking. This must work even if \$libdir does 13357# not exist. 13358hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13359 13360# Whether we need a single -rpath flag with a separated argument. 13361hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13362 13363# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13364# resulting binary. 13365hardcode_direct=$hardcode_direct_CXX 13366 13367# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13368# resulting binary. 13369hardcode_minus_L=$hardcode_minus_L_CXX 13370 13371# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13372# the resulting binary. 13373hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13374 13375# Set to yes if building a shared library automatically hardcodes DIR into the library 13376# and all subsequent libraries and executables linked against it. 13377hardcode_automatic=$hardcode_automatic_CXX 13378 13379# Variables whose values should be saved in libtool wrapper scripts and 13380# restored at relink time. 13381variables_saved_for_relink="$variables_saved_for_relink" 13382 13383# Whether libtool must link a program against all its dependency libraries. 13384link_all_deplibs=$link_all_deplibs_CXX 13385 13386# Compile-time system search path for libraries 13387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13388 13389# Run-time system search path for libraries 13390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13391 13392# Fix the shell variable \$srcfile for the compiler. 13393fix_srcfile_path="$fix_srcfile_path_CXX" 13394 13395# Set to yes if exported symbols are required. 13396always_export_symbols=$always_export_symbols_CXX 13397 13398# The commands to list exported symbols. 13399export_symbols_cmds=$lt_export_symbols_cmds_CXX 13400 13401# The commands to extract the exported symbol list from a shared archive. 13402extract_expsyms_cmds=$lt_extract_expsyms_cmds 13403 13404# Symbols that should not be listed in the preloaded symbols. 13405exclude_expsyms=$lt_exclude_expsyms_CXX 13406 13407# Symbols that must always be exported. 13408include_expsyms=$lt_include_expsyms_CXX 13409 13410# ### END LIBTOOL TAG CONFIG: $tagname 13411 13412__EOF__ 13413 13414 13415else 13416 # If there is no Makefile yet, we rely on a make rule to execute 13417 # `config.status --recheck' to rerun these tests and create the 13418 # libtool script then. 13419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13420 if test -f "$ltmain_in"; then 13421 test -f Makefile && make "$ltmain" 13422 fi 13423fi 13424 13425 13426ac_ext=c 13427ac_cpp='$CPP $CPPFLAGS' 13428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13430ac_compiler_gnu=$ac_cv_c_compiler_gnu 13431 13432CC=$lt_save_CC 13433LDCXX=$LD 13434LD=$lt_save_LD 13435GCC=$lt_save_GCC 13436with_gnu_ldcxx=$with_gnu_ld 13437with_gnu_ld=$lt_save_with_gnu_ld 13438lt_cv_path_LDCXX=$lt_cv_path_LD 13439lt_cv_path_LD=$lt_save_path_LD 13440lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13441lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13442 13443 else 13444 tagname="" 13445 fi 13446 ;; 13447 13448 F77) 13449 if test -n "$F77" && test "X$F77" != "Xno"; then 13450 13451ac_ext=f 13452ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13453ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13454ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13455 13456 13457archive_cmds_need_lc_F77=no 13458allow_undefined_flag_F77= 13459always_export_symbols_F77=no 13460archive_expsym_cmds_F77= 13461export_dynamic_flag_spec_F77= 13462hardcode_direct_F77=no 13463hardcode_libdir_flag_spec_F77= 13464hardcode_libdir_flag_spec_ld_F77= 13465hardcode_libdir_separator_F77= 13466hardcode_minus_L_F77=no 13467hardcode_automatic_F77=no 13468module_cmds_F77= 13469module_expsym_cmds_F77= 13470link_all_deplibs_F77=unknown 13471old_archive_cmds_F77=$old_archive_cmds 13472no_undefined_flag_F77= 13473whole_archive_flag_spec_F77= 13474enable_shared_with_static_runtimes_F77=no 13475 13476# Source file extension for f77 test sources. 13477ac_ext=f 13478 13479# Object file extension for compiled f77 test sources. 13480objext=o 13481objext_F77=$objext 13482 13483# Code to be used in simple compile tests 13484lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13485 13486# Code to be used in simple link tests 13487lt_simple_link_test_code=" program t\n end\n" 13488 13489# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13490 13491# If no C compiler was specified, use CC. 13492LTCC=${LTCC-"$CC"} 13493 13494# If no C compiler flags were specified, use CFLAGS. 13495LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13496 13497# Allow CC to be a program name with arguments. 13498compiler=$CC 13499 13500 13501# save warnings/boilerplate of simple test code 13502ac_outfile=conftest.$ac_objext 13503printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13505_lt_compiler_boilerplate=`cat conftest.err` 13506$rm conftest* 13507 13508ac_outfile=conftest.$ac_objext 13509printf "$lt_simple_link_test_code" >conftest.$ac_ext 13510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13511_lt_linker_boilerplate=`cat conftest.err` 13512$rm conftest* 13513 13514 13515# Allow CC to be a program name with arguments. 13516lt_save_CC="$CC" 13517CC=${F77-"f77"} 13518compiler=$CC 13519compiler_F77=$CC 13520for cc_temp in $compiler""; do 13521 case $cc_temp in 13522 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13523 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13524 \-*) ;; 13525 *) break;; 13526 esac 13527done 13528cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13529 13530 13531{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13532echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13533{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13534echo "${ECHO_T}$can_build_shared" >&6; } 13535 13536{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13537echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13538test "$can_build_shared" = "no" && enable_shared=no 13539 13540# On AIX, shared libraries and static libraries use the same namespace, and 13541# are all built from PIC. 13542case $host_os in 13543aix3*) 13544 test "$enable_shared" = yes && enable_static=no 13545 if test -n "$RANLIB"; then 13546 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13547 postinstall_cmds='$RANLIB $lib' 13548 fi 13549 ;; 13550aix4* | aix5*) 13551 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13552 test "$enable_shared" = yes && enable_static=no 13553 fi 13554 ;; 13555esac 13556{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13557echo "${ECHO_T}$enable_shared" >&6; } 13558 13559{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13560echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13561# Make sure either enable_shared or enable_static is yes. 13562test "$enable_shared" = yes || enable_static=yes 13563{ echo "$as_me:$LINENO: result: $enable_static" >&5 13564echo "${ECHO_T}$enable_static" >&6; } 13565 13566GCC_F77="$G77" 13567LD_F77="$LD" 13568 13569lt_prog_compiler_wl_F77= 13570lt_prog_compiler_pic_F77= 13571lt_prog_compiler_static_F77= 13572 13573{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13574echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13575 13576 if test "$GCC" = yes; then 13577 lt_prog_compiler_wl_F77='-Wl,' 13578 lt_prog_compiler_static_F77='-static' 13579 13580 case $host_os in 13581 aix*) 13582 # All AIX code is PIC. 13583 if test "$host_cpu" = ia64; then 13584 # AIX 5 now supports IA64 processor 13585 lt_prog_compiler_static_F77='-Bstatic' 13586 fi 13587 ;; 13588 13589 amigaos*) 13590 # FIXME: we need at least 68020 code to build shared libraries, but 13591 # adding the `-m68020' flag to GCC prevents building anything better, 13592 # like `-m68040'. 13593 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13594 ;; 13595 13596 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13597 # PIC is the default for these OSes. 13598 ;; 13599 13600 mingw* | pw32* | os2*) 13601 # This hack is so that the source file can tell whether it is being 13602 # built for inclusion in a dll (and should export symbols for example). 13603 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13604 ;; 13605 13606 darwin* | rhapsody*) 13607 # PIC is the default on this platform 13608 # Common symbols not allowed in MH_DYLIB files 13609 lt_prog_compiler_pic_F77='-fno-common' 13610 ;; 13611 13612 interix3*) 13613 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13614 # Instead, we relocate shared libraries at runtime. 13615 ;; 13616 13617 msdosdjgpp*) 13618 # Just because we use GCC doesn't mean we suddenly get shared libraries 13619 # on systems that don't support them. 13620 lt_prog_compiler_can_build_shared_F77=no 13621 enable_shared=no 13622 ;; 13623 13624 sysv4*MP*) 13625 if test -d /usr/nec; then 13626 lt_prog_compiler_pic_F77=-Kconform_pic 13627 fi 13628 ;; 13629 13630 hpux*) 13631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13632 # not for PA HP-UX. 13633 case $host_cpu in 13634 hppa*64*|ia64*) 13635 # +Z the default 13636 ;; 13637 *) 13638 lt_prog_compiler_pic_F77='-fPIC' 13639 ;; 13640 esac 13641 ;; 13642 13643 *) 13644 lt_prog_compiler_pic_F77='-fPIC' 13645 ;; 13646 esac 13647 else 13648 # PORTME Check for flag to pass linker flags through the system compiler. 13649 case $host_os in 13650 aix*) 13651 lt_prog_compiler_wl_F77='-Wl,' 13652 if test "$host_cpu" = ia64; then 13653 # AIX 5 now supports IA64 processor 13654 lt_prog_compiler_static_F77='-Bstatic' 13655 else 13656 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13657 fi 13658 ;; 13659 darwin*) 13660 # PIC is the default on this platform 13661 # Common symbols not allowed in MH_DYLIB files 13662 case $cc_basename in 13663 xlc*) 13664 lt_prog_compiler_pic_F77='-qnocommon' 13665 lt_prog_compiler_wl_F77='-Wl,' 13666 ;; 13667 esac 13668 ;; 13669 13670 mingw* | pw32* | os2*) 13671 # This hack is so that the source file can tell whether it is being 13672 # built for inclusion in a dll (and should export symbols for example). 13673 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13674 ;; 13675 13676 hpux9* | hpux10* | hpux11*) 13677 lt_prog_compiler_wl_F77='-Wl,' 13678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13679 # not for PA HP-UX. 13680 case $host_cpu in 13681 hppa*64*|ia64*) 13682 # +Z the default 13683 ;; 13684 *) 13685 lt_prog_compiler_pic_F77='+Z' 13686 ;; 13687 esac 13688 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13689 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13690 ;; 13691 13692 irix5* | irix6* | nonstopux*) 13693 lt_prog_compiler_wl_F77='-Wl,' 13694 # PIC (with -KPIC) is the default. 13695 lt_prog_compiler_static_F77='-non_shared' 13696 ;; 13697 13698 newsos6) 13699 lt_prog_compiler_pic_F77='-KPIC' 13700 lt_prog_compiler_static_F77='-Bstatic' 13701 ;; 13702 13703 linux* | k*bsd*-gnu) 13704 case $cc_basename in 13705 icc* | ecc*) 13706 lt_prog_compiler_wl_F77='-Wl,' 13707 lt_prog_compiler_pic_F77='-KPIC' 13708 lt_prog_compiler_static_F77='-static' 13709 ;; 13710 pgcc* | pgf77* | pgf90* | pgf95*) 13711 # Portland Group compilers (*not* the Pentium gcc compiler, 13712 # which looks to be a dead project) 13713 lt_prog_compiler_wl_F77='-Wl,' 13714 lt_prog_compiler_pic_F77='-fpic' 13715 lt_prog_compiler_static_F77='-Bstatic' 13716 ;; 13717 ccc*) 13718 lt_prog_compiler_wl_F77='-Wl,' 13719 # All Alpha code is PIC. 13720 lt_prog_compiler_static_F77='-non_shared' 13721 ;; 13722 esac 13723 ;; 13724 13725 osf3* | osf4* | osf5*) 13726 lt_prog_compiler_wl_F77='-Wl,' 13727 # All OSF/1 code is PIC. 13728 lt_prog_compiler_static_F77='-non_shared' 13729 ;; 13730 13731 solaris*) 13732 lt_prog_compiler_pic_F77='-KPIC' 13733 lt_prog_compiler_static_F77='-Bstatic' 13734 case $cc_basename in 13735 f77* | f90* | f95*) 13736 lt_prog_compiler_wl_F77='-Qoption ld ';; 13737 *) 13738 lt_prog_compiler_wl_F77='-Wl,';; 13739 esac 13740 ;; 13741 13742 sunos4*) 13743 lt_prog_compiler_wl_F77='-Qoption ld ' 13744 lt_prog_compiler_pic_F77='-PIC' 13745 lt_prog_compiler_static_F77='-Bstatic' 13746 ;; 13747 13748 sysv4 | sysv4.2uw2* | sysv4.3*) 13749 lt_prog_compiler_wl_F77='-Wl,' 13750 lt_prog_compiler_pic_F77='-KPIC' 13751 lt_prog_compiler_static_F77='-Bstatic' 13752 ;; 13753 13754 sysv4*MP*) 13755 if test -d /usr/nec ;then 13756 lt_prog_compiler_pic_F77='-Kconform_pic' 13757 lt_prog_compiler_static_F77='-Bstatic' 13758 fi 13759 ;; 13760 13761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13762 lt_prog_compiler_wl_F77='-Wl,' 13763 lt_prog_compiler_pic_F77='-KPIC' 13764 lt_prog_compiler_static_F77='-Bstatic' 13765 ;; 13766 13767 unicos*) 13768 lt_prog_compiler_wl_F77='-Wl,' 13769 lt_prog_compiler_can_build_shared_F77=no 13770 ;; 13771 13772 uts4*) 13773 lt_prog_compiler_pic_F77='-pic' 13774 lt_prog_compiler_static_F77='-Bstatic' 13775 ;; 13776 13777 *) 13778 lt_prog_compiler_can_build_shared_F77=no 13779 ;; 13780 esac 13781 fi 13782 13783{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13784echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13785 13786# 13787# Check to make sure the PIC flag actually works. 13788# 13789if test -n "$lt_prog_compiler_pic_F77"; then 13790 13791{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13792echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13793if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13794 echo $ECHO_N "(cached) $ECHO_C" >&6 13795else 13796 lt_prog_compiler_pic_works_F77=no 13797 ac_outfile=conftest.$ac_objext 13798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13799 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13800 # Insert the option either (1) after the last *FLAGS variable, or 13801 # (2) before a word containing "conftest.", or (3) at the end. 13802 # Note that $ac_compile itself does not contain backslashes and begins 13803 # with a dollar sign (not a hyphen), so the echo should work correctly. 13804 # The option is referenced via a variable to avoid confusing sed. 13805 lt_compile=`echo "$ac_compile" | $SED \ 13806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13808 -e 's:$: $lt_compiler_flag:'` 13809 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13810 (eval "$lt_compile" 2>conftest.err) 13811 ac_status=$? 13812 cat conftest.err >&5 13813 echo "$as_me:__oline__: \$? = $ac_status" >&5 13814 if (exit $ac_status) && test -s "$ac_outfile"; then 13815 # The compiler can only warn and ignore the option if not recognized 13816 # So say no if there are warnings other than the usual output. 13817 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13819 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13820 lt_prog_compiler_pic_works_F77=yes 13821 fi 13822 fi 13823 $rm conftest* 13824 13825fi 13826{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13827echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13828 13829if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13830 case $lt_prog_compiler_pic_F77 in 13831 "" | " "*) ;; 13832 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13833 esac 13834else 13835 lt_prog_compiler_pic_F77= 13836 lt_prog_compiler_can_build_shared_F77=no 13837fi 13838 13839fi 13840case $host_os in 13841 # For platforms which do not support PIC, -DPIC is meaningless: 13842 *djgpp*) 13843 lt_prog_compiler_pic_F77= 13844 ;; 13845 *) 13846 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13847 ;; 13848esac 13849 13850# 13851# Check to make sure the static flag actually works. 13852# 13853wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13854{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13855echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13856if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13857 echo $ECHO_N "(cached) $ECHO_C" >&6 13858else 13859 lt_prog_compiler_static_works_F77=no 13860 save_LDFLAGS="$LDFLAGS" 13861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13862 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13864 # The linker can only warn and ignore the option if not recognized 13865 # So say no if there are warnings 13866 if test -s conftest.err; then 13867 # Append any errors to the config.log. 13868 cat conftest.err 1>&5 13869 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13871 if diff conftest.exp conftest.er2 >/dev/null; then 13872 lt_prog_compiler_static_works_F77=yes 13873 fi 13874 else 13875 lt_prog_compiler_static_works_F77=yes 13876 fi 13877 fi 13878 $rm conftest* 13879 LDFLAGS="$save_LDFLAGS" 13880 13881fi 13882{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13883echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13884 13885if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13886 : 13887else 13888 lt_prog_compiler_static_F77= 13889fi 13890 13891 13892{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13893echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13894if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13895 echo $ECHO_N "(cached) $ECHO_C" >&6 13896else 13897 lt_cv_prog_compiler_c_o_F77=no 13898 $rm -r conftest 2>/dev/null 13899 mkdir conftest 13900 cd conftest 13901 mkdir out 13902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13903 13904 lt_compiler_flag="-o out/conftest2.$ac_objext" 13905 # Insert the option either (1) after the last *FLAGS variable, or 13906 # (2) before a word containing "conftest.", or (3) at the end. 13907 # Note that $ac_compile itself does not contain backslashes and begins 13908 # with a dollar sign (not a hyphen), so the echo should work correctly. 13909 lt_compile=`echo "$ac_compile" | $SED \ 13910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13912 -e 's:$: $lt_compiler_flag:'` 13913 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13914 (eval "$lt_compile" 2>out/conftest.err) 13915 ac_status=$? 13916 cat out/conftest.err >&5 13917 echo "$as_me:__oline__: \$? = $ac_status" >&5 13918 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13919 then 13920 # The compiler can only warn and ignore the option if not recognized 13921 # So say no if there are warnings 13922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13925 lt_cv_prog_compiler_c_o_F77=yes 13926 fi 13927 fi 13928 chmod u+w . 2>&5 13929 $rm conftest* 13930 # SGI C++ compiler will create directory out/ii_files/ for 13931 # template instantiation 13932 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13933 $rm out/* && rmdir out 13934 cd .. 13935 rmdir conftest 13936 $rm conftest* 13937 13938fi 13939{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13940echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13941 13942 13943hard_links="nottested" 13944if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13945 # do not overwrite the value of need_locks provided by the user 13946 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13947echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13948 hard_links=yes 13949 $rm conftest* 13950 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13951 touch conftest.a 13952 ln conftest.a conftest.b 2>&5 || hard_links=no 13953 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13954 { echo "$as_me:$LINENO: result: $hard_links" >&5 13955echo "${ECHO_T}$hard_links" >&6; } 13956 if test "$hard_links" = no; then 13957 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13958echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13959 need_locks=warn 13960 fi 13961else 13962 need_locks=no 13963fi 13964 13965{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13966echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13967 13968 runpath_var= 13969 allow_undefined_flag_F77= 13970 enable_shared_with_static_runtimes_F77=no 13971 archive_cmds_F77= 13972 archive_expsym_cmds_F77= 13973 old_archive_From_new_cmds_F77= 13974 old_archive_from_expsyms_cmds_F77= 13975 export_dynamic_flag_spec_F77= 13976 whole_archive_flag_spec_F77= 13977 thread_safe_flag_spec_F77= 13978 hardcode_libdir_flag_spec_F77= 13979 hardcode_libdir_flag_spec_ld_F77= 13980 hardcode_libdir_separator_F77= 13981 hardcode_direct_F77=no 13982 hardcode_minus_L_F77=no 13983 hardcode_shlibpath_var_F77=unsupported 13984 link_all_deplibs_F77=unknown 13985 hardcode_automatic_F77=no 13986 module_cmds_F77= 13987 module_expsym_cmds_F77= 13988 always_export_symbols_F77=no 13989 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13990 # include_expsyms should be a list of space-separated symbols to be *always* 13991 # included in the symbol list 13992 include_expsyms_F77= 13993 # exclude_expsyms can be an extended regexp of symbols to exclude 13994 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13995 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13996 # as well as any symbol that contains `d'. 13997 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13998 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13999 # platforms (ab)use it in PIC code, but their linkers get confused if 14000 # the symbol is explicitly referenced. Since portable code cannot 14001 # rely on this symbol name, it's probably fine to never include it in 14002 # preloaded symbol tables. 14003 extract_expsyms_cmds= 14004 # Just being paranoid about ensuring that cc_basename is set. 14005 for cc_temp in $compiler""; do 14006 case $cc_temp in 14007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14009 \-*) ;; 14010 *) break;; 14011 esac 14012done 14013cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14014 14015 case $host_os in 14016 cygwin* | mingw* | pw32*) 14017 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14018 # When not using gcc, we currently assume that we are using 14019 # Microsoft Visual C++. 14020 if test "$GCC" != yes; then 14021 with_gnu_ld=no 14022 fi 14023 ;; 14024 interix*) 14025 # we just hope/assume this is gcc and not c89 (= MSVC++) 14026 with_gnu_ld=yes 14027 ;; 14028 openbsd*) 14029 with_gnu_ld=no 14030 ;; 14031 esac 14032 14033 ld_shlibs_F77=yes 14034 if test "$with_gnu_ld" = yes; then 14035 # If archive_cmds runs LD, not CC, wlarc should be empty 14036 wlarc='${wl}' 14037 14038 # Set some defaults for GNU ld with shared library support. These 14039 # are reset later if shared libraries are not supported. Putting them 14040 # here allows them to be overridden if necessary. 14041 runpath_var=LD_RUN_PATH 14042 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14043 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14044 # ancient GNU ld didn't support --whole-archive et. al. 14045 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14046 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14047 else 14048 whole_archive_flag_spec_F77= 14049 fi 14050 supports_anon_versioning=no 14051 case `$LD -v 2>/dev/null` in 14052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14055 *\ 2.11.*) ;; # other 2.11 versions 14056 *) supports_anon_versioning=yes ;; 14057 esac 14058 14059 # See if GNU ld supports shared libraries. 14060 case $host_os in 14061 aix3* | aix4* | aix5*) 14062 # On AIX/PPC, the GNU linker is very broken 14063 if test "$host_cpu" != ia64; then 14064 ld_shlibs_F77=no 14065 cat <<EOF 1>&2 14066 14067*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14068*** to be unable to reliably create shared libraries on AIX. 14069*** Therefore, libtool is disabling shared libraries support. If you 14070*** really care for shared libraries, you may want to modify your PATH 14071*** so that a non-GNU linker is found, and then restart. 14072 14073EOF 14074 fi 14075 ;; 14076 14077 amigaos*) 14078 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)' 14079 hardcode_libdir_flag_spec_F77='-L$libdir' 14080 hardcode_minus_L_F77=yes 14081 14082 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14083 # that the semantics of dynamic libraries on AmigaOS, at least up 14084 # to version 4, is to share data among multiple programs linked 14085 # with the same dynamic library. Since this doesn't match the 14086 # behavior of shared libraries on other platforms, we can't use 14087 # them. 14088 ld_shlibs_F77=no 14089 ;; 14090 14091 beos*) 14092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14093 allow_undefined_flag_F77=unsupported 14094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14095 # support --undefined. This deserves some investigation. FIXME 14096 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14097 else 14098 ld_shlibs_F77=no 14099 fi 14100 ;; 14101 14102 cygwin* | mingw* | pw32*) 14103 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14104 # as there is no search path for DLLs. 14105 hardcode_libdir_flag_spec_F77='-L$libdir' 14106 allow_undefined_flag_F77=unsupported 14107 always_export_symbols_F77=no 14108 enable_shared_with_static_runtimes_F77=yes 14109 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14110 14111 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14112 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14113 # If the export-symbols file already is a .def file (1st line 14114 # is EXPORTS), use it as is; otherwise, prepend... 14115 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14116 cp $export_symbols $output_objdir/$soname.def; 14117 else 14118 echo EXPORTS > $output_objdir/$soname.def; 14119 cat $export_symbols >> $output_objdir/$soname.def; 14120 fi~ 14121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14122 else 14123 ld_shlibs_F77=no 14124 fi 14125 ;; 14126 14127 interix3*) 14128 hardcode_direct_F77=no 14129 hardcode_shlibpath_var_F77=no 14130 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14131 export_dynamic_flag_spec_F77='${wl}-E' 14132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14133 # Instead, shared libraries are loaded at an image base (0x10000000 by 14134 # default) and relocated if they conflict, which is a slow very memory 14135 # consuming and fragmenting process. To avoid this, we pick a random, 14136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14137 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14138 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' 14139 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' 14140 ;; 14141 14142 linux* | k*bsd*-gnu) 14143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14144 tmp_addflag= 14145 case $cc_basename,$host_cpu in 14146 pgcc*) # Portland Group C compiler 14147 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' 14148 tmp_addflag=' $pic_flag' 14149 ;; 14150 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14151 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' 14152 tmp_addflag=' $pic_flag -Mnomain' ;; 14153 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14154 tmp_addflag=' -i_dynamic' ;; 14155 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14156 tmp_addflag=' -i_dynamic -nofor_main' ;; 14157 ifc* | ifort*) # Intel Fortran compiler 14158 tmp_addflag=' -nofor_main' ;; 14159 esac 14160 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14161 14162 if test $supports_anon_versioning = yes; then 14163 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14164 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14165 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14166 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14167 fi 14168 link_all_deplibs_F77=no 14169 else 14170 ld_shlibs_F77=no 14171 fi 14172 ;; 14173 14174 netbsd* | netbsdelf*-gnu) 14175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14176 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14177 wlarc= 14178 else 14179 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14180 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14181 fi 14182 ;; 14183 14184 solaris*) 14185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14186 ld_shlibs_F77=no 14187 cat <<EOF 1>&2 14188 14189*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14190*** create shared libraries on Solaris systems. Therefore, libtool 14191*** is disabling shared libraries support. We urge you to upgrade GNU 14192*** binutils to release 2.9.1 or newer. Another option is to modify 14193*** your PATH or compiler configuration so that the native linker is 14194*** used, and then restart. 14195 14196EOF 14197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14200 else 14201 ld_shlibs_F77=no 14202 fi 14203 ;; 14204 14205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14206 case `$LD -v 2>&1` in 14207 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14208 ld_shlibs_F77=no 14209 cat <<_LT_EOF 1>&2 14210 14211*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14212*** reliably create shared libraries on SCO systems. Therefore, libtool 14213*** is disabling shared libraries support. We urge you to upgrade GNU 14214*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14215*** your PATH or compiler configuration so that the native linker is 14216*** used, and then restart. 14217 14218_LT_EOF 14219 ;; 14220 *) 14221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14222 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14223 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14224 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14225 else 14226 ld_shlibs_F77=no 14227 fi 14228 ;; 14229 esac 14230 ;; 14231 14232 sunos4*) 14233 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14234 wlarc= 14235 hardcode_direct_F77=yes 14236 hardcode_shlibpath_var_F77=no 14237 ;; 14238 14239 *) 14240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14241 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14242 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14243 else 14244 ld_shlibs_F77=no 14245 fi 14246 ;; 14247 esac 14248 14249 if test "$ld_shlibs_F77" = no; then 14250 runpath_var= 14251 hardcode_libdir_flag_spec_F77= 14252 export_dynamic_flag_spec_F77= 14253 whole_archive_flag_spec_F77= 14254 fi 14255 else 14256 # PORTME fill in a description of your system's linker (not GNU ld) 14257 case $host_os in 14258 aix3*) 14259 allow_undefined_flag_F77=unsupported 14260 always_export_symbols_F77=yes 14261 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' 14262 # Note: this linker hardcodes the directories in LIBPATH if there 14263 # are no directories specified by -L. 14264 hardcode_minus_L_F77=yes 14265 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14266 # Neither direct hardcoding nor static linking is supported with a 14267 # broken collect2. 14268 hardcode_direct_F77=unsupported 14269 fi 14270 ;; 14271 14272 aix4* | aix5*) 14273 if test "$host_cpu" = ia64; then 14274 # On IA64, the linker does run time linking by default, so we don't 14275 # have to do anything special. 14276 aix_use_runtimelinking=no 14277 exp_sym_flag='-Bexport' 14278 no_entry_flag="" 14279 else 14280 # If we're using GNU nm, then we don't want the "-C" option. 14281 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14282 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14283 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' 14284 else 14285 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' 14286 fi 14287 aix_use_runtimelinking=no 14288 14289 # Test if we are trying to use run time linking or normal 14290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14291 # need to do runtime linking. 14292 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14293 for ld_flag in $LDFLAGS; do 14294 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14295 aix_use_runtimelinking=yes 14296 break 14297 fi 14298 done 14299 ;; 14300 esac 14301 14302 exp_sym_flag='-bexport' 14303 no_entry_flag='-bnoentry' 14304 fi 14305 14306 # When large executables or shared objects are built, AIX ld can 14307 # have problems creating the table of contents. If linking a library 14308 # or program results in "error TOC overflow" add -mminimal-toc to 14309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14311 14312 archive_cmds_F77='' 14313 hardcode_direct_F77=yes 14314 hardcode_libdir_separator_F77=':' 14315 link_all_deplibs_F77=yes 14316 14317 if test "$GCC" = yes; then 14318 case $host_os in aix4.[012]|aix4.[012].*) 14319 # We only want to do this on AIX 4.2 and lower, the check 14320 # below for broken collect2 doesn't work under 4.3+ 14321 collect2name=`${CC} -print-prog-name=collect2` 14322 if test -f "$collect2name" && \ 14323 strings "$collect2name" | grep resolve_lib_name >/dev/null 14324 then 14325 # We have reworked collect2 14326 hardcode_direct_F77=yes 14327 else 14328 # We have old collect2 14329 hardcode_direct_F77=unsupported 14330 # It fails to find uninstalled libraries when the uninstalled 14331 # path is not listed in the libpath. Setting hardcode_minus_L 14332 # to unsupported forces relinking 14333 hardcode_minus_L_F77=yes 14334 hardcode_libdir_flag_spec_F77='-L$libdir' 14335 hardcode_libdir_separator_F77= 14336 fi 14337 ;; 14338 esac 14339 shared_flag='-shared' 14340 if test "$aix_use_runtimelinking" = yes; then 14341 shared_flag="$shared_flag "'${wl}-G' 14342 fi 14343 else 14344 # not using gcc 14345 if test "$host_cpu" = ia64; then 14346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14347 # chokes on -Wl,-G. The following line is correct: 14348 shared_flag='-G' 14349 else 14350 if test "$aix_use_runtimelinking" = yes; then 14351 shared_flag='${wl}-G' 14352 else 14353 shared_flag='${wl}-bM:SRE' 14354 fi 14355 fi 14356 fi 14357 14358 # It seems that -bexpall does not export symbols beginning with 14359 # underscore (_), so it is better to generate a list of symbols to export. 14360 always_export_symbols_F77=yes 14361 if test "$aix_use_runtimelinking" = yes; then 14362 # Warning - without using the other runtime loading flags (-brtl), 14363 # -berok will link without error, but may produce a broken library. 14364 allow_undefined_flag_F77='-berok' 14365 # Determine the default libpath from the value encoded in an empty executable. 14366 cat >conftest.$ac_ext <<_ACEOF 14367 program main 14368 14369 end 14370_ACEOF 14371rm -f conftest.$ac_objext conftest$ac_exeext 14372if { (ac_try="$ac_link" 14373case "(($ac_try" in 14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14375 *) ac_try_echo=$ac_try;; 14376esac 14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14378 (eval "$ac_link") 2>conftest.er1 14379 ac_status=$? 14380 grep -v '^ *+' conftest.er1 >conftest.err 14381 rm -f conftest.er1 14382 cat conftest.err >&5 14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14384 (exit $ac_status); } && { 14385 test -z "$ac_f77_werror_flag" || 14386 test ! -s conftest.err 14387 } && test -s conftest$ac_exeext && 14388 $as_test_x conftest$ac_exeext; then 14389 14390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14391}'` 14392# Check for a 64-bit object if we didn't find anything. 14393if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14394}'`; fi 14395else 14396 echo "$as_me: failed program was:" >&5 14397sed 's/^/| /' conftest.$ac_ext >&5 14398 14399 14400fi 14401 14402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14403 conftest$ac_exeext conftest.$ac_ext 14404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14405 14406 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14407 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" 14408 else 14409 if test "$host_cpu" = ia64; then 14410 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14411 allow_undefined_flag_F77="-z nodefs" 14412 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" 14413 else 14414 # Determine the default libpath from the value encoded in an empty executable. 14415 cat >conftest.$ac_ext <<_ACEOF 14416 program main 14417 14418 end 14419_ACEOF 14420rm -f conftest.$ac_objext conftest$ac_exeext 14421if { (ac_try="$ac_link" 14422case "(($ac_try" in 14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14424 *) ac_try_echo=$ac_try;; 14425esac 14426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14427 (eval "$ac_link") 2>conftest.er1 14428 ac_status=$? 14429 grep -v '^ *+' conftest.er1 >conftest.err 14430 rm -f conftest.er1 14431 cat conftest.err >&5 14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14433 (exit $ac_status); } && { 14434 test -z "$ac_f77_werror_flag" || 14435 test ! -s conftest.err 14436 } && test -s conftest$ac_exeext && 14437 $as_test_x conftest$ac_exeext; then 14438 14439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14440}'` 14441# Check for a 64-bit object if we didn't find anything. 14442if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14443}'`; fi 14444else 14445 echo "$as_me: failed program was:" >&5 14446sed 's/^/| /' conftest.$ac_ext >&5 14447 14448 14449fi 14450 14451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14452 conftest$ac_exeext conftest.$ac_ext 14453if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14454 14455 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14456 # Warning - without using the other run time loading flags, 14457 # -berok will link without error, but may produce a broken library. 14458 no_undefined_flag_F77=' ${wl}-bernotok' 14459 allow_undefined_flag_F77=' ${wl}-berok' 14460 # Exported symbols can be pulled into shared objects from archives 14461 whole_archive_flag_spec_F77='$convenience' 14462 archive_cmds_need_lc_F77=yes 14463 # This is similar to how AIX traditionally builds its shared libraries. 14464 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' 14465 fi 14466 fi 14467 ;; 14468 14469 amigaos*) 14470 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)' 14471 hardcode_libdir_flag_spec_F77='-L$libdir' 14472 hardcode_minus_L_F77=yes 14473 # see comment about different semantics on the GNU ld section 14474 ld_shlibs_F77=no 14475 ;; 14476 14477 bsdi[45]*) 14478 export_dynamic_flag_spec_F77=-rdynamic 14479 ;; 14480 14481 cygwin* | mingw* | pw32*) 14482 # When not using gcc, we currently assume that we are using 14483 # Microsoft Visual C++. 14484 # hardcode_libdir_flag_spec is actually meaningless, as there is 14485 # no search path for DLLs. 14486 hardcode_libdir_flag_spec_F77=' ' 14487 allow_undefined_flag_F77=unsupported 14488 # Tell ltmain to make .lib files, not .a files. 14489 libext=lib 14490 # Tell ltmain to make .dll files, not .so files. 14491 shrext_cmds=".dll" 14492 # FIXME: Setting linknames here is a bad hack. 14493 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14494 # The linker will automatically build a .lib file if we build a DLL. 14495 old_archive_From_new_cmds_F77='true' 14496 # FIXME: Should let the user specify the lib program. 14497 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14498 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14499 enable_shared_with_static_runtimes_F77=yes 14500 ;; 14501 14502 darwin* | rhapsody*) 14503 case $host_os in 14504 rhapsody* | darwin1.[012]) 14505 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14506 ;; 14507 *) # Darwin 1.3 on 14508 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14509 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14510 else 14511 case ${MACOSX_DEPLOYMENT_TARGET} in 14512 10.[012]) 14513 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14514 ;; 14515 10.*) 14516 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14517 ;; 14518 esac 14519 fi 14520 ;; 14521 esac 14522 archive_cmds_need_lc_F77=no 14523 hardcode_direct_F77=no 14524 hardcode_automatic_F77=yes 14525 hardcode_shlibpath_var_F77=unsupported 14526 whole_archive_flag_spec_F77='' 14527 link_all_deplibs_F77=yes 14528 if test "$GCC" = yes ; then 14529 output_verbose_link_cmd='echo' 14530 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14531 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14532 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14533 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14534 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}' 14535 else 14536 case $cc_basename in 14537 xlc*) 14538 output_verbose_link_cmd='echo' 14539 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14540 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14541 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14542 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14543 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}' 14544 ;; 14545 *) 14546 ld_shlibs_F77=no 14547 ;; 14548 esac 14549 fi 14550 ;; 14551 14552 dgux*) 14553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14554 hardcode_libdir_flag_spec_F77='-L$libdir' 14555 hardcode_shlibpath_var_F77=no 14556 ;; 14557 14558 freebsd1*) 14559 ld_shlibs_F77=no 14560 ;; 14561 14562 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14563 # support. Future versions do this automatically, but an explicit c++rt0.o 14564 # does not break anything, and helps significantly (at the cost of a little 14565 # extra space). 14566 freebsd2.2*) 14567 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14568 hardcode_libdir_flag_spec_F77='-R$libdir' 14569 hardcode_direct_F77=yes 14570 hardcode_shlibpath_var_F77=no 14571 ;; 14572 14573 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14574 freebsd2*) 14575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14576 hardcode_direct_F77=yes 14577 hardcode_minus_L_F77=yes 14578 hardcode_shlibpath_var_F77=no 14579 ;; 14580 14581 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14582 freebsd* | dragonfly*) 14583 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14584 hardcode_libdir_flag_spec_F77='-R$libdir' 14585 hardcode_direct_F77=yes 14586 hardcode_shlibpath_var_F77=no 14587 ;; 14588 14589 hpux9*) 14590 if test "$GCC" = yes; then 14591 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' 14592 else 14593 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' 14594 fi 14595 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14596 hardcode_libdir_separator_F77=: 14597 hardcode_direct_F77=yes 14598 14599 # hardcode_minus_L: Not really in the search PATH, 14600 # but as the default location of the library. 14601 hardcode_minus_L_F77=yes 14602 export_dynamic_flag_spec_F77='${wl}-E' 14603 ;; 14604 14605 hpux10*) 14606 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14607 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14608 else 14609 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14610 fi 14611 if test "$with_gnu_ld" = no; then 14612 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14613 hardcode_libdir_separator_F77=: 14614 14615 hardcode_direct_F77=yes 14616 export_dynamic_flag_spec_F77='${wl}-E' 14617 14618 # hardcode_minus_L: Not really in the search PATH, 14619 # but as the default location of the library. 14620 hardcode_minus_L_F77=yes 14621 fi 14622 ;; 14623 14624 hpux11*) 14625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14626 case $host_cpu in 14627 hppa*64*) 14628 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14629 ;; 14630 ia64*) 14631 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14632 ;; 14633 *) 14634 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14635 ;; 14636 esac 14637 else 14638 case $host_cpu in 14639 hppa*64*) 14640 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14641 ;; 14642 ia64*) 14643 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14644 ;; 14645 *) 14646 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14647 ;; 14648 esac 14649 fi 14650 if test "$with_gnu_ld" = no; then 14651 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14652 hardcode_libdir_separator_F77=: 14653 14654 case $host_cpu in 14655 hppa*64*|ia64*) 14656 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14657 hardcode_direct_F77=no 14658 hardcode_shlibpath_var_F77=no 14659 ;; 14660 *) 14661 hardcode_direct_F77=yes 14662 export_dynamic_flag_spec_F77='${wl}-E' 14663 14664 # hardcode_minus_L: Not really in the search PATH, 14665 # but as the default location of the library. 14666 hardcode_minus_L_F77=yes 14667 ;; 14668 esac 14669 fi 14670 ;; 14671 14672 irix5* | irix6* | nonstopux*) 14673 if test "$GCC" = yes; then 14674 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' 14675 else 14676 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' 14677 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14678 fi 14679 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14680 hardcode_libdir_separator_F77=: 14681 link_all_deplibs_F77=yes 14682 ;; 14683 14684 netbsd* | netbsdelf*-gnu) 14685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14687 else 14688 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14689 fi 14690 hardcode_libdir_flag_spec_F77='-R$libdir' 14691 hardcode_direct_F77=yes 14692 hardcode_shlibpath_var_F77=no 14693 ;; 14694 14695 newsos6) 14696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14697 hardcode_direct_F77=yes 14698 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14699 hardcode_libdir_separator_F77=: 14700 hardcode_shlibpath_var_F77=no 14701 ;; 14702 14703 openbsd*) 14704 hardcode_direct_F77=yes 14705 hardcode_shlibpath_var_F77=no 14706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14707 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14708 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14709 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14710 export_dynamic_flag_spec_F77='${wl}-E' 14711 else 14712 case $host_os in 14713 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14714 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14715 hardcode_libdir_flag_spec_F77='-R$libdir' 14716 ;; 14717 *) 14718 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14719 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14720 ;; 14721 esac 14722 fi 14723 ;; 14724 14725 os2*) 14726 hardcode_libdir_flag_spec_F77='-L$libdir' 14727 hardcode_minus_L_F77=yes 14728 allow_undefined_flag_F77=unsupported 14729 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' 14730 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14731 ;; 14732 14733 osf3*) 14734 if test "$GCC" = yes; then 14735 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14736 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' 14737 else 14738 allow_undefined_flag_F77=' -expect_unresolved \*' 14739 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' 14740 fi 14741 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14742 hardcode_libdir_separator_F77=: 14743 ;; 14744 14745 osf4* | osf5*) # as osf3* with the addition of -msym flag 14746 if test "$GCC" = yes; then 14747 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14748 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' 14749 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14750 else 14751 allow_undefined_flag_F77=' -expect_unresolved \*' 14752 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' 14753 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~ 14754 $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' 14755 14756 # Both c and cxx compiler support -rpath directly 14757 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14758 fi 14759 hardcode_libdir_separator_F77=: 14760 ;; 14761 14762 solaris*) 14763 no_undefined_flag_F77=' -z text' 14764 if test "$GCC" = yes; then 14765 wlarc='${wl}' 14766 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14767 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14768 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14769 else 14770 wlarc='' 14771 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14772 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14773 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14774 fi 14775 hardcode_libdir_flag_spec_F77='-R$libdir' 14776 hardcode_shlibpath_var_F77=no 14777 case $host_os in 14778 solaris2.[0-5] | solaris2.[0-5].*) ;; 14779 *) 14780 # The compiler driver will combine linker options so we 14781 # cannot just pass the convience library names through 14782 # without $wl, iff we do not link with $LD. 14783 # Luckily, gcc supports the same syntax we need for Sun Studio. 14784 # Supported since Solaris 2.6 (maybe 2.5.1?) 14785 case $wlarc in 14786 '') 14787 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14788 *) 14789 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14790 esac ;; 14791 esac 14792 link_all_deplibs_F77=yes 14793 ;; 14794 14795 sunos4*) 14796 if test "x$host_vendor" = xsequent; then 14797 # Use $CC to link under sequent, because it throws in some extra .o 14798 # files that make .init and .fini sections work. 14799 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14800 else 14801 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14802 fi 14803 hardcode_libdir_flag_spec_F77='-L$libdir' 14804 hardcode_direct_F77=yes 14805 hardcode_minus_L_F77=yes 14806 hardcode_shlibpath_var_F77=no 14807 ;; 14808 14809 sysv4) 14810 case $host_vendor in 14811 sni) 14812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14813 hardcode_direct_F77=yes # is this really true??? 14814 ;; 14815 siemens) 14816 ## LD is ld it makes a PLAMLIB 14817 ## CC just makes a GrossModule. 14818 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14819 reload_cmds_F77='$CC -r -o $output$reload_objs' 14820 hardcode_direct_F77=no 14821 ;; 14822 motorola) 14823 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14824 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14825 ;; 14826 esac 14827 runpath_var='LD_RUN_PATH' 14828 hardcode_shlibpath_var_F77=no 14829 ;; 14830 14831 sysv4.3*) 14832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14833 hardcode_shlibpath_var_F77=no 14834 export_dynamic_flag_spec_F77='-Bexport' 14835 ;; 14836 14837 sysv4*MP*) 14838 if test -d /usr/nec; then 14839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14840 hardcode_shlibpath_var_F77=no 14841 runpath_var=LD_RUN_PATH 14842 hardcode_runpath_var=yes 14843 ld_shlibs_F77=yes 14844 fi 14845 ;; 14846 14847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14848 no_undefined_flag_F77='${wl}-z,text' 14849 archive_cmds_need_lc_F77=no 14850 hardcode_shlibpath_var_F77=no 14851 runpath_var='LD_RUN_PATH' 14852 14853 if test "$GCC" = yes; then 14854 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14855 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14856 else 14857 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14858 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14859 fi 14860 ;; 14861 14862 sysv5* | sco3.2v5* | sco5v6*) 14863 # Note: We can NOT use -z defs as we might desire, because we do not 14864 # link with -lc, and that would cause any symbols used from libc to 14865 # always be unresolved, which means just about no library would 14866 # ever link correctly. If we're not using GNU ld we use -z text 14867 # though, which does catch some bad symbols but isn't as heavy-handed 14868 # as -z defs. 14869 no_undefined_flag_F77='${wl}-z,text' 14870 allow_undefined_flag_F77='${wl}-z,nodefs' 14871 archive_cmds_need_lc_F77=no 14872 hardcode_shlibpath_var_F77=no 14873 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14874 hardcode_libdir_separator_F77=':' 14875 link_all_deplibs_F77=yes 14876 export_dynamic_flag_spec_F77='${wl}-Bexport' 14877 runpath_var='LD_RUN_PATH' 14878 14879 if test "$GCC" = yes; then 14880 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14881 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14882 else 14883 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14884 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14885 fi 14886 ;; 14887 14888 uts4*) 14889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14890 hardcode_libdir_flag_spec_F77='-L$libdir' 14891 hardcode_shlibpath_var_F77=no 14892 ;; 14893 14894 *) 14895 ld_shlibs_F77=no 14896 ;; 14897 esac 14898 fi 14899 14900{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14901echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14902test "$ld_shlibs_F77" = no && can_build_shared=no 14903 14904# 14905# Do we need to explicitly link libc? 14906# 14907case "x$archive_cmds_need_lc_F77" in 14908x|xyes) 14909 # Assume -lc should be added 14910 archive_cmds_need_lc_F77=yes 14911 14912 if test "$enable_shared" = yes && test "$GCC" = yes; then 14913 case $archive_cmds_F77 in 14914 *'~'*) 14915 # FIXME: we may have to deal with multi-command sequences. 14916 ;; 14917 '$CC '*) 14918 # Test whether the compiler implicitly links with -lc since on some 14919 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14920 # to ld, don't add -lc before -lgcc. 14921 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14922echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14923 $rm conftest* 14924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14925 14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14927 (eval $ac_compile) 2>&5 14928 ac_status=$? 14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14930 (exit $ac_status); } 2>conftest.err; then 14931 soname=conftest 14932 lib=conftest 14933 libobjs=conftest.$ac_objext 14934 deplibs= 14935 wl=$lt_prog_compiler_wl_F77 14936 pic_flag=$lt_prog_compiler_pic_F77 14937 compiler_flags=-v 14938 linker_flags=-v 14939 verstring= 14940 output_objdir=. 14941 libname=conftest 14942 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14943 allow_undefined_flag_F77= 14944 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14945 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14946 ac_status=$? 14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14948 (exit $ac_status); } 14949 then 14950 archive_cmds_need_lc_F77=no 14951 else 14952 archive_cmds_need_lc_F77=yes 14953 fi 14954 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14955 else 14956 cat conftest.err 1>&5 14957 fi 14958 $rm conftest* 14959 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14960echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14961 ;; 14962 esac 14963 fi 14964 ;; 14965esac 14966 14967{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14968echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14969library_names_spec= 14970libname_spec='lib$name' 14971soname_spec= 14972shrext_cmds=".so" 14973postinstall_cmds= 14974postuninstall_cmds= 14975finish_cmds= 14976finish_eval= 14977shlibpath_var= 14978shlibpath_overrides_runpath=unknown 14979version_type=none 14980dynamic_linker="$host_os ld.so" 14981sys_lib_dlsearch_path_spec="/lib /usr/lib" 14982if test "$GCC" = yes; then 14983 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14984 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14985 # if the path contains ";" then we assume it to be the separator 14986 # otherwise default to the standard path separator (i.e. ":") - it is 14987 # assumed that no part of a normal pathname contains ";" but that should 14988 # okay in the real world where ";" in dirpaths is itself problematic. 14989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14990 else 14991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14992 fi 14993else 14994 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14995fi 14996need_lib_prefix=unknown 14997hardcode_into_libs=no 14998 14999# when you set need_version to no, make sure it does not cause -set_version 15000# flags to be left without arguments 15001need_version=unknown 15002 15003case $host_os in 15004aix3*) 15005 version_type=linux 15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15007 shlibpath_var=LIBPATH 15008 15009 # AIX 3 has no versioning support, so we append a major version to the name. 15010 soname_spec='${libname}${release}${shared_ext}$major' 15011 ;; 15012 15013aix4* | aix5*) 15014 version_type=linux 15015 need_lib_prefix=no 15016 need_version=no 15017 hardcode_into_libs=yes 15018 if test "$host_cpu" = ia64; then 15019 # AIX 5 supports IA64 15020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15021 shlibpath_var=LD_LIBRARY_PATH 15022 else 15023 # With GCC up to 2.95.x, collect2 would create an import file 15024 # for dependence libraries. The import file would start with 15025 # the line `#! .'. This would cause the generated library to 15026 # depend on `.', always an invalid library. This was fixed in 15027 # development snapshots of GCC prior to 3.0. 15028 case $host_os in 15029 aix4 | aix4.[01] | aix4.[01].*) 15030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15031 echo ' yes ' 15032 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15033 : 15034 else 15035 can_build_shared=no 15036 fi 15037 ;; 15038 esac 15039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15040 # soname into executable. Probably we can add versioning support to 15041 # collect2, so additional links can be useful in future. 15042 if test "$aix_use_runtimelinking" = yes; then 15043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15044 # instead of lib<name>.a to let people know that these are not 15045 # typical AIX shared libraries. 15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15047 else 15048 # We preserve .a as extension for shared libraries through AIX4.2 15049 # and later when we are not doing run time linking. 15050 library_names_spec='${libname}${release}.a $libname.a' 15051 soname_spec='${libname}${release}${shared_ext}$major' 15052 fi 15053 shlibpath_var=LIBPATH 15054 fi 15055 ;; 15056 15057amigaos*) 15058 library_names_spec='$libname.ixlibrary $libname.a' 15059 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15060 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' 15061 ;; 15062 15063beos*) 15064 library_names_spec='${libname}${shared_ext}' 15065 dynamic_linker="$host_os ld.so" 15066 shlibpath_var=LIBRARY_PATH 15067 ;; 15068 15069bsdi[45]*) 15070 version_type=linux 15071 need_version=no 15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15073 soname_spec='${libname}${release}${shared_ext}$major' 15074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15075 shlibpath_var=LD_LIBRARY_PATH 15076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15078 # the default ld.so.conf also contains /usr/contrib/lib and 15079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15080 # libtool to hard-code these into programs 15081 ;; 15082 15083cygwin* | mingw* | pw32*) 15084 version_type=windows 15085 shrext_cmds=".dll" 15086 need_version=no 15087 need_lib_prefix=no 15088 15089 case $GCC,$host_os in 15090 yes,cygwin* | yes,mingw* | yes,pw32*) 15091 library_names_spec='$libname.dll.a' 15092 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15093 postinstall_cmds='base_file=`basename \${file}`~ 15094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15095 dldir=$destdir/`dirname \$dlpath`~ 15096 test -d \$dldir || mkdir -p \$dldir~ 15097 $install_prog $dir/$dlname \$dldir/$dlname~ 15098 chmod a+x \$dldir/$dlname' 15099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15100 dlpath=$dir/\$dldll~ 15101 $rm \$dlpath' 15102 shlibpath_overrides_runpath=yes 15103 15104 case $host_os in 15105 cygwin*) 15106 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15108 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15109 ;; 15110 mingw*) 15111 # MinGW DLLs use traditional 'lib' prefix 15112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15114 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15115 # It is most probably a Windows format PATH printed by 15116 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15117 # path with ; separators, and with drive letters. We can handle the 15118 # drive letters (cygwin fileutils understands them), so leave them, 15119 # especially as we might pass files found there to a mingw objdump, 15120 # which wouldn't understand a cygwinified path. Ahh. 15121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15122 else 15123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15124 fi 15125 ;; 15126 pw32*) 15127 # pw32 DLLs use 'pw' prefix rather than 'lib' 15128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15129 ;; 15130 esac 15131 ;; 15132 15133 *) 15134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15135 ;; 15136 esac 15137 dynamic_linker='Win32 ld.exe' 15138 # FIXME: first we should search . and the directory the executable is in 15139 shlibpath_var=PATH 15140 ;; 15141 15142darwin* | rhapsody*) 15143 dynamic_linker="$host_os dyld" 15144 version_type=darwin 15145 need_lib_prefix=no 15146 need_version=no 15147 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15148 soname_spec='${libname}${release}${major}$shared_ext' 15149 shlibpath_overrides_runpath=yes 15150 shlibpath_var=DYLD_LIBRARY_PATH 15151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15152 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15153 if test "$GCC" = yes; then 15154 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15155 else 15156 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15157 fi 15158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15159 ;; 15160 15161dgux*) 15162 version_type=linux 15163 need_lib_prefix=no 15164 need_version=no 15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15166 soname_spec='${libname}${release}${shared_ext}$major' 15167 shlibpath_var=LD_LIBRARY_PATH 15168 ;; 15169 15170freebsd1*) 15171 dynamic_linker=no 15172 ;; 15173 15174freebsd* | dragonfly*) 15175 # DragonFly does not have aout. When/if they implement a new 15176 # versioning mechanism, adjust this. 15177 if test -x /usr/bin/objformat; then 15178 objformat=`/usr/bin/objformat` 15179 else 15180 case $host_os in 15181 freebsd[123]*) objformat=aout ;; 15182 *) objformat=elf ;; 15183 esac 15184 fi 15185 version_type=freebsd-$objformat 15186 case $version_type in 15187 freebsd-elf*) 15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15189 need_version=no 15190 need_lib_prefix=no 15191 ;; 15192 freebsd-*) 15193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15194 need_version=yes 15195 ;; 15196 esac 15197 shlibpath_var=LD_LIBRARY_PATH 15198 case $host_os in 15199 freebsd2*) 15200 shlibpath_overrides_runpath=yes 15201 ;; 15202 freebsd3.[01]* | freebsdelf3.[01]*) 15203 shlibpath_overrides_runpath=yes 15204 hardcode_into_libs=yes 15205 ;; 15206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15208 shlibpath_overrides_runpath=no 15209 hardcode_into_libs=yes 15210 ;; 15211 freebsd*) # from 4.6 on 15212 shlibpath_overrides_runpath=yes 15213 hardcode_into_libs=yes 15214 ;; 15215 esac 15216 ;; 15217 15218gnu*) 15219 version_type=linux 15220 need_lib_prefix=no 15221 need_version=no 15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15223 soname_spec='${libname}${release}${shared_ext}$major' 15224 shlibpath_var=LD_LIBRARY_PATH 15225 hardcode_into_libs=yes 15226 ;; 15227 15228hpux9* | hpux10* | hpux11*) 15229 # Give a soname corresponding to the major version so that dld.sl refuses to 15230 # link against other versions. 15231 version_type=sunos 15232 need_lib_prefix=no 15233 need_version=no 15234 case $host_cpu in 15235 ia64*) 15236 shrext_cmds='.so' 15237 hardcode_into_libs=yes 15238 dynamic_linker="$host_os dld.so" 15239 shlibpath_var=LD_LIBRARY_PATH 15240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15242 soname_spec='${libname}${release}${shared_ext}$major' 15243 if test "X$HPUX_IA64_MODE" = X32; then 15244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15245 else 15246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15247 fi 15248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15249 ;; 15250 hppa*64*) 15251 shrext_cmds='.sl' 15252 hardcode_into_libs=yes 15253 dynamic_linker="$host_os dld.sl" 15254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15257 soname_spec='${libname}${release}${shared_ext}$major' 15258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15260 ;; 15261 *) 15262 shrext_cmds='.sl' 15263 dynamic_linker="$host_os dld.sl" 15264 shlibpath_var=SHLIB_PATH 15265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15267 soname_spec='${libname}${release}${shared_ext}$major' 15268 ;; 15269 esac 15270 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15271 postinstall_cmds='chmod 555 $lib' 15272 ;; 15273 15274interix3*) 15275 version_type=linux 15276 need_lib_prefix=no 15277 need_version=no 15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15279 soname_spec='${libname}${release}${shared_ext}$major' 15280 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15281 shlibpath_var=LD_LIBRARY_PATH 15282 shlibpath_overrides_runpath=no 15283 hardcode_into_libs=yes 15284 ;; 15285 15286irix5* | irix6* | nonstopux*) 15287 case $host_os in 15288 nonstopux*) version_type=nonstopux ;; 15289 *) 15290 if test "$lt_cv_prog_gnu_ld" = yes; then 15291 version_type=linux 15292 else 15293 version_type=irix 15294 fi ;; 15295 esac 15296 need_lib_prefix=no 15297 need_version=no 15298 soname_spec='${libname}${release}${shared_ext}$major' 15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15300 case $host_os in 15301 irix5* | nonstopux*) 15302 libsuff= shlibsuff= 15303 ;; 15304 *) 15305 case $LD in # libtool.m4 will add one of these switches to LD 15306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15307 libsuff= shlibsuff= libmagic=32-bit;; 15308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15309 libsuff=32 shlibsuff=N32 libmagic=N32;; 15310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15311 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15312 *) libsuff= shlibsuff= libmagic=never-match;; 15313 esac 15314 ;; 15315 esac 15316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15317 shlibpath_overrides_runpath=no 15318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15320 hardcode_into_libs=yes 15321 ;; 15322 15323# No shared lib support for Linux oldld, aout, or coff. 15324linux*oldld* | linux*aout* | linux*coff*) 15325 dynamic_linker=no 15326 ;; 15327 15328# This must be Linux ELF. 15329linux* | k*bsd*-gnu) 15330 version_type=linux 15331 need_lib_prefix=no 15332 need_version=no 15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15334 soname_spec='${libname}${release}${shared_ext}$major' 15335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15336 shlibpath_var=LD_LIBRARY_PATH 15337 shlibpath_overrides_runpath=no 15338 # This implies no fast_install, which is unacceptable. 15339 # Some rework will be needed to allow for fast_install 15340 # before this can be enabled. 15341 hardcode_into_libs=yes 15342 15343 # Append ld.so.conf contents to the search path 15344 if test -f /etc/ld.so.conf; then 15345 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15347 fi 15348 15349 # We used to test for /lib/ld.so.1 and disable shared libraries on 15350 # powerpc, because MkLinux only supported shared libraries with the 15351 # GNU dynamic linker. Since this was broken with cross compilers, 15352 # most powerpc-linux boxes support dynamic linking these days and 15353 # people can always --disable-shared, the test was removed, and we 15354 # assume the GNU/Linux dynamic linker is in use. 15355 dynamic_linker='GNU/Linux ld.so' 15356 ;; 15357 15358netbsdelf*-gnu) 15359 version_type=linux 15360 need_lib_prefix=no 15361 need_version=no 15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15363 soname_spec='${libname}${release}${shared_ext}$major' 15364 shlibpath_var=LD_LIBRARY_PATH 15365 shlibpath_overrides_runpath=no 15366 hardcode_into_libs=yes 15367 dynamic_linker='NetBSD ld.elf_so' 15368 ;; 15369 15370netbsd*) 15371 version_type=sunos 15372 need_lib_prefix=no 15373 need_version=no 15374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15377 dynamic_linker='NetBSD (a.out) ld.so' 15378 else 15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15380 soname_spec='${libname}${release}${shared_ext}$major' 15381 dynamic_linker='NetBSD ld.elf_so' 15382 fi 15383 shlibpath_var=LD_LIBRARY_PATH 15384 shlibpath_overrides_runpath=yes 15385 hardcode_into_libs=yes 15386 ;; 15387 15388newsos6) 15389 version_type=linux 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15391 shlibpath_var=LD_LIBRARY_PATH 15392 shlibpath_overrides_runpath=yes 15393 ;; 15394 15395nto-qnx*) 15396 version_type=linux 15397 need_lib_prefix=no 15398 need_version=no 15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15400 soname_spec='${libname}${release}${shared_ext}$major' 15401 shlibpath_var=LD_LIBRARY_PATH 15402 shlibpath_overrides_runpath=yes 15403 ;; 15404 15405openbsd*) 15406 version_type=sunos 15407 sys_lib_dlsearch_path_spec="/usr/lib" 15408 need_lib_prefix=no 15409 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15410 case $host_os in 15411 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15412 *) need_version=no ;; 15413 esac 15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15416 shlibpath_var=LD_LIBRARY_PATH 15417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15418 case $host_os in 15419 openbsd2.[89] | openbsd2.[89].*) 15420 shlibpath_overrides_runpath=no 15421 ;; 15422 *) 15423 shlibpath_overrides_runpath=yes 15424 ;; 15425 esac 15426 else 15427 shlibpath_overrides_runpath=yes 15428 fi 15429 ;; 15430 15431os2*) 15432 libname_spec='$name' 15433 shrext_cmds=".dll" 15434 need_lib_prefix=no 15435 library_names_spec='$libname${shared_ext} $libname.a' 15436 dynamic_linker='OS/2 ld.exe' 15437 shlibpath_var=LIBPATH 15438 ;; 15439 15440osf3* | osf4* | osf5*) 15441 version_type=osf 15442 need_lib_prefix=no 15443 need_version=no 15444 soname_spec='${libname}${release}${shared_ext}$major' 15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15446 shlibpath_var=LD_LIBRARY_PATH 15447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15449 ;; 15450 15451solaris*) 15452 version_type=linux 15453 need_lib_prefix=no 15454 need_version=no 15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15456 soname_spec='${libname}${release}${shared_ext}$major' 15457 shlibpath_var=LD_LIBRARY_PATH 15458 shlibpath_overrides_runpath=yes 15459 hardcode_into_libs=yes 15460 # ldd complains unless libraries are executable 15461 postinstall_cmds='chmod +x $lib' 15462 ;; 15463 15464sunos4*) 15465 version_type=sunos 15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15467 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15468 shlibpath_var=LD_LIBRARY_PATH 15469 shlibpath_overrides_runpath=yes 15470 if test "$with_gnu_ld" = yes; then 15471 need_lib_prefix=no 15472 fi 15473 need_version=yes 15474 ;; 15475 15476sysv4 | sysv4.3*) 15477 version_type=linux 15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15479 soname_spec='${libname}${release}${shared_ext}$major' 15480 shlibpath_var=LD_LIBRARY_PATH 15481 case $host_vendor in 15482 sni) 15483 shlibpath_overrides_runpath=no 15484 need_lib_prefix=no 15485 export_dynamic_flag_spec='${wl}-Blargedynsym' 15486 runpath_var=LD_RUN_PATH 15487 ;; 15488 siemens) 15489 need_lib_prefix=no 15490 ;; 15491 motorola) 15492 need_lib_prefix=no 15493 need_version=no 15494 shlibpath_overrides_runpath=no 15495 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15496 ;; 15497 esac 15498 ;; 15499 15500sysv4*MP*) 15501 if test -d /usr/nec ;then 15502 version_type=linux 15503 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15504 soname_spec='$libname${shared_ext}.$major' 15505 shlibpath_var=LD_LIBRARY_PATH 15506 fi 15507 ;; 15508 15509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15510 version_type=freebsd-elf 15511 need_lib_prefix=no 15512 need_version=no 15513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15514 soname_spec='${libname}${release}${shared_ext}$major' 15515 shlibpath_var=LD_LIBRARY_PATH 15516 hardcode_into_libs=yes 15517 if test "$with_gnu_ld" = yes; then 15518 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15519 shlibpath_overrides_runpath=no 15520 else 15521 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15522 shlibpath_overrides_runpath=yes 15523 case $host_os in 15524 sco3.2v5*) 15525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15526 ;; 15527 esac 15528 fi 15529 sys_lib_dlsearch_path_spec='/usr/lib' 15530 ;; 15531 15532uts4*) 15533 version_type=linux 15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15535 soname_spec='${libname}${release}${shared_ext}$major' 15536 shlibpath_var=LD_LIBRARY_PATH 15537 ;; 15538 15539*) 15540 dynamic_linker=no 15541 ;; 15542esac 15543{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15544echo "${ECHO_T}$dynamic_linker" >&6; } 15545test "$dynamic_linker" = no && can_build_shared=no 15546 15547variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15548if test "$GCC" = yes; then 15549 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15550fi 15551 15552{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15553echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15554hardcode_action_F77= 15555if test -n "$hardcode_libdir_flag_spec_F77" || \ 15556 test -n "$runpath_var_F77" || \ 15557 test "X$hardcode_automatic_F77" = "Xyes" ; then 15558 15559 # We can hardcode non-existant directories. 15560 if test "$hardcode_direct_F77" != no && 15561 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15562 # have to relink, otherwise we might link with an installed library 15563 # when we should be linking with a yet-to-be-installed one 15564 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15565 test "$hardcode_minus_L_F77" != no; then 15566 # Linking always hardcodes the temporary library directory. 15567 hardcode_action_F77=relink 15568 else 15569 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15570 hardcode_action_F77=immediate 15571 fi 15572else 15573 # We cannot hardcode anything, or else we can only hardcode existing 15574 # directories. 15575 hardcode_action_F77=unsupported 15576fi 15577{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15578echo "${ECHO_T}$hardcode_action_F77" >&6; } 15579 15580if test "$hardcode_action_F77" = relink; then 15581 # Fast installation is not supported 15582 enable_fast_install=no 15583elif test "$shlibpath_overrides_runpath" = yes || 15584 test "$enable_shared" = no; then 15585 # Fast installation is not necessary 15586 enable_fast_install=needless 15587fi 15588 15589 15590# The else clause should only fire when bootstrapping the 15591# libtool distribution, otherwise you forgot to ship ltmain.sh 15592# with your package, and you will get complaints that there are 15593# no rules to generate ltmain.sh. 15594if test -f "$ltmain"; then 15595 # See if we are running on zsh, and set the options which allow our commands through 15596 # without removal of \ escapes. 15597 if test -n "${ZSH_VERSION+set}" ; then 15598 setopt NO_GLOB_SUBST 15599 fi 15600 # Now quote all the things that may contain metacharacters while being 15601 # careful not to overquote the AC_SUBSTed values. We take copies of the 15602 # variables and quote the copies for generation of the libtool script. 15603 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15604 SED SHELL STRIP \ 15605 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15606 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15607 deplibs_check_method reload_flag reload_cmds need_locks \ 15608 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15609 lt_cv_sys_global_symbol_to_c_name_address \ 15610 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15611 old_postinstall_cmds old_postuninstall_cmds \ 15612 compiler_F77 \ 15613 CC_F77 \ 15614 LD_F77 \ 15615 lt_prog_compiler_wl_F77 \ 15616 lt_prog_compiler_pic_F77 \ 15617 lt_prog_compiler_static_F77 \ 15618 lt_prog_compiler_no_builtin_flag_F77 \ 15619 export_dynamic_flag_spec_F77 \ 15620 thread_safe_flag_spec_F77 \ 15621 whole_archive_flag_spec_F77 \ 15622 enable_shared_with_static_runtimes_F77 \ 15623 old_archive_cmds_F77 \ 15624 old_archive_from_new_cmds_F77 \ 15625 predep_objects_F77 \ 15626 postdep_objects_F77 \ 15627 predeps_F77 \ 15628 postdeps_F77 \ 15629 compiler_lib_search_path_F77 \ 15630 archive_cmds_F77 \ 15631 archive_expsym_cmds_F77 \ 15632 postinstall_cmds_F77 \ 15633 postuninstall_cmds_F77 \ 15634 old_archive_from_expsyms_cmds_F77 \ 15635 allow_undefined_flag_F77 \ 15636 no_undefined_flag_F77 \ 15637 export_symbols_cmds_F77 \ 15638 hardcode_libdir_flag_spec_F77 \ 15639 hardcode_libdir_flag_spec_ld_F77 \ 15640 hardcode_libdir_separator_F77 \ 15641 hardcode_automatic_F77 \ 15642 module_cmds_F77 \ 15643 module_expsym_cmds_F77 \ 15644 lt_cv_prog_compiler_c_o_F77 \ 15645 exclude_expsyms_F77 \ 15646 include_expsyms_F77; do 15647 15648 case $var in 15649 old_archive_cmds_F77 | \ 15650 old_archive_from_new_cmds_F77 | \ 15651 archive_cmds_F77 | \ 15652 archive_expsym_cmds_F77 | \ 15653 module_cmds_F77 | \ 15654 module_expsym_cmds_F77 | \ 15655 old_archive_from_expsyms_cmds_F77 | \ 15656 export_symbols_cmds_F77 | \ 15657 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15658 postinstall_cmds | postuninstall_cmds | \ 15659 old_postinstall_cmds | old_postuninstall_cmds | \ 15660 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15661 # Double-quote double-evaled strings. 15662 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15663 ;; 15664 *) 15665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15666 ;; 15667 esac 15668 done 15669 15670 case $lt_echo in 15671 *'\$0 --fallback-echo"') 15672 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15673 ;; 15674 esac 15675 15676cfgfile="$ofile" 15677 15678 cat <<__EOF__ >> "$cfgfile" 15679# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15680 15681# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15682 15683# Shell to use when invoking shell scripts. 15684SHELL=$lt_SHELL 15685 15686# Whether or not to build shared libraries. 15687build_libtool_libs=$enable_shared 15688 15689# Whether or not to build static libraries. 15690build_old_libs=$enable_static 15691 15692# Whether or not to add -lc for building shared libraries. 15693build_libtool_need_lc=$archive_cmds_need_lc_F77 15694 15695# Whether or not to disallow shared libs when runtime libs are static 15696allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15697 15698# Whether or not to optimize for fast installation. 15699fast_install=$enable_fast_install 15700 15701# The host system. 15702host_alias=$host_alias 15703host=$host 15704host_os=$host_os 15705 15706# The build system. 15707build_alias=$build_alias 15708build=$build 15709build_os=$build_os 15710 15711# An echo program that does not interpret backslashes. 15712echo=$lt_echo 15713 15714# The archiver. 15715AR=$lt_AR 15716AR_FLAGS=$lt_AR_FLAGS 15717 15718# A C compiler. 15719LTCC=$lt_LTCC 15720 15721# LTCC compiler flags. 15722LTCFLAGS=$lt_LTCFLAGS 15723 15724# A language-specific compiler. 15725CC=$lt_compiler_F77 15726 15727# Is the compiler the GNU C compiler? 15728with_gcc=$GCC_F77 15729 15730# An ERE matcher. 15731EGREP=$lt_EGREP 15732 15733# The linker used to build libraries. 15734LD=$lt_LD_F77 15735 15736# Whether we need hard or soft links. 15737LN_S=$lt_LN_S 15738 15739# A BSD-compatible nm program. 15740NM=$lt_NM 15741 15742# A symbol stripping program 15743STRIP=$lt_STRIP 15744 15745# Used to examine libraries when file_magic_cmd begins "file" 15746MAGIC_CMD=$MAGIC_CMD 15747 15748# Used on cygwin: DLL creation program. 15749DLLTOOL="$DLLTOOL" 15750 15751# Used on cygwin: object dumper. 15752OBJDUMP="$OBJDUMP" 15753 15754# Used on cygwin: assembler. 15755AS="$AS" 15756 15757# The name of the directory that contains temporary libtool files. 15758objdir=$objdir 15759 15760# How to create reloadable object files. 15761reload_flag=$lt_reload_flag 15762reload_cmds=$lt_reload_cmds 15763 15764# How to pass a linker flag through the compiler. 15765wl=$lt_lt_prog_compiler_wl_F77 15766 15767# Object file suffix (normally "o"). 15768objext="$ac_objext" 15769 15770# Old archive suffix (normally "a"). 15771libext="$libext" 15772 15773# Shared library suffix (normally ".so"). 15774shrext_cmds='$shrext_cmds' 15775 15776# Executable file suffix (normally ""). 15777exeext="$exeext" 15778 15779# Additional compiler flags for building library objects. 15780pic_flag=$lt_lt_prog_compiler_pic_F77 15781pic_mode=$pic_mode 15782 15783# What is the maximum length of a command? 15784max_cmd_len=$lt_cv_sys_max_cmd_len 15785 15786# Does compiler simultaneously support -c and -o options? 15787compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15788 15789# Must we lock files when doing compilation? 15790need_locks=$lt_need_locks 15791 15792# Do we need the lib prefix for modules? 15793need_lib_prefix=$need_lib_prefix 15794 15795# Do we need a version for libraries? 15796need_version=$need_version 15797 15798# Whether dlopen is supported. 15799dlopen_support=$enable_dlopen 15800 15801# Whether dlopen of programs is supported. 15802dlopen_self=$enable_dlopen_self 15803 15804# Whether dlopen of statically linked programs is supported. 15805dlopen_self_static=$enable_dlopen_self_static 15806 15807# Compiler flag to prevent dynamic linking. 15808link_static_flag=$lt_lt_prog_compiler_static_F77 15809 15810# Compiler flag to turn off builtin functions. 15811no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15812 15813# Compiler flag to allow reflexive dlopens. 15814export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15815 15816# Compiler flag to generate shared objects directly from archives. 15817whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15818 15819# Compiler flag to generate thread-safe objects. 15820thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15821 15822# Library versioning type. 15823version_type=$version_type 15824 15825# Format of library name prefix. 15826libname_spec=$lt_libname_spec 15827 15828# List of archive names. First name is the real one, the rest are links. 15829# The last name is the one that the linker finds with -lNAME. 15830library_names_spec=$lt_library_names_spec 15831 15832# The coded name of the library, if different from the real name. 15833soname_spec=$lt_soname_spec 15834 15835# Commands used to build and install an old-style archive. 15836RANLIB=$lt_RANLIB 15837old_archive_cmds=$lt_old_archive_cmds_F77 15838old_postinstall_cmds=$lt_old_postinstall_cmds 15839old_postuninstall_cmds=$lt_old_postuninstall_cmds 15840 15841# Create an old-style archive from a shared archive. 15842old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15843 15844# Create a temporary old-style archive to link instead of a shared archive. 15845old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15846 15847# Commands used to build and install a shared archive. 15848archive_cmds=$lt_archive_cmds_F77 15849archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15850postinstall_cmds=$lt_postinstall_cmds 15851postuninstall_cmds=$lt_postuninstall_cmds 15852 15853# Commands used to build a loadable module (assumed same as above if empty) 15854module_cmds=$lt_module_cmds_F77 15855module_expsym_cmds=$lt_module_expsym_cmds_F77 15856 15857# Commands to strip libraries. 15858old_striplib=$lt_old_striplib 15859striplib=$lt_striplib 15860 15861# Dependencies to place before the objects being linked to create a 15862# shared library. 15863predep_objects=$lt_predep_objects_F77 15864 15865# Dependencies to place after the objects being linked to create a 15866# shared library. 15867postdep_objects=$lt_postdep_objects_F77 15868 15869# Dependencies to place before the objects being linked to create a 15870# shared library. 15871predeps=$lt_predeps_F77 15872 15873# Dependencies to place after the objects being linked to create a 15874# shared library. 15875postdeps=$lt_postdeps_F77 15876 15877# The library search path used internally by the compiler when linking 15878# a shared library. 15879compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15880 15881# Method to check whether dependent libraries are shared objects. 15882deplibs_check_method=$lt_deplibs_check_method 15883 15884# Command to use when deplibs_check_method == file_magic. 15885file_magic_cmd=$lt_file_magic_cmd 15886 15887# Flag that allows shared libraries with undefined symbols to be built. 15888allow_undefined_flag=$lt_allow_undefined_flag_F77 15889 15890# Flag that forces no undefined symbols. 15891no_undefined_flag=$lt_no_undefined_flag_F77 15892 15893# Commands used to finish a libtool library installation in a directory. 15894finish_cmds=$lt_finish_cmds 15895 15896# Same as above, but a single script fragment to be evaled but not shown. 15897finish_eval=$lt_finish_eval 15898 15899# Take the output of nm and produce a listing of raw symbols and C names. 15900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15901 15902# Transform the output of nm in a proper C declaration 15903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15904 15905# Transform the output of nm in a C name address pair 15906global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15907 15908# This is the shared library runtime path variable. 15909runpath_var=$runpath_var 15910 15911# This is the shared library path variable. 15912shlibpath_var=$shlibpath_var 15913 15914# Is shlibpath searched before the hard-coded library search path? 15915shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15916 15917# How to hardcode a shared library path into an executable. 15918hardcode_action=$hardcode_action_F77 15919 15920# Whether we should hardcode library paths into libraries. 15921hardcode_into_libs=$hardcode_into_libs 15922 15923# Flag to hardcode \$libdir into a binary during linking. 15924# This must work even if \$libdir does not exist. 15925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15926 15927# If ld is used when linking, flag to hardcode \$libdir into 15928# a binary during linking. This must work even if \$libdir does 15929# not exist. 15930hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15931 15932# Whether we need a single -rpath flag with a separated argument. 15933hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15934 15935# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15936# resulting binary. 15937hardcode_direct=$hardcode_direct_F77 15938 15939# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15940# resulting binary. 15941hardcode_minus_L=$hardcode_minus_L_F77 15942 15943# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15944# the resulting binary. 15945hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15946 15947# Set to yes if building a shared library automatically hardcodes DIR into the library 15948# and all subsequent libraries and executables linked against it. 15949hardcode_automatic=$hardcode_automatic_F77 15950 15951# Variables whose values should be saved in libtool wrapper scripts and 15952# restored at relink time. 15953variables_saved_for_relink="$variables_saved_for_relink" 15954 15955# Whether libtool must link a program against all its dependency libraries. 15956link_all_deplibs=$link_all_deplibs_F77 15957 15958# Compile-time system search path for libraries 15959sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15960 15961# Run-time system search path for libraries 15962sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15963 15964# Fix the shell variable \$srcfile for the compiler. 15965fix_srcfile_path="$fix_srcfile_path_F77" 15966 15967# Set to yes if exported symbols are required. 15968always_export_symbols=$always_export_symbols_F77 15969 15970# The commands to list exported symbols. 15971export_symbols_cmds=$lt_export_symbols_cmds_F77 15972 15973# The commands to extract the exported symbol list from a shared archive. 15974extract_expsyms_cmds=$lt_extract_expsyms_cmds 15975 15976# Symbols that should not be listed in the preloaded symbols. 15977exclude_expsyms=$lt_exclude_expsyms_F77 15978 15979# Symbols that must always be exported. 15980include_expsyms=$lt_include_expsyms_F77 15981 15982# ### END LIBTOOL TAG CONFIG: $tagname 15983 15984__EOF__ 15985 15986 15987else 15988 # If there is no Makefile yet, we rely on a make rule to execute 15989 # `config.status --recheck' to rerun these tests and create the 15990 # libtool script then. 15991 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15992 if test -f "$ltmain_in"; then 15993 test -f Makefile && make "$ltmain" 15994 fi 15995fi 15996 15997 15998ac_ext=c 15999ac_cpp='$CPP $CPPFLAGS' 16000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16002ac_compiler_gnu=$ac_cv_c_compiler_gnu 16003 16004CC="$lt_save_CC" 16005 16006 else 16007 tagname="" 16008 fi 16009 ;; 16010 16011 GCJ) 16012 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16013 16014 16015# Source file extension for Java test sources. 16016ac_ext=java 16017 16018# Object file extension for compiled Java test sources. 16019objext=o 16020objext_GCJ=$objext 16021 16022# Code to be used in simple compile tests 16023lt_simple_compile_test_code="class foo {}\n" 16024 16025# Code to be used in simple link tests 16026lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16027 16028# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16029 16030# If no C compiler was specified, use CC. 16031LTCC=${LTCC-"$CC"} 16032 16033# If no C compiler flags were specified, use CFLAGS. 16034LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16035 16036# Allow CC to be a program name with arguments. 16037compiler=$CC 16038 16039 16040# save warnings/boilerplate of simple test code 16041ac_outfile=conftest.$ac_objext 16042printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16043eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16044_lt_compiler_boilerplate=`cat conftest.err` 16045$rm conftest* 16046 16047ac_outfile=conftest.$ac_objext 16048printf "$lt_simple_link_test_code" >conftest.$ac_ext 16049eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16050_lt_linker_boilerplate=`cat conftest.err` 16051$rm conftest* 16052 16053 16054# Allow CC to be a program name with arguments. 16055lt_save_CC="$CC" 16056CC=${GCJ-"gcj"} 16057compiler=$CC 16058compiler_GCJ=$CC 16059for cc_temp in $compiler""; do 16060 case $cc_temp in 16061 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16062 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16063 \-*) ;; 16064 *) break;; 16065 esac 16066done 16067cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16068 16069 16070# GCJ did not exist at the time GCC didn't implicitly link libc in. 16071archive_cmds_need_lc_GCJ=no 16072 16073old_archive_cmds_GCJ=$old_archive_cmds 16074 16075 16076lt_prog_compiler_no_builtin_flag_GCJ= 16077 16078if test "$GCC" = yes; then 16079 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16080 16081 16082{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16083echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16084if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16085 echo $ECHO_N "(cached) $ECHO_C" >&6 16086else 16087 lt_cv_prog_compiler_rtti_exceptions=no 16088 ac_outfile=conftest.$ac_objext 16089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16090 lt_compiler_flag="-fno-rtti -fno-exceptions" 16091 # Insert the option either (1) after the last *FLAGS variable, or 16092 # (2) before a word containing "conftest.", or (3) at the end. 16093 # Note that $ac_compile itself does not contain backslashes and begins 16094 # with a dollar sign (not a hyphen), so the echo should work correctly. 16095 # The option is referenced via a variable to avoid confusing sed. 16096 lt_compile=`echo "$ac_compile" | $SED \ 16097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16099 -e 's:$: $lt_compiler_flag:'` 16100 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16101 (eval "$lt_compile" 2>conftest.err) 16102 ac_status=$? 16103 cat conftest.err >&5 16104 echo "$as_me:__oline__: \$? = $ac_status" >&5 16105 if (exit $ac_status) && test -s "$ac_outfile"; then 16106 # The compiler can only warn and ignore the option if not recognized 16107 # So say no if there are warnings other than the usual output. 16108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16111 lt_cv_prog_compiler_rtti_exceptions=yes 16112 fi 16113 fi 16114 $rm conftest* 16115 16116fi 16117{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16118echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16119 16120if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16121 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16122else 16123 : 16124fi 16125 16126fi 16127 16128lt_prog_compiler_wl_GCJ= 16129lt_prog_compiler_pic_GCJ= 16130lt_prog_compiler_static_GCJ= 16131 16132{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16133echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16134 16135 if test "$GCC" = yes; then 16136 lt_prog_compiler_wl_GCJ='-Wl,' 16137 lt_prog_compiler_static_GCJ='-static' 16138 16139 case $host_os in 16140 aix*) 16141 # All AIX code is PIC. 16142 if test "$host_cpu" = ia64; then 16143 # AIX 5 now supports IA64 processor 16144 lt_prog_compiler_static_GCJ='-Bstatic' 16145 fi 16146 ;; 16147 16148 amigaos*) 16149 # FIXME: we need at least 68020 code to build shared libraries, but 16150 # adding the `-m68020' flag to GCC prevents building anything better, 16151 # like `-m68040'. 16152 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16153 ;; 16154 16155 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16156 # PIC is the default for these OSes. 16157 ;; 16158 16159 mingw* | pw32* | os2*) 16160 # This hack is so that the source file can tell whether it is being 16161 # built for inclusion in a dll (and should export symbols for example). 16162 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16163 ;; 16164 16165 darwin* | rhapsody*) 16166 # PIC is the default on this platform 16167 # Common symbols not allowed in MH_DYLIB files 16168 lt_prog_compiler_pic_GCJ='-fno-common' 16169 ;; 16170 16171 interix3*) 16172 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16173 # Instead, we relocate shared libraries at runtime. 16174 ;; 16175 16176 msdosdjgpp*) 16177 # Just because we use GCC doesn't mean we suddenly get shared libraries 16178 # on systems that don't support them. 16179 lt_prog_compiler_can_build_shared_GCJ=no 16180 enable_shared=no 16181 ;; 16182 16183 sysv4*MP*) 16184 if test -d /usr/nec; then 16185 lt_prog_compiler_pic_GCJ=-Kconform_pic 16186 fi 16187 ;; 16188 16189 hpux*) 16190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16191 # not for PA HP-UX. 16192 case $host_cpu in 16193 hppa*64*|ia64*) 16194 # +Z the default 16195 ;; 16196 *) 16197 lt_prog_compiler_pic_GCJ='-fPIC' 16198 ;; 16199 esac 16200 ;; 16201 16202 *) 16203 lt_prog_compiler_pic_GCJ='-fPIC' 16204 ;; 16205 esac 16206 else 16207 # PORTME Check for flag to pass linker flags through the system compiler. 16208 case $host_os in 16209 aix*) 16210 lt_prog_compiler_wl_GCJ='-Wl,' 16211 if test "$host_cpu" = ia64; then 16212 # AIX 5 now supports IA64 processor 16213 lt_prog_compiler_static_GCJ='-Bstatic' 16214 else 16215 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16216 fi 16217 ;; 16218 darwin*) 16219 # PIC is the default on this platform 16220 # Common symbols not allowed in MH_DYLIB files 16221 case $cc_basename in 16222 xlc*) 16223 lt_prog_compiler_pic_GCJ='-qnocommon' 16224 lt_prog_compiler_wl_GCJ='-Wl,' 16225 ;; 16226 esac 16227 ;; 16228 16229 mingw* | pw32* | os2*) 16230 # This hack is so that the source file can tell whether it is being 16231 # built for inclusion in a dll (and should export symbols for example). 16232 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16233 ;; 16234 16235 hpux9* | hpux10* | hpux11*) 16236 lt_prog_compiler_wl_GCJ='-Wl,' 16237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16238 # not for PA HP-UX. 16239 case $host_cpu in 16240 hppa*64*|ia64*) 16241 # +Z the default 16242 ;; 16243 *) 16244 lt_prog_compiler_pic_GCJ='+Z' 16245 ;; 16246 esac 16247 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16248 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16249 ;; 16250 16251 irix5* | irix6* | nonstopux*) 16252 lt_prog_compiler_wl_GCJ='-Wl,' 16253 # PIC (with -KPIC) is the default. 16254 lt_prog_compiler_static_GCJ='-non_shared' 16255 ;; 16256 16257 newsos6) 16258 lt_prog_compiler_pic_GCJ='-KPIC' 16259 lt_prog_compiler_static_GCJ='-Bstatic' 16260 ;; 16261 16262 linux* | k*bsd*-gnu) 16263 case $cc_basename in 16264 icc* | ecc*) 16265 lt_prog_compiler_wl_GCJ='-Wl,' 16266 lt_prog_compiler_pic_GCJ='-KPIC' 16267 lt_prog_compiler_static_GCJ='-static' 16268 ;; 16269 pgcc* | pgf77* | pgf90* | pgf95*) 16270 # Portland Group compilers (*not* the Pentium gcc compiler, 16271 # which looks to be a dead project) 16272 lt_prog_compiler_wl_GCJ='-Wl,' 16273 lt_prog_compiler_pic_GCJ='-fpic' 16274 lt_prog_compiler_static_GCJ='-Bstatic' 16275 ;; 16276 ccc*) 16277 lt_prog_compiler_wl_GCJ='-Wl,' 16278 # All Alpha code is PIC. 16279 lt_prog_compiler_static_GCJ='-non_shared' 16280 ;; 16281 esac 16282 ;; 16283 16284 osf3* | osf4* | osf5*) 16285 lt_prog_compiler_wl_GCJ='-Wl,' 16286 # All OSF/1 code is PIC. 16287 lt_prog_compiler_static_GCJ='-non_shared' 16288 ;; 16289 16290 solaris*) 16291 lt_prog_compiler_pic_GCJ='-KPIC' 16292 lt_prog_compiler_static_GCJ='-Bstatic' 16293 case $cc_basename in 16294 f77* | f90* | f95*) 16295 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16296 *) 16297 lt_prog_compiler_wl_GCJ='-Wl,';; 16298 esac 16299 ;; 16300 16301 sunos4*) 16302 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16303 lt_prog_compiler_pic_GCJ='-PIC' 16304 lt_prog_compiler_static_GCJ='-Bstatic' 16305 ;; 16306 16307 sysv4 | sysv4.2uw2* | sysv4.3*) 16308 lt_prog_compiler_wl_GCJ='-Wl,' 16309 lt_prog_compiler_pic_GCJ='-KPIC' 16310 lt_prog_compiler_static_GCJ='-Bstatic' 16311 ;; 16312 16313 sysv4*MP*) 16314 if test -d /usr/nec ;then 16315 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16316 lt_prog_compiler_static_GCJ='-Bstatic' 16317 fi 16318 ;; 16319 16320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16321 lt_prog_compiler_wl_GCJ='-Wl,' 16322 lt_prog_compiler_pic_GCJ='-KPIC' 16323 lt_prog_compiler_static_GCJ='-Bstatic' 16324 ;; 16325 16326 unicos*) 16327 lt_prog_compiler_wl_GCJ='-Wl,' 16328 lt_prog_compiler_can_build_shared_GCJ=no 16329 ;; 16330 16331 uts4*) 16332 lt_prog_compiler_pic_GCJ='-pic' 16333 lt_prog_compiler_static_GCJ='-Bstatic' 16334 ;; 16335 16336 *) 16337 lt_prog_compiler_can_build_shared_GCJ=no 16338 ;; 16339 esac 16340 fi 16341 16342{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16343echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16344 16345# 16346# Check to make sure the PIC flag actually works. 16347# 16348if test -n "$lt_prog_compiler_pic_GCJ"; then 16349 16350{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16351echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16352if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16353 echo $ECHO_N "(cached) $ECHO_C" >&6 16354else 16355 lt_prog_compiler_pic_works_GCJ=no 16356 ac_outfile=conftest.$ac_objext 16357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16358 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16359 # Insert the option either (1) after the last *FLAGS variable, or 16360 # (2) before a word containing "conftest.", or (3) at the end. 16361 # Note that $ac_compile itself does not contain backslashes and begins 16362 # with a dollar sign (not a hyphen), so the echo should work correctly. 16363 # The option is referenced via a variable to avoid confusing sed. 16364 lt_compile=`echo "$ac_compile" | $SED \ 16365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16367 -e 's:$: $lt_compiler_flag:'` 16368 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16369 (eval "$lt_compile" 2>conftest.err) 16370 ac_status=$? 16371 cat conftest.err >&5 16372 echo "$as_me:__oline__: \$? = $ac_status" >&5 16373 if (exit $ac_status) && test -s "$ac_outfile"; then 16374 # The compiler can only warn and ignore the option if not recognized 16375 # So say no if there are warnings other than the usual output. 16376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16379 lt_prog_compiler_pic_works_GCJ=yes 16380 fi 16381 fi 16382 $rm conftest* 16383 16384fi 16385{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16386echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16387 16388if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16389 case $lt_prog_compiler_pic_GCJ in 16390 "" | " "*) ;; 16391 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16392 esac 16393else 16394 lt_prog_compiler_pic_GCJ= 16395 lt_prog_compiler_can_build_shared_GCJ=no 16396fi 16397 16398fi 16399case $host_os in 16400 # For platforms which do not support PIC, -DPIC is meaningless: 16401 *djgpp*) 16402 lt_prog_compiler_pic_GCJ= 16403 ;; 16404 *) 16405 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16406 ;; 16407esac 16408 16409# 16410# Check to make sure the static flag actually works. 16411# 16412wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16413{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16414echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16415if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16416 echo $ECHO_N "(cached) $ECHO_C" >&6 16417else 16418 lt_prog_compiler_static_works_GCJ=no 16419 save_LDFLAGS="$LDFLAGS" 16420 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16421 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16423 # The linker can only warn and ignore the option if not recognized 16424 # So say no if there are warnings 16425 if test -s conftest.err; then 16426 # Append any errors to the config.log. 16427 cat conftest.err 1>&5 16428 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16430 if diff conftest.exp conftest.er2 >/dev/null; then 16431 lt_prog_compiler_static_works_GCJ=yes 16432 fi 16433 else 16434 lt_prog_compiler_static_works_GCJ=yes 16435 fi 16436 fi 16437 $rm conftest* 16438 LDFLAGS="$save_LDFLAGS" 16439 16440fi 16441{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16442echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16443 16444if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16445 : 16446else 16447 lt_prog_compiler_static_GCJ= 16448fi 16449 16450 16451{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16452echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16453if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16454 echo $ECHO_N "(cached) $ECHO_C" >&6 16455else 16456 lt_cv_prog_compiler_c_o_GCJ=no 16457 $rm -r conftest 2>/dev/null 16458 mkdir conftest 16459 cd conftest 16460 mkdir out 16461 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16462 16463 lt_compiler_flag="-o out/conftest2.$ac_objext" 16464 # Insert the option either (1) after the last *FLAGS variable, or 16465 # (2) before a word containing "conftest.", or (3) at the end. 16466 # Note that $ac_compile itself does not contain backslashes and begins 16467 # with a dollar sign (not a hyphen), so the echo should work correctly. 16468 lt_compile=`echo "$ac_compile" | $SED \ 16469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16471 -e 's:$: $lt_compiler_flag:'` 16472 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16473 (eval "$lt_compile" 2>out/conftest.err) 16474 ac_status=$? 16475 cat out/conftest.err >&5 16476 echo "$as_me:__oline__: \$? = $ac_status" >&5 16477 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16478 then 16479 # The compiler can only warn and ignore the option if not recognized 16480 # So say no if there are warnings 16481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16484 lt_cv_prog_compiler_c_o_GCJ=yes 16485 fi 16486 fi 16487 chmod u+w . 2>&5 16488 $rm conftest* 16489 # SGI C++ compiler will create directory out/ii_files/ for 16490 # template instantiation 16491 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16492 $rm out/* && rmdir out 16493 cd .. 16494 rmdir conftest 16495 $rm conftest* 16496 16497fi 16498{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16499echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16500 16501 16502hard_links="nottested" 16503if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16504 # do not overwrite the value of need_locks provided by the user 16505 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16506echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16507 hard_links=yes 16508 $rm conftest* 16509 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16510 touch conftest.a 16511 ln conftest.a conftest.b 2>&5 || hard_links=no 16512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16513 { echo "$as_me:$LINENO: result: $hard_links" >&5 16514echo "${ECHO_T}$hard_links" >&6; } 16515 if test "$hard_links" = no; then 16516 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16517echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16518 need_locks=warn 16519 fi 16520else 16521 need_locks=no 16522fi 16523 16524{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16525echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16526 16527 runpath_var= 16528 allow_undefined_flag_GCJ= 16529 enable_shared_with_static_runtimes_GCJ=no 16530 archive_cmds_GCJ= 16531 archive_expsym_cmds_GCJ= 16532 old_archive_From_new_cmds_GCJ= 16533 old_archive_from_expsyms_cmds_GCJ= 16534 export_dynamic_flag_spec_GCJ= 16535 whole_archive_flag_spec_GCJ= 16536 thread_safe_flag_spec_GCJ= 16537 hardcode_libdir_flag_spec_GCJ= 16538 hardcode_libdir_flag_spec_ld_GCJ= 16539 hardcode_libdir_separator_GCJ= 16540 hardcode_direct_GCJ=no 16541 hardcode_minus_L_GCJ=no 16542 hardcode_shlibpath_var_GCJ=unsupported 16543 link_all_deplibs_GCJ=unknown 16544 hardcode_automatic_GCJ=no 16545 module_cmds_GCJ= 16546 module_expsym_cmds_GCJ= 16547 always_export_symbols_GCJ=no 16548 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16549 # include_expsyms should be a list of space-separated symbols to be *always* 16550 # included in the symbol list 16551 include_expsyms_GCJ= 16552 # exclude_expsyms can be an extended regexp of symbols to exclude 16553 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16554 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16555 # as well as any symbol that contains `d'. 16556 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16557 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16558 # platforms (ab)use it in PIC code, but their linkers get confused if 16559 # the symbol is explicitly referenced. Since portable code cannot 16560 # rely on this symbol name, it's probably fine to never include it in 16561 # preloaded symbol tables. 16562 extract_expsyms_cmds= 16563 # Just being paranoid about ensuring that cc_basename is set. 16564 for cc_temp in $compiler""; do 16565 case $cc_temp in 16566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16568 \-*) ;; 16569 *) break;; 16570 esac 16571done 16572cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16573 16574 case $host_os in 16575 cygwin* | mingw* | pw32*) 16576 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16577 # When not using gcc, we currently assume that we are using 16578 # Microsoft Visual C++. 16579 if test "$GCC" != yes; then 16580 with_gnu_ld=no 16581 fi 16582 ;; 16583 interix*) 16584 # we just hope/assume this is gcc and not c89 (= MSVC++) 16585 with_gnu_ld=yes 16586 ;; 16587 openbsd*) 16588 with_gnu_ld=no 16589 ;; 16590 esac 16591 16592 ld_shlibs_GCJ=yes 16593 if test "$with_gnu_ld" = yes; then 16594 # If archive_cmds runs LD, not CC, wlarc should be empty 16595 wlarc='${wl}' 16596 16597 # Set some defaults for GNU ld with shared library support. These 16598 # are reset later if shared libraries are not supported. Putting them 16599 # here allows them to be overridden if necessary. 16600 runpath_var=LD_RUN_PATH 16601 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16602 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16603 # ancient GNU ld didn't support --whole-archive et. al. 16604 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16605 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16606 else 16607 whole_archive_flag_spec_GCJ= 16608 fi 16609 supports_anon_versioning=no 16610 case `$LD -v 2>/dev/null` in 16611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16614 *\ 2.11.*) ;; # other 2.11 versions 16615 *) supports_anon_versioning=yes ;; 16616 esac 16617 16618 # See if GNU ld supports shared libraries. 16619 case $host_os in 16620 aix3* | aix4* | aix5*) 16621 # On AIX/PPC, the GNU linker is very broken 16622 if test "$host_cpu" != ia64; then 16623 ld_shlibs_GCJ=no 16624 cat <<EOF 1>&2 16625 16626*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16627*** to be unable to reliably create shared libraries on AIX. 16628*** Therefore, libtool is disabling shared libraries support. If you 16629*** really care for shared libraries, you may want to modify your PATH 16630*** so that a non-GNU linker is found, and then restart. 16631 16632EOF 16633 fi 16634 ;; 16635 16636 amigaos*) 16637 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)' 16638 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16639 hardcode_minus_L_GCJ=yes 16640 16641 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16642 # that the semantics of dynamic libraries on AmigaOS, at least up 16643 # to version 4, is to share data among multiple programs linked 16644 # with the same dynamic library. Since this doesn't match the 16645 # behavior of shared libraries on other platforms, we can't use 16646 # them. 16647 ld_shlibs_GCJ=no 16648 ;; 16649 16650 beos*) 16651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16652 allow_undefined_flag_GCJ=unsupported 16653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16654 # support --undefined. This deserves some investigation. FIXME 16655 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16656 else 16657 ld_shlibs_GCJ=no 16658 fi 16659 ;; 16660 16661 cygwin* | mingw* | pw32*) 16662 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16663 # as there is no search path for DLLs. 16664 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16665 allow_undefined_flag_GCJ=unsupported 16666 always_export_symbols_GCJ=no 16667 enable_shared_with_static_runtimes_GCJ=yes 16668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16669 16670 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16671 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16672 # If the export-symbols file already is a .def file (1st line 16673 # is EXPORTS), use it as is; otherwise, prepend... 16674 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16675 cp $export_symbols $output_objdir/$soname.def; 16676 else 16677 echo EXPORTS > $output_objdir/$soname.def; 16678 cat $export_symbols >> $output_objdir/$soname.def; 16679 fi~ 16680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16681 else 16682 ld_shlibs_GCJ=no 16683 fi 16684 ;; 16685 16686 interix3*) 16687 hardcode_direct_GCJ=no 16688 hardcode_shlibpath_var_GCJ=no 16689 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16690 export_dynamic_flag_spec_GCJ='${wl}-E' 16691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16692 # Instead, shared libraries are loaded at an image base (0x10000000 by 16693 # default) and relocated if they conflict, which is a slow very memory 16694 # consuming and fragmenting process. To avoid this, we pick a random, 16695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16696 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16697 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' 16698 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' 16699 ;; 16700 16701 linux* | k*bsd*-gnu) 16702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16703 tmp_addflag= 16704 case $cc_basename,$host_cpu in 16705 pgcc*) # Portland Group C compiler 16706 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' 16707 tmp_addflag=' $pic_flag' 16708 ;; 16709 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16710 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' 16711 tmp_addflag=' $pic_flag -Mnomain' ;; 16712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16713 tmp_addflag=' -i_dynamic' ;; 16714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16715 tmp_addflag=' -i_dynamic -nofor_main' ;; 16716 ifc* | ifort*) # Intel Fortran compiler 16717 tmp_addflag=' -nofor_main' ;; 16718 esac 16719 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16720 16721 if test $supports_anon_versioning = yes; then 16722 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16724 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16725 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16726 fi 16727 link_all_deplibs_GCJ=no 16728 else 16729 ld_shlibs_GCJ=no 16730 fi 16731 ;; 16732 16733 netbsd* | netbsdelf*-gnu) 16734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16735 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16736 wlarc= 16737 else 16738 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16739 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16740 fi 16741 ;; 16742 16743 solaris*) 16744 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16745 ld_shlibs_GCJ=no 16746 cat <<EOF 1>&2 16747 16748*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16749*** create shared libraries on Solaris systems. Therefore, libtool 16750*** is disabling shared libraries support. We urge you to upgrade GNU 16751*** binutils to release 2.9.1 or newer. Another option is to modify 16752*** your PATH or compiler configuration so that the native linker is 16753*** used, and then restart. 16754 16755EOF 16756 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16757 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16758 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16759 else 16760 ld_shlibs_GCJ=no 16761 fi 16762 ;; 16763 16764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16765 case `$LD -v 2>&1` in 16766 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16767 ld_shlibs_GCJ=no 16768 cat <<_LT_EOF 1>&2 16769 16770*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16771*** reliably create shared libraries on SCO systems. Therefore, libtool 16772*** is disabling shared libraries support. We urge you to upgrade GNU 16773*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16774*** your PATH or compiler configuration so that the native linker is 16775*** used, and then restart. 16776 16777_LT_EOF 16778 ;; 16779 *) 16780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16781 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16783 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16784 else 16785 ld_shlibs_GCJ=no 16786 fi 16787 ;; 16788 esac 16789 ;; 16790 16791 sunos4*) 16792 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16793 wlarc= 16794 hardcode_direct_GCJ=yes 16795 hardcode_shlibpath_var_GCJ=no 16796 ;; 16797 16798 *) 16799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16800 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16801 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16802 else 16803 ld_shlibs_GCJ=no 16804 fi 16805 ;; 16806 esac 16807 16808 if test "$ld_shlibs_GCJ" = no; then 16809 runpath_var= 16810 hardcode_libdir_flag_spec_GCJ= 16811 export_dynamic_flag_spec_GCJ= 16812 whole_archive_flag_spec_GCJ= 16813 fi 16814 else 16815 # PORTME fill in a description of your system's linker (not GNU ld) 16816 case $host_os in 16817 aix3*) 16818 allow_undefined_flag_GCJ=unsupported 16819 always_export_symbols_GCJ=yes 16820 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' 16821 # Note: this linker hardcodes the directories in LIBPATH if there 16822 # are no directories specified by -L. 16823 hardcode_minus_L_GCJ=yes 16824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16825 # Neither direct hardcoding nor static linking is supported with a 16826 # broken collect2. 16827 hardcode_direct_GCJ=unsupported 16828 fi 16829 ;; 16830 16831 aix4* | aix5*) 16832 if test "$host_cpu" = ia64; then 16833 # On IA64, the linker does run time linking by default, so we don't 16834 # have to do anything special. 16835 aix_use_runtimelinking=no 16836 exp_sym_flag='-Bexport' 16837 no_entry_flag="" 16838 else 16839 # If we're using GNU nm, then we don't want the "-C" option. 16840 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16841 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16842 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' 16843 else 16844 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' 16845 fi 16846 aix_use_runtimelinking=no 16847 16848 # Test if we are trying to use run time linking or normal 16849 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16850 # need to do runtime linking. 16851 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16852 for ld_flag in $LDFLAGS; do 16853 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16854 aix_use_runtimelinking=yes 16855 break 16856 fi 16857 done 16858 ;; 16859 esac 16860 16861 exp_sym_flag='-bexport' 16862 no_entry_flag='-bnoentry' 16863 fi 16864 16865 # When large executables or shared objects are built, AIX ld can 16866 # have problems creating the table of contents. If linking a library 16867 # or program results in "error TOC overflow" add -mminimal-toc to 16868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16870 16871 archive_cmds_GCJ='' 16872 hardcode_direct_GCJ=yes 16873 hardcode_libdir_separator_GCJ=':' 16874 link_all_deplibs_GCJ=yes 16875 16876 if test "$GCC" = yes; then 16877 case $host_os in aix4.[012]|aix4.[012].*) 16878 # We only want to do this on AIX 4.2 and lower, the check 16879 # below for broken collect2 doesn't work under 4.3+ 16880 collect2name=`${CC} -print-prog-name=collect2` 16881 if test -f "$collect2name" && \ 16882 strings "$collect2name" | grep resolve_lib_name >/dev/null 16883 then 16884 # We have reworked collect2 16885 hardcode_direct_GCJ=yes 16886 else 16887 # We have old collect2 16888 hardcode_direct_GCJ=unsupported 16889 # It fails to find uninstalled libraries when the uninstalled 16890 # path is not listed in the libpath. Setting hardcode_minus_L 16891 # to unsupported forces relinking 16892 hardcode_minus_L_GCJ=yes 16893 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16894 hardcode_libdir_separator_GCJ= 16895 fi 16896 ;; 16897 esac 16898 shared_flag='-shared' 16899 if test "$aix_use_runtimelinking" = yes; then 16900 shared_flag="$shared_flag "'${wl}-G' 16901 fi 16902 else 16903 # not using gcc 16904 if test "$host_cpu" = ia64; then 16905 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16906 # chokes on -Wl,-G. The following line is correct: 16907 shared_flag='-G' 16908 else 16909 if test "$aix_use_runtimelinking" = yes; then 16910 shared_flag='${wl}-G' 16911 else 16912 shared_flag='${wl}-bM:SRE' 16913 fi 16914 fi 16915 fi 16916 16917 # It seems that -bexpall does not export symbols beginning with 16918 # underscore (_), so it is better to generate a list of symbols to export. 16919 always_export_symbols_GCJ=yes 16920 if test "$aix_use_runtimelinking" = yes; then 16921 # Warning - without using the other runtime loading flags (-brtl), 16922 # -berok will link without error, but may produce a broken library. 16923 allow_undefined_flag_GCJ='-berok' 16924 # Determine the default libpath from the value encoded in an empty executable. 16925 cat >conftest.$ac_ext <<_ACEOF 16926/* confdefs.h. */ 16927_ACEOF 16928cat confdefs.h >>conftest.$ac_ext 16929cat >>conftest.$ac_ext <<_ACEOF 16930/* end confdefs.h. */ 16931 16932int 16933main () 16934{ 16935 16936 ; 16937 return 0; 16938} 16939_ACEOF 16940rm -f conftest.$ac_objext conftest$ac_exeext 16941if { (ac_try="$ac_link" 16942case "(($ac_try" in 16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16944 *) ac_try_echo=$ac_try;; 16945esac 16946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16947 (eval "$ac_link") 2>conftest.er1 16948 ac_status=$? 16949 grep -v '^ *+' conftest.er1 >conftest.err 16950 rm -f conftest.er1 16951 cat conftest.err >&5 16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16953 (exit $ac_status); } && { 16954 test -z "$ac_c_werror_flag" || 16955 test ! -s conftest.err 16956 } && test -s conftest$ac_exeext && 16957 $as_test_x conftest$ac_exeext; then 16958 16959aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16960}'` 16961# Check for a 64-bit object if we didn't find anything. 16962if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16963}'`; fi 16964else 16965 echo "$as_me: failed program was:" >&5 16966sed 's/^/| /' conftest.$ac_ext >&5 16967 16968 16969fi 16970 16971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16972 conftest$ac_exeext conftest.$ac_ext 16973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16974 16975 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16976 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" 16977 else 16978 if test "$host_cpu" = ia64; then 16979 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16980 allow_undefined_flag_GCJ="-z nodefs" 16981 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" 16982 else 16983 # Determine the default libpath from the value encoded in an empty executable. 16984 cat >conftest.$ac_ext <<_ACEOF 16985/* confdefs.h. */ 16986_ACEOF 16987cat confdefs.h >>conftest.$ac_ext 16988cat >>conftest.$ac_ext <<_ACEOF 16989/* end confdefs.h. */ 16990 16991int 16992main () 16993{ 16994 16995 ; 16996 return 0; 16997} 16998_ACEOF 16999rm -f conftest.$ac_objext conftest$ac_exeext 17000if { (ac_try="$ac_link" 17001case "(($ac_try" in 17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17003 *) ac_try_echo=$ac_try;; 17004esac 17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17006 (eval "$ac_link") 2>conftest.er1 17007 ac_status=$? 17008 grep -v '^ *+' conftest.er1 >conftest.err 17009 rm -f conftest.er1 17010 cat conftest.err >&5 17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17012 (exit $ac_status); } && { 17013 test -z "$ac_c_werror_flag" || 17014 test ! -s conftest.err 17015 } && test -s conftest$ac_exeext && 17016 $as_test_x conftest$ac_exeext; then 17017 17018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17019}'` 17020# Check for a 64-bit object if we didn't find anything. 17021if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17022}'`; fi 17023else 17024 echo "$as_me: failed program was:" >&5 17025sed 's/^/| /' conftest.$ac_ext >&5 17026 17027 17028fi 17029 17030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17031 conftest$ac_exeext conftest.$ac_ext 17032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17033 17034 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17035 # Warning - without using the other run time loading flags, 17036 # -berok will link without error, but may produce a broken library. 17037 no_undefined_flag_GCJ=' ${wl}-bernotok' 17038 allow_undefined_flag_GCJ=' ${wl}-berok' 17039 # Exported symbols can be pulled into shared objects from archives 17040 whole_archive_flag_spec_GCJ='$convenience' 17041 archive_cmds_need_lc_GCJ=yes 17042 # This is similar to how AIX traditionally builds its shared libraries. 17043 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' 17044 fi 17045 fi 17046 ;; 17047 17048 amigaos*) 17049 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)' 17050 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17051 hardcode_minus_L_GCJ=yes 17052 # see comment about different semantics on the GNU ld section 17053 ld_shlibs_GCJ=no 17054 ;; 17055 17056 bsdi[45]*) 17057 export_dynamic_flag_spec_GCJ=-rdynamic 17058 ;; 17059 17060 cygwin* | mingw* | pw32*) 17061 # When not using gcc, we currently assume that we are using 17062 # Microsoft Visual C++. 17063 # hardcode_libdir_flag_spec is actually meaningless, as there is 17064 # no search path for DLLs. 17065 hardcode_libdir_flag_spec_GCJ=' ' 17066 allow_undefined_flag_GCJ=unsupported 17067 # Tell ltmain to make .lib files, not .a files. 17068 libext=lib 17069 # Tell ltmain to make .dll files, not .so files. 17070 shrext_cmds=".dll" 17071 # FIXME: Setting linknames here is a bad hack. 17072 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17073 # The linker will automatically build a .lib file if we build a DLL. 17074 old_archive_From_new_cmds_GCJ='true' 17075 # FIXME: Should let the user specify the lib program. 17076 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17077 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17078 enable_shared_with_static_runtimes_GCJ=yes 17079 ;; 17080 17081 darwin* | rhapsody*) 17082 case $host_os in 17083 rhapsody* | darwin1.[012]) 17084 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17085 ;; 17086 *) # Darwin 1.3 on 17087 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17088 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17089 else 17090 case ${MACOSX_DEPLOYMENT_TARGET} in 17091 10.[012]) 17092 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17093 ;; 17094 10.*) 17095 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17096 ;; 17097 esac 17098 fi 17099 ;; 17100 esac 17101 archive_cmds_need_lc_GCJ=no 17102 hardcode_direct_GCJ=no 17103 hardcode_automatic_GCJ=yes 17104 hardcode_shlibpath_var_GCJ=unsupported 17105 whole_archive_flag_spec_GCJ='' 17106 link_all_deplibs_GCJ=yes 17107 if test "$GCC" = yes ; then 17108 output_verbose_link_cmd='echo' 17109 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17110 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17112 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17113 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}' 17114 else 17115 case $cc_basename in 17116 xlc*) 17117 output_verbose_link_cmd='echo' 17118 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17119 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17120 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17121 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17122 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}' 17123 ;; 17124 *) 17125 ld_shlibs_GCJ=no 17126 ;; 17127 esac 17128 fi 17129 ;; 17130 17131 dgux*) 17132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17133 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17134 hardcode_shlibpath_var_GCJ=no 17135 ;; 17136 17137 freebsd1*) 17138 ld_shlibs_GCJ=no 17139 ;; 17140 17141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17142 # support. Future versions do this automatically, but an explicit c++rt0.o 17143 # does not break anything, and helps significantly (at the cost of a little 17144 # extra space). 17145 freebsd2.2*) 17146 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17147 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17148 hardcode_direct_GCJ=yes 17149 hardcode_shlibpath_var_GCJ=no 17150 ;; 17151 17152 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17153 freebsd2*) 17154 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17155 hardcode_direct_GCJ=yes 17156 hardcode_minus_L_GCJ=yes 17157 hardcode_shlibpath_var_GCJ=no 17158 ;; 17159 17160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17161 freebsd* | dragonfly*) 17162 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17163 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17164 hardcode_direct_GCJ=yes 17165 hardcode_shlibpath_var_GCJ=no 17166 ;; 17167 17168 hpux9*) 17169 if test "$GCC" = yes; then 17170 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' 17171 else 17172 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' 17173 fi 17174 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17175 hardcode_libdir_separator_GCJ=: 17176 hardcode_direct_GCJ=yes 17177 17178 # hardcode_minus_L: Not really in the search PATH, 17179 # but as the default location of the library. 17180 hardcode_minus_L_GCJ=yes 17181 export_dynamic_flag_spec_GCJ='${wl}-E' 17182 ;; 17183 17184 hpux10*) 17185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17186 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17187 else 17188 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17189 fi 17190 if test "$with_gnu_ld" = no; then 17191 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17192 hardcode_libdir_separator_GCJ=: 17193 17194 hardcode_direct_GCJ=yes 17195 export_dynamic_flag_spec_GCJ='${wl}-E' 17196 17197 # hardcode_minus_L: Not really in the search PATH, 17198 # but as the default location of the library. 17199 hardcode_minus_L_GCJ=yes 17200 fi 17201 ;; 17202 17203 hpux11*) 17204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17205 case $host_cpu in 17206 hppa*64*) 17207 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17208 ;; 17209 ia64*) 17210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17211 ;; 17212 *) 17213 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17214 ;; 17215 esac 17216 else 17217 case $host_cpu in 17218 hppa*64*) 17219 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17220 ;; 17221 ia64*) 17222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17223 ;; 17224 *) 17225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17226 ;; 17227 esac 17228 fi 17229 if test "$with_gnu_ld" = no; then 17230 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17231 hardcode_libdir_separator_GCJ=: 17232 17233 case $host_cpu in 17234 hppa*64*|ia64*) 17235 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17236 hardcode_direct_GCJ=no 17237 hardcode_shlibpath_var_GCJ=no 17238 ;; 17239 *) 17240 hardcode_direct_GCJ=yes 17241 export_dynamic_flag_spec_GCJ='${wl}-E' 17242 17243 # hardcode_minus_L: Not really in the search PATH, 17244 # but as the default location of the library. 17245 hardcode_minus_L_GCJ=yes 17246 ;; 17247 esac 17248 fi 17249 ;; 17250 17251 irix5* | irix6* | nonstopux*) 17252 if test "$GCC" = yes; then 17253 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' 17254 else 17255 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' 17256 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17257 fi 17258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17259 hardcode_libdir_separator_GCJ=: 17260 link_all_deplibs_GCJ=yes 17261 ;; 17262 17263 netbsd* | netbsdelf*-gnu) 17264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17265 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17266 else 17267 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17268 fi 17269 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17270 hardcode_direct_GCJ=yes 17271 hardcode_shlibpath_var_GCJ=no 17272 ;; 17273 17274 newsos6) 17275 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17276 hardcode_direct_GCJ=yes 17277 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17278 hardcode_libdir_separator_GCJ=: 17279 hardcode_shlibpath_var_GCJ=no 17280 ;; 17281 17282 openbsd*) 17283 hardcode_direct_GCJ=yes 17284 hardcode_shlibpath_var_GCJ=no 17285 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17286 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17287 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17288 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17289 export_dynamic_flag_spec_GCJ='${wl}-E' 17290 else 17291 case $host_os in 17292 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17293 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17294 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17295 ;; 17296 *) 17297 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17299 ;; 17300 esac 17301 fi 17302 ;; 17303 17304 os2*) 17305 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17306 hardcode_minus_L_GCJ=yes 17307 allow_undefined_flag_GCJ=unsupported 17308 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' 17309 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17310 ;; 17311 17312 osf3*) 17313 if test "$GCC" = yes; then 17314 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17315 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' 17316 else 17317 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17318 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' 17319 fi 17320 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17321 hardcode_libdir_separator_GCJ=: 17322 ;; 17323 17324 osf4* | osf5*) # as osf3* with the addition of -msym flag 17325 if test "$GCC" = yes; then 17326 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17327 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' 17328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17329 else 17330 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17331 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' 17332 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~ 17333 $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' 17334 17335 # Both c and cxx compiler support -rpath directly 17336 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17337 fi 17338 hardcode_libdir_separator_GCJ=: 17339 ;; 17340 17341 solaris*) 17342 no_undefined_flag_GCJ=' -z text' 17343 if test "$GCC" = yes; then 17344 wlarc='${wl}' 17345 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17346 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17347 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17348 else 17349 wlarc='' 17350 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17351 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17353 fi 17354 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17355 hardcode_shlibpath_var_GCJ=no 17356 case $host_os in 17357 solaris2.[0-5] | solaris2.[0-5].*) ;; 17358 *) 17359 # The compiler driver will combine linker options so we 17360 # cannot just pass the convience library names through 17361 # without $wl, iff we do not link with $LD. 17362 # Luckily, gcc supports the same syntax we need for Sun Studio. 17363 # Supported since Solaris 2.6 (maybe 2.5.1?) 17364 case $wlarc in 17365 '') 17366 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17367 *) 17368 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17369 esac ;; 17370 esac 17371 link_all_deplibs_GCJ=yes 17372 ;; 17373 17374 sunos4*) 17375 if test "x$host_vendor" = xsequent; then 17376 # Use $CC to link under sequent, because it throws in some extra .o 17377 # files that make .init and .fini sections work. 17378 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17379 else 17380 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17381 fi 17382 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17383 hardcode_direct_GCJ=yes 17384 hardcode_minus_L_GCJ=yes 17385 hardcode_shlibpath_var_GCJ=no 17386 ;; 17387 17388 sysv4) 17389 case $host_vendor in 17390 sni) 17391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17392 hardcode_direct_GCJ=yes # is this really true??? 17393 ;; 17394 siemens) 17395 ## LD is ld it makes a PLAMLIB 17396 ## CC just makes a GrossModule. 17397 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17398 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17399 hardcode_direct_GCJ=no 17400 ;; 17401 motorola) 17402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17403 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17404 ;; 17405 esac 17406 runpath_var='LD_RUN_PATH' 17407 hardcode_shlibpath_var_GCJ=no 17408 ;; 17409 17410 sysv4.3*) 17411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17412 hardcode_shlibpath_var_GCJ=no 17413 export_dynamic_flag_spec_GCJ='-Bexport' 17414 ;; 17415 17416 sysv4*MP*) 17417 if test -d /usr/nec; then 17418 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17419 hardcode_shlibpath_var_GCJ=no 17420 runpath_var=LD_RUN_PATH 17421 hardcode_runpath_var=yes 17422 ld_shlibs_GCJ=yes 17423 fi 17424 ;; 17425 17426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17427 no_undefined_flag_GCJ='${wl}-z,text' 17428 archive_cmds_need_lc_GCJ=no 17429 hardcode_shlibpath_var_GCJ=no 17430 runpath_var='LD_RUN_PATH' 17431 17432 if test "$GCC" = yes; then 17433 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17434 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17435 else 17436 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17437 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17438 fi 17439 ;; 17440 17441 sysv5* | sco3.2v5* | sco5v6*) 17442 # Note: We can NOT use -z defs as we might desire, because we do not 17443 # link with -lc, and that would cause any symbols used from libc to 17444 # always be unresolved, which means just about no library would 17445 # ever link correctly. If we're not using GNU ld we use -z text 17446 # though, which does catch some bad symbols but isn't as heavy-handed 17447 # as -z defs. 17448 no_undefined_flag_GCJ='${wl}-z,text' 17449 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17450 archive_cmds_need_lc_GCJ=no 17451 hardcode_shlibpath_var_GCJ=no 17452 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17453 hardcode_libdir_separator_GCJ=':' 17454 link_all_deplibs_GCJ=yes 17455 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17456 runpath_var='LD_RUN_PATH' 17457 17458 if test "$GCC" = yes; then 17459 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17460 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17461 else 17462 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17463 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17464 fi 17465 ;; 17466 17467 uts4*) 17468 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17469 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17470 hardcode_shlibpath_var_GCJ=no 17471 ;; 17472 17473 *) 17474 ld_shlibs_GCJ=no 17475 ;; 17476 esac 17477 fi 17478 17479{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17480echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17481test "$ld_shlibs_GCJ" = no && can_build_shared=no 17482 17483# 17484# Do we need to explicitly link libc? 17485# 17486case "x$archive_cmds_need_lc_GCJ" in 17487x|xyes) 17488 # Assume -lc should be added 17489 archive_cmds_need_lc_GCJ=yes 17490 17491 if test "$enable_shared" = yes && test "$GCC" = yes; then 17492 case $archive_cmds_GCJ in 17493 *'~'*) 17494 # FIXME: we may have to deal with multi-command sequences. 17495 ;; 17496 '$CC '*) 17497 # Test whether the compiler implicitly links with -lc since on some 17498 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17499 # to ld, don't add -lc before -lgcc. 17500 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17501echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17502 $rm conftest* 17503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17504 17505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17506 (eval $ac_compile) 2>&5 17507 ac_status=$? 17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17509 (exit $ac_status); } 2>conftest.err; then 17510 soname=conftest 17511 lib=conftest 17512 libobjs=conftest.$ac_objext 17513 deplibs= 17514 wl=$lt_prog_compiler_wl_GCJ 17515 pic_flag=$lt_prog_compiler_pic_GCJ 17516 compiler_flags=-v 17517 linker_flags=-v 17518 verstring= 17519 output_objdir=. 17520 libname=conftest 17521 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17522 allow_undefined_flag_GCJ= 17523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17524 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17525 ac_status=$? 17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17527 (exit $ac_status); } 17528 then 17529 archive_cmds_need_lc_GCJ=no 17530 else 17531 archive_cmds_need_lc_GCJ=yes 17532 fi 17533 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17534 else 17535 cat conftest.err 1>&5 17536 fi 17537 $rm conftest* 17538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17539echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17540 ;; 17541 esac 17542 fi 17543 ;; 17544esac 17545 17546{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17548library_names_spec= 17549libname_spec='lib$name' 17550soname_spec= 17551shrext_cmds=".so" 17552postinstall_cmds= 17553postuninstall_cmds= 17554finish_cmds= 17555finish_eval= 17556shlibpath_var= 17557shlibpath_overrides_runpath=unknown 17558version_type=none 17559dynamic_linker="$host_os ld.so" 17560sys_lib_dlsearch_path_spec="/lib /usr/lib" 17561if test "$GCC" = yes; then 17562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17564 # if the path contains ";" then we assume it to be the separator 17565 # otherwise default to the standard path separator (i.e. ":") - it is 17566 # assumed that no part of a normal pathname contains ";" but that should 17567 # okay in the real world where ";" in dirpaths is itself problematic. 17568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17569 else 17570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17571 fi 17572else 17573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17574fi 17575need_lib_prefix=unknown 17576hardcode_into_libs=no 17577 17578# when you set need_version to no, make sure it does not cause -set_version 17579# flags to be left without arguments 17580need_version=unknown 17581 17582case $host_os in 17583aix3*) 17584 version_type=linux 17585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17586 shlibpath_var=LIBPATH 17587 17588 # AIX 3 has no versioning support, so we append a major version to the name. 17589 soname_spec='${libname}${release}${shared_ext}$major' 17590 ;; 17591 17592aix4* | aix5*) 17593 version_type=linux 17594 need_lib_prefix=no 17595 need_version=no 17596 hardcode_into_libs=yes 17597 if test "$host_cpu" = ia64; then 17598 # AIX 5 supports IA64 17599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17600 shlibpath_var=LD_LIBRARY_PATH 17601 else 17602 # With GCC up to 2.95.x, collect2 would create an import file 17603 # for dependence libraries. The import file would start with 17604 # the line `#! .'. This would cause the generated library to 17605 # depend on `.', always an invalid library. This was fixed in 17606 # development snapshots of GCC prior to 3.0. 17607 case $host_os in 17608 aix4 | aix4.[01] | aix4.[01].*) 17609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17610 echo ' yes ' 17611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17612 : 17613 else 17614 can_build_shared=no 17615 fi 17616 ;; 17617 esac 17618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17619 # soname into executable. Probably we can add versioning support to 17620 # collect2, so additional links can be useful in future. 17621 if test "$aix_use_runtimelinking" = yes; then 17622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17623 # instead of lib<name>.a to let people know that these are not 17624 # typical AIX shared libraries. 17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17626 else 17627 # We preserve .a as extension for shared libraries through AIX4.2 17628 # and later when we are not doing run time linking. 17629 library_names_spec='${libname}${release}.a $libname.a' 17630 soname_spec='${libname}${release}${shared_ext}$major' 17631 fi 17632 shlibpath_var=LIBPATH 17633 fi 17634 ;; 17635 17636amigaos*) 17637 library_names_spec='$libname.ixlibrary $libname.a' 17638 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17639 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' 17640 ;; 17641 17642beos*) 17643 library_names_spec='${libname}${shared_ext}' 17644 dynamic_linker="$host_os ld.so" 17645 shlibpath_var=LIBRARY_PATH 17646 ;; 17647 17648bsdi[45]*) 17649 version_type=linux 17650 need_version=no 17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17652 soname_spec='${libname}${release}${shared_ext}$major' 17653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17654 shlibpath_var=LD_LIBRARY_PATH 17655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17657 # the default ld.so.conf also contains /usr/contrib/lib and 17658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17659 # libtool to hard-code these into programs 17660 ;; 17661 17662cygwin* | mingw* | pw32*) 17663 version_type=windows 17664 shrext_cmds=".dll" 17665 need_version=no 17666 need_lib_prefix=no 17667 17668 case $GCC,$host_os in 17669 yes,cygwin* | yes,mingw* | yes,pw32*) 17670 library_names_spec='$libname.dll.a' 17671 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17672 postinstall_cmds='base_file=`basename \${file}`~ 17673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17674 dldir=$destdir/`dirname \$dlpath`~ 17675 test -d \$dldir || mkdir -p \$dldir~ 17676 $install_prog $dir/$dlname \$dldir/$dlname~ 17677 chmod a+x \$dldir/$dlname' 17678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17679 dlpath=$dir/\$dldll~ 17680 $rm \$dlpath' 17681 shlibpath_overrides_runpath=yes 17682 17683 case $host_os in 17684 cygwin*) 17685 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17688 ;; 17689 mingw*) 17690 # MinGW DLLs use traditional 'lib' prefix 17691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17694 # It is most probably a Windows format PATH printed by 17695 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17696 # path with ; separators, and with drive letters. We can handle the 17697 # drive letters (cygwin fileutils understands them), so leave them, 17698 # especially as we might pass files found there to a mingw objdump, 17699 # which wouldn't understand a cygwinified path. Ahh. 17700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17701 else 17702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17703 fi 17704 ;; 17705 pw32*) 17706 # pw32 DLLs use 'pw' prefix rather than 'lib' 17707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17708 ;; 17709 esac 17710 ;; 17711 17712 *) 17713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17714 ;; 17715 esac 17716 dynamic_linker='Win32 ld.exe' 17717 # FIXME: first we should search . and the directory the executable is in 17718 shlibpath_var=PATH 17719 ;; 17720 17721darwin* | rhapsody*) 17722 dynamic_linker="$host_os dyld" 17723 version_type=darwin 17724 need_lib_prefix=no 17725 need_version=no 17726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17727 soname_spec='${libname}${release}${major}$shared_ext' 17728 shlibpath_overrides_runpath=yes 17729 shlibpath_var=DYLD_LIBRARY_PATH 17730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17732 if test "$GCC" = yes; then 17733 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17734 else 17735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17736 fi 17737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17738 ;; 17739 17740dgux*) 17741 version_type=linux 17742 need_lib_prefix=no 17743 need_version=no 17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17745 soname_spec='${libname}${release}${shared_ext}$major' 17746 shlibpath_var=LD_LIBRARY_PATH 17747 ;; 17748 17749freebsd1*) 17750 dynamic_linker=no 17751 ;; 17752 17753freebsd* | dragonfly*) 17754 # DragonFly does not have aout. When/if they implement a new 17755 # versioning mechanism, adjust this. 17756 if test -x /usr/bin/objformat; then 17757 objformat=`/usr/bin/objformat` 17758 else 17759 case $host_os in 17760 freebsd[123]*) objformat=aout ;; 17761 *) objformat=elf ;; 17762 esac 17763 fi 17764 version_type=freebsd-$objformat 17765 case $version_type in 17766 freebsd-elf*) 17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17768 need_version=no 17769 need_lib_prefix=no 17770 ;; 17771 freebsd-*) 17772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17773 need_version=yes 17774 ;; 17775 esac 17776 shlibpath_var=LD_LIBRARY_PATH 17777 case $host_os in 17778 freebsd2*) 17779 shlibpath_overrides_runpath=yes 17780 ;; 17781 freebsd3.[01]* | freebsdelf3.[01]*) 17782 shlibpath_overrides_runpath=yes 17783 hardcode_into_libs=yes 17784 ;; 17785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17787 shlibpath_overrides_runpath=no 17788 hardcode_into_libs=yes 17789 ;; 17790 freebsd*) # from 4.6 on 17791 shlibpath_overrides_runpath=yes 17792 hardcode_into_libs=yes 17793 ;; 17794 esac 17795 ;; 17796 17797gnu*) 17798 version_type=linux 17799 need_lib_prefix=no 17800 need_version=no 17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17802 soname_spec='${libname}${release}${shared_ext}$major' 17803 shlibpath_var=LD_LIBRARY_PATH 17804 hardcode_into_libs=yes 17805 ;; 17806 17807hpux9* | hpux10* | hpux11*) 17808 # Give a soname corresponding to the major version so that dld.sl refuses to 17809 # link against other versions. 17810 version_type=sunos 17811 need_lib_prefix=no 17812 need_version=no 17813 case $host_cpu in 17814 ia64*) 17815 shrext_cmds='.so' 17816 hardcode_into_libs=yes 17817 dynamic_linker="$host_os dld.so" 17818 shlibpath_var=LD_LIBRARY_PATH 17819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17821 soname_spec='${libname}${release}${shared_ext}$major' 17822 if test "X$HPUX_IA64_MODE" = X32; then 17823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17824 else 17825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17826 fi 17827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17828 ;; 17829 hppa*64*) 17830 shrext_cmds='.sl' 17831 hardcode_into_libs=yes 17832 dynamic_linker="$host_os dld.sl" 17833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17836 soname_spec='${libname}${release}${shared_ext}$major' 17837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17839 ;; 17840 *) 17841 shrext_cmds='.sl' 17842 dynamic_linker="$host_os dld.sl" 17843 shlibpath_var=SHLIB_PATH 17844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17846 soname_spec='${libname}${release}${shared_ext}$major' 17847 ;; 17848 esac 17849 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17850 postinstall_cmds='chmod 555 $lib' 17851 ;; 17852 17853interix3*) 17854 version_type=linux 17855 need_lib_prefix=no 17856 need_version=no 17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17858 soname_spec='${libname}${release}${shared_ext}$major' 17859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17860 shlibpath_var=LD_LIBRARY_PATH 17861 shlibpath_overrides_runpath=no 17862 hardcode_into_libs=yes 17863 ;; 17864 17865irix5* | irix6* | nonstopux*) 17866 case $host_os in 17867 nonstopux*) version_type=nonstopux ;; 17868 *) 17869 if test "$lt_cv_prog_gnu_ld" = yes; then 17870 version_type=linux 17871 else 17872 version_type=irix 17873 fi ;; 17874 esac 17875 need_lib_prefix=no 17876 need_version=no 17877 soname_spec='${libname}${release}${shared_ext}$major' 17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17879 case $host_os in 17880 irix5* | nonstopux*) 17881 libsuff= shlibsuff= 17882 ;; 17883 *) 17884 case $LD in # libtool.m4 will add one of these switches to LD 17885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17886 libsuff= shlibsuff= libmagic=32-bit;; 17887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17888 libsuff=32 shlibsuff=N32 libmagic=N32;; 17889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17890 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17891 *) libsuff= shlibsuff= libmagic=never-match;; 17892 esac 17893 ;; 17894 esac 17895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17896 shlibpath_overrides_runpath=no 17897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17899 hardcode_into_libs=yes 17900 ;; 17901 17902# No shared lib support for Linux oldld, aout, or coff. 17903linux*oldld* | linux*aout* | linux*coff*) 17904 dynamic_linker=no 17905 ;; 17906 17907# This must be Linux ELF. 17908linux* | k*bsd*-gnu) 17909 version_type=linux 17910 need_lib_prefix=no 17911 need_version=no 17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17913 soname_spec='${libname}${release}${shared_ext}$major' 17914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17915 shlibpath_var=LD_LIBRARY_PATH 17916 shlibpath_overrides_runpath=no 17917 # This implies no fast_install, which is unacceptable. 17918 # Some rework will be needed to allow for fast_install 17919 # before this can be enabled. 17920 hardcode_into_libs=yes 17921 17922 # Append ld.so.conf contents to the search path 17923 if test -f /etc/ld.so.conf; then 17924 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17926 fi 17927 17928 # We used to test for /lib/ld.so.1 and disable shared libraries on 17929 # powerpc, because MkLinux only supported shared libraries with the 17930 # GNU dynamic linker. Since this was broken with cross compilers, 17931 # most powerpc-linux boxes support dynamic linking these days and 17932 # people can always --disable-shared, the test was removed, and we 17933 # assume the GNU/Linux dynamic linker is in use. 17934 dynamic_linker='GNU/Linux ld.so' 17935 ;; 17936 17937netbsdelf*-gnu) 17938 version_type=linux 17939 need_lib_prefix=no 17940 need_version=no 17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17942 soname_spec='${libname}${release}${shared_ext}$major' 17943 shlibpath_var=LD_LIBRARY_PATH 17944 shlibpath_overrides_runpath=no 17945 hardcode_into_libs=yes 17946 dynamic_linker='NetBSD ld.elf_so' 17947 ;; 17948 17949netbsd*) 17950 version_type=sunos 17951 need_lib_prefix=no 17952 need_version=no 17953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17956 dynamic_linker='NetBSD (a.out) ld.so' 17957 else 17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17959 soname_spec='${libname}${release}${shared_ext}$major' 17960 dynamic_linker='NetBSD ld.elf_so' 17961 fi 17962 shlibpath_var=LD_LIBRARY_PATH 17963 shlibpath_overrides_runpath=yes 17964 hardcode_into_libs=yes 17965 ;; 17966 17967newsos6) 17968 version_type=linux 17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17970 shlibpath_var=LD_LIBRARY_PATH 17971 shlibpath_overrides_runpath=yes 17972 ;; 17973 17974nto-qnx*) 17975 version_type=linux 17976 need_lib_prefix=no 17977 need_version=no 17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17979 soname_spec='${libname}${release}${shared_ext}$major' 17980 shlibpath_var=LD_LIBRARY_PATH 17981 shlibpath_overrides_runpath=yes 17982 ;; 17983 17984openbsd*) 17985 version_type=sunos 17986 sys_lib_dlsearch_path_spec="/usr/lib" 17987 need_lib_prefix=no 17988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17989 case $host_os in 17990 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17991 *) need_version=no ;; 17992 esac 17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17995 shlibpath_var=LD_LIBRARY_PATH 17996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17997 case $host_os in 17998 openbsd2.[89] | openbsd2.[89].*) 17999 shlibpath_overrides_runpath=no 18000 ;; 18001 *) 18002 shlibpath_overrides_runpath=yes 18003 ;; 18004 esac 18005 else 18006 shlibpath_overrides_runpath=yes 18007 fi 18008 ;; 18009 18010os2*) 18011 libname_spec='$name' 18012 shrext_cmds=".dll" 18013 need_lib_prefix=no 18014 library_names_spec='$libname${shared_ext} $libname.a' 18015 dynamic_linker='OS/2 ld.exe' 18016 shlibpath_var=LIBPATH 18017 ;; 18018 18019osf3* | osf4* | osf5*) 18020 version_type=osf 18021 need_lib_prefix=no 18022 need_version=no 18023 soname_spec='${libname}${release}${shared_ext}$major' 18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18025 shlibpath_var=LD_LIBRARY_PATH 18026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18028 ;; 18029 18030solaris*) 18031 version_type=linux 18032 need_lib_prefix=no 18033 need_version=no 18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18035 soname_spec='${libname}${release}${shared_ext}$major' 18036 shlibpath_var=LD_LIBRARY_PATH 18037 shlibpath_overrides_runpath=yes 18038 hardcode_into_libs=yes 18039 # ldd complains unless libraries are executable 18040 postinstall_cmds='chmod +x $lib' 18041 ;; 18042 18043sunos4*) 18044 version_type=sunos 18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18047 shlibpath_var=LD_LIBRARY_PATH 18048 shlibpath_overrides_runpath=yes 18049 if test "$with_gnu_ld" = yes; then 18050 need_lib_prefix=no 18051 fi 18052 need_version=yes 18053 ;; 18054 18055sysv4 | sysv4.3*) 18056 version_type=linux 18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18058 soname_spec='${libname}${release}${shared_ext}$major' 18059 shlibpath_var=LD_LIBRARY_PATH 18060 case $host_vendor in 18061 sni) 18062 shlibpath_overrides_runpath=no 18063 need_lib_prefix=no 18064 export_dynamic_flag_spec='${wl}-Blargedynsym' 18065 runpath_var=LD_RUN_PATH 18066 ;; 18067 siemens) 18068 need_lib_prefix=no 18069 ;; 18070 motorola) 18071 need_lib_prefix=no 18072 need_version=no 18073 shlibpath_overrides_runpath=no 18074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18075 ;; 18076 esac 18077 ;; 18078 18079sysv4*MP*) 18080 if test -d /usr/nec ;then 18081 version_type=linux 18082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18083 soname_spec='$libname${shared_ext}.$major' 18084 shlibpath_var=LD_LIBRARY_PATH 18085 fi 18086 ;; 18087 18088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18089 version_type=freebsd-elf 18090 need_lib_prefix=no 18091 need_version=no 18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18093 soname_spec='${libname}${release}${shared_ext}$major' 18094 shlibpath_var=LD_LIBRARY_PATH 18095 hardcode_into_libs=yes 18096 if test "$with_gnu_ld" = yes; then 18097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18098 shlibpath_overrides_runpath=no 18099 else 18100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18101 shlibpath_overrides_runpath=yes 18102 case $host_os in 18103 sco3.2v5*) 18104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18105 ;; 18106 esac 18107 fi 18108 sys_lib_dlsearch_path_spec='/usr/lib' 18109 ;; 18110 18111uts4*) 18112 version_type=linux 18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18114 soname_spec='${libname}${release}${shared_ext}$major' 18115 shlibpath_var=LD_LIBRARY_PATH 18116 ;; 18117 18118*) 18119 dynamic_linker=no 18120 ;; 18121esac 18122{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18123echo "${ECHO_T}$dynamic_linker" >&6; } 18124test "$dynamic_linker" = no && can_build_shared=no 18125 18126variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18127if test "$GCC" = yes; then 18128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18129fi 18130 18131{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18132echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18133hardcode_action_GCJ= 18134if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18135 test -n "$runpath_var_GCJ" || \ 18136 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18137 18138 # We can hardcode non-existant directories. 18139 if test "$hardcode_direct_GCJ" != no && 18140 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18141 # have to relink, otherwise we might link with an installed library 18142 # when we should be linking with a yet-to-be-installed one 18143 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18144 test "$hardcode_minus_L_GCJ" != no; then 18145 # Linking always hardcodes the temporary library directory. 18146 hardcode_action_GCJ=relink 18147 else 18148 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18149 hardcode_action_GCJ=immediate 18150 fi 18151else 18152 # We cannot hardcode anything, or else we can only hardcode existing 18153 # directories. 18154 hardcode_action_GCJ=unsupported 18155fi 18156{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18157echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18158 18159if test "$hardcode_action_GCJ" = relink; then 18160 # Fast installation is not supported 18161 enable_fast_install=no 18162elif test "$shlibpath_overrides_runpath" = yes || 18163 test "$enable_shared" = no; then 18164 # Fast installation is not necessary 18165 enable_fast_install=needless 18166fi 18167 18168 18169# The else clause should only fire when bootstrapping the 18170# libtool distribution, otherwise you forgot to ship ltmain.sh 18171# with your package, and you will get complaints that there are 18172# no rules to generate ltmain.sh. 18173if test -f "$ltmain"; then 18174 # See if we are running on zsh, and set the options which allow our commands through 18175 # without removal of \ escapes. 18176 if test -n "${ZSH_VERSION+set}" ; then 18177 setopt NO_GLOB_SUBST 18178 fi 18179 # Now quote all the things that may contain metacharacters while being 18180 # careful not to overquote the AC_SUBSTed values. We take copies of the 18181 # variables and quote the copies for generation of the libtool script. 18182 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18183 SED SHELL STRIP \ 18184 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18185 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18186 deplibs_check_method reload_flag reload_cmds need_locks \ 18187 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18188 lt_cv_sys_global_symbol_to_c_name_address \ 18189 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18190 old_postinstall_cmds old_postuninstall_cmds \ 18191 compiler_GCJ \ 18192 CC_GCJ \ 18193 LD_GCJ \ 18194 lt_prog_compiler_wl_GCJ \ 18195 lt_prog_compiler_pic_GCJ \ 18196 lt_prog_compiler_static_GCJ \ 18197 lt_prog_compiler_no_builtin_flag_GCJ \ 18198 export_dynamic_flag_spec_GCJ \ 18199 thread_safe_flag_spec_GCJ \ 18200 whole_archive_flag_spec_GCJ \ 18201 enable_shared_with_static_runtimes_GCJ \ 18202 old_archive_cmds_GCJ \ 18203 old_archive_from_new_cmds_GCJ \ 18204 predep_objects_GCJ \ 18205 postdep_objects_GCJ \ 18206 predeps_GCJ \ 18207 postdeps_GCJ \ 18208 compiler_lib_search_path_GCJ \ 18209 archive_cmds_GCJ \ 18210 archive_expsym_cmds_GCJ \ 18211 postinstall_cmds_GCJ \ 18212 postuninstall_cmds_GCJ \ 18213 old_archive_from_expsyms_cmds_GCJ \ 18214 allow_undefined_flag_GCJ \ 18215 no_undefined_flag_GCJ \ 18216 export_symbols_cmds_GCJ \ 18217 hardcode_libdir_flag_spec_GCJ \ 18218 hardcode_libdir_flag_spec_ld_GCJ \ 18219 hardcode_libdir_separator_GCJ \ 18220 hardcode_automatic_GCJ \ 18221 module_cmds_GCJ \ 18222 module_expsym_cmds_GCJ \ 18223 lt_cv_prog_compiler_c_o_GCJ \ 18224 exclude_expsyms_GCJ \ 18225 include_expsyms_GCJ; do 18226 18227 case $var in 18228 old_archive_cmds_GCJ | \ 18229 old_archive_from_new_cmds_GCJ | \ 18230 archive_cmds_GCJ | \ 18231 archive_expsym_cmds_GCJ | \ 18232 module_cmds_GCJ | \ 18233 module_expsym_cmds_GCJ | \ 18234 old_archive_from_expsyms_cmds_GCJ | \ 18235 export_symbols_cmds_GCJ | \ 18236 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18237 postinstall_cmds | postuninstall_cmds | \ 18238 old_postinstall_cmds | old_postuninstall_cmds | \ 18239 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18240 # Double-quote double-evaled strings. 18241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18242 ;; 18243 *) 18244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18245 ;; 18246 esac 18247 done 18248 18249 case $lt_echo in 18250 *'\$0 --fallback-echo"') 18251 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18252 ;; 18253 esac 18254 18255cfgfile="$ofile" 18256 18257 cat <<__EOF__ >> "$cfgfile" 18258# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18259 18260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18261 18262# Shell to use when invoking shell scripts. 18263SHELL=$lt_SHELL 18264 18265# Whether or not to build shared libraries. 18266build_libtool_libs=$enable_shared 18267 18268# Whether or not to build static libraries. 18269build_old_libs=$enable_static 18270 18271# Whether or not to add -lc for building shared libraries. 18272build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18273 18274# Whether or not to disallow shared libs when runtime libs are static 18275allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18276 18277# Whether or not to optimize for fast installation. 18278fast_install=$enable_fast_install 18279 18280# The host system. 18281host_alias=$host_alias 18282host=$host 18283host_os=$host_os 18284 18285# The build system. 18286build_alias=$build_alias 18287build=$build 18288build_os=$build_os 18289 18290# An echo program that does not interpret backslashes. 18291echo=$lt_echo 18292 18293# The archiver. 18294AR=$lt_AR 18295AR_FLAGS=$lt_AR_FLAGS 18296 18297# A C compiler. 18298LTCC=$lt_LTCC 18299 18300# LTCC compiler flags. 18301LTCFLAGS=$lt_LTCFLAGS 18302 18303# A language-specific compiler. 18304CC=$lt_compiler_GCJ 18305 18306# Is the compiler the GNU C compiler? 18307with_gcc=$GCC_GCJ 18308 18309# An ERE matcher. 18310EGREP=$lt_EGREP 18311 18312# The linker used to build libraries. 18313LD=$lt_LD_GCJ 18314 18315# Whether we need hard or soft links. 18316LN_S=$lt_LN_S 18317 18318# A BSD-compatible nm program. 18319NM=$lt_NM 18320 18321# A symbol stripping program 18322STRIP=$lt_STRIP 18323 18324# Used to examine libraries when file_magic_cmd begins "file" 18325MAGIC_CMD=$MAGIC_CMD 18326 18327# Used on cygwin: DLL creation program. 18328DLLTOOL="$DLLTOOL" 18329 18330# Used on cygwin: object dumper. 18331OBJDUMP="$OBJDUMP" 18332 18333# Used on cygwin: assembler. 18334AS="$AS" 18335 18336# The name of the directory that contains temporary libtool files. 18337objdir=$objdir 18338 18339# How to create reloadable object files. 18340reload_flag=$lt_reload_flag 18341reload_cmds=$lt_reload_cmds 18342 18343# How to pass a linker flag through the compiler. 18344wl=$lt_lt_prog_compiler_wl_GCJ 18345 18346# Object file suffix (normally "o"). 18347objext="$ac_objext" 18348 18349# Old archive suffix (normally "a"). 18350libext="$libext" 18351 18352# Shared library suffix (normally ".so"). 18353shrext_cmds='$shrext_cmds' 18354 18355# Executable file suffix (normally ""). 18356exeext="$exeext" 18357 18358# Additional compiler flags for building library objects. 18359pic_flag=$lt_lt_prog_compiler_pic_GCJ 18360pic_mode=$pic_mode 18361 18362# What is the maximum length of a command? 18363max_cmd_len=$lt_cv_sys_max_cmd_len 18364 18365# Does compiler simultaneously support -c and -o options? 18366compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18367 18368# Must we lock files when doing compilation? 18369need_locks=$lt_need_locks 18370 18371# Do we need the lib prefix for modules? 18372need_lib_prefix=$need_lib_prefix 18373 18374# Do we need a version for libraries? 18375need_version=$need_version 18376 18377# Whether dlopen is supported. 18378dlopen_support=$enable_dlopen 18379 18380# Whether dlopen of programs is supported. 18381dlopen_self=$enable_dlopen_self 18382 18383# Whether dlopen of statically linked programs is supported. 18384dlopen_self_static=$enable_dlopen_self_static 18385 18386# Compiler flag to prevent dynamic linking. 18387link_static_flag=$lt_lt_prog_compiler_static_GCJ 18388 18389# Compiler flag to turn off builtin functions. 18390no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18391 18392# Compiler flag to allow reflexive dlopens. 18393export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18394 18395# Compiler flag to generate shared objects directly from archives. 18396whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18397 18398# Compiler flag to generate thread-safe objects. 18399thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18400 18401# Library versioning type. 18402version_type=$version_type 18403 18404# Format of library name prefix. 18405libname_spec=$lt_libname_spec 18406 18407# List of archive names. First name is the real one, the rest are links. 18408# The last name is the one that the linker finds with -lNAME. 18409library_names_spec=$lt_library_names_spec 18410 18411# The coded name of the library, if different from the real name. 18412soname_spec=$lt_soname_spec 18413 18414# Commands used to build and install an old-style archive. 18415RANLIB=$lt_RANLIB 18416old_archive_cmds=$lt_old_archive_cmds_GCJ 18417old_postinstall_cmds=$lt_old_postinstall_cmds 18418old_postuninstall_cmds=$lt_old_postuninstall_cmds 18419 18420# Create an old-style archive from a shared archive. 18421old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18422 18423# Create a temporary old-style archive to link instead of a shared archive. 18424old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18425 18426# Commands used to build and install a shared archive. 18427archive_cmds=$lt_archive_cmds_GCJ 18428archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18429postinstall_cmds=$lt_postinstall_cmds 18430postuninstall_cmds=$lt_postuninstall_cmds 18431 18432# Commands used to build a loadable module (assumed same as above if empty) 18433module_cmds=$lt_module_cmds_GCJ 18434module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18435 18436# Commands to strip libraries. 18437old_striplib=$lt_old_striplib 18438striplib=$lt_striplib 18439 18440# Dependencies to place before the objects being linked to create a 18441# shared library. 18442predep_objects=$lt_predep_objects_GCJ 18443 18444# Dependencies to place after the objects being linked to create a 18445# shared library. 18446postdep_objects=$lt_postdep_objects_GCJ 18447 18448# Dependencies to place before the objects being linked to create a 18449# shared library. 18450predeps=$lt_predeps_GCJ 18451 18452# Dependencies to place after the objects being linked to create a 18453# shared library. 18454postdeps=$lt_postdeps_GCJ 18455 18456# The library search path used internally by the compiler when linking 18457# a shared library. 18458compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18459 18460# Method to check whether dependent libraries are shared objects. 18461deplibs_check_method=$lt_deplibs_check_method 18462 18463# Command to use when deplibs_check_method == file_magic. 18464file_magic_cmd=$lt_file_magic_cmd 18465 18466# Flag that allows shared libraries with undefined symbols to be built. 18467allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18468 18469# Flag that forces no undefined symbols. 18470no_undefined_flag=$lt_no_undefined_flag_GCJ 18471 18472# Commands used to finish a libtool library installation in a directory. 18473finish_cmds=$lt_finish_cmds 18474 18475# Same as above, but a single script fragment to be evaled but not shown. 18476finish_eval=$lt_finish_eval 18477 18478# Take the output of nm and produce a listing of raw symbols and C names. 18479global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18480 18481# Transform the output of nm in a proper C declaration 18482global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18483 18484# Transform the output of nm in a C name address pair 18485global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18486 18487# This is the shared library runtime path variable. 18488runpath_var=$runpath_var 18489 18490# This is the shared library path variable. 18491shlibpath_var=$shlibpath_var 18492 18493# Is shlibpath searched before the hard-coded library search path? 18494shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18495 18496# How to hardcode a shared library path into an executable. 18497hardcode_action=$hardcode_action_GCJ 18498 18499# Whether we should hardcode library paths into libraries. 18500hardcode_into_libs=$hardcode_into_libs 18501 18502# Flag to hardcode \$libdir into a binary during linking. 18503# This must work even if \$libdir does not exist. 18504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18505 18506# If ld is used when linking, flag to hardcode \$libdir into 18507# a binary during linking. This must work even if \$libdir does 18508# not exist. 18509hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18510 18511# Whether we need a single -rpath flag with a separated argument. 18512hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18513 18514# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18515# resulting binary. 18516hardcode_direct=$hardcode_direct_GCJ 18517 18518# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18519# resulting binary. 18520hardcode_minus_L=$hardcode_minus_L_GCJ 18521 18522# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18523# the resulting binary. 18524hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18525 18526# Set to yes if building a shared library automatically hardcodes DIR into the library 18527# and all subsequent libraries and executables linked against it. 18528hardcode_automatic=$hardcode_automatic_GCJ 18529 18530# Variables whose values should be saved in libtool wrapper scripts and 18531# restored at relink time. 18532variables_saved_for_relink="$variables_saved_for_relink" 18533 18534# Whether libtool must link a program against all its dependency libraries. 18535link_all_deplibs=$link_all_deplibs_GCJ 18536 18537# Compile-time system search path for libraries 18538sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18539 18540# Run-time system search path for libraries 18541sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18542 18543# Fix the shell variable \$srcfile for the compiler. 18544fix_srcfile_path="$fix_srcfile_path_GCJ" 18545 18546# Set to yes if exported symbols are required. 18547always_export_symbols=$always_export_symbols_GCJ 18548 18549# The commands to list exported symbols. 18550export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18551 18552# The commands to extract the exported symbol list from a shared archive. 18553extract_expsyms_cmds=$lt_extract_expsyms_cmds 18554 18555# Symbols that should not be listed in the preloaded symbols. 18556exclude_expsyms=$lt_exclude_expsyms_GCJ 18557 18558# Symbols that must always be exported. 18559include_expsyms=$lt_include_expsyms_GCJ 18560 18561# ### END LIBTOOL TAG CONFIG: $tagname 18562 18563__EOF__ 18564 18565 18566else 18567 # If there is no Makefile yet, we rely on a make rule to execute 18568 # `config.status --recheck' to rerun these tests and create the 18569 # libtool script then. 18570 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18571 if test -f "$ltmain_in"; then 18572 test -f Makefile && make "$ltmain" 18573 fi 18574fi 18575 18576 18577ac_ext=c 18578ac_cpp='$CPP $CPPFLAGS' 18579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18581ac_compiler_gnu=$ac_cv_c_compiler_gnu 18582 18583CC="$lt_save_CC" 18584 18585 else 18586 tagname="" 18587 fi 18588 ;; 18589 18590 RC) 18591 18592 18593# Source file extension for RC test sources. 18594ac_ext=rc 18595 18596# Object file extension for compiled RC test sources. 18597objext=o 18598objext_RC=$objext 18599 18600# Code to be used in simple compile tests 18601lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18602 18603# Code to be used in simple link tests 18604lt_simple_link_test_code="$lt_simple_compile_test_code" 18605 18606# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18607 18608# If no C compiler was specified, use CC. 18609LTCC=${LTCC-"$CC"} 18610 18611# If no C compiler flags were specified, use CFLAGS. 18612LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18613 18614# Allow CC to be a program name with arguments. 18615compiler=$CC 18616 18617 18618# save warnings/boilerplate of simple test code 18619ac_outfile=conftest.$ac_objext 18620printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18621eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18622_lt_compiler_boilerplate=`cat conftest.err` 18623$rm conftest* 18624 18625ac_outfile=conftest.$ac_objext 18626printf "$lt_simple_link_test_code" >conftest.$ac_ext 18627eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18628_lt_linker_boilerplate=`cat conftest.err` 18629$rm conftest* 18630 18631 18632# Allow CC to be a program name with arguments. 18633lt_save_CC="$CC" 18634CC=${RC-"windres"} 18635compiler=$CC 18636compiler_RC=$CC 18637for cc_temp in $compiler""; do 18638 case $cc_temp in 18639 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18640 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18641 \-*) ;; 18642 *) break;; 18643 esac 18644done 18645cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18646 18647lt_cv_prog_compiler_c_o_RC=yes 18648 18649# The else clause should only fire when bootstrapping the 18650# libtool distribution, otherwise you forgot to ship ltmain.sh 18651# with your package, and you will get complaints that there are 18652# no rules to generate ltmain.sh. 18653if test -f "$ltmain"; then 18654 # See if we are running on zsh, and set the options which allow our commands through 18655 # without removal of \ escapes. 18656 if test -n "${ZSH_VERSION+set}" ; then 18657 setopt NO_GLOB_SUBST 18658 fi 18659 # Now quote all the things that may contain metacharacters while being 18660 # careful not to overquote the AC_SUBSTed values. We take copies of the 18661 # variables and quote the copies for generation of the libtool script. 18662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18663 SED SHELL STRIP \ 18664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18666 deplibs_check_method reload_flag reload_cmds need_locks \ 18667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18668 lt_cv_sys_global_symbol_to_c_name_address \ 18669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18670 old_postinstall_cmds old_postuninstall_cmds \ 18671 compiler_RC \ 18672 CC_RC \ 18673 LD_RC \ 18674 lt_prog_compiler_wl_RC \ 18675 lt_prog_compiler_pic_RC \ 18676 lt_prog_compiler_static_RC \ 18677 lt_prog_compiler_no_builtin_flag_RC \ 18678 export_dynamic_flag_spec_RC \ 18679 thread_safe_flag_spec_RC \ 18680 whole_archive_flag_spec_RC \ 18681 enable_shared_with_static_runtimes_RC \ 18682 old_archive_cmds_RC \ 18683 old_archive_from_new_cmds_RC \ 18684 predep_objects_RC \ 18685 postdep_objects_RC \ 18686 predeps_RC \ 18687 postdeps_RC \ 18688 compiler_lib_search_path_RC \ 18689 archive_cmds_RC \ 18690 archive_expsym_cmds_RC \ 18691 postinstall_cmds_RC \ 18692 postuninstall_cmds_RC \ 18693 old_archive_from_expsyms_cmds_RC \ 18694 allow_undefined_flag_RC \ 18695 no_undefined_flag_RC \ 18696 export_symbols_cmds_RC \ 18697 hardcode_libdir_flag_spec_RC \ 18698 hardcode_libdir_flag_spec_ld_RC \ 18699 hardcode_libdir_separator_RC \ 18700 hardcode_automatic_RC \ 18701 module_cmds_RC \ 18702 module_expsym_cmds_RC \ 18703 lt_cv_prog_compiler_c_o_RC \ 18704 exclude_expsyms_RC \ 18705 include_expsyms_RC; do 18706 18707 case $var in 18708 old_archive_cmds_RC | \ 18709 old_archive_from_new_cmds_RC | \ 18710 archive_cmds_RC | \ 18711 archive_expsym_cmds_RC | \ 18712 module_cmds_RC | \ 18713 module_expsym_cmds_RC | \ 18714 old_archive_from_expsyms_cmds_RC | \ 18715 export_symbols_cmds_RC | \ 18716 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18717 postinstall_cmds | postuninstall_cmds | \ 18718 old_postinstall_cmds | old_postuninstall_cmds | \ 18719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18720 # Double-quote double-evaled strings. 18721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18722 ;; 18723 *) 18724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18725 ;; 18726 esac 18727 done 18728 18729 case $lt_echo in 18730 *'\$0 --fallback-echo"') 18731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18732 ;; 18733 esac 18734 18735cfgfile="$ofile" 18736 18737 cat <<__EOF__ >> "$cfgfile" 18738# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18739 18740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18741 18742# Shell to use when invoking shell scripts. 18743SHELL=$lt_SHELL 18744 18745# Whether or not to build shared libraries. 18746build_libtool_libs=$enable_shared 18747 18748# Whether or not to build static libraries. 18749build_old_libs=$enable_static 18750 18751# Whether or not to add -lc for building shared libraries. 18752build_libtool_need_lc=$archive_cmds_need_lc_RC 18753 18754# Whether or not to disallow shared libs when runtime libs are static 18755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18756 18757# Whether or not to optimize for fast installation. 18758fast_install=$enable_fast_install 18759 18760# The host system. 18761host_alias=$host_alias 18762host=$host 18763host_os=$host_os 18764 18765# The build system. 18766build_alias=$build_alias 18767build=$build 18768build_os=$build_os 18769 18770# An echo program that does not interpret backslashes. 18771echo=$lt_echo 18772 18773# The archiver. 18774AR=$lt_AR 18775AR_FLAGS=$lt_AR_FLAGS 18776 18777# A C compiler. 18778LTCC=$lt_LTCC 18779 18780# LTCC compiler flags. 18781LTCFLAGS=$lt_LTCFLAGS 18782 18783# A language-specific compiler. 18784CC=$lt_compiler_RC 18785 18786# Is the compiler the GNU C compiler? 18787with_gcc=$GCC_RC 18788 18789# An ERE matcher. 18790EGREP=$lt_EGREP 18791 18792# The linker used to build libraries. 18793LD=$lt_LD_RC 18794 18795# Whether we need hard or soft links. 18796LN_S=$lt_LN_S 18797 18798# A BSD-compatible nm program. 18799NM=$lt_NM 18800 18801# A symbol stripping program 18802STRIP=$lt_STRIP 18803 18804# Used to examine libraries when file_magic_cmd begins "file" 18805MAGIC_CMD=$MAGIC_CMD 18806 18807# Used on cygwin: DLL creation program. 18808DLLTOOL="$DLLTOOL" 18809 18810# Used on cygwin: object dumper. 18811OBJDUMP="$OBJDUMP" 18812 18813# Used on cygwin: assembler. 18814AS="$AS" 18815 18816# The name of the directory that contains temporary libtool files. 18817objdir=$objdir 18818 18819# How to create reloadable object files. 18820reload_flag=$lt_reload_flag 18821reload_cmds=$lt_reload_cmds 18822 18823# How to pass a linker flag through the compiler. 18824wl=$lt_lt_prog_compiler_wl_RC 18825 18826# Object file suffix (normally "o"). 18827objext="$ac_objext" 18828 18829# Old archive suffix (normally "a"). 18830libext="$libext" 18831 18832# Shared library suffix (normally ".so"). 18833shrext_cmds='$shrext_cmds' 18834 18835# Executable file suffix (normally ""). 18836exeext="$exeext" 18837 18838# Additional compiler flags for building library objects. 18839pic_flag=$lt_lt_prog_compiler_pic_RC 18840pic_mode=$pic_mode 18841 18842# What is the maximum length of a command? 18843max_cmd_len=$lt_cv_sys_max_cmd_len 18844 18845# Does compiler simultaneously support -c and -o options? 18846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18847 18848# Must we lock files when doing compilation? 18849need_locks=$lt_need_locks 18850 18851# Do we need the lib prefix for modules? 18852need_lib_prefix=$need_lib_prefix 18853 18854# Do we need a version for libraries? 18855need_version=$need_version 18856 18857# Whether dlopen is supported. 18858dlopen_support=$enable_dlopen 18859 18860# Whether dlopen of programs is supported. 18861dlopen_self=$enable_dlopen_self 18862 18863# Whether dlopen of statically linked programs is supported. 18864dlopen_self_static=$enable_dlopen_self_static 18865 18866# Compiler flag to prevent dynamic linking. 18867link_static_flag=$lt_lt_prog_compiler_static_RC 18868 18869# Compiler flag to turn off builtin functions. 18870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18871 18872# Compiler flag to allow reflexive dlopens. 18873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18874 18875# Compiler flag to generate shared objects directly from archives. 18876whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18877 18878# Compiler flag to generate thread-safe objects. 18879thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18880 18881# Library versioning type. 18882version_type=$version_type 18883 18884# Format of library name prefix. 18885libname_spec=$lt_libname_spec 18886 18887# List of archive names. First name is the real one, the rest are links. 18888# The last name is the one that the linker finds with -lNAME. 18889library_names_spec=$lt_library_names_spec 18890 18891# The coded name of the library, if different from the real name. 18892soname_spec=$lt_soname_spec 18893 18894# Commands used to build and install an old-style archive. 18895RANLIB=$lt_RANLIB 18896old_archive_cmds=$lt_old_archive_cmds_RC 18897old_postinstall_cmds=$lt_old_postinstall_cmds 18898old_postuninstall_cmds=$lt_old_postuninstall_cmds 18899 18900# Create an old-style archive from a shared archive. 18901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18902 18903# Create a temporary old-style archive to link instead of a shared archive. 18904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18905 18906# Commands used to build and install a shared archive. 18907archive_cmds=$lt_archive_cmds_RC 18908archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18909postinstall_cmds=$lt_postinstall_cmds 18910postuninstall_cmds=$lt_postuninstall_cmds 18911 18912# Commands used to build a loadable module (assumed same as above if empty) 18913module_cmds=$lt_module_cmds_RC 18914module_expsym_cmds=$lt_module_expsym_cmds_RC 18915 18916# Commands to strip libraries. 18917old_striplib=$lt_old_striplib 18918striplib=$lt_striplib 18919 18920# Dependencies to place before the objects being linked to create a 18921# shared library. 18922predep_objects=$lt_predep_objects_RC 18923 18924# Dependencies to place after the objects being linked to create a 18925# shared library. 18926postdep_objects=$lt_postdep_objects_RC 18927 18928# Dependencies to place before the objects being linked to create a 18929# shared library. 18930predeps=$lt_predeps_RC 18931 18932# Dependencies to place after the objects being linked to create a 18933# shared library. 18934postdeps=$lt_postdeps_RC 18935 18936# The library search path used internally by the compiler when linking 18937# a shared library. 18938compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18939 18940# Method to check whether dependent libraries are shared objects. 18941deplibs_check_method=$lt_deplibs_check_method 18942 18943# Command to use when deplibs_check_method == file_magic. 18944file_magic_cmd=$lt_file_magic_cmd 18945 18946# Flag that allows shared libraries with undefined symbols to be built. 18947allow_undefined_flag=$lt_allow_undefined_flag_RC 18948 18949# Flag that forces no undefined symbols. 18950no_undefined_flag=$lt_no_undefined_flag_RC 18951 18952# Commands used to finish a libtool library installation in a directory. 18953finish_cmds=$lt_finish_cmds 18954 18955# Same as above, but a single script fragment to be evaled but not shown. 18956finish_eval=$lt_finish_eval 18957 18958# Take the output of nm and produce a listing of raw symbols and C names. 18959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18960 18961# Transform the output of nm in a proper C declaration 18962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18963 18964# Transform the output of nm in a C name address pair 18965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18966 18967# This is the shared library runtime path variable. 18968runpath_var=$runpath_var 18969 18970# This is the shared library path variable. 18971shlibpath_var=$shlibpath_var 18972 18973# Is shlibpath searched before the hard-coded library search path? 18974shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18975 18976# How to hardcode a shared library path into an executable. 18977hardcode_action=$hardcode_action_RC 18978 18979# Whether we should hardcode library paths into libraries. 18980hardcode_into_libs=$hardcode_into_libs 18981 18982# Flag to hardcode \$libdir into a binary during linking. 18983# This must work even if \$libdir does not exist. 18984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18985 18986# If ld is used when linking, flag to hardcode \$libdir into 18987# a binary during linking. This must work even if \$libdir does 18988# not exist. 18989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18990 18991# Whether we need a single -rpath flag with a separated argument. 18992hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18993 18994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18995# resulting binary. 18996hardcode_direct=$hardcode_direct_RC 18997 18998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18999# resulting binary. 19000hardcode_minus_L=$hardcode_minus_L_RC 19001 19002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19003# the resulting binary. 19004hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19005 19006# Set to yes if building a shared library automatically hardcodes DIR into the library 19007# and all subsequent libraries and executables linked against it. 19008hardcode_automatic=$hardcode_automatic_RC 19009 19010# Variables whose values should be saved in libtool wrapper scripts and 19011# restored at relink time. 19012variables_saved_for_relink="$variables_saved_for_relink" 19013 19014# Whether libtool must link a program against all its dependency libraries. 19015link_all_deplibs=$link_all_deplibs_RC 19016 19017# Compile-time system search path for libraries 19018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19019 19020# Run-time system search path for libraries 19021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19022 19023# Fix the shell variable \$srcfile for the compiler. 19024fix_srcfile_path="$fix_srcfile_path_RC" 19025 19026# Set to yes if exported symbols are required. 19027always_export_symbols=$always_export_symbols_RC 19028 19029# The commands to list exported symbols. 19030export_symbols_cmds=$lt_export_symbols_cmds_RC 19031 19032# The commands to extract the exported symbol list from a shared archive. 19033extract_expsyms_cmds=$lt_extract_expsyms_cmds 19034 19035# Symbols that should not be listed in the preloaded symbols. 19036exclude_expsyms=$lt_exclude_expsyms_RC 19037 19038# Symbols that must always be exported. 19039include_expsyms=$lt_include_expsyms_RC 19040 19041# ### END LIBTOOL TAG CONFIG: $tagname 19042 19043__EOF__ 19044 19045 19046else 19047 # If there is no Makefile yet, we rely on a make rule to execute 19048 # `config.status --recheck' to rerun these tests and create the 19049 # libtool script then. 19050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19051 if test -f "$ltmain_in"; then 19052 test -f Makefile && make "$ltmain" 19053 fi 19054fi 19055 19056 19057ac_ext=c 19058ac_cpp='$CPP $CPPFLAGS' 19059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19061ac_compiler_gnu=$ac_cv_c_compiler_gnu 19062 19063CC="$lt_save_CC" 19064 19065 ;; 19066 19067 *) 19068 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19069echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19070 { (exit 1); exit 1; }; } 19071 ;; 19072 esac 19073 19074 # Append the new tag name to the list of available tags. 19075 if test -n "$tagname" ; then 19076 available_tags="$available_tags $tagname" 19077 fi 19078 fi 19079 done 19080 IFS="$lt_save_ifs" 19081 19082 # Now substitute the updated list of available tags. 19083 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19084 mv "${ofile}T" "$ofile" 19085 chmod +x "$ofile" 19086 else 19087 rm -f "${ofile}T" 19088 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19089echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19090 { (exit 1); exit 1; }; } 19091 fi 19092fi 19093 19094 19095 19096# This can be used to rebuild libtool when needed 19097LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19098 19099# Always use our own libtool. 19100LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19101 19102# Prevent multiple expansion 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125{ echo "$as_me:$LINENO: checking for fuse_main in -lfuse" >&5 19126echo $ECHO_N "checking for fuse_main in -lfuse... $ECHO_C" >&6; } 19127if test "${ac_cv_lib_fuse_fuse_main_+set}" = set; then 19128 echo $ECHO_N "(cached) $ECHO_C" >&6 19129else 19130 ac_check_lib_save_LIBS=$LIBS 19131LIBS="-lfuse $LIBS" 19132cat >conftest.$ac_ext <<_ACEOF 19133/* confdefs.h. */ 19134_ACEOF 19135cat confdefs.h >>conftest.$ac_ext 19136cat >>conftest.$ac_ext <<_ACEOF 19137/* end confdefs.h. */ 19138 19139/* Override any GCC internal prototype to avoid an error. 19140 Use char because int might match the return type of a GCC 19141 builtin and then its argument prototype would still apply. */ 19142#ifdef __cplusplus 19143extern "C" 19144#endif 19145char fuse_main (); 19146int 19147main () 19148{ 19149return fuse_main (); 19150 ; 19151 return 0; 19152} 19153_ACEOF 19154rm -f conftest.$ac_objext conftest$ac_exeext 19155if { (ac_try="$ac_link" 19156case "(($ac_try" in 19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19158 *) ac_try_echo=$ac_try;; 19159esac 19160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19161 (eval "$ac_link") 2>conftest.er1 19162 ac_status=$? 19163 grep -v '^ *+' conftest.er1 >conftest.err 19164 rm -f conftest.er1 19165 cat conftest.err >&5 19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19167 (exit $ac_status); } && { 19168 test -z "$ac_c_werror_flag" || 19169 test ! -s conftest.err 19170 } && test -s conftest$ac_exeext && 19171 $as_test_x conftest$ac_exeext; then 19172 ac_cv_lib_fuse_fuse_main_=yes 19173else 19174 echo "$as_me: failed program was:" >&5 19175sed 's/^/| /' conftest.$ac_ext >&5 19176 19177 ac_cv_lib_fuse_fuse_main_=no 19178fi 19179 19180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19181 conftest$ac_exeext conftest.$ac_ext 19182LIBS=$ac_check_lib_save_LIBS 19183fi 19184{ echo "$as_me:$LINENO: result: $ac_cv_lib_fuse_fuse_main_" >&5 19185echo "${ECHO_T}$ac_cv_lib_fuse_fuse_main_" >&6; } 19186if test $ac_cv_lib_fuse_fuse_main_ = yes; then 19187 cat >>confdefs.h <<_ACEOF 19188@%:@define HAVE_LIBFUSE 1 19189_ACEOF 19190 19191 LIBS="-lfuse $LIBS" 19192 19193else 19194 { { echo "$as_me:$LINENO: error: fuse not found" >&5 19195echo "$as_me: error: fuse not found" >&2;} 19196 { (exit 1); exit 1; }; } 19197fi 19198 19199 19200# version 2.5 of fuse 19201CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25 -DHAVE_SETXATTR" 19202 19203# version 2.3 or 2.4 of fuse used don't forget to modify Makefile.am to add compat/fuse_opt.c 19204#CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=22 -DHAVE_SETXATTR" 19205 19206#DEBUG flag added and version 2.5 of fuse Used 19207#CFLAGS="$CFLAGS -D_DEBUG=1 -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25 -DHAVE_SETXATTR" 19208 19209ac_config_files="$ac_config_files Makefile" 19210 19211cat >confcache <<\_ACEOF 19212# This file is a shell script that caches the results of configure 19213# tests run on this system so they can be shared between configure 19214# scripts and configure runs, see configure's option --config-cache. 19215# It is not useful on other systems. If it contains results you don't 19216# want to keep, you may remove or edit it. 19217# 19218# config.status only pays attention to the cache file if you give it 19219# the --recheck option to rerun configure. 19220# 19221# `ac_cv_env_foo' variables (set or unset) will be overridden when 19222# loading this file, other *unset* `ac_cv_foo' will be assigned the 19223# following values. 19224 19225_ACEOF 19226 19227# The following way of writing the cache mishandles newlines in values, 19228# but we know of no workaround that is simple, portable, and efficient. 19229# So, we kill variables containing newlines. 19230# Ultrix sh set writes to stderr and can't be redirected directly, 19231# and sets the high bit in the cache file unless we assign to the vars. 19232( 19233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19234 eval ac_val=\$$ac_var 19235 case $ac_val in #( 19236 *${as_nl}*) 19237 case $ac_var in #( 19238 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19239echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19240 esac 19241 case $ac_var in #( 19242 _ | IFS | as_nl) ;; #( 19243 *) $as_unset $ac_var ;; 19244 esac ;; 19245 esac 19246 done 19247 19248 (set) 2>&1 | 19249 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19250 *${as_nl}ac_space=\ *) 19251 # `set' does not quote correctly, so add quotes (double-quote 19252 # substitution turns \\\\ into \\, and sed turns \\ into \). 19253 sed -n \ 19254 "s/'/'\\\\''/g; 19255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19256 ;; #( 19257 *) 19258 # `set' quotes correctly as required by POSIX, so do not add quotes. 19259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19260 ;; 19261 esac | 19262 sort 19263) | 19264 sed ' 19265 /^ac_cv_env_/b end 19266 t clear 19267 :clear 19268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19269 t end 19270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19271 :end' >>confcache 19272if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19273 if test -w "$cache_file"; then 19274 test "x$cache_file" != "x/dev/null" && 19275 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19276echo "$as_me: updating cache $cache_file" >&6;} 19277 cat confcache >$cache_file 19278 else 19279 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19280echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19281 fi 19282fi 19283rm -f confcache 19284 19285test "x$prefix" = xNONE && prefix=$ac_default_prefix 19286# Let make expand exec_prefix. 19287test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19288 19289DEFS=-DHAVE_CONFIG_H 19290 19291ac_libobjs= 19292ac_ltlibobjs= 19293for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 19294 # 1. Remove the extension, and $U if already installed. 19295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19296 ac_i=`echo "$ac_i" | sed "$ac_script"` 19297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19298 # will be set to the directory where LIBOBJS objects are built. 19299 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19300 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19301done 19302LIB@&t@OBJS=$ac_libobjs 19303 19304LTLIBOBJS=$ac_ltlibobjs 19305 19306 19307if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19308 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19309Usually this means the macro was only invoked conditionally." >&5 19310echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19311Usually this means the macro was only invoked conditionally." >&2;} 19312 { (exit 1); exit 1; }; } 19313fi 19314if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19315 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19316Usually this means the macro was only invoked conditionally." >&5 19317echo "$as_me: error: conditional \"AMDEP\" was never defined. 19318Usually this means the macro was only invoked conditionally." >&2;} 19319 { (exit 1); exit 1; }; } 19320fi 19321if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19322 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19323Usually this means the macro was only invoked conditionally." >&5 19324echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19325Usually this means the macro was only invoked conditionally." >&2;} 19326 { (exit 1); exit 1; }; } 19327fi 19328if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19329 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19330Usually this means the macro was only invoked conditionally." >&5 19331echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19332Usually this means the macro was only invoked conditionally." >&2;} 19333 { (exit 1); exit 1; }; } 19334fi 19335 19336: ${CONFIG_STATUS=./config.status} 19337ac_clean_files_save=$ac_clean_files 19338ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19339{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19340echo "$as_me: creating $CONFIG_STATUS" >&6;} 19341cat >$CONFIG_STATUS <<_ACEOF 19342#! $SHELL 19343# Generated by $as_me. 19344# Run this file to recreate the current configuration. 19345# Compiler output produced by configure, useful for debugging 19346# configure, is in config.log if it exists. 19347 19348debug=false 19349ac_cs_recheck=false 19350ac_cs_silent=false 19351SHELL=\${CONFIG_SHELL-$SHELL} 19352_ACEOF 19353 19354cat >>$CONFIG_STATUS <<\_ACEOF 19355## --------------------- ## 19356## M4sh Initialization. ## 19357## --------------------- ## 19358 19359# Be more Bourne compatible 19360DUALCASE=1; export DUALCASE # for MKS sh 19361if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19362 emulate sh 19363 NULLCMD=: 19364 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19365 # is contrary to our usage. Disable this feature. 19366 alias -g '${1+"$@"}'='"$@"' 19367 setopt NO_GLOB_SUBST 19368else 19369 case `(set -o) 2>/dev/null` in 19370 *posix*) set -o posix ;; 19371esac 19372 19373fi 19374 19375 19376 19377 19378# PATH needs CR 19379# Avoid depending upon Character Ranges. 19380as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19381as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19382as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19383as_cr_digits='0123456789' 19384as_cr_alnum=$as_cr_Letters$as_cr_digits 19385 19386# The user is always right. 19387if test "${PATH_SEPARATOR+set}" != set; then 19388 echo "#! /bin/sh" >conf$$.sh 19389 echo "exit 0" >>conf$$.sh 19390 chmod +x conf$$.sh 19391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19392 PATH_SEPARATOR=';' 19393 else 19394 PATH_SEPARATOR=: 19395 fi 19396 rm -f conf$$.sh 19397fi 19398 19399# Support unset when possible. 19400if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19401 as_unset=unset 19402else 19403 as_unset=false 19404fi 19405 19406 19407# IFS 19408# We need space, tab and new line, in precisely that order. Quoting is 19409# there to prevent editors from complaining about space-tab. 19410# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19411# splitting by setting IFS to empty value.) 19412as_nl=' 19413' 19414IFS=" "" $as_nl" 19415 19416# Find who we are. Look in the path if we contain no directory separator. 19417case $0 in 19418 *[\\/]* ) as_myself=$0 ;; 19419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19420for as_dir in $PATH 19421do 19422 IFS=$as_save_IFS 19423 test -z "$as_dir" && as_dir=. 19424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19425done 19426IFS=$as_save_IFS 19427 19428 ;; 19429esac 19430# We did not find ourselves, most probably we were run as `sh COMMAND' 19431# in which case we are not to be found in the path. 19432if test "x$as_myself" = x; then 19433 as_myself=$0 19434fi 19435if test ! -f "$as_myself"; then 19436 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19437 { (exit 1); exit 1; } 19438fi 19439 19440# Work around bugs in pre-3.0 UWIN ksh. 19441for as_var in ENV MAIL MAILPATH 19442do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19443done 19444PS1='$ ' 19445PS2='> ' 19446PS4='+ ' 19447 19448# NLS nuisances. 19449for as_var in \ 19450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19452 LC_TELEPHONE LC_TIME 19453do 19454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19455 eval $as_var=C; export $as_var 19456 else 19457 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19458 fi 19459done 19460 19461# Required to use basename. 19462if expr a : '\(a\)' >/dev/null 2>&1 && 19463 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19464 as_expr=expr 19465else 19466 as_expr=false 19467fi 19468 19469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19470 as_basename=basename 19471else 19472 as_basename=false 19473fi 19474 19475 19476# Name of the executable. 19477as_me=`$as_basename -- "$0" || 19478$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19479 X"$0" : 'X\(//\)$' \| \ 19480 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19481echo X/"$0" | 19482 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19483 s//\1/ 19484 q 19485 } 19486 /^X\/\(\/\/\)$/{ 19487 s//\1/ 19488 q 19489 } 19490 /^X\/\(\/\).*/{ 19491 s//\1/ 19492 q 19493 } 19494 s/.*/./; q'` 19495 19496# CDPATH. 19497$as_unset CDPATH 19498 19499 19500 19501 as_lineno_1=$LINENO 19502 as_lineno_2=$LINENO 19503 test "x$as_lineno_1" != "x$as_lineno_2" && 19504 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 19505 19506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19507 # uniformly replaced by the line number. The first 'sed' inserts a 19508 # line-number line after each line using $LINENO; the second 'sed' 19509 # does the real work. The second script uses 'N' to pair each 19510 # line-number line with the line containing $LINENO, and appends 19511 # trailing '-' during substitution so that $LINENO is not a special 19512 # case at line end. 19513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19514 # scripts with optimization help from Paolo Bonzini. Blame Lee 19515 # E. McMahon (1931-1989) for sed's syntax. :-) 19516 sed -n ' 19517 p 19518 /[$]LINENO/= 19519 ' <$as_myself | 19520 sed ' 19521 s/[$]LINENO.*/&-/ 19522 t lineno 19523 b 19524 :lineno 19525 N 19526 :loop 19527 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 19528 t loop 19529 s/-\n.*// 19530 ' >$as_me.lineno && 19531 chmod +x "$as_me.lineno" || 19532 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 19533 { (exit 1); exit 1; }; } 19534 19535 # Don't try to exec as it changes $[0], causing all sort of problems 19536 # (the dirname of $[0] is not the place where we might find the 19537 # original and so on. Autoconf is especially sensitive to this). 19538 . "./$as_me.lineno" 19539 # Exit status is that of the last command. 19540 exit 19541} 19542 19543 19544if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19545 as_dirname=dirname 19546else 19547 as_dirname=false 19548fi 19549 19550ECHO_C= ECHO_N= ECHO_T= 19551case `echo -n x` in 19552-n*) 19553 case `echo 'x\c'` in 19554 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19555 *) ECHO_C='\c';; 19556 esac;; 19557*) 19558 ECHO_N='-n';; 19559esac 19560 19561if expr a : '\(a\)' >/dev/null 2>&1 && 19562 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19563 as_expr=expr 19564else 19565 as_expr=false 19566fi 19567 19568rm -f conf$$ conf$$.exe conf$$.file 19569if test -d conf$$.dir; then 19570 rm -f conf$$.dir/conf$$.file 19571else 19572 rm -f conf$$.dir 19573 mkdir conf$$.dir 19574fi 19575echo >conf$$.file 19576if ln -s conf$$.file conf$$ 2>/dev/null; then 19577 as_ln_s='ln -s' 19578 # ... but there are two gotchas: 19579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19581 # In both cases, we have to default to `cp -p'. 19582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19583 as_ln_s='cp -p' 19584elif ln conf$$.file conf$$ 2>/dev/null; then 19585 as_ln_s=ln 19586else 19587 as_ln_s='cp -p' 19588fi 19589rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19590rmdir conf$$.dir 2>/dev/null 19591 19592if mkdir -p . 2>/dev/null; then 19593 as_mkdir_p=: 19594else 19595 test -d ./-p && rmdir ./-p 19596 as_mkdir_p=false 19597fi 19598 19599if test -x / >/dev/null 2>&1; then 19600 as_test_x='test -x' 19601else 19602 if ls -dL / >/dev/null 2>&1; then 19603 as_ls_L_option=L 19604 else 19605 as_ls_L_option= 19606 fi 19607 as_test_x=' 19608 eval sh -c '\'' 19609 if test -d "$1"; then 19610 test -d "$1/."; 19611 else 19612 case $1 in 19613 -*)set "./$1";; 19614 esac; 19615 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 19616 ???[sx]*):;;*)false;;esac;fi 19617 '\'' sh 19618 ' 19619fi 19620as_executable_p=$as_test_x 19621 19622# Sed expression to map a string onto a valid CPP name. 19623as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19624 19625# Sed expression to map a string onto a valid variable name. 19626as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19627 19628 19629exec 6>&1 19630 19631# Save the log message, to keep $[0] and so on meaningful, and to 19632# report actual input values of CONFIG_FILES etc. instead of their 19633# values after options handling. 19634ac_log=" 19635This file was extended by funionfs $as_me 0.4.3, which was 19636generated by GNU Autoconf 2.61. Invocation command line was 19637 19638 CONFIG_FILES = $CONFIG_FILES 19639 CONFIG_HEADERS = $CONFIG_HEADERS 19640 CONFIG_LINKS = $CONFIG_LINKS 19641 CONFIG_COMMANDS = $CONFIG_COMMANDS 19642 $ $0 $@ 19643 19644on `(hostname || uname -n) 2>/dev/null | sed 1q` 19645" 19646 19647_ACEOF 19648 19649cat >>$CONFIG_STATUS <<_ACEOF 19650# Files that config.status was made for. 19651config_files="$ac_config_files" 19652config_headers="$ac_config_headers" 19653config_commands="$ac_config_commands" 19654 19655_ACEOF 19656 19657cat >>$CONFIG_STATUS <<\_ACEOF 19658ac_cs_usage="\ 19659\`$as_me' instantiates files from templates according to the 19660current configuration. 19661 19662Usage: $0 [OPTIONS] [FILE]... 19663 19664 -h, --help print this help, then exit 19665 -V, --version print version number and configuration settings, then exit 19666 -q, --quiet do not print progress messages 19667 -d, --debug don't remove temporary files 19668 --recheck update $as_me by reconfiguring in the same conditions 19669 --file=FILE[:TEMPLATE] 19670 instantiate the configuration file FILE 19671 --header=FILE[:TEMPLATE] 19672 instantiate the configuration header FILE 19673 19674Configuration files: 19675$config_files 19676 19677Configuration headers: 19678$config_headers 19679 19680Configuration commands: 19681$config_commands 19682 19683Report bugs to <bug-autoconf@gnu.org>." 19684 19685_ACEOF 19686cat >>$CONFIG_STATUS <<_ACEOF 19687ac_cs_version="\\ 19688funionfs config.status 0.4.3 19689configured by $0, generated by GNU Autoconf 2.61, 19690 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 19691 19692Copyright (C) 2006 Free Software Foundation, Inc. 19693This config.status script is free software; the Free Software Foundation 19694gives unlimited permission to copy, distribute and modify it." 19695 19696ac_pwd='$ac_pwd' 19697srcdir='$srcdir' 19698INSTALL='$INSTALL' 19699_ACEOF 19700 19701cat >>$CONFIG_STATUS <<\_ACEOF 19702# If no file are specified by the user, then we need to provide default 19703# value. By we need to know if files were specified by the user. 19704ac_need_defaults=: 19705while test $# != 0 19706do 19707 case $1 in 19708 --*=*) 19709 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19711 ac_shift=: 19712 ;; 19713 *) 19714 ac_option=$1 19715 ac_optarg=$2 19716 ac_shift=shift 19717 ;; 19718 esac 19719 19720 case $ac_option in 19721 # Handling of the options. 19722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19723 ac_cs_recheck=: ;; 19724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19725 echo "$ac_cs_version"; exit ;; 19726 --debug | --debu | --deb | --de | --d | -d ) 19727 debug=: ;; 19728 --file | --fil | --fi | --f ) 19729 $ac_shift 19730 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19731 ac_need_defaults=false;; 19732 --header | --heade | --head | --hea ) 19733 $ac_shift 19734 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19735 ac_need_defaults=false;; 19736 --he | --h) 19737 # Conflict between --help and --header 19738 { echo "$as_me: error: ambiguous option: $1 19739Try \`$0 --help' for more information." >&2 19740 { (exit 1); exit 1; }; };; 19741 --help | --hel | -h ) 19742 echo "$ac_cs_usage"; exit ;; 19743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19744 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19745 ac_cs_silent=: ;; 19746 19747 # This is an error. 19748 -*) { echo "$as_me: error: unrecognized option: $1 19749Try \`$0 --help' for more information." >&2 19750 { (exit 1); exit 1; }; } ;; 19751 19752 *) ac_config_targets="$ac_config_targets $1" 19753 ac_need_defaults=false ;; 19754 19755 esac 19756 shift 19757done 19758 19759ac_configure_extra_args= 19760 19761if $ac_cs_silent; then 19762 exec 6>/dev/null 19763 ac_configure_extra_args="$ac_configure_extra_args --silent" 19764fi 19765 19766_ACEOF 19767cat >>$CONFIG_STATUS <<_ACEOF 19768if \$ac_cs_recheck; then 19769 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19770 CONFIG_SHELL=$SHELL 19771 export CONFIG_SHELL 19772 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19773fi 19774 19775_ACEOF 19776cat >>$CONFIG_STATUS <<\_ACEOF 19777exec 5>>config.log 19778{ 19779 echo 19780 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 19781@%:@@%:@ Running $as_me. @%:@@%:@ 19782_ASBOX 19783 echo "$ac_log" 19784} >&5 19785 19786_ACEOF 19787cat >>$CONFIG_STATUS <<_ACEOF 19788# 19789# INIT-COMMANDS 19790# 19791AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19792 19793_ACEOF 19794 19795cat >>$CONFIG_STATUS <<\_ACEOF 19796 19797# Handling of arguments. 19798for ac_config_target in $ac_config_targets 19799do 19800 case $ac_config_target in 19801 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19802 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19803 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19804 19805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19806echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19807 { (exit 1); exit 1; }; };; 19808 esac 19809done 19810 19811 19812# If the user did not use the arguments to specify the items to instantiate, 19813# then the envvar interface is used. Set only those that are not. 19814# We use the long form for the default assignment because of an extremely 19815# bizarre bug on SunOS 4.1.3. 19816if $ac_need_defaults; then 19817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19820fi 19821 19822# Have a temporary directory for convenience. Make it in the build tree 19823# simply because there is no reason against having it here, and in addition, 19824# creating and moving files from /tmp can sometimes cause problems. 19825# Hook for its removal unless debugging. 19826# Note that there is a small window in which the directory will not be cleaned: 19827# after its creation but before its name has been assigned to `$tmp'. 19828$debug || 19829{ 19830 tmp= 19831 trap 'exit_status=$? 19832 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 19833' 0 19834 trap '{ (exit 1); exit 1; }' 1 2 13 15 19835} 19836# Create a (secure) tmp directory for tmp files. 19837 19838{ 19839 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19840 test -n "$tmp" && test -d "$tmp" 19841} || 19842{ 19843 tmp=./conf$$-$RANDOM 19844 (umask 077 && mkdir "$tmp") 19845} || 19846{ 19847 echo "$me: cannot create a temporary directory in ." >&2 19848 { (exit 1); exit 1; } 19849} 19850 19851# 19852# Set up the sed scripts for CONFIG_FILES section. 19853# 19854 19855# No need to generate the scripts if there are no CONFIG_FILES. 19856# This happens for instance when ./config.status config.h 19857if test -n "$CONFIG_FILES"; then 19858 19859_ACEOF 19860 19861 19862 19863ac_delim='%!_!# ' 19864for ac_last_try in false false false false false :; do 19865 cat >conf$$subs.sed <<_ACEOF 19866SHELL!$SHELL$ac_delim 19867PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 19868PACKAGE_NAME!$PACKAGE_NAME$ac_delim 19869PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 19870PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 19871PACKAGE_STRING!$PACKAGE_STRING$ac_delim 19872PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 19873exec_prefix!$exec_prefix$ac_delim 19874prefix!$prefix$ac_delim 19875program_transform_name!$program_transform_name$ac_delim 19876bindir!$bindir$ac_delim 19877sbindir!$sbindir$ac_delim 19878libexecdir!$libexecdir$ac_delim 19879datarootdir!$datarootdir$ac_delim 19880datadir!$datadir$ac_delim 19881sysconfdir!$sysconfdir$ac_delim 19882sharedstatedir!$sharedstatedir$ac_delim 19883localstatedir!$localstatedir$ac_delim 19884includedir!$includedir$ac_delim 19885oldincludedir!$oldincludedir$ac_delim 19886docdir!$docdir$ac_delim 19887infodir!$infodir$ac_delim 19888htmldir!$htmldir$ac_delim 19889dvidir!$dvidir$ac_delim 19890pdfdir!$pdfdir$ac_delim 19891psdir!$psdir$ac_delim 19892libdir!$libdir$ac_delim 19893localedir!$localedir$ac_delim 19894mandir!$mandir$ac_delim 19895DEFS!$DEFS$ac_delim 19896ECHO_C!$ECHO_C$ac_delim 19897ECHO_N!$ECHO_N$ac_delim 19898ECHO_T!$ECHO_T$ac_delim 19899LIBS!$LIBS$ac_delim 19900build_alias!$build_alias$ac_delim 19901host_alias!$host_alias$ac_delim 19902target_alias!$target_alias$ac_delim 19903MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 19904MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 19905MAINT!$MAINT$ac_delim 19906INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 19907INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 19908INSTALL_DATA!$INSTALL_DATA$ac_delim 19909CYGPATH_W!$CYGPATH_W$ac_delim 19910PACKAGE!$PACKAGE$ac_delim 19911VERSION!$VERSION$ac_delim 19912ACLOCAL!$ACLOCAL$ac_delim 19913AUTOCONF!$AUTOCONF$ac_delim 19914AUTOMAKE!$AUTOMAKE$ac_delim 19915AUTOHEADER!$AUTOHEADER$ac_delim 19916MAKEINFO!$MAKEINFO$ac_delim 19917install_sh!$install_sh$ac_delim 19918STRIP!$STRIP$ac_delim 19919INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 19920mkdir_p!$mkdir_p$ac_delim 19921AWK!$AWK$ac_delim 19922SET_MAKE!$SET_MAKE$ac_delim 19923am__leading_dot!$am__leading_dot$ac_delim 19924AMTAR!$AMTAR$ac_delim 19925am__tar!$am__tar$ac_delim 19926am__untar!$am__untar$ac_delim 19927CC!$CC$ac_delim 19928CFLAGS!$CFLAGS$ac_delim 19929LDFLAGS!$LDFLAGS$ac_delim 19930CPPFLAGS!$CPPFLAGS$ac_delim 19931ac_ct_CC!$ac_ct_CC$ac_delim 19932EXEEXT!$EXEEXT$ac_delim 19933OBJEXT!$OBJEXT$ac_delim 19934DEPDIR!$DEPDIR$ac_delim 19935am__include!$am__include$ac_delim 19936am__quote!$am__quote$ac_delim 19937AMDEP_TRUE!$AMDEP_TRUE$ac_delim 19938AMDEP_FALSE!$AMDEP_FALSE$ac_delim 19939AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 19940CCDEPMODE!$CCDEPMODE$ac_delim 19941am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 19942am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 19943build!$build$ac_delim 19944build_cpu!$build_cpu$ac_delim 19945build_vendor!$build_vendor$ac_delim 19946build_os!$build_os$ac_delim 19947host!$host$ac_delim 19948host_cpu!$host_cpu$ac_delim 19949host_vendor!$host_vendor$ac_delim 19950host_os!$host_os$ac_delim 19951GREP!$GREP$ac_delim 19952EGREP!$EGREP$ac_delim 19953LN_S!$LN_S$ac_delim 19954ECHO!$ECHO$ac_delim 19955AR!$AR$ac_delim 19956RANLIB!$RANLIB$ac_delim 19957CPP!$CPP$ac_delim 19958CXX!$CXX$ac_delim 19959CXXFLAGS!$CXXFLAGS$ac_delim 19960ac_ct_CXX!$ac_ct_CXX$ac_delim 19961CXXDEPMODE!$CXXDEPMODE$ac_delim 19962am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 19963_ACEOF 19964 19965 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 19966 break 19967 elif $ac_last_try; then 19968 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19969echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19970 { (exit 1); exit 1; }; } 19971 else 19972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19973 fi 19974done 19975 19976ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 19977if test -n "$ac_eof"; then 19978 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 19979 ac_eof=`expr $ac_eof + 1` 19980fi 19981 19982cat >>$CONFIG_STATUS <<_ACEOF 19983cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 19984/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19985_ACEOF 19986sed ' 19987s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 19988s/^/s,@/; s/!/@,|#_!!_#|/ 19989:n 19990t n 19991s/'"$ac_delim"'$/,g/; t 19992s/$/\\/; p 19993N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 19994' >>$CONFIG_STATUS <conf$$subs.sed 19995rm -f conf$$subs.sed 19996cat >>$CONFIG_STATUS <<_ACEOF 19997CEOF$ac_eof 19998_ACEOF 19999 20000 20001ac_delim='%!_!# ' 20002for ac_last_try in false false false false false :; do 20003 cat >conf$$subs.sed <<_ACEOF 20004am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20005CXXCPP!$CXXCPP$ac_delim 20006F77!$F77$ac_delim 20007FFLAGS!$FFLAGS$ac_delim 20008ac_ct_F77!$ac_ct_F77$ac_delim 20009LIBTOOL!$LIBTOOL$ac_delim 20010LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim 20011LTLIBOBJS!$LTLIBOBJS$ac_delim 20012_ACEOF 20013 20014 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then 20015 break 20016 elif $ac_last_try; then 20017 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20018echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20019 { (exit 1); exit 1; }; } 20020 else 20021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20022 fi 20023done 20024 20025ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20026if test -n "$ac_eof"; then 20027 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20028 ac_eof=`expr $ac_eof + 1` 20029fi 20030 20031cat >>$CONFIG_STATUS <<_ACEOF 20032cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20033/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20034_ACEOF 20035sed ' 20036s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20037s/^/s,@/; s/!/@,|#_!!_#|/ 20038:n 20039t n 20040s/'"$ac_delim"'$/,g/; t 20041s/$/\\/; p 20042N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20043' >>$CONFIG_STATUS <conf$$subs.sed 20044rm -f conf$$subs.sed 20045cat >>$CONFIG_STATUS <<_ACEOF 20046:end 20047s/|#_!!_#|//g 20048CEOF$ac_eof 20049_ACEOF 20050 20051 20052# VPATH may cause trouble with some makes, so we remove $(srcdir), 20053# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20054# trailing colons and then remove the whole line if VPATH becomes empty 20055# (actually we leave an empty line to preserve line numbers). 20056if test "x$srcdir" = x.; then 20057 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20058s/:*\$(srcdir):*/:/ 20059s/:*\${srcdir}:*/:/ 20060s/:*@srcdir@:*/:/ 20061s/^\([^=]*=[ ]*\):*/\1/ 20062s/:*$// 20063s/^[^=]*=[ ]*$// 20064}' 20065fi 20066 20067cat >>$CONFIG_STATUS <<\_ACEOF 20068fi # test -n "$CONFIG_FILES" 20069 20070 20071for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20072do 20073 case $ac_tag in 20074 :[FHLC]) ac_mode=$ac_tag; continue;; 20075 esac 20076 case $ac_mode$ac_tag in 20077 :[FHL]*:*);; 20078 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20079echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20080 { (exit 1); exit 1; }; };; 20081 :[FH]-) ac_tag=-:-;; 20082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20083 esac 20084 ac_save_IFS=$IFS 20085 IFS=: 20086 set x $ac_tag 20087 IFS=$ac_save_IFS 20088 shift 20089 ac_file=$1 20090 shift 20091 20092 case $ac_mode in 20093 :L) ac_source=$1;; 20094 :[FH]) 20095 ac_file_inputs= 20096 for ac_f 20097 do 20098 case $ac_f in 20099 -) ac_f="$tmp/stdin";; 20100 *) # Look for the file first in the build tree, then in the source tree 20101 # (if the path is not absolute). The absolute path cannot be DOS-style, 20102 # because $ac_f cannot contain `:'. 20103 test -f "$ac_f" || 20104 case $ac_f in 20105 [\\/$]*) false;; 20106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20107 esac || 20108 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20109echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20110 { (exit 1); exit 1; }; };; 20111 esac 20112 ac_file_inputs="$ac_file_inputs $ac_f" 20113 done 20114 20115 # Let's still pretend it is `configure' which instantiates (i.e., don't 20116 # use $as_me), people would be surprised to read: 20117 # /* config.h. Generated by config.status. */ 20118 configure_input="Generated from "`IFS=: 20119 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20120 if test x"$ac_file" != x-; then 20121 configure_input="$ac_file. $configure_input" 20122 { echo "$as_me:$LINENO: creating $ac_file" >&5 20123echo "$as_me: creating $ac_file" >&6;} 20124 fi 20125 20126 case $ac_tag in 20127 *:-:* | *:-) cat >"$tmp/stdin";; 20128 esac 20129 ;; 20130 esac 20131 20132 ac_dir=`$as_dirname -- "$ac_file" || 20133$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20134 X"$ac_file" : 'X\(//\)[^/]' \| \ 20135 X"$ac_file" : 'X\(//\)$' \| \ 20136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20137echo X"$ac_file" | 20138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20139 s//\1/ 20140 q 20141 } 20142 /^X\(\/\/\)[^/].*/{ 20143 s//\1/ 20144 q 20145 } 20146 /^X\(\/\/\)$/{ 20147 s//\1/ 20148 q 20149 } 20150 /^X\(\/\).*/{ 20151 s//\1/ 20152 q 20153 } 20154 s/.*/./; q'` 20155 { as_dir="$ac_dir" 20156 case $as_dir in #( 20157 -*) as_dir=./$as_dir;; 20158 esac 20159 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20160 as_dirs= 20161 while :; do 20162 case $as_dir in #( 20163 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20164 *) as_qdir=$as_dir;; 20165 esac 20166 as_dirs="'$as_qdir' $as_dirs" 20167 as_dir=`$as_dirname -- "$as_dir" || 20168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20169 X"$as_dir" : 'X\(//\)[^/]' \| \ 20170 X"$as_dir" : 'X\(//\)$' \| \ 20171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20172echo X"$as_dir" | 20173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20174 s//\1/ 20175 q 20176 } 20177 /^X\(\/\/\)[^/].*/{ 20178 s//\1/ 20179 q 20180 } 20181 /^X\(\/\/\)$/{ 20182 s//\1/ 20183 q 20184 } 20185 /^X\(\/\).*/{ 20186 s//\1/ 20187 q 20188 } 20189 s/.*/./; q'` 20190 test -d "$as_dir" && break 20191 done 20192 test -z "$as_dirs" || eval "mkdir $as_dirs" 20193 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20194echo "$as_me: error: cannot create directory $as_dir" >&2;} 20195 { (exit 1); exit 1; }; }; } 20196 ac_builddir=. 20197 20198case "$ac_dir" in 20199.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20200*) 20201 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20202 # A ".." for each directory in $ac_dir_suffix. 20203 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20204 case $ac_top_builddir_sub in 20205 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20206 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20207 esac ;; 20208esac 20209ac_abs_top_builddir=$ac_pwd 20210ac_abs_builddir=$ac_pwd$ac_dir_suffix 20211# for backward compatibility: 20212ac_top_builddir=$ac_top_build_prefix 20213 20214case $srcdir in 20215 .) # We are building in place. 20216 ac_srcdir=. 20217 ac_top_srcdir=$ac_top_builddir_sub 20218 ac_abs_top_srcdir=$ac_pwd ;; 20219 [\\/]* | ?:[\\/]* ) # Absolute name. 20220 ac_srcdir=$srcdir$ac_dir_suffix; 20221 ac_top_srcdir=$srcdir 20222 ac_abs_top_srcdir=$srcdir ;; 20223 *) # Relative name. 20224 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20225 ac_top_srcdir=$ac_top_build_prefix$srcdir 20226 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20227esac 20228ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20229 20230 20231 case $ac_mode in 20232 :F) 20233 # 20234 # CONFIG_FILE 20235 # 20236 20237 case $INSTALL in 20238 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20239 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20240 esac 20241_ACEOF 20242 20243cat >>$CONFIG_STATUS <<\_ACEOF 20244# If the template does not know about datarootdir, expand it. 20245# FIXME: This hack should be removed a few years after 2.60. 20246ac_datarootdir_hack=; ac_datarootdir_seen= 20247 20248case `sed -n '/datarootdir/ { 20249 p 20250 q 20251} 20252/@datadir@/p 20253/@docdir@/p 20254/@infodir@/p 20255/@localedir@/p 20256/@mandir@/p 20257' $ac_file_inputs` in 20258*datarootdir*) ac_datarootdir_seen=yes;; 20259*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20260 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20261echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20262_ACEOF 20263cat >>$CONFIG_STATUS <<_ACEOF 20264 ac_datarootdir_hack=' 20265 s&@datadir@&$datadir&g 20266 s&@docdir@&$docdir&g 20267 s&@infodir@&$infodir&g 20268 s&@localedir@&$localedir&g 20269 s&@mandir@&$mandir&g 20270 s&\\\${datarootdir}&$datarootdir&g' ;; 20271esac 20272_ACEOF 20273 20274# Neutralize VPATH when `$srcdir' = `.'. 20275# Shell code in configure.ac might set extrasub. 20276# FIXME: do we really want to maintain this feature? 20277cat >>$CONFIG_STATUS <<_ACEOF 20278 sed "$ac_vpsub 20279$extrasub 20280_ACEOF 20281cat >>$CONFIG_STATUS <<\_ACEOF 20282:t 20283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20284s&@configure_input@&$configure_input&;t t 20285s&@top_builddir@&$ac_top_builddir_sub&;t t 20286s&@srcdir@&$ac_srcdir&;t t 20287s&@abs_srcdir@&$ac_abs_srcdir&;t t 20288s&@top_srcdir@&$ac_top_srcdir&;t t 20289s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20290s&@builddir@&$ac_builddir&;t t 20291s&@abs_builddir@&$ac_abs_builddir&;t t 20292s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20293s&@INSTALL@&$ac_INSTALL&;t t 20294$ac_datarootdir_hack 20295" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20296 20297test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20298 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20300 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20301which seems to be undefined. Please make sure it is defined." >&5 20302echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20303which seems to be undefined. Please make sure it is defined." >&2;} 20304 20305 rm -f "$tmp/stdin" 20306 case $ac_file in 20307 -) cat "$tmp/out"; rm -f "$tmp/out";; 20308 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20309 esac 20310 ;; 20311 :H) 20312 # 20313 # CONFIG_HEADER 20314 # 20315_ACEOF 20316 20317# Transform confdefs.h into a sed script `conftest.defines', that 20318# substitutes the proper values into config.h.in to produce config.h. 20319rm -f conftest.defines conftest.tail 20320# First, append a space to every undef/define line, to ease matching. 20321echo 's/$/ /' >conftest.defines 20322# Then, protect against being on the right side of a sed subst, or in 20323# an unquoted here document, in config.status. If some macros were 20324# called several times there might be several #defines for the same 20325# symbol, which is useless. But do not sort them, since the last 20326# AC_DEFINE must be honored. 20327ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20328# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 20329# NAME is the cpp macro being defined, VALUE is the value it is being given. 20330# PARAMS is the parameter list in the macro definition--in most cases, it's 20331# just an empty string. 20332ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 20333ac_dB='\\)[ (].*,\\1define\\2' 20334ac_dC=' ' 20335ac_dD=' ,' 20336 20337uniq confdefs.h | 20338 sed -n ' 20339 t rset 20340 :rset 20341 s/^[ ]*#[ ]*define[ ][ ]*// 20342 t ok 20343 d 20344 :ok 20345 s/[\\&,]/\\&/g 20346 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 20347 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 20348 ' >>conftest.defines 20349 20350# Remove the space that was appended to ease matching. 20351# Then replace #undef with comments. This is necessary, for 20352# example, in the case of _POSIX_SOURCE, which is predefined and required 20353# on some systems where configure will not decide to define it. 20354# (The regexp can be short, since the line contains either #define or #undef.) 20355echo 's/ $// 20356s,^[ #]*u.*,/* & */,' >>conftest.defines 20357 20358# Break up conftest.defines: 20359ac_max_sed_lines=50 20360 20361# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 20362# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 20363# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 20364# et cetera. 20365ac_in='$ac_file_inputs' 20366ac_out='"$tmp/out1"' 20367ac_nxt='"$tmp/out2"' 20368 20369while : 20370do 20371 # Write a here document: 20372 cat >>$CONFIG_STATUS <<_ACEOF 20373 # First, check the format of the line: 20374 cat >"\$tmp/defines.sed" <<\\CEOF 20375/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 20376/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 20377b 20378:def 20379_ACEOF 20380 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 20381 echo 'CEOF 20382 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 20383 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 20384 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 20385 grep . conftest.tail >/dev/null || break 20386 rm -f conftest.defines 20387 mv conftest.tail conftest.defines 20388done 20389rm -f conftest.defines conftest.tail 20390 20391echo "ac_result=$ac_in" >>$CONFIG_STATUS 20392cat >>$CONFIG_STATUS <<\_ACEOF 20393 if test x"$ac_file" != x-; then 20394 echo "/* $configure_input */" >"$tmp/config.h" 20395 cat "$ac_result" >>"$tmp/config.h" 20396 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 20397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20398echo "$as_me: $ac_file is unchanged" >&6;} 20399 else 20400 rm -f $ac_file 20401 mv "$tmp/config.h" $ac_file 20402 fi 20403 else 20404 echo "/* $configure_input */" 20405 cat "$ac_result" 20406 fi 20407 rm -f "$tmp/out12" 20408# Compute $ac_file's index in $config_headers. 20409_am_stamp_count=1 20410for _am_header in $config_headers :; do 20411 case $_am_header in 20412 $ac_file | $ac_file:* ) 20413 break ;; 20414 * ) 20415 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20416 esac 20417done 20418echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 20419$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20420 X$ac_file : 'X\(//\)[^/]' \| \ 20421 X$ac_file : 'X\(//\)$' \| \ 20422 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 20423echo X$ac_file | 20424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20425 s//\1/ 20426 q 20427 } 20428 /^X\(\/\/\)[^/].*/{ 20429 s//\1/ 20430 q 20431 } 20432 /^X\(\/\/\)$/{ 20433 s//\1/ 20434 q 20435 } 20436 /^X\(\/\).*/{ 20437 s//\1/ 20438 q 20439 } 20440 s/.*/./; q'`/stamp-h$_am_stamp_count 20441 ;; 20442 20443 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20444echo "$as_me: executing $ac_file commands" >&6;} 20445 ;; 20446 esac 20447 20448 20449 case $ac_file$ac_mode in 20450 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20451 # Strip MF so we end up with the name of the file. 20452 mf=`echo "$mf" | sed -e 's/:.*$//'` 20453 # Check whether this is an Automake generated Makefile or not. 20454 # We used to match only the files named `Makefile.in', but 20455 # some people rename them; so instead we look at the file content. 20456 # Grep'ing the first line is not enough: some people post-process 20457 # each Makefile.in and add a new line on top of each file to say so. 20458 # So let's grep whole file. 20459 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20460 dirpart=`$as_dirname -- "$mf" || 20461$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20462 X"$mf" : 'X\(//\)[^/]' \| \ 20463 X"$mf" : 'X\(//\)$' \| \ 20464 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20465echo X"$mf" | 20466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20467 s//\1/ 20468 q 20469 } 20470 /^X\(\/\/\)[^/].*/{ 20471 s//\1/ 20472 q 20473 } 20474 /^X\(\/\/\)$/{ 20475 s//\1/ 20476 q 20477 } 20478 /^X\(\/\).*/{ 20479 s//\1/ 20480 q 20481 } 20482 s/.*/./; q'` 20483 else 20484 continue 20485 fi 20486 # Extract the definition of DEPDIR, am__include, and am__quote 20487 # from the Makefile without running `make'. 20488 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20489 test -z "$DEPDIR" && continue 20490 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20491 test -z "am__include" && continue 20492 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20493 # When using ansi2knr, U may be empty or an underscore; expand it 20494 U=`sed -n 's/^U = //p' < "$mf"` 20495 # Find all dependency output files, they are included files with 20496 # $(DEPDIR) in their names. We invoke sed twice because it is the 20497 # simplest approach to changing $(DEPDIR) to its actual value in the 20498 # expansion. 20499 for file in `sed -n " 20500 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20501 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20502 # Make sure the directory exists. 20503 test -f "$dirpart/$file" && continue 20504 fdir=`$as_dirname -- "$file" || 20505$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20506 X"$file" : 'X\(//\)[^/]' \| \ 20507 X"$file" : 'X\(//\)$' \| \ 20508 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20509echo X"$file" | 20510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20511 s//\1/ 20512 q 20513 } 20514 /^X\(\/\/\)[^/].*/{ 20515 s//\1/ 20516 q 20517 } 20518 /^X\(\/\/\)$/{ 20519 s//\1/ 20520 q 20521 } 20522 /^X\(\/\).*/{ 20523 s//\1/ 20524 q 20525 } 20526 s/.*/./; q'` 20527 { as_dir=$dirpart/$fdir 20528 case $as_dir in #( 20529 -*) as_dir=./$as_dir;; 20530 esac 20531 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20532 as_dirs= 20533 while :; do 20534 case $as_dir in #( 20535 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20536 *) as_qdir=$as_dir;; 20537 esac 20538 as_dirs="'$as_qdir' $as_dirs" 20539 as_dir=`$as_dirname -- "$as_dir" || 20540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20541 X"$as_dir" : 'X\(//\)[^/]' \| \ 20542 X"$as_dir" : 'X\(//\)$' \| \ 20543 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20544echo X"$as_dir" | 20545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20546 s//\1/ 20547 q 20548 } 20549 /^X\(\/\/\)[^/].*/{ 20550 s//\1/ 20551 q 20552 } 20553 /^X\(\/\/\)$/{ 20554 s//\1/ 20555 q 20556 } 20557 /^X\(\/\).*/{ 20558 s//\1/ 20559 q 20560 } 20561 s/.*/./; q'` 20562 test -d "$as_dir" && break 20563 done 20564 test -z "$as_dirs" || eval "mkdir $as_dirs" 20565 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20566echo "$as_me: error: cannot create directory $as_dir" >&2;} 20567 { (exit 1); exit 1; }; }; } 20568 # echo "creating $dirpart/$file" 20569 echo '# dummy' > "$dirpart/$file" 20570 done 20571done 20572 ;; 20573 20574 esac 20575done # for ac_tag 20576 20577 20578{ (exit 0); exit 0; } 20579_ACEOF 20580chmod +x $CONFIG_STATUS 20581ac_clean_files=$ac_clean_files_save 20582 20583 20584# configure is writing to config.log, and then calls config.status. 20585# config.status does its own redirection, appending to config.log. 20586# Unfortunately, on DOS this fails, as config.log is still kept open 20587# by configure, so config.status won't be able to write to it; its 20588# output is simply discarded. So we exec the FD to /dev/null, 20589# effectively closing config.log, so it can be properly (re)opened and 20590# appended to by config.status. When coming back to configure, we 20591# need to make the FD available again. 20592if test "$no_create" != yes; then 20593 ac_cs_success=: 20594 ac_config_status_args= 20595 test "$silent" = yes && 20596 ac_config_status_args="$ac_config_status_args --quiet" 20597 exec 5>/dev/null 20598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20599 exec 5>>config.log 20600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20601 # would make configure fail if this is the last instruction. 20602 $ac_cs_success || { (exit 1); exit 1; } 20603fi 20604 20605