1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.61 for ta-lib 0.4.0. 4@%:@ 5@%:@ Report bugs to <http://sourceforge.net/tracker/?group_id=8903&atid=108903>. 6@%:@ 7@%:@ (c) TicTacTec 2005, 2006 8@%:@ 9@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 11@%:@ This configure script is free software; the Free Software Foundation 12@%:@ gives unlimited permission to copy, distribute and modify it. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20 emulate sh 21 NULLCMD=: 22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in 28 *posix*) set -o posix ;; 29esac 30 31fi 32 33 34 35 36# PATH needs CR 37# Avoid depending upon Character Ranges. 38as_cr_letters='abcdefghijklmnopqrstuvwxyz' 39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 40as_cr_Letters=$as_cr_letters$as_cr_LETTERS 41as_cr_digits='0123456789' 42as_cr_alnum=$as_cr_Letters$as_cr_digits 43 44# The user is always right. 45if test "${PATH_SEPARATOR+set}" != set; then 46 echo "#! /bin/sh" >conf$$.sh 47 echo "exit 0" >>conf$$.sh 48 chmod +x conf$$.sh 49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 50 PATH_SEPARATOR=';' 51 else 52 PATH_SEPARATOR=: 53 fi 54 rm -f conf$$.sh 55fi 56 57# Support unset when possible. 58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 59 as_unset=unset 60else 61 as_unset=false 62fi 63 64 65# IFS 66# We need space, tab and new line, in precisely that order. Quoting is 67# there to prevent editors from complaining about space-tab. 68# (If _AS_PATH_WALK were called with IFS unset, it would disable word 69# splitting by setting IFS to empty value.) 70as_nl=' 71' 72IFS=" "" $as_nl" 73 74# Find who we are. Look in the path if we contain no directory separator. 75case $0 in 76 *[\\/]* ) as_myself=$0 ;; 77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 78for as_dir in $PATH 79do 80 IFS=$as_save_IFS 81 test -z "$as_dir" && as_dir=. 82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 83done 84IFS=$as_save_IFS 85 86 ;; 87esac 88# We did not find ourselves, most probably we were run as `sh COMMAND' 89# in which case we are not to be found in the path. 90if test "x$as_myself" = x; then 91 as_myself=$0 92fi 93if test ! -f "$as_myself"; then 94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 95 { (exit 1); exit 1; } 96fi 97 98# Work around bugs in pre-3.0 UWIN ksh. 99for as_var in ENV MAIL MAILPATH 100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 101done 102PS1='$ ' 103PS2='> ' 104PS4='+ ' 105 106# NLS nuisances. 107for as_var in \ 108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 110 LC_TELEPHONE LC_TIME 111do 112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 113 eval $as_var=C; export $as_var 114 else 115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 116 fi 117done 118 119# Required to use basename. 120if expr a : '\(a\)' >/dev/null 2>&1 && 121 test "X`expr 00001 : '.*\(...\)'`" = X001; then 122 as_expr=expr 123else 124 as_expr=false 125fi 126 127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 128 as_basename=basename 129else 130 as_basename=false 131fi 132 133 134# Name of the executable. 135as_me=`$as_basename -- "$0" || 136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 137 X"$0" : 'X\(//\)$' \| \ 138 X"$0" : 'X\(/\)' \| . 2>/dev/null || 139echo X/"$0" | 140 sed '/^.*\/\([^/][^/]*\)\/*$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\/\)$/{ 145 s//\1/ 146 q 147 } 148 /^X\/\(\/\).*/{ 149 s//\1/ 150 q 151 } 152 s/.*/./; q'` 153 154# CDPATH. 155$as_unset CDPATH 156 157 158if test "x$CONFIG_SHELL" = x; then 159 if (eval ":") 2>/dev/null; then 160 as_have_required=yes 161else 162 as_have_required=no 163fi 164 165 if test $as_have_required = yes && (eval ": 166(as_func_return () { 167 (exit \$1) 168} 169as_func_success () { 170 as_func_return 0 171} 172as_func_failure () { 173 as_func_return 1 174} 175as_func_ret_success () { 176 return 0 177} 178as_func_ret_failure () { 179 return 1 180} 181 182exitcode=0 183if as_func_success; then 184 : 185else 186 exitcode=1 187 echo as_func_success failed. 188fi 189 190if as_func_failure; then 191 exitcode=1 192 echo as_func_failure succeeded. 193fi 194 195if as_func_ret_success; then 196 : 197else 198 exitcode=1 199 echo as_func_ret_success failed. 200fi 201 202if as_func_ret_failure; then 203 exitcode=1 204 echo as_func_ret_failure succeeded. 205fi 206 207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 208 : 209else 210 exitcode=1 211 echo positional parameters were not saved. 212fi 213 214test \$exitcode = 0) || { (exit 1); exit 1; } 215 216( 217 as_lineno_1=\$LINENO 218 as_lineno_2=\$LINENO 219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 221") 2> /dev/null; then 222 : 223else 224 as_candidate_shells= 225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 227do 228 IFS=$as_save_IFS 229 test -z "$as_dir" && as_dir=. 230 case $as_dir in 231 /*) 232 for as_base in sh bash ksh sh5; do 233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 234 done;; 235 esac 236done 237IFS=$as_save_IFS 238 239 240 for as_shell in $as_candidate_shells $SHELL; do 241 # Try only shells that exist, to save several forks. 242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 243 { ("$as_shell") 2> /dev/null <<\_ASEOF 244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 245 emulate sh 246 NULLCMD=: 247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 248 # is contrary to our usage. Disable this feature. 249 alias -g '${1+"$@"}'='"$@"' 250 setopt NO_GLOB_SUBST 251else 252 case `(set -o) 2>/dev/null` in 253 *posix*) set -o posix ;; 254esac 255 256fi 257 258 259: 260_ASEOF 261}; then 262 CONFIG_SHELL=$as_shell 263 as_have_required=yes 264 if { "$as_shell" 2> /dev/null <<\_ASEOF 265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 266 emulate sh 267 NULLCMD=: 268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 269 # is contrary to our usage. Disable this feature. 270 alias -g '${1+"$@"}'='"$@"' 271 setopt NO_GLOB_SUBST 272else 273 case `(set -o) 2>/dev/null` in 274 *posix*) set -o posix ;; 275esac 276 277fi 278 279 280: 281(as_func_return () { 282 (exit $1) 283} 284as_func_success () { 285 as_func_return 0 286} 287as_func_failure () { 288 as_func_return 1 289} 290as_func_ret_success () { 291 return 0 292} 293as_func_ret_failure () { 294 return 1 295} 296 297exitcode=0 298if as_func_success; then 299 : 300else 301 exitcode=1 302 echo as_func_success failed. 303fi 304 305if as_func_failure; then 306 exitcode=1 307 echo as_func_failure succeeded. 308fi 309 310if as_func_ret_success; then 311 : 312else 313 exitcode=1 314 echo as_func_ret_success failed. 315fi 316 317if as_func_ret_failure; then 318 exitcode=1 319 echo as_func_ret_failure succeeded. 320fi 321 322if ( set x; as_func_ret_success y && test x = "$1" ); then 323 : 324else 325 exitcode=1 326 echo positional parameters were not saved. 327fi 328 329test $exitcode = 0) || { (exit 1); exit 1; } 330 331( 332 as_lineno_1=$LINENO 333 as_lineno_2=$LINENO 334 test "x$as_lineno_1" != "x$as_lineno_2" && 335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 336 337_ASEOF 338}; then 339 break 340fi 341 342fi 343 344 done 345 346 if test "x$CONFIG_SHELL" != x; then 347 for as_var in BASH_ENV ENV 348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 349 done 350 export CONFIG_SHELL 351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 352fi 353 354 355 if test $as_have_required = no; then 356 echo This script requires a shell more modern than all the 357 echo shells that I found on your system. Please install a 358 echo modern shell, or manually run the script under such a 359 echo shell if you do have one. 360 { (exit 1); exit 1; } 361fi 362 363 364fi 365 366fi 367 368 369 370(eval "as_func_return () { 371 (exit \$1) 372} 373as_func_success () { 374 as_func_return 0 375} 376as_func_failure () { 377 as_func_return 1 378} 379as_func_ret_success () { 380 return 0 381} 382as_func_ret_failure () { 383 return 1 384} 385 386exitcode=0 387if as_func_success; then 388 : 389else 390 exitcode=1 391 echo as_func_success failed. 392fi 393 394if as_func_failure; then 395 exitcode=1 396 echo as_func_failure succeeded. 397fi 398 399if as_func_ret_success; then 400 : 401else 402 exitcode=1 403 echo as_func_ret_success failed. 404fi 405 406if as_func_ret_failure; then 407 exitcode=1 408 echo as_func_ret_failure succeeded. 409fi 410 411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 412 : 413else 414 exitcode=1 415 echo positional parameters were not saved. 416fi 417 418test \$exitcode = 0") || { 419 echo No shell found that supports shell functions. 420 echo Please tell autoconf@gnu.org about your system, 421 echo including any error possibly output before this 422 echo message 423} 424 425 426 427 as_lineno_1=$LINENO 428 as_lineno_2=$LINENO 429 test "x$as_lineno_1" != "x$as_lineno_2" && 430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 431 432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 433 # uniformly replaced by the line number. The first 'sed' inserts a 434 # line-number line after each line using $LINENO; the second 'sed' 435 # does the real work. The second script uses 'N' to pair each 436 # line-number line with the line containing $LINENO, and appends 437 # trailing '-' during substitution so that $LINENO is not a special 438 # case at line end. 439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 440 # scripts with optimization help from Paolo Bonzini. Blame Lee 441 # E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 459 { (exit 1); exit 1; }; } 460 461 # Don't try to exec as it changes $[0], causing all sort of problems 462 # (the dirname of $[0] is not the place where we might find the 463 # original and so on. Autoconf is especially sensitive to this). 464 . "./$as_me.lineno" 465 # Exit status is that of the last command. 466 exit 467} 468 469 470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 471 as_dirname=dirname 472else 473 as_dirname=false 474fi 475 476ECHO_C= ECHO_N= ECHO_T= 477case `echo -n x` in 478-n*) 479 case `echo 'x\c'` in 480 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 481 *) ECHO_C='\c';; 482 esac;; 483*) 484 ECHO_N='-n';; 485esac 486 487if expr a : '\(a\)' >/dev/null 2>&1 && 488 test "X`expr 00001 : '.*\(...\)'`" = X001; then 489 as_expr=expr 490else 491 as_expr=false 492fi 493 494rm -f conf$$ conf$$.exe conf$$.file 495if test -d conf$$.dir; then 496 rm -f conf$$.dir/conf$$.file 497else 498 rm -f conf$$.dir 499 mkdir conf$$.dir 500fi 501echo >conf$$.file 502if ln -s conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s='ln -s' 504 # ... but there are two gotchas: 505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 507 # In both cases, we have to default to `cp -p'. 508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 509 as_ln_s='cp -p' 510elif ln conf$$.file conf$$ 2>/dev/null; then 511 as_ln_s=ln 512else 513 as_ln_s='cp -p' 514fi 515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 516rmdir conf$$.dir 2>/dev/null 517 518if mkdir -p . 2>/dev/null; then 519 as_mkdir_p=: 520else 521 test -d ./-p && rmdir ./-p 522 as_mkdir_p=false 523fi 524 525if test -x / >/dev/null 2>&1; then 526 as_test_x='test -x' 527else 528 if ls -dL / >/dev/null 2>&1; then 529 as_ls_L_option=L 530 else 531 as_ls_L_option= 532 fi 533 as_test_x=' 534 eval sh -c '\'' 535 if test -d "$1"; then 536 test -d "$1/."; 537 else 538 case $1 in 539 -*)set "./$1";; 540 esac; 541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 542 ???[sx]*):;;*)false;;esac;fi 543 '\'' sh 544 ' 545fi 546as_executable_p=$as_test_x 547 548# Sed expression to map a string onto a valid CPP name. 549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 550 551# Sed expression to map a string onto a valid variable name. 552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 553 554 555 556 557# Check that we are running under the correct shell. 558SHELL=${CONFIG_SHELL-/bin/sh} 559 560case X$ECHO in 561X*--fallback-echo) 562 # Remove one level of quotation (which was required for Make). 563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 564 ;; 565esac 566 567echo=${ECHO-echo} 568if test "X$1" = X--no-reexec; then 569 # Discard the --no-reexec flag, and continue. 570 shift 571elif test "X$1" = X--fallback-echo; then 572 # Avoid inline document here, it may be left over 573 : 574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 575 # Yippee, $echo works! 576 : 577else 578 # Restart under the correct shell. 579 exec $SHELL "$0" --no-reexec ${1+"$@"} 580fi 581 582if test "X$1" = X--fallback-echo; then 583 # used as fallback echo 584 shift 585 cat <<EOF 586$* 587EOF 588 exit 0 589fi 590 591# The HP-UX ksh and POSIX shell print the target directory to stdout 592# if CDPATH is set. 593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 594 595if test -z "$ECHO"; then 596if test "X${echo_test_string+set}" != Xset; then 597# find a string as large as possible, as long as the shell can cope with it 598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 600 if (echo_test_string=`eval $cmd`) 2>/dev/null && 601 echo_test_string=`eval $cmd` && 602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 603 then 604 break 605 fi 606 done 607fi 608 609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 : 613else 614 # The Solaris, AIX, and Digital Unix default echo programs unquote 615 # backslashes. This makes it impossible to quote backslashes using 616 # echo "$something" | sed 's/\\/\\\\/g' 617 # 618 # So, first we look for a working echo in the user's PATH. 619 620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 621 for dir in $PATH /usr/ucb; do 622 IFS="$lt_save_ifs" 623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 echo="$dir/echo" 628 break 629 fi 630 done 631 IFS="$lt_save_ifs" 632 633 if test "X$echo" = Xecho; then 634 # We didn't find a better echo, so look for alternatives. 635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 637 test "X$echo_testing_string" = "X$echo_test_string"; then 638 # This shell has a builtin print -r that does the trick. 639 echo='print -r' 640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 641 test "X$CONFIG_SHELL" != X/bin/ksh; then 642 # If we have ksh, try running configure again with it. 643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 644 export ORIGINAL_CONFIG_SHELL 645 CONFIG_SHELL=/bin/ksh 646 export CONFIG_SHELL 647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 648 else 649 # Try using printf. 650 echo='printf %s\n' 651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 653 test "X$echo_testing_string" = "X$echo_test_string"; then 654 # Cool, printf works 655 : 656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 657 test "X$echo_testing_string" = 'X\t' && 658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 659 test "X$echo_testing_string" = "X$echo_test_string"; then 660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 661 export CONFIG_SHELL 662 SHELL="$CONFIG_SHELL" 663 export SHELL 664 echo="$CONFIG_SHELL $0 --fallback-echo" 665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 666 test "X$echo_testing_string" = 'X\t' && 667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 668 test "X$echo_testing_string" = "X$echo_test_string"; then 669 echo="$CONFIG_SHELL $0 --fallback-echo" 670 else 671 # maybe with a smaller string... 672 prev=: 673 674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 676 then 677 break 678 fi 679 prev="$cmd" 680 done 681 682 if test "$prev" != 'sed 50q "$0"'; then 683 echo_test_string=`eval $prev` 684 export echo_test_string 685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 686 else 687 # Oops. We lost completely, so just stick with echo. 688 echo=echo 689 fi 690 fi 691 fi 692 fi 693fi 694fi 695 696# Copy echo and quote the copy suitably for passing to libtool from 697# the Makefile, instead of quoting the original, which is used later. 698ECHO=$echo 699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 701fi 702 703 704 705 706tagnames=${tagnames+${tagnames},}CXX 707 708tagnames=${tagnames+${tagnames},}F77 709 710exec 7<&0 </dev/null 6>&1 711 712# Name of the host. 713# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 714# so uname gets run too. 715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 716 717# 718# Initializations. 719# 720ac_default_prefix=/usr/local 721ac_clean_files= 722ac_config_libobj_dir=. 723LIB@&t@OBJS= 724cross_compiling=no 725subdirs= 726MFLAGS= 727MAKEFLAGS= 728SHELL=${CONFIG_SHELL-/bin/sh} 729 730# Identity of this package. 731PACKAGE_NAME='ta-lib' 732PACKAGE_TARNAME='ta-lib' 733PACKAGE_VERSION='0.4.0' 734PACKAGE_STRING='ta-lib 0.4.0' 735PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?group_id=8903&atid=108903' 736 737ac_unique_file="src/ta_func/ta_AD.c" 738# Factoring default headers for most tests. 739ac_includes_default="\ 740#include <stdio.h> 741#ifdef HAVE_SYS_TYPES_H 742# include <sys/types.h> 743#endif 744#ifdef HAVE_SYS_STAT_H 745# include <sys/stat.h> 746#endif 747#ifdef STDC_HEADERS 748# include <stdlib.h> 749# include <stddef.h> 750#else 751# ifdef HAVE_STDLIB_H 752# include <stdlib.h> 753# endif 754#endif 755#ifdef HAVE_STRING_H 756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 757# include <memory.h> 758# endif 759# include <string.h> 760#endif 761#ifdef HAVE_STRINGS_H 762# include <strings.h> 763#endif 764#ifdef HAVE_INTTYPES_H 765# include <inttypes.h> 766#endif 767#ifdef HAVE_STDINT_H 768# include <stdint.h> 769#endif 770#ifdef HAVE_UNISTD_H 771# include <unistd.h> 772#endif" 773 774ac_subst_vars='SHELL 775PATH_SEPARATOR 776PACKAGE_NAME 777PACKAGE_TARNAME 778PACKAGE_VERSION 779PACKAGE_STRING 780PACKAGE_BUGREPORT 781exec_prefix 782prefix 783program_transform_name 784bindir 785sbindir 786libexecdir 787datarootdir 788datadir 789sysconfdir 790sharedstatedir 791localstatedir 792includedir 793oldincludedir 794docdir 795infodir 796htmldir 797dvidir 798pdfdir 799psdir 800libdir 801localedir 802mandir 803DEFS 804ECHO_C 805ECHO_N 806ECHO_T 807LIBS 808build_alias 809host_alias 810target_alias 811INSTALL_PROGRAM 812INSTALL_SCRIPT 813INSTALL_DATA 814am__isrc 815CYGPATH_W 816PACKAGE 817VERSION 818ACLOCAL 819AUTOCONF 820AUTOMAKE 821AUTOHEADER 822MAKEINFO 823install_sh 824STRIP 825INSTALL_STRIP_PROGRAM 826mkdir_p 827AWK 828SET_MAKE 829am__leading_dot 830AMTAR 831am__tar 832am__untar 833CC 834CFLAGS 835LDFLAGS 836CPPFLAGS 837ac_ct_CC 838EXEEXT 839OBJEXT 840DEPDIR 841am__include 842am__quote 843AMDEP_TRUE 844AMDEP_FALSE 845AMDEPBACKSLASH 846CCDEPMODE 847am__fastdepCC_TRUE 848am__fastdepCC_FALSE 849build 850build_cpu 851build_vendor 852build_os 853host 854host_cpu 855host_vendor 856host_os 857GREP 858EGREP 859LN_S 860ECHO 861AR 862RANLIB 863CPP 864CXX 865CXXFLAGS 866ac_ct_CXX 867CXXDEPMODE 868am__fastdepCXX_TRUE 869am__fastdepCXX_FALSE 870CXXCPP 871F77 872FFLAGS 873ac_ct_F77 874LIBTOOL 875POW_LIB 876LIB@&t@OBJS 877TALIB_LIBRARY_VERSION 878LTLIBOBJS' 879ac_subst_files='' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CPP 889CXX 890CXXFLAGS 891CCC 892CXXCPP 893F77 894FFLAGS' 895 896 897# Initialize some variables set by options. 898ac_init_help= 899ac_init_version=false 900# The variables have the same names as the options, with 901# dashes changed to underlines. 902cache_file=/dev/null 903exec_prefix=NONE 904no_create= 905no_recursion= 906prefix=NONE 907program_prefix=NONE 908program_suffix=NONE 909program_transform_name=s,x,x, 910silent= 911site= 912srcdir= 913verbose= 914x_includes=NONE 915x_libraries=NONE 916 917# Installation directory options. 918# These are left unexpanded so users can "make install exec_prefix=/foo" 919# and all the variables that are supposed to be based on exec_prefix 920# by default will actually change. 921# Use braces instead of parens because sh, perl, etc. also accept them. 922# (The list follows the same order as the GNU Coding Standards.) 923bindir='${exec_prefix}/bin' 924sbindir='${exec_prefix}/sbin' 925libexecdir='${exec_prefix}/libexec' 926datarootdir='${prefix}/share' 927datadir='${datarootdir}' 928sysconfdir='${prefix}/etc' 929sharedstatedir='${prefix}/com' 930localstatedir='${prefix}/var' 931includedir='${prefix}/include' 932oldincludedir='/usr/include' 933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 934infodir='${datarootdir}/info' 935htmldir='${docdir}' 936dvidir='${docdir}' 937pdfdir='${docdir}' 938psdir='${docdir}' 939libdir='${exec_prefix}/lib' 940localedir='${datarootdir}/locale' 941mandir='${datarootdir}/man' 942 943ac_prev= 944ac_dashdash= 945for ac_option 946do 947 # If the previous option needs an argument, assign it. 948 if test -n "$ac_prev"; then 949 eval $ac_prev=\$ac_option 950 ac_prev= 951 continue 952 fi 953 954 case $ac_option in 955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1002 { (exit 1); exit 1; }; } 1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1004 eval enable_$ac_feature=no ;; 1005 1006 -docdir | --docdir | --docdi | --doc | --do) 1007 ac_prev=docdir ;; 1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1009 docdir=$ac_optarg ;; 1010 1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1012 ac_prev=dvidir ;; 1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1014 dvidir=$ac_optarg ;; 1015 1016 -enable-* | --enable-*) 1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1018 # Reject names that are not valid shell variable names. 1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1021 { (exit 1); exit 1; }; } 1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1023 eval enable_$ac_feature=\$ac_optarg ;; 1024 1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1027 | --exec | --exe | --ex) 1028 ac_prev=exec_prefix ;; 1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1031 | --exec=* | --exe=* | --ex=*) 1032 exec_prefix=$ac_optarg ;; 1033 1034 -gas | --gas | --ga | --g) 1035 # Obsolete; use --with-gas. 1036 with_gas=yes ;; 1037 1038 -help | --help | --hel | --he | -h) 1039 ac_init_help=long ;; 1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1041 ac_init_help=recursive ;; 1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1043 ac_init_help=short ;; 1044 1045 -host | --host | --hos | --ho) 1046 ac_prev=host_alias ;; 1047 -host=* | --host=* | --hos=* | --ho=*) 1048 host_alias=$ac_optarg ;; 1049 1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1051 ac_prev=htmldir ;; 1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1053 | --ht=*) 1054 htmldir=$ac_optarg ;; 1055 1056 -includedir | --includedir | --includedi | --included | --include \ 1057 | --includ | --inclu | --incl | --inc) 1058 ac_prev=includedir ;; 1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1060 | --includ=* | --inclu=* | --incl=* | --inc=*) 1061 includedir=$ac_optarg ;; 1062 1063 -infodir | --infodir | --infodi | --infod | --info | --inf) 1064 ac_prev=infodir ;; 1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1066 infodir=$ac_optarg ;; 1067 1068 -libdir | --libdir | --libdi | --libd) 1069 ac_prev=libdir ;; 1070 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1071 libdir=$ac_optarg ;; 1072 1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1074 | --libexe | --libex | --libe) 1075 ac_prev=libexecdir ;; 1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1077 | --libexe=* | --libex=* | --libe=*) 1078 libexecdir=$ac_optarg ;; 1079 1080 -localedir | --localedir | --localedi | --localed | --locale) 1081 ac_prev=localedir ;; 1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1083 localedir=$ac_optarg ;; 1084 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1086 | --localstate | --localstat | --localsta | --localst | --locals) 1087 ac_prev=localstatedir ;; 1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1090 localstatedir=$ac_optarg ;; 1091 1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1093 ac_prev=mandir ;; 1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1095 mandir=$ac_optarg ;; 1096 1097 -nfp | --nfp | --nf) 1098 # Obsolete; use --without-fp. 1099 with_fp=no ;; 1100 1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1102 | --no-cr | --no-c | -n) 1103 no_create=yes ;; 1104 1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1107 no_recursion=yes ;; 1108 1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1111 | --oldin | --oldi | --old | --ol | --o) 1112 ac_prev=oldincludedir ;; 1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1116 oldincludedir=$ac_optarg ;; 1117 1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1119 ac_prev=prefix ;; 1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1121 prefix=$ac_optarg ;; 1122 1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1124 | --program-pre | --program-pr | --program-p) 1125 ac_prev=program_prefix ;; 1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1128 program_prefix=$ac_optarg ;; 1129 1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1131 | --program-suf | --program-su | --program-s) 1132 ac_prev=program_suffix ;; 1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1135 program_suffix=$ac_optarg ;; 1136 1137 -program-transform-name | --program-transform-name \ 1138 | --program-transform-nam | --program-transform-na \ 1139 | --program-transform-n | --program-transform- \ 1140 | --program-transform | --program-transfor \ 1141 | --program-transfo | --program-transf \ 1142 | --program-trans | --program-tran \ 1143 | --progr-tra | --program-tr | --program-t) 1144 ac_prev=program_transform_name ;; 1145 -program-transform-name=* | --program-transform-name=* \ 1146 | --program-transform-nam=* | --program-transform-na=* \ 1147 | --program-transform-n=* | --program-transform-=* \ 1148 | --program-transform=* | --program-transfor=* \ 1149 | --program-transfo=* | --program-transf=* \ 1150 | --program-trans=* | --program-tran=* \ 1151 | --progr-tra=* | --program-tr=* | --program-t=*) 1152 program_transform_name=$ac_optarg ;; 1153 1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1155 ac_prev=pdfdir ;; 1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1157 pdfdir=$ac_optarg ;; 1158 1159 -psdir | --psdir | --psdi | --psd | --ps) 1160 ac_prev=psdir ;; 1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1162 psdir=$ac_optarg ;; 1163 1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1165 | -silent | --silent | --silen | --sile | --sil) 1166 silent=yes ;; 1167 1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1169 ac_prev=sbindir ;; 1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1171 | --sbi=* | --sb=*) 1172 sbindir=$ac_optarg ;; 1173 1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1176 | --sharedst | --shareds | --shared | --share | --shar \ 1177 | --sha | --sh) 1178 ac_prev=sharedstatedir ;; 1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1182 | --sha=* | --sh=*) 1183 sharedstatedir=$ac_optarg ;; 1184 1185 -site | --site | --sit) 1186 ac_prev=site ;; 1187 -site=* | --site=* | --sit=*) 1188 site=$ac_optarg ;; 1189 1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1191 ac_prev=srcdir ;; 1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1193 srcdir=$ac_optarg ;; 1194 1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1196 | --syscon | --sysco | --sysc | --sys | --sy) 1197 ac_prev=sysconfdir ;; 1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1200 sysconfdir=$ac_optarg ;; 1201 1202 -target | --target | --targe | --targ | --tar | --ta | --t) 1203 ac_prev=target_alias ;; 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1205 target_alias=$ac_optarg ;; 1206 1207 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1208 verbose=yes ;; 1209 1210 -version | --version | --versio | --versi | --vers | -V) 1211 ac_init_version=: ;; 1212 1213 -with-* | --with-*) 1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 { echo "$as_me: error: invalid package name: $ac_package" >&2 1218 { (exit 1); exit 1; }; } 1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1220 eval with_$ac_package=\$ac_optarg ;; 1221 1222 -without-* | --without-*) 1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2 1227 { (exit 1); exit 1; }; } 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1229 eval with_$ac_package=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) { echo "$as_me: error: unrecognized option: $ac_option 1250Try \`$0 --help' for more information." >&2 1251 { (exit 1); exit 1; }; } 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1259 { (exit 1); exit 1; }; } 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 { echo "$as_me: error: missing argument to $ac_option" >&2 1277 { (exit 1); exit 1; }; } 1278fi 1279 1280# Be sure to have absolute directory names. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir 1285do 1286 eval ac_val=\$$ac_var 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1292 { (exit 1); exit 1; }; } 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1307 If a cross compiler is detected then cross compile mode will be used." >&2 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 { echo "$as_me: error: Working directory cannot be determined" >&2 1323 { (exit 1); exit 1; }; } 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 { echo "$as_me: error: pwd does not report name of working directory" >&2 1326 { (exit 1); exit 1; }; } 1327 1328 1329# Find the source files, if location was not specified. 1330if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$0" || 1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$0" : 'X\(//\)[^/]' \| \ 1336 X"$0" : 'X\(//\)$' \| \ 1337 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1338echo X"$0" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360else 1361 ac_srcdir_defaulted=no 1362fi 1363if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1366 { (exit 1); exit 1; }; } 1367fi 1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1371 { (exit 1); exit 1; }; } 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures ta-lib 0.4.0 to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/ta-lib@:>@ 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450_ACEOF 1451 1452 cat <<\_ACEOF 1453 1454Program names: 1455 --program-prefix=PREFIX prepend PREFIX to installed program names 1456 --program-suffix=SUFFIX append SUFFIX to installed program names 1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1458 1459System types: 1460 --build=BUILD configure for building on BUILD [guessed] 1461 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1462_ACEOF 1463fi 1464 1465if test -n "$ac_init_help"; then 1466 case $ac_init_help in 1467 short | recursive ) echo "Configuration of ta-lib 0.4.0:";; 1468 esac 1469 cat <<\_ACEOF 1470 1471Optional Features: 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --disable-dependency-tracking speeds up one-time build 1475 --enable-dependency-tracking do not reject slow dependency extractors 1476 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1477 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1478 --enable-fast-install@<:@=PKGS@:>@ 1479 optimize for fast installation @<:@default=yes@:>@ 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1486 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1487 both@:>@ 1488 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@ 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CXXCPP C++ preprocessor 1502 F77 Fortran 77 compiler command 1503 FFLAGS Fortran 77 compiler flags 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to <http://sourceforge.net/tracker/?group_id=8903&atid=108903>. 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || continue 1517 ac_builddir=. 1518 1519case "$ac_dir" in 1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521*) 1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1523 # A ".." for each directory in $ac_dir_suffix. 1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1525 case $ac_top_builddir_sub in 1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1528 esac ;; 1529esac 1530ac_abs_top_builddir=$ac_pwd 1531ac_abs_builddir=$ac_pwd$ac_dir_suffix 1532# for backward compatibility: 1533ac_top_builddir=$ac_top_build_prefix 1534 1535case $srcdir in 1536 .) # We are building in place. 1537 ac_srcdir=. 1538 ac_top_srcdir=$ac_top_builddir_sub 1539 ac_abs_top_srcdir=$ac_pwd ;; 1540 [\\/]* | ?:[\\/]* ) # Absolute name. 1541 ac_srcdir=$srcdir$ac_dir_suffix; 1542 ac_top_srcdir=$srcdir 1543 ac_abs_top_srcdir=$srcdir ;; 1544 *) # Relative name. 1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1546 ac_top_srcdir=$ac_top_build_prefix$srcdir 1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1548esac 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1550 1551 cd "$ac_dir" || { ac_status=$?; continue; } 1552 # Check for guested configure. 1553 if test -f "$ac_srcdir/configure.gnu"; then 1554 echo && 1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1556 elif test -f "$ac_srcdir/configure"; then 1557 echo && 1558 $SHELL "$ac_srcdir/configure" --help=recursive 1559 else 1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1561 fi || ac_status=$? 1562 cd "$ac_pwd" || { ac_status=$?; break; } 1563 done 1564fi 1565 1566test -n "$ac_init_help" && exit $ac_status 1567if $ac_init_version; then 1568 cat <<\_ACEOF 1569ta-lib configure 0.4.0 1570generated by GNU Autoconf 2.61 1571 1572Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576 1577(c) TicTacTec 2005, 2006 1578_ACEOF 1579 exit 1580fi 1581cat >config.log <<_ACEOF 1582This file contains any messages produced by compilers while 1583running configure, to aid debugging if configure makes a mistake. 1584 1585It was created by ta-lib $as_me 0.4.0, which was 1586generated by GNU Autoconf 2.61. Invocation command line was 1587 1588 $ $0 $@ 1589 1590_ACEOF 1591exec 5>>config.log 1592{ 1593cat <<_ASUNAME 1594@%:@@%:@ --------- @%:@@%:@ 1595@%:@@%:@ Platform. @%:@@%:@ 1596@%:@@%:@ --------- @%:@@%:@ 1597 1598hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1599uname -m = `(uname -m) 2>/dev/null || echo unknown` 1600uname -r = `(uname -r) 2>/dev/null || echo unknown` 1601uname -s = `(uname -s) 2>/dev/null || echo unknown` 1602uname -v = `(uname -v) 2>/dev/null || echo unknown` 1603 1604/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1605/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1606 1607/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1608/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1609/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1610/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1611/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1612/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1613/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1614 1615_ASUNAME 1616 1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1618for as_dir in $PATH 1619do 1620 IFS=$as_save_IFS 1621 test -z "$as_dir" && as_dir=. 1622 echo "PATH: $as_dir" 1623done 1624IFS=$as_save_IFS 1625 1626} >&5 1627 1628cat >&5 <<_ACEOF 1629 1630 1631@%:@@%:@ ----------- @%:@@%:@ 1632@%:@@%:@ Core tests. @%:@@%:@ 1633@%:@@%:@ ----------- @%:@@%:@ 1634 1635_ACEOF 1636 1637 1638# Keep a trace of the command line. 1639# Strip out --no-create and --no-recursion so they do not pile up. 1640# Strip out --silent because we don't want to record it for future runs. 1641# Also quote any args containing shell meta-characters. 1642# Make two passes to allow for proper duplicate-argument suppression. 1643ac_configure_args= 1644ac_configure_args0= 1645ac_configure_args1= 1646ac_must_keep_next=false 1647for ac_pass in 1 2 1648do 1649 for ac_arg 1650 do 1651 case $ac_arg in 1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1654 | -silent | --silent | --silen | --sile | --sil) 1655 continue ;; 1656 *\'*) 1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1658 esac 1659 case $ac_pass in 1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1661 2) 1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1663 if test $ac_must_keep_next = true; then 1664 ac_must_keep_next=false # Got value, back to normal. 1665 else 1666 case $ac_arg in 1667 *=* | --config-cache | -C | -disable-* | --disable-* \ 1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1670 | -with-* | --with-* | -without-* | --without-* | --x) 1671 case "$ac_configure_args0 " in 1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1673 esac 1674 ;; 1675 -* ) ac_must_keep_next=true ;; 1676 esac 1677 fi 1678 ac_configure_args="$ac_configure_args '$ac_arg'" 1679 ;; 1680 esac 1681 done 1682done 1683$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1684$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1685 1686# When interrupted or exit'd, cleanup temporary files, and complete 1687# config.log. We remove comments because anyway the quotes in there 1688# would cause problems or look ugly. 1689# WARNING: Use '\'' to represent an apostrophe within the trap. 1690# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1691trap 'exit_status=$? 1692 # Save into config.log some information that might help in debugging. 1693 { 1694 echo 1695 1696 cat <<\_ASBOX 1697@%:@@%:@ ---------------- @%:@@%:@ 1698@%:@@%:@ Cache variables. @%:@@%:@ 1699@%:@@%:@ ---------------- @%:@@%:@ 1700_ASBOX 1701 echo 1702 # The following way of writing the cache mishandles newlines in values, 1703( 1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1705 eval ac_val=\$$ac_var 1706 case $ac_val in #( 1707 *${as_nl}*) 1708 case $ac_var in #( 1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1710echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1711 esac 1712 case $ac_var in #( 1713 _ | IFS | as_nl) ;; #( 1714 *) $as_unset $ac_var ;; 1715 esac ;; 1716 esac 1717 done 1718 (set) 2>&1 | 1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1720 *${as_nl}ac_space=\ *) 1721 sed -n \ 1722 "s/'\''/'\''\\\\'\'''\''/g; 1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1724 ;; #( 1725 *) 1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1727 ;; 1728 esac | 1729 sort 1730) 1731 echo 1732 1733 cat <<\_ASBOX 1734@%:@@%:@ ----------------- @%:@@%:@ 1735@%:@@%:@ Output variables. @%:@@%:@ 1736@%:@@%:@ ----------------- @%:@@%:@ 1737_ASBOX 1738 echo 1739 for ac_var in $ac_subst_vars 1740 do 1741 eval ac_val=\$$ac_var 1742 case $ac_val in 1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1744 esac 1745 echo "$ac_var='\''$ac_val'\''" 1746 done | sort 1747 echo 1748 1749 if test -n "$ac_subst_files"; then 1750 cat <<\_ASBOX 1751@%:@@%:@ ------------------- @%:@@%:@ 1752@%:@@%:@ File substitutions. @%:@@%:@ 1753@%:@@%:@ ------------------- @%:@@%:@ 1754_ASBOX 1755 echo 1756 for ac_var in $ac_subst_files 1757 do 1758 eval ac_val=\$$ac_var 1759 case $ac_val in 1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1761 esac 1762 echo "$ac_var='\''$ac_val'\''" 1763 done | sort 1764 echo 1765 fi 1766 1767 if test -s confdefs.h; then 1768 cat <<\_ASBOX 1769@%:@@%:@ ----------- @%:@@%:@ 1770@%:@@%:@ confdefs.h. @%:@@%:@ 1771@%:@@%:@ ----------- @%:@@%:@ 1772_ASBOX 1773 echo 1774 cat confdefs.h 1775 echo 1776 fi 1777 test "$ac_signal" != 0 && 1778 echo "$as_me: caught signal $ac_signal" 1779 echo "$as_me: exit $exit_status" 1780 } >&5 1781 rm -f core *.core core.conftest.* && 1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1783 exit $exit_status 1784' 0 1785for ac_signal in 1 2 13 15; do 1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1787done 1788ac_signal=0 1789 1790# confdefs.h avoids OS command line length limits that DEFS can exceed. 1791rm -f -r conftest* confdefs.h 1792 1793# Predefined preprocessor variables. 1794 1795cat >>confdefs.h <<_ACEOF 1796@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1797_ACEOF 1798 1799 1800cat >>confdefs.h <<_ACEOF 1801@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1802_ACEOF 1803 1804 1805cat >>confdefs.h <<_ACEOF 1806@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1807_ACEOF 1808 1809 1810cat >>confdefs.h <<_ACEOF 1811@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1817_ACEOF 1818 1819 1820# Let the site file select an alternate cache file if it wants to. 1821# Prefer explicitly selected file to automatically selected ones. 1822if test -n "$CONFIG_SITE"; then 1823 set x "$CONFIG_SITE" 1824elif test "x$prefix" != xNONE; then 1825 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1826else 1827 set x "$ac_default_prefix/share/config.site" \ 1828 "$ac_default_prefix/etc/config.site" 1829fi 1830shift 1831for ac_site_file 1832do 1833 if test -r "$ac_site_file"; then 1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1835echo "$as_me: loading site script $ac_site_file" >&6;} 1836 sed 's/^/| /' "$ac_site_file" >&5 1837 . "$ac_site_file" 1838 fi 1839done 1840 1841if test -r "$cache_file"; then 1842 # Some versions of bash will fail to source /dev/null (special 1843 # files actually), so we avoid doing that. 1844 if test -f "$cache_file"; then 1845 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1846echo "$as_me: loading cache $cache_file" >&6;} 1847 case $cache_file in 1848 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1849 *) . "./$cache_file";; 1850 esac 1851 fi 1852else 1853 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1854echo "$as_me: creating cache $cache_file" >&6;} 1855 >$cache_file 1856fi 1857 1858# Check that the precious variables saved in the cache have kept the same 1859# value. 1860ac_cache_corrupted=false 1861for ac_var in $ac_precious_vars; do 1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1863 eval ac_new_set=\$ac_env_${ac_var}_set 1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1865 eval ac_new_val=\$ac_env_${ac_var}_value 1866 case $ac_old_set,$ac_new_set in 1867 set,) 1868 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1869echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1870 ac_cache_corrupted=: ;; 1871 ,set) 1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1873echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1874 ac_cache_corrupted=: ;; 1875 ,);; 1876 *) 1877 if test "x$ac_old_val" != "x$ac_new_val"; then 1878 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1879echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1881echo "$as_me: former value: $ac_old_val" >&2;} 1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1883echo "$as_me: current value: $ac_new_val" >&2;} 1884 ac_cache_corrupted=: 1885 fi;; 1886 esac 1887 # Pass precious variables to config.status. 1888 if test "$ac_new_set" = set; then 1889 case $ac_new_val in 1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 *) ac_arg=$ac_var=$ac_new_val ;; 1892 esac 1893 case " $ac_configure_args " in 1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1896 esac 1897 fi 1898done 1899if $ac_cache_corrupted; then 1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1901echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1903echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1904 { (exit 1); exit 1; }; } 1905fi 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931ac_ext=c 1932ac_cpp='$CPP $CPPFLAGS' 1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1935ac_compiler_gnu=$ac_cv_c_compiler_gnu 1936 1937 1938 1939ac_config_headers="$ac_config_headers include/ta_config.h" 1940 1941am__api_version='1.10' 1942 1943ac_aux_dir= 1944for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1945 if test -f "$ac_dir/install-sh"; then 1946 ac_aux_dir=$ac_dir 1947 ac_install_sh="$ac_aux_dir/install-sh -c" 1948 break 1949 elif test -f "$ac_dir/install.sh"; then 1950 ac_aux_dir=$ac_dir 1951 ac_install_sh="$ac_aux_dir/install.sh -c" 1952 break 1953 elif test -f "$ac_dir/shtool"; then 1954 ac_aux_dir=$ac_dir 1955 ac_install_sh="$ac_aux_dir/shtool install -c" 1956 break 1957 fi 1958done 1959if test -z "$ac_aux_dir"; then 1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1961echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1962 { (exit 1); exit 1; }; } 1963fi 1964 1965# These three variables are undocumented and unsupported, 1966# and are intended to be withdrawn in a future Autoconf release. 1967# They can cause serious problems if a builder's source tree is in a directory 1968# whose full name contains unusual characters. 1969ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1970ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1971ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1972 1973 1974# Find a good install program. We prefer a C program (faster), 1975# so one script is as good as another. But avoid the broken or 1976# incompatible versions: 1977# SysV /etc/install, /usr/sbin/install 1978# SunOS /usr/etc/install 1979# IRIX /sbin/install 1980# AIX /bin/install 1981# AmigaOS /C/install, which installs bootblocks on floppy discs 1982# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1983# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1984# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1985# OS/2's system install, which has a completely different semantic 1986# ./install, which can be erroneously created by make from ./install.sh. 1987{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1988echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1989if test -z "$INSTALL"; then 1990if test "${ac_cv_path_install+set}" = set; then 1991 echo $ECHO_N "(cached) $ECHO_C" >&6 1992else 1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994for as_dir in $PATH 1995do 1996 IFS=$as_save_IFS 1997 test -z "$as_dir" && as_dir=. 1998 # Account for people who put trailing slashes in PATH elements. 1999case $as_dir/ in 2000 ./ | .// | /cC/* | \ 2001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2003 /usr/ucb/* ) ;; 2004 *) 2005 # OSF1 and SCO ODT 3.0 have their own names for install. 2006 # Don't use installbsd from OSF since it installs stuff as root 2007 # by default. 2008 for ac_prog in ginstall scoinst install; do 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2011 if test $ac_prog = install && 2012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2013 # AIX install. It has an incompatible calling convention. 2014 : 2015 elif test $ac_prog = install && 2016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2017 # program-specific install script used by HP pwplus--don't use. 2018 : 2019 else 2020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2021 break 3 2022 fi 2023 fi 2024 done 2025 done 2026 ;; 2027esac 2028done 2029IFS=$as_save_IFS 2030 2031 2032fi 2033 if test "${ac_cv_path_install+set}" = set; then 2034 INSTALL=$ac_cv_path_install 2035 else 2036 # As a last resort, use the slow shell script. Don't cache a 2037 # value for INSTALL within a source directory, because that will 2038 # break other packages using the cache if that directory is 2039 # removed, or if the value is a relative name. 2040 INSTALL=$ac_install_sh 2041 fi 2042fi 2043{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2044echo "${ECHO_T}$INSTALL" >&6; } 2045 2046# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2047# It thinks the first close brace ends the variable substitution. 2048test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2049 2050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2051 2052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2053 2054{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2055echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2056# Just in case 2057sleep 1 2058echo timestamp > conftest.file 2059# Do `set' in a subshell so we don't clobber the current shell's 2060# arguments. Must try -L first in case configure is actually a 2061# symlink; some systems play weird games with the mod time of symlinks 2062# (eg FreeBSD returns the mod time of the symlink's containing 2063# directory). 2064if ( 2065 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2066 if test "$*" = "X"; then 2067 # -L didn't work. 2068 set X `ls -t $srcdir/configure conftest.file` 2069 fi 2070 rm -f conftest.file 2071 if test "$*" != "X $srcdir/configure conftest.file" \ 2072 && test "$*" != "X conftest.file $srcdir/configure"; then 2073 2074 # If neither matched, then we have a broken ls. This can happen 2075 # if, for instance, CONFIG_SHELL is bash and it inherits a 2076 # broken ls alias from the environment. This has actually 2077 # happened. Such a system could not be considered "sane". 2078 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2079alias in your environment" >&5 2080echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2081alias in your environment" >&2;} 2082 { (exit 1); exit 1; }; } 2083 fi 2084 2085 test "$2" = conftest.file 2086 ) 2087then 2088 # Ok. 2089 : 2090else 2091 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2092Check your system clock" >&5 2093echo "$as_me: error: newly created file is older than distributed files! 2094Check your system clock" >&2;} 2095 { (exit 1); exit 1; }; } 2096fi 2097{ echo "$as_me:$LINENO: result: yes" >&5 2098echo "${ECHO_T}yes" >&6; } 2099test "$program_prefix" != NONE && 2100 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2101# Use a double $ so make ignores it. 2102test "$program_suffix" != NONE && 2103 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2104# Double any \ or $. echo might interpret backslashes. 2105# By default was `s,x,x', remove it if useless. 2106cat <<\_ACEOF >conftest.sed 2107s/[\\$]/&&/g;s/;s,x,x,$// 2108_ACEOF 2109program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2110rm -f conftest.sed 2111 2112# expand $ac_aux_dir to an absolute path 2113am_aux_dir=`cd $ac_aux_dir && pwd` 2114 2115test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2116# Use eval to expand $SHELL 2117if eval "$MISSING --run true"; then 2118 am_missing_run="$MISSING --run " 2119else 2120 am_missing_run= 2121 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2122echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2123fi 2124 2125{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2126echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2127if test -z "$MKDIR_P"; then 2128 if test "${ac_cv_path_mkdir+set}" = set; then 2129 echo $ECHO_N "(cached) $ECHO_C" >&6 2130else 2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2133do 2134 IFS=$as_save_IFS 2135 test -z "$as_dir" && as_dir=. 2136 for ac_prog in mkdir gmkdir; do 2137 for ac_exec_ext in '' $ac_executable_extensions; do 2138 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2140 'mkdir (GNU coreutils) '* | \ 2141 'mkdir (coreutils) '* | \ 2142 'mkdir (fileutils) '4.1*) 2143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2144 break 3;; 2145 esac 2146 done 2147 done 2148done 2149IFS=$as_save_IFS 2150 2151fi 2152 2153 if test "${ac_cv_path_mkdir+set}" = set; then 2154 MKDIR_P="$ac_cv_path_mkdir -p" 2155 else 2156 # As a last resort, use the slow shell script. Don't cache a 2157 # value for MKDIR_P within a source directory, because that will 2158 # break other packages using the cache if that directory is 2159 # removed, or if the value is a relative name. 2160 test -d ./--version && rmdir ./--version 2161 MKDIR_P="$ac_install_sh -d" 2162 fi 2163fi 2164{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2165echo "${ECHO_T}$MKDIR_P" >&6; } 2166 2167mkdir_p="$MKDIR_P" 2168case $mkdir_p in 2169 [\\/$]* | ?:[\\/]*) ;; 2170 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2171esac 2172 2173for ac_prog in gawk mawk nawk awk 2174do 2175 # Extract the first word of "$ac_prog", so it can be a program name with args. 2176set dummy $ac_prog; ac_word=$2 2177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2179if test "${ac_cv_prog_AWK+set}" = set; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 if test -n "$AWK"; then 2183 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2184else 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2192 ac_cv_prog_AWK="$ac_prog" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198IFS=$as_save_IFS 2199 2200fi 2201fi 2202AWK=$ac_cv_prog_AWK 2203if test -n "$AWK"; then 2204 { echo "$as_me:$LINENO: result: $AWK" >&5 2205echo "${ECHO_T}$AWK" >&6; } 2206else 2207 { echo "$as_me:$LINENO: result: no" >&5 2208echo "${ECHO_T}no" >&6; } 2209fi 2210 2211 2212 test -n "$AWK" && break 2213done 2214 2215{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2217set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2218if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2219 echo $ECHO_N "(cached) $ECHO_C" >&6 2220else 2221 cat >conftest.make <<\_ACEOF 2222SHELL = /bin/sh 2223all: 2224 @echo '@@@%%%=$(MAKE)=@@@%%%' 2225_ACEOF 2226# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2227case `${MAKE-make} -f conftest.make 2>/dev/null` in 2228 *@@@%%%=?*=@@@%%%*) 2229 eval ac_cv_prog_make_${ac_make}_set=yes;; 2230 *) 2231 eval ac_cv_prog_make_${ac_make}_set=no;; 2232esac 2233rm -f conftest.make 2234fi 2235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2236 { echo "$as_me:$LINENO: result: yes" >&5 2237echo "${ECHO_T}yes" >&6; } 2238 SET_MAKE= 2239else 2240 { echo "$as_me:$LINENO: result: no" >&5 2241echo "${ECHO_T}no" >&6; } 2242 SET_MAKE="MAKE=${MAKE-make}" 2243fi 2244 2245rm -rf .tst 2>/dev/null 2246mkdir .tst 2>/dev/null 2247if test -d .tst; then 2248 am__leading_dot=. 2249else 2250 am__leading_dot=_ 2251fi 2252rmdir .tst 2>/dev/null 2253 2254if test "`cd $srcdir && pwd`" != "`pwd`"; then 2255 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2256 # is not polluted with repeated "-I." 2257 am__isrc=' -I$(srcdir)' 2258 # test to see if srcdir already configured 2259 if test -f $srcdir/config.status; then 2260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2261echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2262 { (exit 1); exit 1; }; } 2263 fi 2264fi 2265 2266# test whether we have cygpath 2267if test -z "$CYGPATH_W"; then 2268 if (cygpath --version) >/dev/null 2>/dev/null; then 2269 CYGPATH_W='cygpath -w' 2270 else 2271 CYGPATH_W=echo 2272 fi 2273fi 2274 2275 2276# Define the identity of the package. 2277 PACKAGE=ta-lib 2278 VERSION=0.4.0 2279 2280 2281cat >>confdefs.h <<_ACEOF 2282@%:@define PACKAGE "$PACKAGE" 2283_ACEOF 2284 2285 2286cat >>confdefs.h <<_ACEOF 2287@%:@define VERSION "$VERSION" 2288_ACEOF 2289 2290# Some tools Automake needs. 2291 2292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2293 2294 2295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2296 2297 2298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2299 2300 2301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2302 2303 2304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2305 2306install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2307 2308# Installed binaries are usually stripped using `strip' when the user 2309# run `make install-strip'. However `strip' might not be the right 2310# tool to use in cross-compilation environments, therefore Automake 2311# will honor the `STRIP' environment variable to overrule this program. 2312if test "$cross_compiling" != no; then 2313 if test -n "$ac_tool_prefix"; then 2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2315set dummy ${ac_tool_prefix}strip; ac_word=$2 2316{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2318if test "${ac_cv_prog_STRIP+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 if test -n "$STRIP"; then 2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336done 2337IFS=$as_save_IFS 2338 2339fi 2340fi 2341STRIP=$ac_cv_prog_STRIP 2342if test -n "$STRIP"; then 2343 { echo "$as_me:$LINENO: result: $STRIP" >&5 2344echo "${ECHO_T}$STRIP" >&6; } 2345else 2346 { echo "$as_me:$LINENO: result: no" >&5 2347echo "${ECHO_T}no" >&6; } 2348fi 2349 2350 2351fi 2352if test -z "$ac_cv_prog_STRIP"; then 2353 ac_ct_STRIP=$STRIP 2354 # Extract the first word of "strip", so it can be a program name with args. 2355set dummy strip; ac_word=$2 2356{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2359 echo $ECHO_N "(cached) $ECHO_C" >&6 2360else 2361 if test -n "$ac_ct_STRIP"; then 2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2363else 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365for as_dir in $PATH 2366do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 for ac_exec_ext in '' $ac_executable_extensions; do 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2371 ac_cv_prog_ac_ct_STRIP="strip" 2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2373 break 2 2374 fi 2375done 2376done 2377IFS=$as_save_IFS 2378 2379fi 2380fi 2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2382if test -n "$ac_ct_STRIP"; then 2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2384echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2385else 2386 { echo "$as_me:$LINENO: result: no" >&5 2387echo "${ECHO_T}no" >&6; } 2388fi 2389 2390 if test "x$ac_ct_STRIP" = x; then 2391 STRIP=":" 2392 else 2393 case $cross_compiling:$ac_tool_warned in 2394yes:) 2395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2396whose name does not start with the host triplet. If you think this 2397configuration is useful to you, please write to autoconf@gnu.org." >&5 2398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2399whose name does not start with the host triplet. If you think this 2400configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 STRIP=$ac_ct_STRIP 2404 fi 2405else 2406 STRIP="$ac_cv_prog_STRIP" 2407fi 2408 2409fi 2410INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2411 2412# We need awk for the "check" target. The system "awk" is bad on 2413# some platforms. 2414# Always define AMTAR for backward compatibility. 2415 2416AMTAR=${AMTAR-"${am_missing_run}tar"} 2417 2418am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2419 2420 2421 2422 2423 2424 2425# Checks for programs. 2426ac_ext=c 2427ac_cpp='$CPP $CPPFLAGS' 2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2430ac_compiler_gnu=$ac_cv_c_compiler_gnu 2431if test -n "$ac_tool_prefix"; then 2432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2433set dummy ${ac_tool_prefix}gcc; ac_word=$2 2434{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2436if test "${ac_cv_prog_CC+set}" = set; then 2437 echo $ECHO_N "(cached) $ECHO_C" >&6 2438else 2439 if test -n "$CC"; then 2440 ac_cv_prog_CC="$CC" # Let the user override the test. 2441else 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2449 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2451 break 2 2452 fi 2453done 2454done 2455IFS=$as_save_IFS 2456 2457fi 2458fi 2459CC=$ac_cv_prog_CC 2460if test -n "$CC"; then 2461 { echo "$as_me:$LINENO: result: $CC" >&5 2462echo "${ECHO_T}$CC" >&6; } 2463else 2464 { echo "$as_me:$LINENO: result: no" >&5 2465echo "${ECHO_T}no" >&6; } 2466fi 2467 2468 2469fi 2470if test -z "$ac_cv_prog_CC"; then 2471 ac_ct_CC=$CC 2472 # Extract the first word of "gcc", so it can be a program name with args. 2473set dummy gcc; ac_word=$2 2474{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2477 echo $ECHO_N "(cached) $ECHO_C" >&6 2478else 2479 if test -n "$ac_ct_CC"; then 2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2481else 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483for as_dir in $PATH 2484do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_exec_ext in '' $ac_executable_extensions; do 2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2489 ac_cv_prog_ac_ct_CC="gcc" 2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2491 break 2 2492 fi 2493done 2494done 2495IFS=$as_save_IFS 2496 2497fi 2498fi 2499ac_ct_CC=$ac_cv_prog_ac_ct_CC 2500if test -n "$ac_ct_CC"; then 2501 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2502echo "${ECHO_T}$ac_ct_CC" >&6; } 2503else 2504 { echo "$as_me:$LINENO: result: no" >&5 2505echo "${ECHO_T}no" >&6; } 2506fi 2507 2508 if test "x$ac_ct_CC" = x; then 2509 CC="" 2510 else 2511 case $cross_compiling:$ac_tool_warned in 2512yes:) 2513{ echo "$as_me:$LINENO: 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." >&5 2516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2517whose name does not start with the host triplet. If you think this 2518configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2519ac_tool_warned=yes ;; 2520esac 2521 CC=$ac_ct_CC 2522 fi 2523else 2524 CC="$ac_cv_prog_CC" 2525fi 2526 2527if test -z "$CC"; then 2528 if test -n "$ac_tool_prefix"; then 2529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2530set dummy ${ac_tool_prefix}cc; ac_word=$2 2531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2533if test "${ac_cv_prog_CC+set}" = set; then 2534 echo $ECHO_N "(cached) $ECHO_C" >&6 2535else 2536 if test -n "$CC"; then 2537 ac_cv_prog_CC="$CC" # Let the user override the test. 2538else 2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH 2541do 2542 IFS=$as_save_IFS 2543 test -z "$as_dir" && as_dir=. 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2546 ac_cv_prog_CC="${ac_tool_prefix}cc" 2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2548 break 2 2549 fi 2550done 2551done 2552IFS=$as_save_IFS 2553 2554fi 2555fi 2556CC=$ac_cv_prog_CC 2557if test -n "$CC"; then 2558 { echo "$as_me:$LINENO: result: $CC" >&5 2559echo "${ECHO_T}$CC" >&6; } 2560else 2561 { echo "$as_me:$LINENO: result: no" >&5 2562echo "${ECHO_T}no" >&6; } 2563fi 2564 2565 2566 fi 2567fi 2568if test -z "$CC"; then 2569 # Extract the first word of "cc", so it can be a program name with args. 2570set dummy cc; ac_word=$2 2571{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2573if test "${ac_cv_prog_CC+set}" = set; then 2574 echo $ECHO_N "(cached) $ECHO_C" >&6 2575else 2576 if test -n "$CC"; then 2577 ac_cv_prog_CC="$CC" # Let the user override the test. 2578else 2579 ac_prog_rejected=no 2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_exec_ext in '' $ac_executable_extensions; do 2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2588 ac_prog_rejected=yes 2589 continue 2590 fi 2591 ac_cv_prog_CC="cc" 2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595done 2596done 2597IFS=$as_save_IFS 2598 2599if test $ac_prog_rejected = yes; then 2600 # We found a bogon in the path, so make sure we never use it. 2601 set dummy $ac_cv_prog_CC 2602 shift 2603 if test $@%:@ != 0; then 2604 # We chose a different compiler from the bogus one. 2605 # However, it has the same basename, so the bogon will be chosen 2606 # first if we set CC to just the basename; use the full file name. 2607 shift 2608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2609 fi 2610fi 2611fi 2612fi 2613CC=$ac_cv_prog_CC 2614if test -n "$CC"; then 2615 { echo "$as_me:$LINENO: result: $CC" >&5 2616echo "${ECHO_T}$CC" >&6; } 2617else 2618 { echo "$as_me:$LINENO: result: no" >&5 2619echo "${ECHO_T}no" >&6; } 2620fi 2621 2622 2623fi 2624if test -z "$CC"; then 2625 if test -n "$ac_tool_prefix"; then 2626 for ac_prog in cl.exe 2627 do 2628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2629set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2630{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2632if test "${ac_cv_prog_CC+set}" = set; then 2633 echo $ECHO_N "(cached) $ECHO_C" >&6 2634else 2635 if test -n "$CC"; then 2636 ac_cv_prog_CC="$CC" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655CC=$ac_cv_prog_CC 2656if test -n "$CC"; then 2657 { echo "$as_me:$LINENO: result: $CC" >&5 2658echo "${ECHO_T}$CC" >&6; } 2659else 2660 { echo "$as_me:$LINENO: result: no" >&5 2661echo "${ECHO_T}no" >&6; } 2662fi 2663 2664 2665 test -n "$CC" && break 2666 done 2667fi 2668if test -z "$CC"; then 2669 ac_ct_CC=$CC 2670 for ac_prog in cl.exe 2671do 2672 # Extract the first word of "$ac_prog", so it can be a program name with args. 2673set dummy $ac_prog; ac_word=$2 2674{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2677 echo $ECHO_N "(cached) $ECHO_C" >&6 2678else 2679 if test -n "$ac_ct_CC"; then 2680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2689 ac_cv_prog_ac_ct_CC="$ac_prog" 2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699ac_ct_CC=$ac_cv_prog_ac_ct_CC 2700if test -n "$ac_ct_CC"; then 2701 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2702echo "${ECHO_T}$ac_ct_CC" >&6; } 2703else 2704 { echo "$as_me:$LINENO: result: no" >&5 2705echo "${ECHO_T}no" >&6; } 2706fi 2707 2708 2709 test -n "$ac_ct_CC" && break 2710done 2711 2712 if test "x$ac_ct_CC" = x; then 2713 CC="" 2714 else 2715 case $cross_compiling:$ac_tool_warned in 2716yes:) 2717{ echo "$as_me:$LINENO: 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." >&5 2720echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2721whose name does not start with the host triplet. If you think this 2722configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2723ac_tool_warned=yes ;; 2724esac 2725 CC=$ac_ct_CC 2726 fi 2727fi 2728 2729fi 2730 2731 2732test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2733See \`config.log' for more details." >&5 2734echo "$as_me: error: no acceptable C compiler found in \$PATH 2735See \`config.log' for more details." >&2;} 2736 { (exit 1); exit 1; }; } 2737 2738# Provide some information about the compiler. 2739echo "$as_me:$LINENO: checking for C compiler version" >&5 2740ac_compiler=`set X $ac_compile; echo $2` 2741{ (ac_try="$ac_compiler --version >&5" 2742case "(($ac_try" in 2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2744 *) ac_try_echo=$ac_try;; 2745esac 2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2747 (eval "$ac_compiler --version >&5") 2>&5 2748 ac_status=$? 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } 2751{ (ac_try="$ac_compiler -v >&5" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_compiler -v >&5") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } 2761{ (ac_try="$ac_compiler -V >&5" 2762case "(($ac_try" in 2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2764 *) ac_try_echo=$ac_try;; 2765esac 2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2767 (eval "$ac_compiler -V >&5") 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); } 2771 2772cat >conftest.$ac_ext <<_ACEOF 2773/* confdefs.h. */ 2774_ACEOF 2775cat confdefs.h >>conftest.$ac_ext 2776cat >>conftest.$ac_ext <<_ACEOF 2777/* end confdefs.h. */ 2778 2779int 2780main () 2781{ 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787ac_clean_files_save=$ac_clean_files 2788ac_clean_files="$ac_clean_files a.out a.exe b.out" 2789# Try to create an executable without -o first, disregard a.out. 2790# It will help us diagnose broken compilers, and finding out an intuition 2791# of exeext. 2792{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2793echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2794ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2795# 2796# List of possible output files, starting from the most likely. 2797# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2798# only as a last resort. b.out is created by i960 compilers. 2799ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2800# 2801# The IRIX 6 linker writes into existing files which may not be 2802# executable, retaining their permissions. Remove them first so a 2803# subsequent execution test works. 2804ac_rmfiles= 2805for ac_file in $ac_files 2806do 2807 case $ac_file in 2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2810 esac 2811done 2812rm -f $ac_rmfiles 2813 2814if { (ac_try="$ac_link_default" 2815case "(($ac_try" in 2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2817 *) ac_try_echo=$ac_try;; 2818esac 2819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2820 (eval "$ac_link_default") 2>&5 2821 ac_status=$? 2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2823 (exit $ac_status); }; then 2824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2825# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2826# in a Makefile. We should not override ac_cv_exeext if it was cached, 2827# so that the user can short-circuit this test for compilers unknown to 2828# Autoconf. 2829for ac_file in $ac_files '' 2830do 2831 test -f "$ac_file" || continue 2832 case $ac_file in 2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2834 ;; 2835 [ab].out ) 2836 # We found the default executable, but exeext='' is most 2837 # certainly right. 2838 break;; 2839 *.* ) 2840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2841 then :; else 2842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2843 fi 2844 # We set ac_cv_exeext here because the later test for it is not 2845 # safe: cross compilers may not add the suffix if given an `-o' 2846 # argument, so we may need to know it at that point already. 2847 # Even if this section looks crufty: it has the advantage of 2848 # actually working. 2849 break;; 2850 * ) 2851 break;; 2852 esac 2853done 2854test "$ac_cv_exeext" = no && ac_cv_exeext= 2855 2856else 2857 ac_file='' 2858fi 2859 2860{ echo "$as_me:$LINENO: result: $ac_file" >&5 2861echo "${ECHO_T}$ac_file" >&6; } 2862if test -z "$ac_file"; then 2863 echo "$as_me: failed program was:" >&5 2864sed 's/^/| /' conftest.$ac_ext >&5 2865 2866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2867See \`config.log' for more details." >&5 2868echo "$as_me: error: C compiler cannot create executables 2869See \`config.log' for more details." >&2;} 2870 { (exit 77); exit 77; }; } 2871fi 2872 2873ac_exeext=$ac_cv_exeext 2874 2875# Check that the compiler produces executables we can run. If not, either 2876# the compiler is broken, or we cross compile. 2877{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2878echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2879# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2880# If not cross compiling, check that we can run a simple program. 2881if test "$cross_compiling" != yes; then 2882 if { ac_try='./$ac_file' 2883 { (case "(($ac_try" in 2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2885 *) ac_try_echo=$ac_try;; 2886esac 2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2888 (eval "$ac_try") 2>&5 2889 ac_status=$? 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); }; }; then 2892 cross_compiling=no 2893 else 2894 if test "$cross_compiling" = maybe; then 2895 cross_compiling=yes 2896 else 2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2898If you meant to cross compile, use \`--host'. 2899See \`config.log' for more details." >&5 2900echo "$as_me: error: cannot run C compiled programs. 2901If you meant to cross compile, use \`--host'. 2902See \`config.log' for more details." >&2;} 2903 { (exit 1); exit 1; }; } 2904 fi 2905 fi 2906fi 2907{ echo "$as_me:$LINENO: result: yes" >&5 2908echo "${ECHO_T}yes" >&6; } 2909 2910rm -f a.out a.exe conftest$ac_cv_exeext b.out 2911ac_clean_files=$ac_clean_files_save 2912# Check that the compiler produces executables we can run. If not, either 2913# the compiler is broken, or we cross compile. 2914{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2915echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2916{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2917echo "${ECHO_T}$cross_compiling" >&6; } 2918 2919{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2920echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2921if { (ac_try="$ac_link" 2922case "(($ac_try" in 2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2924 *) ac_try_echo=$ac_try;; 2925esac 2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2927 (eval "$ac_link") 2>&5 2928 ac_status=$? 2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2930 (exit $ac_status); }; then 2931 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2933# work properly (i.e., refer to `conftest.exe'), while it won't with 2934# `rm'. 2935for ac_file in conftest.exe conftest conftest.*; do 2936 test -f "$ac_file" || continue 2937 case $ac_file in 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2940 break;; 2941 * ) break;; 2942 esac 2943done 2944else 2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2946See \`config.log' for more details." >&5 2947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2948See \`config.log' for more details." >&2;} 2949 { (exit 1); exit 1; }; } 2950fi 2951 2952rm -f conftest$ac_cv_exeext 2953{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2954echo "${ECHO_T}$ac_cv_exeext" >&6; } 2955 2956rm -f conftest.$ac_ext 2957EXEEXT=$ac_cv_exeext 2958ac_exeext=$EXEEXT 2959{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2961if test "${ac_cv_objext+set}" = set; then 2962 echo $ECHO_N "(cached) $ECHO_C" >&6 2963else 2964 cat >conftest.$ac_ext <<_ACEOF 2965/* confdefs.h. */ 2966_ACEOF 2967cat confdefs.h >>conftest.$ac_ext 2968cat >>conftest.$ac_ext <<_ACEOF 2969/* end confdefs.h. */ 2970 2971int 2972main () 2973{ 2974 2975 ; 2976 return 0; 2977} 2978_ACEOF 2979rm -f conftest.o conftest.obj 2980if { (ac_try="$ac_compile" 2981case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2986 (eval "$ac_compile") 2>&5 2987 ac_status=$? 2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2989 (exit $ac_status); }; then 2990 for ac_file in conftest.o conftest.obj conftest.*; do 2991 test -f "$ac_file" || continue; 2992 case $ac_file in 2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2995 break;; 2996 esac 2997done 2998else 2999 echo "$as_me: failed program was:" >&5 3000sed 's/^/| /' conftest.$ac_ext >&5 3001 3002{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3003See \`config.log' for more details." >&5 3004echo "$as_me: error: cannot compute suffix of object files: cannot compile 3005See \`config.log' for more details." >&2;} 3006 { (exit 1); exit 1; }; } 3007fi 3008 3009rm -f conftest.$ac_cv_objext conftest.$ac_ext 3010fi 3011{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3012echo "${ECHO_T}$ac_cv_objext" >&6; } 3013OBJEXT=$ac_cv_objext 3014ac_objext=$OBJEXT 3015{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3016echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3017if test "${ac_cv_c_compiler_gnu+set}" = set; then 3018 echo $ECHO_N "(cached) $ECHO_C" >&6 3019else 3020 cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030#ifndef __GNUC__ 3031 choke me 3032#endif 3033 3034 ; 3035 return 0; 3036} 3037_ACEOF 3038rm -f conftest.$ac_objext 3039if { (ac_try="$ac_compile" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3045 (eval "$ac_compile") 2>conftest.er1 3046 ac_status=$? 3047 grep -v '^ *+' conftest.er1 >conftest.err 3048 rm -f conftest.er1 3049 cat conftest.err >&5 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); } && { 3052 test -z "$ac_c_werror_flag" || 3053 test ! -s conftest.err 3054 } && test -s conftest.$ac_objext; then 3055 ac_compiler_gnu=yes 3056else 3057 echo "$as_me: failed program was:" >&5 3058sed 's/^/| /' conftest.$ac_ext >&5 3059 3060 ac_compiler_gnu=no 3061fi 3062 3063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3064ac_cv_c_compiler_gnu=$ac_compiler_gnu 3065 3066fi 3067{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3068echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3069GCC=`test $ac_compiler_gnu = yes && echo yes` 3070ac_test_CFLAGS=${CFLAGS+set} 3071ac_save_CFLAGS=$CFLAGS 3072{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3074if test "${ac_cv_prog_cc_g+set}" = set; then 3075 echo $ECHO_N "(cached) $ECHO_C" >&6 3076else 3077 ac_save_c_werror_flag=$ac_c_werror_flag 3078 ac_c_werror_flag=yes 3079 ac_cv_prog_cc_g=no 3080 CFLAGS="-g" 3081 cat >conftest.$ac_ext <<_ACEOF 3082/* confdefs.h. */ 3083_ACEOF 3084cat confdefs.h >>conftest.$ac_ext 3085cat >>conftest.$ac_ext <<_ACEOF 3086/* end confdefs.h. */ 3087 3088int 3089main () 3090{ 3091 3092 ; 3093 return 0; 3094} 3095_ACEOF 3096rm -f conftest.$ac_objext 3097if { (ac_try="$ac_compile" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3103 (eval "$ac_compile") 2>conftest.er1 3104 ac_status=$? 3105 grep -v '^ *+' conftest.er1 >conftest.err 3106 rm -f conftest.er1 3107 cat conftest.err >&5 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } && { 3110 test -z "$ac_c_werror_flag" || 3111 test ! -s conftest.err 3112 } && test -s conftest.$ac_objext; then 3113 ac_cv_prog_cc_g=yes 3114else 3115 echo "$as_me: failed program was:" >&5 3116sed 's/^/| /' conftest.$ac_ext >&5 3117 3118 CFLAGS="" 3119 cat >conftest.$ac_ext <<_ACEOF 3120/* confdefs.h. */ 3121_ACEOF 3122cat confdefs.h >>conftest.$ac_ext 3123cat >>conftest.$ac_ext <<_ACEOF 3124/* end confdefs.h. */ 3125 3126int 3127main () 3128{ 3129 3130 ; 3131 return 0; 3132} 3133_ACEOF 3134rm -f conftest.$ac_objext 3135if { (ac_try="$ac_compile" 3136case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139esac 3140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3141 (eval "$ac_compile") 2>conftest.er1 3142 ac_status=$? 3143 grep -v '^ *+' conftest.er1 >conftest.err 3144 rm -f conftest.er1 3145 cat conftest.err >&5 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 (exit $ac_status); } && { 3148 test -z "$ac_c_werror_flag" || 3149 test ! -s conftest.err 3150 } && test -s conftest.$ac_objext; then 3151 : 3152else 3153 echo "$as_me: failed program was:" >&5 3154sed 's/^/| /' conftest.$ac_ext >&5 3155 3156 ac_c_werror_flag=$ac_save_c_werror_flag 3157 CFLAGS="-g" 3158 cat >conftest.$ac_ext <<_ACEOF 3159/* confdefs.h. */ 3160_ACEOF 3161cat confdefs.h >>conftest.$ac_ext 3162cat >>conftest.$ac_ext <<_ACEOF 3163/* end confdefs.h. */ 3164 3165int 3166main () 3167{ 3168 3169 ; 3170 return 0; 3171} 3172_ACEOF 3173rm -f conftest.$ac_objext 3174if { (ac_try="$ac_compile" 3175case "(($ac_try" in 3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 *) ac_try_echo=$ac_try;; 3178esac 3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3180 (eval "$ac_compile") 2>conftest.er1 3181 ac_status=$? 3182 grep -v '^ *+' conftest.er1 >conftest.err 3183 rm -f conftest.er1 3184 cat conftest.err >&5 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3186 (exit $ac_status); } && { 3187 test -z "$ac_c_werror_flag" || 3188 test ! -s conftest.err 3189 } && test -s conftest.$ac_objext; then 3190 ac_cv_prog_cc_g=yes 3191else 3192 echo "$as_me: failed program was:" >&5 3193sed 's/^/| /' conftest.$ac_ext >&5 3194 3195 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 3202fi 3203 3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3205 ac_c_werror_flag=$ac_save_c_werror_flag 3206fi 3207{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3208echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3209if test "$ac_test_CFLAGS" = set; then 3210 CFLAGS=$ac_save_CFLAGS 3211elif test $ac_cv_prog_cc_g = yes; then 3212 if test "$GCC" = yes; then 3213 CFLAGS="-g -O2" 3214 else 3215 CFLAGS="-g" 3216 fi 3217else 3218 if test "$GCC" = yes; then 3219 CFLAGS="-O2" 3220 else 3221 CFLAGS= 3222 fi 3223fi 3224{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3225echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3226if test "${ac_cv_prog_cc_c89+set}" = set; then 3227 echo $ECHO_N "(cached) $ECHO_C" >&6 3228else 3229 ac_cv_prog_cc_c89=no 3230ac_save_CC=$CC 3231cat >conftest.$ac_ext <<_ACEOF 3232/* confdefs.h. */ 3233_ACEOF 3234cat confdefs.h >>conftest.$ac_ext 3235cat >>conftest.$ac_ext <<_ACEOF 3236/* end confdefs.h. */ 3237#include <stdarg.h> 3238#include <stdio.h> 3239#include <sys/types.h> 3240#include <sys/stat.h> 3241/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3242struct buf { int x; }; 3243FILE * (*rcsopen) (struct buf *, struct stat *, int); 3244static char *e (p, i) 3245 char **p; 3246 int i; 3247{ 3248 return p[i]; 3249} 3250static char *f (char * (*g) (char **, int), char **p, ...) 3251{ 3252 char *s; 3253 va_list v; 3254 va_start (v,p); 3255 s = g (p, va_arg (v,int)); 3256 va_end (v); 3257 return s; 3258} 3259 3260/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3261 function prototypes and stuff, but not '\xHH' hex character constants. 3262 These don't provoke an error unfortunately, instead are silently treated 3263 as 'x'. The following induces an error, until -std is added to get 3264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3265 array size at least. It's necessary to write '\x00'==0 to get something 3266 that's true only with -std. */ 3267int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3268 3269/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3270 inside strings and character constants. */ 3271#define FOO(x) 'x' 3272int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3273 3274int test (int i, double x); 3275struct s1 {int (*f) (int a);}; 3276struct s2 {int (*f) (double a);}; 3277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3278int argc; 3279char **argv; 3280int 3281main () 3282{ 3283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3284 ; 3285 return 0; 3286} 3287_ACEOF 3288for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3290do 3291 CC="$ac_save_CC $ac_arg" 3292 rm -f conftest.$ac_objext 3293if { (ac_try="$ac_compile" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3299 (eval "$ac_compile") 2>conftest.er1 3300 ac_status=$? 3301 grep -v '^ *+' conftest.er1 >conftest.err 3302 rm -f conftest.er1 3303 cat conftest.err >&5 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); } && { 3306 test -z "$ac_c_werror_flag" || 3307 test ! -s conftest.err 3308 } && test -s conftest.$ac_objext; then 3309 ac_cv_prog_cc_c89=$ac_arg 3310else 3311 echo "$as_me: failed program was:" >&5 3312sed 's/^/| /' conftest.$ac_ext >&5 3313 3314 3315fi 3316 3317rm -f core conftest.err conftest.$ac_objext 3318 test "x$ac_cv_prog_cc_c89" != "xno" && break 3319done 3320rm -f conftest.$ac_ext 3321CC=$ac_save_CC 3322 3323fi 3324# AC_CACHE_VAL 3325case "x$ac_cv_prog_cc_c89" in 3326 x) 3327 { echo "$as_me:$LINENO: result: none needed" >&5 3328echo "${ECHO_T}none needed" >&6; } ;; 3329 xno) 3330 { echo "$as_me:$LINENO: result: unsupported" >&5 3331echo "${ECHO_T}unsupported" >&6; } ;; 3332 *) 3333 CC="$CC $ac_cv_prog_cc_c89" 3334 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3335echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3336esac 3337 3338 3339ac_ext=c 3340ac_cpp='$CPP $CPPFLAGS' 3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3343ac_compiler_gnu=$ac_cv_c_compiler_gnu 3344DEPDIR="${am__leading_dot}deps" 3345 3346ac_config_commands="$ac_config_commands depfiles" 3347 3348 3349am_make=${MAKE-make} 3350cat > confinc << 'END' 3351am__doit: 3352 @echo done 3353.PHONY: am__doit 3354END 3355# If we don't find an include directive, just comment out the code. 3356{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3357echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3358am__include="#" 3359am__quote= 3360_am_result=none 3361# First try GNU make style include. 3362echo "include confinc" > confmf 3363# We grep out `Entering directory' and `Leaving directory' 3364# messages which can occur if `w' ends up in MAKEFLAGS. 3365# In particular we don't look at `^make:' because GNU make might 3366# be invoked under some other name (usually "gmake"), in which 3367# case it prints its new name instead of `make'. 3368if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3369 am__include=include 3370 am__quote= 3371 _am_result=GNU 3372fi 3373# Now try BSD make style include. 3374if test "$am__include" = "#"; then 3375 echo '.include "confinc"' > confmf 3376 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3377 am__include=.include 3378 am__quote="\"" 3379 _am_result=BSD 3380 fi 3381fi 3382 3383 3384{ echo "$as_me:$LINENO: result: $_am_result" >&5 3385echo "${ECHO_T}$_am_result" >&6; } 3386rm -f confinc confmf 3387 3388# Check whether --enable-dependency-tracking was given. 3389if test "${enable_dependency_tracking+set}" = set; then 3390 enableval=$enable_dependency_tracking; 3391fi 3392 3393if test "x$enable_dependency_tracking" != xno; then 3394 am_depcomp="$ac_aux_dir/depcomp" 3395 AMDEPBACKSLASH='\' 3396fi 3397 if test "x$enable_dependency_tracking" != xno; then 3398 AMDEP_TRUE= 3399 AMDEP_FALSE='#' 3400else 3401 AMDEP_TRUE='#' 3402 AMDEP_FALSE= 3403fi 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/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3478 # icc doesn't choke on unknown options, it will just issue warnings 3479 # or remarks (even with -Werror). So we grep stderr for any message 3480 # that says an option was ignored or not supported. 3481 # When given -MP, icc 7.0 and 7.1 complain thusly: 3482 # icc: Command line warning: ignoring option '-M'; no argument required 3483 # The diagnosis changed in icc 8.0: 3484 # icc: Command line remark: option '-MP' not supported 3485 if (grep 'ignoring option' conftest.err || 3486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3487 am_cv_CC_dependencies_compiler_type=$depmode 3488 break 3489 fi 3490 fi 3491 done 3492 3493 cd .. 3494 rm -rf conftest.dir 3495else 3496 am_cv_CC_dependencies_compiler_type=none 3497fi 3498 3499fi 3500{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3501echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3503 3504 if 3505 test "x$enable_dependency_tracking" != xno \ 3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3507 am__fastdepCC_TRUE= 3508 am__fastdepCC_FALSE='#' 3509else 3510 am__fastdepCC_TRUE='#' 3511 am__fastdepCC_FALSE= 3512fi 3513 3514 3515# Check whether --enable-shared was given. 3516if test "${enable_shared+set}" = set; then 3517 enableval=$enable_shared; p=${PACKAGE-default} 3518 case $enableval in 3519 yes) enable_shared=yes ;; 3520 no) enable_shared=no ;; 3521 *) 3522 enable_shared=no 3523 # Look at the argument we got. We use all the common list separators. 3524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3525 for pkg in $enableval; do 3526 IFS="$lt_save_ifs" 3527 if test "X$pkg" = "X$p"; then 3528 enable_shared=yes 3529 fi 3530 done 3531 IFS="$lt_save_ifs" 3532 ;; 3533 esac 3534else 3535 enable_shared=yes 3536fi 3537 3538 3539# Check whether --enable-static was given. 3540if test "${enable_static+set}" = set; then 3541 enableval=$enable_static; p=${PACKAGE-default} 3542 case $enableval in 3543 yes) enable_static=yes ;; 3544 no) enable_static=no ;; 3545 *) 3546 enable_static=no 3547 # Look at the argument we got. We use all the common list separators. 3548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3549 for pkg in $enableval; do 3550 IFS="$lt_save_ifs" 3551 if test "X$pkg" = "X$p"; then 3552 enable_static=yes 3553 fi 3554 done 3555 IFS="$lt_save_ifs" 3556 ;; 3557 esac 3558else 3559 enable_static=yes 3560fi 3561 3562 3563# Check whether --enable-fast-install was given. 3564if test "${enable_fast_install+set}" = set; then 3565 enableval=$enable_fast_install; p=${PACKAGE-default} 3566 case $enableval in 3567 yes) enable_fast_install=yes ;; 3568 no) enable_fast_install=no ;; 3569 *) 3570 enable_fast_install=no 3571 # Look at the argument we got. We use all the common list separators. 3572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3573 for pkg in $enableval; do 3574 IFS="$lt_save_ifs" 3575 if test "X$pkg" = "X$p"; then 3576 enable_fast_install=yes 3577 fi 3578 done 3579 IFS="$lt_save_ifs" 3580 ;; 3581 esac 3582else 3583 enable_fast_install=yes 3584fi 3585 3586 3587# Make sure we can run config.sub. 3588$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3589 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3590echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3591 { (exit 1); exit 1; }; } 3592 3593{ echo "$as_me:$LINENO: checking build system type" >&5 3594echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3595if test "${ac_cv_build+set}" = set; then 3596 echo $ECHO_N "(cached) $ECHO_C" >&6 3597else 3598 ac_build_alias=$build_alias 3599test "x$ac_build_alias" = x && 3600 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3601test "x$ac_build_alias" = x && 3602 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3603echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3604 { (exit 1); exit 1; }; } 3605ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3606 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3607echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3608 { (exit 1); exit 1; }; } 3609 3610fi 3611{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3612echo "${ECHO_T}$ac_cv_build" >&6; } 3613case $ac_cv_build in 3614*-*-*) ;; 3615*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3616echo "$as_me: error: invalid value of canonical build" >&2;} 3617 { (exit 1); exit 1; }; };; 3618esac 3619build=$ac_cv_build 3620ac_save_IFS=$IFS; IFS='-' 3621set x $ac_cv_build 3622shift 3623build_cpu=$1 3624build_vendor=$2 3625shift; shift 3626# Remember, the first character of IFS is used to create $*, 3627# except with old shells: 3628build_os=$* 3629IFS=$ac_save_IFS 3630case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3631 3632 3633{ echo "$as_me:$LINENO: checking host system type" >&5 3634echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3635if test "${ac_cv_host+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637else 3638 if test "x$host_alias" = x; then 3639 ac_cv_host=$ac_cv_build 3640else 3641 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3642 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3643echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3644 { (exit 1); exit 1; }; } 3645fi 3646 3647fi 3648{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3649echo "${ECHO_T}$ac_cv_host" >&6; } 3650case $ac_cv_host in 3651*-*-*) ;; 3652*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3653echo "$as_me: error: invalid value of canonical host" >&2;} 3654 { (exit 1); exit 1; }; };; 3655esac 3656host=$ac_cv_host 3657ac_save_IFS=$IFS; IFS='-' 3658set x $ac_cv_host 3659shift 3660host_cpu=$1 3661host_vendor=$2 3662shift; shift 3663# Remember, the first character of IFS is used to create $*, 3664# except with old shells: 3665host_os=$* 3666IFS=$ac_save_IFS 3667case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3668 3669 3670{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3671echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3672if test "${lt_cv_path_SED+set}" = set; then 3673 echo $ECHO_N "(cached) $ECHO_C" >&6 3674else 3675 # Loop through the user's path and test for sed and gsed. 3676# Then use that list of sed's as ones to test for truncation. 3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678for as_dir in $PATH 3679do 3680 IFS=$as_save_IFS 3681 test -z "$as_dir" && as_dir=. 3682 for lt_ac_prog in sed gsed; do 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3685 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3686 fi 3687 done 3688 done 3689done 3690lt_ac_max=0 3691lt_ac_count=0 3692# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3693# along with /bin/sed that truncates output. 3694for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3695 test ! -f $lt_ac_sed && continue 3696 cat /dev/null > conftest.in 3697 lt_ac_count=0 3698 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3699 # Check for GNU sed and select it if it is found. 3700 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3701 lt_cv_path_SED=$lt_ac_sed 3702 break 3703 fi 3704 while true; do 3705 cat conftest.in conftest.in >conftest.tmp 3706 mv conftest.tmp conftest.in 3707 cp conftest.in conftest.nl 3708 echo >>conftest.nl 3709 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3710 cmp -s conftest.out conftest.nl || break 3711 # 10000 chars as input seems more than enough 3712 test $lt_ac_count -gt 10 && break 3713 lt_ac_count=`expr $lt_ac_count + 1` 3714 if test $lt_ac_count -gt $lt_ac_max; then 3715 lt_ac_max=$lt_ac_count 3716 lt_cv_path_SED=$lt_ac_sed 3717 fi 3718 done 3719done 3720 3721fi 3722 3723SED=$lt_cv_path_SED 3724{ echo "$as_me:$LINENO: result: $SED" >&5 3725echo "${ECHO_T}$SED" >&6; } 3726 3727{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3728echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3729if test "${ac_cv_path_GREP+set}" = set; then 3730 echo $ECHO_N "(cached) $ECHO_C" >&6 3731else 3732 # Extract the first word of "grep ggrep" to use in msg output 3733if test -z "$GREP"; then 3734set dummy grep ggrep; ac_prog_name=$2 3735if test "${ac_cv_path_GREP+set}" = set; then 3736 echo $ECHO_N "(cached) $ECHO_C" >&6 3737else 3738 ac_path_GREP_found=false 3739# Loop through the user's path and test for each of PROGNAME-LIST 3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 for ac_prog in grep ggrep; do 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3748 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3749 # Check for GNU ac_path_GREP and select it if it is found. 3750 # Check for GNU $ac_path_GREP 3751case `"$ac_path_GREP" --version 2>&1` in 3752*GNU*) 3753 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3754*) 3755 ac_count=0 3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3757 while : 3758 do 3759 cat "conftest.in" "conftest.in" >"conftest.tmp" 3760 mv "conftest.tmp" "conftest.in" 3761 cp "conftest.in" "conftest.nl" 3762 echo 'GREP' >> "conftest.nl" 3763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3765 ac_count=`expr $ac_count + 1` 3766 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3767 # Best one so far, save it but keep looking for a better one 3768 ac_cv_path_GREP="$ac_path_GREP" 3769 ac_path_GREP_max=$ac_count 3770 fi 3771 # 10*(2^10) chars as input seems more than enough 3772 test $ac_count -gt 10 && break 3773 done 3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3775esac 3776 3777 3778 $ac_path_GREP_found && break 3 3779 done 3780done 3781 3782done 3783IFS=$as_save_IFS 3784 3785 3786fi 3787 3788GREP="$ac_cv_path_GREP" 3789if test -z "$GREP"; then 3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3792 { (exit 1); exit 1; }; } 3793fi 3794 3795else 3796 ac_cv_path_GREP=$GREP 3797fi 3798 3799 3800fi 3801{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3802echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3803 GREP="$ac_cv_path_GREP" 3804 3805 3806{ echo "$as_me:$LINENO: checking for egrep" >&5 3807echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3808if test "${ac_cv_path_EGREP+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3812 then ac_cv_path_EGREP="$GREP -E" 3813 else 3814 # Extract the first word of "egrep" to use in msg output 3815if test -z "$EGREP"; then 3816set dummy egrep; ac_prog_name=$2 3817if test "${ac_cv_path_EGREP+set}" = set; then 3818 echo $ECHO_N "(cached) $ECHO_C" >&6 3819else 3820 ac_path_EGREP_found=false 3821# Loop through the user's path and test for each of PROGNAME-LIST 3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3824do 3825 IFS=$as_save_IFS 3826 test -z "$as_dir" && as_dir=. 3827 for ac_prog in egrep; do 3828 for ac_exec_ext in '' $ac_executable_extensions; do 3829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3831 # Check for GNU ac_path_EGREP and select it if it is found. 3832 # Check for GNU $ac_path_EGREP 3833case `"$ac_path_EGREP" --version 2>&1` in 3834*GNU*) 3835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3836*) 3837 ac_count=0 3838 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3839 while : 3840 do 3841 cat "conftest.in" "conftest.in" >"conftest.tmp" 3842 mv "conftest.tmp" "conftest.in" 3843 cp "conftest.in" "conftest.nl" 3844 echo 'EGREP' >> "conftest.nl" 3845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3847 ac_count=`expr $ac_count + 1` 3848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3849 # Best one so far, save it but keep looking for a better one 3850 ac_cv_path_EGREP="$ac_path_EGREP" 3851 ac_path_EGREP_max=$ac_count 3852 fi 3853 # 10*(2^10) chars as input seems more than enough 3854 test $ac_count -gt 10 && break 3855 done 3856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3857esac 3858 3859 3860 $ac_path_EGREP_found && break 3 3861 done 3862done 3863 3864done 3865IFS=$as_save_IFS 3866 3867 3868fi 3869 3870EGREP="$ac_cv_path_EGREP" 3871if test -z "$EGREP"; then 3872 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3873echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3874 { (exit 1); exit 1; }; } 3875fi 3876 3877else 3878 ac_cv_path_EGREP=$EGREP 3879fi 3880 3881 3882 fi 3883fi 3884{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3885echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3886 EGREP="$ac_cv_path_EGREP" 3887 3888 3889 3890# Check whether --with-gnu-ld was given. 3891if test "${with_gnu_ld+set}" = set; then 3892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3893else 3894 with_gnu_ld=no 3895fi 3896 3897ac_prog=ld 3898if test "$GCC" = yes; then 3899 # Check if gcc -print-prog-name=ld gives a path. 3900 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3901echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3902 case $host in 3903 *-*-mingw*) 3904 # gcc leaves a trailing carriage return which upsets mingw 3905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3906 *) 3907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3908 esac 3909 case $ac_prog in 3910 # Accept absolute paths. 3911 [\\/]* | ?:[\\/]*) 3912 re_direlt='/[^/][^/]*/\.\./' 3913 # Canonicalize the pathname of ld 3914 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3915 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3916 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3917 done 3918 test -z "$LD" && LD="$ac_prog" 3919 ;; 3920 "") 3921 # If it fails, then pretend we aren't using GCC. 3922 ac_prog=ld 3923 ;; 3924 *) 3925 # If it is relative, then search for the first ld in PATH. 3926 with_gnu_ld=unknown 3927 ;; 3928 esac 3929elif test "$with_gnu_ld" = yes; then 3930 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3931echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3932else 3933 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3934echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3935fi 3936if test "${lt_cv_path_LD+set}" = set; then 3937 echo $ECHO_N "(cached) $ECHO_C" >&6 3938else 3939 if test -z "$LD"; then 3940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3941 for ac_dir in $PATH; do 3942 IFS="$lt_save_ifs" 3943 test -z "$ac_dir" && ac_dir=. 3944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3945 lt_cv_path_LD="$ac_dir/$ac_prog" 3946 # Check to see if the program is GNU ld. I'd rather use --version, 3947 # but apparently some variants of GNU ld only accept -v. 3948 # Break only if it was the GNU/non-GNU ld that we prefer. 3949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3950 *GNU* | *'with BFD'*) 3951 test "$with_gnu_ld" != no && break 3952 ;; 3953 *) 3954 test "$with_gnu_ld" != yes && break 3955 ;; 3956 esac 3957 fi 3958 done 3959 IFS="$lt_save_ifs" 3960else 3961 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3962fi 3963fi 3964 3965LD="$lt_cv_path_LD" 3966if test -n "$LD"; then 3967 { echo "$as_me:$LINENO: result: $LD" >&5 3968echo "${ECHO_T}$LD" >&6; } 3969else 3970 { echo "$as_me:$LINENO: result: no" >&5 3971echo "${ECHO_T}no" >&6; } 3972fi 3973test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3974echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3975 { (exit 1); exit 1; }; } 3976{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3977echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3978if test "${lt_cv_prog_gnu_ld+set}" = set; then 3979 echo $ECHO_N "(cached) $ECHO_C" >&6 3980else 3981 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3982case `$LD -v 2>&1 </dev/null` in 3983*GNU* | *'with BFD'*) 3984 lt_cv_prog_gnu_ld=yes 3985 ;; 3986*) 3987 lt_cv_prog_gnu_ld=no 3988 ;; 3989esac 3990fi 3991{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3992echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3993with_gnu_ld=$lt_cv_prog_gnu_ld 3994 3995 3996{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3997echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3998if test "${lt_cv_ld_reload_flag+set}" = set; then 3999 echo $ECHO_N "(cached) $ECHO_C" >&6 4000else 4001 lt_cv_ld_reload_flag='-r' 4002fi 4003{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4004echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4005reload_flag=$lt_cv_ld_reload_flag 4006case $reload_flag in 4007"" | " "*) ;; 4008*) reload_flag=" $reload_flag" ;; 4009esac 4010reload_cmds='$LD$reload_flag -o $output$reload_objs' 4011case $host_os in 4012 darwin*) 4013 if test "$GCC" = yes; then 4014 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4015 else 4016 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4017 fi 4018 ;; 4019esac 4020 4021{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4022echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4023if test "${lt_cv_path_NM+set}" = set; then 4024 echo $ECHO_N "(cached) $ECHO_C" >&6 4025else 4026 if test -n "$NM"; then 4027 # Let the user override the test. 4028 lt_cv_path_NM="$NM" 4029else 4030 lt_nm_to_check="${ac_tool_prefix}nm" 4031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4032 lt_nm_to_check="$lt_nm_to_check nm" 4033 fi 4034 for lt_tmp_nm in $lt_nm_to_check; do 4035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4036 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4037 IFS="$lt_save_ifs" 4038 test -z "$ac_dir" && ac_dir=. 4039 tmp_nm="$ac_dir/$lt_tmp_nm" 4040 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4041 # Check to see if the nm accepts a BSD-compat flag. 4042 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4043 # nm: unknown option "B" ignored 4044 # Tru64's nm complains that /dev/null is an invalid object file 4045 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4046 */dev/null* | *'Invalid file or object type'*) 4047 lt_cv_path_NM="$tmp_nm -B" 4048 break 4049 ;; 4050 *) 4051 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4052 */dev/null*) 4053 lt_cv_path_NM="$tmp_nm -p" 4054 break 4055 ;; 4056 *) 4057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4058 continue # so that we can try to find one that supports BSD flags 4059 ;; 4060 esac 4061 ;; 4062 esac 4063 fi 4064 done 4065 IFS="$lt_save_ifs" 4066 done 4067 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4068fi 4069fi 4070{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4071echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4072NM="$lt_cv_path_NM" 4073 4074{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4075echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4076LN_S=$as_ln_s 4077if test "$LN_S" = "ln -s"; then 4078 { echo "$as_me:$LINENO: result: yes" >&5 4079echo "${ECHO_T}yes" >&6; } 4080else 4081 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4082echo "${ECHO_T}no, using $LN_S" >&6; } 4083fi 4084 4085{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4086echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4087if test "${lt_cv_deplibs_check_method+set}" = set; then 4088 echo $ECHO_N "(cached) $ECHO_C" >&6 4089else 4090 lt_cv_file_magic_cmd='$MAGIC_CMD' 4091lt_cv_file_magic_test_file= 4092lt_cv_deplibs_check_method='unknown' 4093# Need to set the preceding variable on all platforms that support 4094# interlibrary dependencies. 4095# 'none' -- dependencies not supported. 4096# `unknown' -- same as none, but documents that we really don't know. 4097# 'pass_all' -- all dependencies passed with no checks. 4098# 'test_compile' -- check by making test program. 4099# 'file_magic [[regex]]' -- check by looking for files in library path 4100# which responds to the $file_magic_cmd with a given extended regex. 4101# If you have `file' or equivalent on your system and you're not sure 4102# whether `pass_all' will *always* work, you probably want this one. 4103 4104case $host_os in 4105aix4* | aix5*) 4106 lt_cv_deplibs_check_method=pass_all 4107 ;; 4108 4109beos*) 4110 lt_cv_deplibs_check_method=pass_all 4111 ;; 4112 4113bsdi[45]*) 4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4115 lt_cv_file_magic_cmd='/usr/bin/file -L' 4116 lt_cv_file_magic_test_file=/shlib/libc.so 4117 ;; 4118 4119cygwin*) 4120 # func_win32_libid is a shell function defined in ltmain.sh 4121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4122 lt_cv_file_magic_cmd='func_win32_libid' 4123 ;; 4124 4125mingw* | pw32*) 4126 # Base MSYS/MinGW do not provide the 'file' command needed by 4127 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4128 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4129 lt_cv_file_magic_cmd='$OBJDUMP -f' 4130 ;; 4131 4132darwin* | rhapsody*) 4133 lt_cv_deplibs_check_method=pass_all 4134 ;; 4135 4136freebsd* | dragonfly*) 4137 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4138 case $host_cpu in 4139 i*86 ) 4140 # Not sure whether the presence of OpenBSD here was a mistake. 4141 # Let's accept both of them until this is cleared up. 4142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4143 lt_cv_file_magic_cmd=/usr/bin/file 4144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4145 ;; 4146 esac 4147 else 4148 lt_cv_deplibs_check_method=pass_all 4149 fi 4150 ;; 4151 4152gnu*) 4153 lt_cv_deplibs_check_method=pass_all 4154 ;; 4155 4156hpux10.20* | hpux11*) 4157 lt_cv_file_magic_cmd=/usr/bin/file 4158 case $host_cpu in 4159 ia64*) 4160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4162 ;; 4163 hppa*64*) 4164 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]' 4165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4166 ;; 4167 *) 4168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4169 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4170 ;; 4171 esac 4172 ;; 4173 4174interix3*) 4175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4177 ;; 4178 4179irix5* | irix6* | nonstopux*) 4180 case $LD in 4181 *-32|*"-32 ") libmagic=32-bit;; 4182 *-n32|*"-n32 ") libmagic=N32;; 4183 *-64|*"-64 ") libmagic=64-bit;; 4184 *) libmagic=never-match;; 4185 esac 4186 lt_cv_deplibs_check_method=pass_all 4187 ;; 4188 4189# This must be Linux ELF. 4190linux* | k*bsd*-gnu) 4191 lt_cv_deplibs_check_method=pass_all 4192 ;; 4193 4194netbsd* | netbsdelf*-gnu) 4195 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4197 else 4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4199 fi 4200 ;; 4201 4202newos6*) 4203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4204 lt_cv_file_magic_cmd=/usr/bin/file 4205 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4206 ;; 4207 4208nto-qnx*) 4209 lt_cv_deplibs_check_method=unknown 4210 ;; 4211 4212openbsd*) 4213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4215 else 4216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4217 fi 4218 ;; 4219 4220osf3* | osf4* | osf5*) 4221 lt_cv_deplibs_check_method=pass_all 4222 ;; 4223 4224solaris*) 4225 lt_cv_deplibs_check_method=pass_all 4226 ;; 4227 4228sysv4 | sysv4.3*) 4229 case $host_vendor in 4230 motorola) 4231 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]' 4232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4233 ;; 4234 ncr) 4235 lt_cv_deplibs_check_method=pass_all 4236 ;; 4237 sequent) 4238 lt_cv_file_magic_cmd='/bin/file' 4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4240 ;; 4241 sni) 4242 lt_cv_file_magic_cmd='/bin/file' 4243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4244 lt_cv_file_magic_test_file=/lib/libc.so 4245 ;; 4246 siemens) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 pc) 4250 lt_cv_deplibs_check_method=pass_all 4251 ;; 4252 esac 4253 ;; 4254 4255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4256 lt_cv_deplibs_check_method=pass_all 4257 ;; 4258esac 4259 4260fi 4261{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4262echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4263file_magic_cmd=$lt_cv_file_magic_cmd 4264deplibs_check_method=$lt_cv_deplibs_check_method 4265test -z "$deplibs_check_method" && deplibs_check_method=unknown 4266 4267 4268 4269 4270# If no C compiler was specified, use CC. 4271LTCC=${LTCC-"$CC"} 4272 4273# If no C compiler flags were specified, use CFLAGS. 4274LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4275 4276# Allow CC to be a program name with arguments. 4277compiler=$CC 4278 4279 4280# Check whether --enable-libtool-lock was given. 4281if test "${enable_libtool_lock+set}" = set; then 4282 enableval=$enable_libtool_lock; 4283fi 4284 4285test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4286 4287# Some flags need to be propagated to the compiler or linker for good 4288# libtool support. 4289case $host in 4290ia64-*-hpux*) 4291 # Find out which ABI we are using. 4292 echo 'int i;' > conftest.$ac_ext 4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4294 (eval $ac_compile) 2>&5 4295 ac_status=$? 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); }; then 4298 case `/usr/bin/file conftest.$ac_objext` in 4299 *ELF-32*) 4300 HPUX_IA64_MODE="32" 4301 ;; 4302 *ELF-64*) 4303 HPUX_IA64_MODE="64" 4304 ;; 4305 esac 4306 fi 4307 rm -rf conftest* 4308 ;; 4309*-*-irix6*) 4310 # Find out which ABI we are using. 4311 echo '#line __oline__ "configure"' > conftest.$ac_ext 4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4313 (eval $ac_compile) 2>&5 4314 ac_status=$? 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); }; then 4317 if test "$lt_cv_prog_gnu_ld" = yes; then 4318 case `/usr/bin/file conftest.$ac_objext` in 4319 *32-bit*) 4320 LD="${LD-ld} -melf32bsmip" 4321 ;; 4322 *N32*) 4323 LD="${LD-ld} -melf32bmipn32" 4324 ;; 4325 *64-bit*) 4326 LD="${LD-ld} -melf64bmip" 4327 ;; 4328 esac 4329 else 4330 case `/usr/bin/file conftest.$ac_objext` in 4331 *32-bit*) 4332 LD="${LD-ld} -32" 4333 ;; 4334 *N32*) 4335 LD="${LD-ld} -n32" 4336 ;; 4337 *64-bit*) 4338 LD="${LD-ld} -64" 4339 ;; 4340 esac 4341 fi 4342 fi 4343 rm -rf conftest* 4344 ;; 4345 4346x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4347 # Find out which ABI we are using. 4348 echo 'int i;' > conftest.$ac_ext 4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4350 (eval $ac_compile) 2>&5 4351 ac_status=$? 4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4353 (exit $ac_status); }; then 4354 case `/usr/bin/file conftest.o` in 4355 *32-bit*) 4356 case $host in 4357 x86_64-*linux*) 4358 LD="${LD-ld} -m elf_i386" 4359 ;; 4360 ppc64-*linux*|powerpc64-*linux*) 4361 LD="${LD-ld} -m elf32ppclinux" 4362 ;; 4363 s390x-*linux*) 4364 LD="${LD-ld} -m elf_s390" 4365 ;; 4366 sparc64-*linux*) 4367 LD="${LD-ld} -m elf32_sparc" 4368 ;; 4369 esac 4370 ;; 4371 *64-bit*) 4372 case $host in 4373 x86_64-*linux*) 4374 LD="${LD-ld} -m elf_x86_64" 4375 ;; 4376 ppc*-*linux*|powerpc*-*linux*) 4377 LD="${LD-ld} -m elf64ppc" 4378 ;; 4379 s390*-*linux*) 4380 LD="${LD-ld} -m elf64_s390" 4381 ;; 4382 sparc*-*linux*) 4383 LD="${LD-ld} -m elf64_sparc" 4384 ;; 4385 esac 4386 ;; 4387 esac 4388 fi 4389 rm -rf conftest* 4390 ;; 4391 4392*-*-sco3.2v5*) 4393 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4394 SAVE_CFLAGS="$CFLAGS" 4395 CFLAGS="$CFLAGS -belf" 4396 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4397echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4398if test "${lt_cv_cc_needs_belf+set}" = set; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400else 4401 ac_ext=c 4402ac_cpp='$CPP $CPPFLAGS' 4403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4405ac_compiler_gnu=$ac_cv_c_compiler_gnu 4406 4407 cat >conftest.$ac_ext <<_ACEOF 4408/* confdefs.h. */ 4409_ACEOF 4410cat confdefs.h >>conftest.$ac_ext 4411cat >>conftest.$ac_ext <<_ACEOF 4412/* end confdefs.h. */ 4413 4414int 4415main () 4416{ 4417 4418 ; 4419 return 0; 4420} 4421_ACEOF 4422rm -f conftest.$ac_objext conftest$ac_exeext 4423if { (ac_try="$ac_link" 4424case "(($ac_try" in 4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4426 *) ac_try_echo=$ac_try;; 4427esac 4428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4429 (eval "$ac_link") 2>conftest.er1 4430 ac_status=$? 4431 grep -v '^ *+' conftest.er1 >conftest.err 4432 rm -f conftest.er1 4433 cat conftest.err >&5 4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435 (exit $ac_status); } && { 4436 test -z "$ac_c_werror_flag" || 4437 test ! -s conftest.err 4438 } && test -s conftest$ac_exeext && 4439 $as_test_x conftest$ac_exeext; then 4440 lt_cv_cc_needs_belf=yes 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 lt_cv_cc_needs_belf=no 4446fi 4447 4448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4449 conftest$ac_exeext conftest.$ac_ext 4450 ac_ext=c 4451ac_cpp='$CPP $CPPFLAGS' 4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4454ac_compiler_gnu=$ac_cv_c_compiler_gnu 4455 4456fi 4457{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4458echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4459 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4460 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4461 CFLAGS="$SAVE_CFLAGS" 4462 fi 4463 ;; 4464sparc*-*solaris*) 4465 # Find out which ABI we are using. 4466 echo 'int i;' > conftest.$ac_ext 4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4468 (eval $ac_compile) 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; then 4472 case `/usr/bin/file conftest.o` in 4473 *64-bit*) 4474 case $lt_cv_prog_gnu_ld in 4475 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4476 *) LD="${LD-ld} -64" ;; 4477 esac 4478 ;; 4479 esac 4480 fi 4481 rm -rf conftest* 4482 ;; 4483 4484 4485esac 4486 4487need_locks="$enable_libtool_lock" 4488 4489 4490ac_ext=c 4491ac_cpp='$CPP $CPPFLAGS' 4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4494ac_compiler_gnu=$ac_cv_c_compiler_gnu 4495{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4496echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4497# On Suns, sometimes $CPP names a directory. 4498if test -n "$CPP" && test -d "$CPP"; then 4499 CPP= 4500fi 4501if test -z "$CPP"; then 4502 if test "${ac_cv_prog_CPP+set}" = set; then 4503 echo $ECHO_N "(cached) $ECHO_C" >&6 4504else 4505 # Double quotes because CPP needs to be expanded 4506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4507 do 4508 ac_preproc_ok=false 4509for ac_c_preproc_warn_flag in '' yes 4510do 4511 # Use a header file that comes with gcc, so configuring glibc 4512 # with a fresh cross-compiler works. 4513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4514 # <limits.h> exists even on freestanding compilers. 4515 # On the NeXT, cc -E runs the code through the compiler's parser, 4516 # not just through cpp. "Syntax error" is here to catch this case. 4517 cat >conftest.$ac_ext <<_ACEOF 4518/* confdefs.h. */ 4519_ACEOF 4520cat confdefs.h >>conftest.$ac_ext 4521cat >>conftest.$ac_ext <<_ACEOF 4522/* end confdefs.h. */ 4523@%:@ifdef __STDC__ 4524@%:@ include <limits.h> 4525@%:@else 4526@%:@ include <assert.h> 4527@%:@endif 4528 Syntax error 4529_ACEOF 4530if { (ac_try="$ac_cpp conftest.$ac_ext" 4531case "(($ac_try" in 4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4533 *) ac_try_echo=$ac_try;; 4534esac 4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4537 ac_status=$? 4538 grep -v '^ *+' conftest.er1 >conftest.err 4539 rm -f conftest.er1 4540 cat conftest.err >&5 4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4542 (exit $ac_status); } >/dev/null && { 4543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4544 test ! -s conftest.err 4545 }; then 4546 : 4547else 4548 echo "$as_me: failed program was:" >&5 4549sed 's/^/| /' conftest.$ac_ext >&5 4550 4551 # Broken: fails on valid input. 4552continue 4553fi 4554 4555rm -f conftest.err conftest.$ac_ext 4556 4557 # OK, works on sane cases. Now check whether nonexistent headers 4558 # can be detected and how. 4559 cat >conftest.$ac_ext <<_ACEOF 4560/* confdefs.h. */ 4561_ACEOF 4562cat confdefs.h >>conftest.$ac_ext 4563cat >>conftest.$ac_ext <<_ACEOF 4564/* end confdefs.h. */ 4565@%:@include <ac_nonexistent.h> 4566_ACEOF 4567if { (ac_try="$ac_cpp conftest.$ac_ext" 4568case "(($ac_try" in 4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4570 *) ac_try_echo=$ac_try;; 4571esac 4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4574 ac_status=$? 4575 grep -v '^ *+' conftest.er1 >conftest.err 4576 rm -f conftest.er1 4577 cat conftest.err >&5 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); } >/dev/null && { 4580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4581 test ! -s conftest.err 4582 }; then 4583 # Broken: success on invalid input. 4584continue 4585else 4586 echo "$as_me: failed program was:" >&5 4587sed 's/^/| /' conftest.$ac_ext >&5 4588 4589 # Passes both tests. 4590ac_preproc_ok=: 4591break 4592fi 4593 4594rm -f conftest.err conftest.$ac_ext 4595 4596done 4597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4598rm -f conftest.err conftest.$ac_ext 4599if $ac_preproc_ok; then 4600 break 4601fi 4602 4603 done 4604 ac_cv_prog_CPP=$CPP 4605 4606fi 4607 CPP=$ac_cv_prog_CPP 4608else 4609 ac_cv_prog_CPP=$CPP 4610fi 4611{ echo "$as_me:$LINENO: result: $CPP" >&5 4612echo "${ECHO_T}$CPP" >&6; } 4613ac_preproc_ok=false 4614for ac_c_preproc_warn_flag in '' yes 4615do 4616 # Use a header file that comes with gcc, so configuring glibc 4617 # with a fresh cross-compiler works. 4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4619 # <limits.h> exists even on freestanding compilers. 4620 # On the NeXT, cc -E runs the code through the compiler's parser, 4621 # not just through cpp. "Syntax error" is here to catch this case. 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628@%:@ifdef __STDC__ 4629@%:@ include <limits.h> 4630@%:@else 4631@%:@ include <assert.h> 4632@%:@endif 4633 Syntax error 4634_ACEOF 4635if { (ac_try="$ac_cpp conftest.$ac_ext" 4636case "(($ac_try" in 4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4638 *) ac_try_echo=$ac_try;; 4639esac 4640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4642 ac_status=$? 4643 grep -v '^ *+' conftest.er1 >conftest.err 4644 rm -f conftest.er1 4645 cat conftest.err >&5 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); } >/dev/null && { 4648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4649 test ! -s conftest.err 4650 }; then 4651 : 4652else 4653 echo "$as_me: failed program was:" >&5 4654sed 's/^/| /' conftest.$ac_ext >&5 4655 4656 # Broken: fails on valid input. 4657continue 4658fi 4659 4660rm -f conftest.err conftest.$ac_ext 4661 4662 # OK, works on sane cases. Now check whether nonexistent headers 4663 # can be detected and how. 4664 cat >conftest.$ac_ext <<_ACEOF 4665/* confdefs.h. */ 4666_ACEOF 4667cat confdefs.h >>conftest.$ac_ext 4668cat >>conftest.$ac_ext <<_ACEOF 4669/* end confdefs.h. */ 4670@%:@include <ac_nonexistent.h> 4671_ACEOF 4672if { (ac_try="$ac_cpp conftest.$ac_ext" 4673case "(($ac_try" in 4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4675 *) ac_try_echo=$ac_try;; 4676esac 4677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4679 ac_status=$? 4680 grep -v '^ *+' conftest.er1 >conftest.err 4681 rm -f conftest.er1 4682 cat conftest.err >&5 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); } >/dev/null && { 4685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4686 test ! -s conftest.err 4687 }; then 4688 # Broken: success on invalid input. 4689continue 4690else 4691 echo "$as_me: failed program was:" >&5 4692sed 's/^/| /' conftest.$ac_ext >&5 4693 4694 # Passes both tests. 4695ac_preproc_ok=: 4696break 4697fi 4698 4699rm -f conftest.err conftest.$ac_ext 4700 4701done 4702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4703rm -f conftest.err conftest.$ac_ext 4704if $ac_preproc_ok; then 4705 : 4706else 4707 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4708See \`config.log' for more details." >&5 4709echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4710See \`config.log' for more details." >&2;} 4711 { (exit 1); exit 1; }; } 4712fi 4713 4714ac_ext=c 4715ac_cpp='$CPP $CPPFLAGS' 4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4718ac_compiler_gnu=$ac_cv_c_compiler_gnu 4719 4720 4721{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4722echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4723if test "${ac_cv_header_stdc+set}" = set; then 4724 echo $ECHO_N "(cached) $ECHO_C" >&6 4725else 4726 cat >conftest.$ac_ext <<_ACEOF 4727/* confdefs.h. */ 4728_ACEOF 4729cat confdefs.h >>conftest.$ac_ext 4730cat >>conftest.$ac_ext <<_ACEOF 4731/* end confdefs.h. */ 4732#include <stdlib.h> 4733#include <stdarg.h> 4734#include <string.h> 4735#include <float.h> 4736 4737int 4738main () 4739{ 4740 4741 ; 4742 return 0; 4743} 4744_ACEOF 4745rm -f conftest.$ac_objext 4746if { (ac_try="$ac_compile" 4747case "(($ac_try" in 4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4749 *) ac_try_echo=$ac_try;; 4750esac 4751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4752 (eval "$ac_compile") 2>conftest.er1 4753 ac_status=$? 4754 grep -v '^ *+' conftest.er1 >conftest.err 4755 rm -f conftest.er1 4756 cat conftest.err >&5 4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4758 (exit $ac_status); } && { 4759 test -z "$ac_c_werror_flag" || 4760 test ! -s conftest.err 4761 } && test -s conftest.$ac_objext; then 4762 ac_cv_header_stdc=yes 4763else 4764 echo "$as_me: failed program was:" >&5 4765sed 's/^/| /' conftest.$ac_ext >&5 4766 4767 ac_cv_header_stdc=no 4768fi 4769 4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4771 4772if test $ac_cv_header_stdc = yes; then 4773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4774 cat >conftest.$ac_ext <<_ACEOF 4775/* confdefs.h. */ 4776_ACEOF 4777cat confdefs.h >>conftest.$ac_ext 4778cat >>conftest.$ac_ext <<_ACEOF 4779/* end confdefs.h. */ 4780#include <string.h> 4781 4782_ACEOF 4783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4784 $EGREP "memchr" >/dev/null 2>&1; then 4785 : 4786else 4787 ac_cv_header_stdc=no 4788fi 4789rm -f conftest* 4790 4791fi 4792 4793if test $ac_cv_header_stdc = yes; then 4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4795 cat >conftest.$ac_ext <<_ACEOF 4796/* confdefs.h. */ 4797_ACEOF 4798cat confdefs.h >>conftest.$ac_ext 4799cat >>conftest.$ac_ext <<_ACEOF 4800/* end confdefs.h. */ 4801#include <stdlib.h> 4802 4803_ACEOF 4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4805 $EGREP "free" >/dev/null 2>&1; then 4806 : 4807else 4808 ac_cv_header_stdc=no 4809fi 4810rm -f conftest* 4811 4812fi 4813 4814if test $ac_cv_header_stdc = yes; then 4815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4816 if test "$cross_compiling" = yes; then 4817 : 4818else 4819 cat >conftest.$ac_ext <<_ACEOF 4820/* confdefs.h. */ 4821_ACEOF 4822cat confdefs.h >>conftest.$ac_ext 4823cat >>conftest.$ac_ext <<_ACEOF 4824/* end confdefs.h. */ 4825#include <ctype.h> 4826#include <stdlib.h> 4827#if ((' ' & 0x0FF) == 0x020) 4828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4830#else 4831# define ISLOWER(c) \ 4832 (('a' <= (c) && (c) <= 'i') \ 4833 || ('j' <= (c) && (c) <= 'r') \ 4834 || ('s' <= (c) && (c) <= 'z')) 4835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4836#endif 4837 4838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4839int 4840main () 4841{ 4842 int i; 4843 for (i = 0; i < 256; i++) 4844 if (XOR (islower (i), ISLOWER (i)) 4845 || toupper (i) != TOUPPER (i)) 4846 return 2; 4847 return 0; 4848} 4849_ACEOF 4850rm -f conftest$ac_exeext 4851if { (ac_try="$ac_link" 4852case "(($ac_try" in 4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4854 *) ac_try_echo=$ac_try;; 4855esac 4856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4857 (eval "$ac_link") 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4861 { (case "(($ac_try" in 4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4863 *) ac_try_echo=$ac_try;; 4864esac 4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4866 (eval "$ac_try") 2>&5 4867 ac_status=$? 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); }; }; then 4870 : 4871else 4872 echo "$as_me: program exited with status $ac_status" >&5 4873echo "$as_me: failed program was:" >&5 4874sed 's/^/| /' conftest.$ac_ext >&5 4875 4876( exit $ac_status ) 4877ac_cv_header_stdc=no 4878fi 4879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4880fi 4881 4882 4883fi 4884fi 4885{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4886echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4887if test $ac_cv_header_stdc = yes; then 4888 4889cat >>confdefs.h <<\_ACEOF 4890@%:@define STDC_HEADERS 1 4891_ACEOF 4892 4893fi 4894 4895# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4906 inttypes.h stdint.h unistd.h 4907do 4908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4909{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913else 4914 cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920$ac_includes_default 4921 4922@%:@include <$ac_header> 4923_ACEOF 4924rm -f conftest.$ac_objext 4925if { (ac_try="$ac_compile" 4926case "(($ac_try" in 4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4928 *) ac_try_echo=$ac_try;; 4929esac 4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4931 (eval "$ac_compile") 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && { 4938 test -z "$ac_c_werror_flag" || 4939 test ! -s conftest.err 4940 } && test -s conftest.$ac_objext; then 4941 eval "$as_ac_Header=yes" 4942else 4943 echo "$as_me: failed program was:" >&5 4944sed 's/^/| /' conftest.$ac_ext >&5 4945 4946 eval "$as_ac_Header=no" 4947fi 4948 4949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4950fi 4951ac_res=`eval echo '${'$as_ac_Header'}'` 4952 { echo "$as_me:$LINENO: result: $ac_res" >&5 4953echo "${ECHO_T}$ac_res" >&6; } 4954if test `eval echo '${'$as_ac_Header'}'` = yes; then 4955 cat >>confdefs.h <<_ACEOF 4956@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4957_ACEOF 4958 4959fi 4960 4961done 4962 4963 4964 4965for ac_header in dlfcn.h 4966do 4967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4969 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4972 echo $ECHO_N "(cached) $ECHO_C" >&6 4973fi 4974ac_res=`eval echo '${'$as_ac_Header'}'` 4975 { echo "$as_me:$LINENO: result: $ac_res" >&5 4976echo "${ECHO_T}$ac_res" >&6; } 4977else 4978 # Is the header compilable? 4979{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4981cat >conftest.$ac_ext <<_ACEOF 4982/* confdefs.h. */ 4983_ACEOF 4984cat confdefs.h >>conftest.$ac_ext 4985cat >>conftest.$ac_ext <<_ACEOF 4986/* end confdefs.h. */ 4987$ac_includes_default 4988@%:@include <$ac_header> 4989_ACEOF 4990rm -f conftest.$ac_objext 4991if { (ac_try="$ac_compile" 4992case "(($ac_try" in 4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4994 *) ac_try_echo=$ac_try;; 4995esac 4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4997 (eval "$ac_compile") 2>conftest.er1 4998 ac_status=$? 4999 grep -v '^ *+' conftest.er1 >conftest.err 5000 rm -f conftest.er1 5001 cat conftest.err >&5 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); } && { 5004 test -z "$ac_c_werror_flag" || 5005 test ! -s conftest.err 5006 } && test -s conftest.$ac_objext; then 5007 ac_header_compiler=yes 5008else 5009 echo "$as_me: failed program was:" >&5 5010sed 's/^/| /' conftest.$ac_ext >&5 5011 5012 ac_header_compiler=no 5013fi 5014 5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5017echo "${ECHO_T}$ac_header_compiler" >&6; } 5018 5019# Is the header present? 5020{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5022cat >conftest.$ac_ext <<_ACEOF 5023/* confdefs.h. */ 5024_ACEOF 5025cat confdefs.h >>conftest.$ac_ext 5026cat >>conftest.$ac_ext <<_ACEOF 5027/* end confdefs.h. */ 5028@%:@include <$ac_header> 5029_ACEOF 5030if { (ac_try="$ac_cpp conftest.$ac_ext" 5031case "(($ac_try" in 5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5033 *) ac_try_echo=$ac_try;; 5034esac 5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5037 ac_status=$? 5038 grep -v '^ *+' conftest.er1 >conftest.err 5039 rm -f conftest.er1 5040 cat conftest.err >&5 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5042 (exit $ac_status); } >/dev/null && { 5043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5044 test ! -s conftest.err 5045 }; then 5046 ac_header_preproc=yes 5047else 5048 echo "$as_me: failed program was:" >&5 5049sed 's/^/| /' conftest.$ac_ext >&5 5050 5051 ac_header_preproc=no 5052fi 5053 5054rm -f conftest.err conftest.$ac_ext 5055{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5056echo "${ECHO_T}$ac_header_preproc" >&6; } 5057 5058# So? What about this header? 5059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5060 yes:no: ) 5061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5065 ac_header_preproc=yes 5066 ;; 5067 no:yes:* ) 5068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5080 ( cat <<\_ASBOX 5081@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 5082@%:@@%:@ Report this to http://sourceforge.net/tracker/?group_id=8903&atid=108903 @%:@@%:@ 5083@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 5084_ASBOX 5085 ) | sed "s/^/$as_me: WARNING: /" >&2 5086 ;; 5087esac 5088{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5091 echo $ECHO_N "(cached) $ECHO_C" >&6 5092else 5093 eval "$as_ac_Header=\$ac_header_preproc" 5094fi 5095ac_res=`eval echo '${'$as_ac_Header'}'` 5096 { echo "$as_me:$LINENO: result: $ac_res" >&5 5097echo "${ECHO_T}$ac_res" >&6; } 5098 5099fi 5100if test `eval echo '${'$as_ac_Header'}'` = yes; then 5101 cat >>confdefs.h <<_ACEOF 5102@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5103_ACEOF 5104 5105fi 5106 5107done 5108 5109ac_ext=cpp 5110ac_cpp='$CXXCPP $CPPFLAGS' 5111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5114if test -z "$CXX"; then 5115 if test -n "$CCC"; then 5116 CXX=$CCC 5117 else 5118 if test -n "$ac_tool_prefix"; then 5119 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5120 do 5121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5122set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5123{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5125if test "${ac_cv_prog_CXX+set}" = set; then 5126 echo $ECHO_N "(cached) $ECHO_C" >&6 5127else 5128 if test -n "$CXX"; then 5129 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5130else 5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5132for as_dir in $PATH 5133do 5134 IFS=$as_save_IFS 5135 test -z "$as_dir" && as_dir=. 5136 for ac_exec_ext in '' $ac_executable_extensions; do 5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5138 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5140 break 2 5141 fi 5142done 5143done 5144IFS=$as_save_IFS 5145 5146fi 5147fi 5148CXX=$ac_cv_prog_CXX 5149if test -n "$CXX"; then 5150 { echo "$as_me:$LINENO: result: $CXX" >&5 5151echo "${ECHO_T}$CXX" >&6; } 5152else 5153 { echo "$as_me:$LINENO: result: no" >&5 5154echo "${ECHO_T}no" >&6; } 5155fi 5156 5157 5158 test -n "$CXX" && break 5159 done 5160fi 5161if test -z "$CXX"; then 5162 ac_ct_CXX=$CXX 5163 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5164do 5165 # Extract the first word of "$ac_prog", so it can be a program name with args. 5166set dummy $ac_prog; ac_word=$2 5167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5169if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5170 echo $ECHO_N "(cached) $ECHO_C" >&6 5171else 5172 if test -n "$ac_ct_CXX"; then 5173 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5174else 5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5176for as_dir in $PATH 5177do 5178 IFS=$as_save_IFS 5179 test -z "$as_dir" && as_dir=. 5180 for ac_exec_ext in '' $ac_executable_extensions; do 5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5182 ac_cv_prog_ac_ct_CXX="$ac_prog" 5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5184 break 2 5185 fi 5186done 5187done 5188IFS=$as_save_IFS 5189 5190fi 5191fi 5192ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5193if test -n "$ac_ct_CXX"; then 5194 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5195echo "${ECHO_T}$ac_ct_CXX" >&6; } 5196else 5197 { echo "$as_me:$LINENO: result: no" >&5 5198echo "${ECHO_T}no" >&6; } 5199fi 5200 5201 5202 test -n "$ac_ct_CXX" && break 5203done 5204 5205 if test "x$ac_ct_CXX" = x; then 5206 CXX="g++" 5207 else 5208 case $cross_compiling:$ac_tool_warned in 5209yes:) 5210{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5211whose name does not start with the host triplet. If you think this 5212configuration is useful to you, please write to autoconf@gnu.org." >&5 5213echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5214whose name does not start with the host triplet. If you think this 5215configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5216ac_tool_warned=yes ;; 5217esac 5218 CXX=$ac_ct_CXX 5219 fi 5220fi 5221 5222 fi 5223fi 5224# Provide some information about the compiler. 5225echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5226ac_compiler=`set X $ac_compile; echo $2` 5227{ (ac_try="$ac_compiler --version >&5" 5228case "(($ac_try" in 5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5230 *) ac_try_echo=$ac_try;; 5231esac 5232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5233 (eval "$ac_compiler --version >&5") 2>&5 5234 ac_status=$? 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); } 5237{ (ac_try="$ac_compiler -v >&5" 5238case "(($ac_try" in 5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5240 *) ac_try_echo=$ac_try;; 5241esac 5242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5243 (eval "$ac_compiler -v >&5") 2>&5 5244 ac_status=$? 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5246 (exit $ac_status); } 5247{ (ac_try="$ac_compiler -V >&5" 5248case "(($ac_try" in 5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5250 *) ac_try_echo=$ac_try;; 5251esac 5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5253 (eval "$ac_compiler -V >&5") 2>&5 5254 ac_status=$? 5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5256 (exit $ac_status); } 5257 5258{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5259echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5260if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5261 echo $ECHO_N "(cached) $ECHO_C" >&6 5262else 5263 cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269 5270int 5271main () 5272{ 5273#ifndef __GNUC__ 5274 choke me 5275#endif 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281rm -f conftest.$ac_objext 5282if { (ac_try="$ac_compile" 5283case "(($ac_try" in 5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5285 *) ac_try_echo=$ac_try;; 5286esac 5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5288 (eval "$ac_compile") 2>conftest.er1 5289 ac_status=$? 5290 grep -v '^ *+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } && { 5295 test -z "$ac_cxx_werror_flag" || 5296 test ! -s conftest.err 5297 } && test -s conftest.$ac_objext; then 5298 ac_compiler_gnu=yes 5299else 5300 echo "$as_me: failed program was:" >&5 5301sed 's/^/| /' conftest.$ac_ext >&5 5302 5303 ac_compiler_gnu=no 5304fi 5305 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5307ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5308 5309fi 5310{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5311echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5312GXX=`test $ac_compiler_gnu = yes && echo yes` 5313ac_test_CXXFLAGS=${CXXFLAGS+set} 5314ac_save_CXXFLAGS=$CXXFLAGS 5315{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5316echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5317if test "${ac_cv_prog_cxx_g+set}" = set; then 5318 echo $ECHO_N "(cached) $ECHO_C" >&6 5319else 5320 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5321 ac_cxx_werror_flag=yes 5322 ac_cv_prog_cxx_g=no 5323 CXXFLAGS="-g" 5324 cat >conftest.$ac_ext <<_ACEOF 5325/* confdefs.h. */ 5326_ACEOF 5327cat confdefs.h >>conftest.$ac_ext 5328cat >>conftest.$ac_ext <<_ACEOF 5329/* end confdefs.h. */ 5330 5331int 5332main () 5333{ 5334 5335 ; 5336 return 0; 5337} 5338_ACEOF 5339rm -f conftest.$ac_objext 5340if { (ac_try="$ac_compile" 5341case "(($ac_try" in 5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5343 *) ac_try_echo=$ac_try;; 5344esac 5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5346 (eval "$ac_compile") 2>conftest.er1 5347 ac_status=$? 5348 grep -v '^ *+' conftest.er1 >conftest.err 5349 rm -f conftest.er1 5350 cat conftest.err >&5 5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5352 (exit $ac_status); } && { 5353 test -z "$ac_cxx_werror_flag" || 5354 test ! -s conftest.err 5355 } && test -s conftest.$ac_objext; then 5356 ac_cv_prog_cxx_g=yes 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361 CXXFLAGS="" 5362 cat >conftest.$ac_ext <<_ACEOF 5363/* confdefs.h. */ 5364_ACEOF 5365cat confdefs.h >>conftest.$ac_ext 5366cat >>conftest.$ac_ext <<_ACEOF 5367/* end confdefs.h. */ 5368 5369int 5370main () 5371{ 5372 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377rm -f conftest.$ac_objext 5378if { (ac_try="$ac_compile" 5379case "(($ac_try" in 5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5381 *) ac_try_echo=$ac_try;; 5382esac 5383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5384 (eval "$ac_compile") 2>conftest.er1 5385 ac_status=$? 5386 grep -v '^ *+' conftest.er1 >conftest.err 5387 rm -f conftest.er1 5388 cat conftest.err >&5 5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5390 (exit $ac_status); } && { 5391 test -z "$ac_cxx_werror_flag" || 5392 test ! -s conftest.err 5393 } && test -s conftest.$ac_objext; then 5394 : 5395else 5396 echo "$as_me: failed program was:" >&5 5397sed 's/^/| /' conftest.$ac_ext >&5 5398 5399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5400 CXXFLAGS="-g" 5401 cat >conftest.$ac_ext <<_ACEOF 5402/* confdefs.h. */ 5403_ACEOF 5404cat confdefs.h >>conftest.$ac_ext 5405cat >>conftest.$ac_ext <<_ACEOF 5406/* end confdefs.h. */ 5407 5408int 5409main () 5410{ 5411 5412 ; 5413 return 0; 5414} 5415_ACEOF 5416rm -f conftest.$ac_objext 5417if { (ac_try="$ac_compile" 5418case "(($ac_try" in 5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5420 *) ac_try_echo=$ac_try;; 5421esac 5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5423 (eval "$ac_compile") 2>conftest.er1 5424 ac_status=$? 5425 grep -v '^ *+' conftest.er1 >conftest.err 5426 rm -f conftest.er1 5427 cat conftest.err >&5 5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5429 (exit $ac_status); } && { 5430 test -z "$ac_cxx_werror_flag" || 5431 test ! -s conftest.err 5432 } && test -s conftest.$ac_objext; then 5433 ac_cv_prog_cxx_g=yes 5434else 5435 echo "$as_me: failed program was:" >&5 5436sed 's/^/| /' conftest.$ac_ext >&5 5437 5438 5439fi 5440 5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442fi 5443 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445fi 5446 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5449fi 5450{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5451echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5452if test "$ac_test_CXXFLAGS" = set; then 5453 CXXFLAGS=$ac_save_CXXFLAGS 5454elif test $ac_cv_prog_cxx_g = yes; then 5455 if test "$GXX" = yes; then 5456 CXXFLAGS="-g -O2" 5457 else 5458 CXXFLAGS="-g" 5459 fi 5460else 5461 if test "$GXX" = yes; then 5462 CXXFLAGS="-O2" 5463 else 5464 CXXFLAGS= 5465 fi 5466fi 5467ac_ext=cpp 5468ac_cpp='$CXXCPP $CPPFLAGS' 5469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5472 5473depcc="$CXX" am_compiler_list= 5474 5475{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5476echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5477if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5478 echo $ECHO_N "(cached) $ECHO_C" >&6 5479else 5480 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5481 # We make a subdir and do the tests there. Otherwise we can end up 5482 # making bogus files that we don't know about and never remove. For 5483 # instance it was reported that on HP-UX the gcc test will end up 5484 # making a dummy file named `D' -- because `-MD' means `put the output 5485 # in D'. 5486 mkdir conftest.dir 5487 # Copy depcomp to subdir because otherwise we won't find it if we're 5488 # using a relative directory. 5489 cp "$am_depcomp" conftest.dir 5490 cd conftest.dir 5491 # We will build objects and dependencies in a subdirectory because 5492 # it helps to detect inapplicable dependency modes. For instance 5493 # both Tru64's cc and ICC support -MD to output dependencies as a 5494 # side effect of compilation, but ICC will put the dependencies in 5495 # the current directory while Tru64 will put them in the object 5496 # directory. 5497 mkdir sub 5498 5499 am_cv_CXX_dependencies_compiler_type=none 5500 if test "$am_compiler_list" = ""; then 5501 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5502 fi 5503 for depmode in $am_compiler_list; do 5504 # Setup a source with many dependencies, because some compilers 5505 # like to wrap large dependency lists on column 80 (with \), and 5506 # we should not choose a depcomp mode which is confused by this. 5507 # 5508 # We need to recreate these files for each test, as the compiler may 5509 # overwrite some of them when testing with obscure command lines. 5510 # This happens at least with the AIX C compiler. 5511 : > sub/conftest.c 5512 for i in 1 2 3 4 5 6; do 5513 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5515 # Solaris 8's {/usr,}/bin/sh. 5516 touch sub/conftst$i.h 5517 done 5518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5519 5520 case $depmode in 5521 nosideeffect) 5522 # after this tag, mechanisms are not by side-effect, so they'll 5523 # only be used when explicitly requested 5524 if test "x$enable_dependency_tracking" = xyes; then 5525 continue 5526 else 5527 break 5528 fi 5529 ;; 5530 none) break ;; 5531 esac 5532 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5533 # mode. It turns out that the SunPro C++ compiler does not properly 5534 # handle `-M -o', and we need to detect this. 5535 if depmode=$depmode \ 5536 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5538 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5539 >/dev/null 2>conftest.err && 5540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5544 # icc doesn't choke on unknown options, it will just issue warnings 5545 # or remarks (even with -Werror). So we grep stderr for any message 5546 # that says an option was ignored or not supported. 5547 # When given -MP, icc 7.0 and 7.1 complain thusly: 5548 # icc: Command line warning: ignoring option '-M'; no argument required 5549 # The diagnosis changed in icc 8.0: 5550 # icc: Command line remark: option '-MP' not supported 5551 if (grep 'ignoring option' conftest.err || 5552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5553 am_cv_CXX_dependencies_compiler_type=$depmode 5554 break 5555 fi 5556 fi 5557 done 5558 5559 cd .. 5560 rm -rf conftest.dir 5561else 5562 am_cv_CXX_dependencies_compiler_type=none 5563fi 5564 5565fi 5566{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5567echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5568CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5569 5570 if 5571 test "x$enable_dependency_tracking" != xno \ 5572 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5573 am__fastdepCXX_TRUE= 5574 am__fastdepCXX_FALSE='#' 5575else 5576 am__fastdepCXX_TRUE='#' 5577 am__fastdepCXX_FALSE= 5578fi 5579 5580 5581 5582 5583if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5584 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5585 (test "X$CXX" != "Xg++"))) ; then 5586 ac_ext=cpp 5587ac_cpp='$CXXCPP $CPPFLAGS' 5588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5591{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5592echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5593if test -z "$CXXCPP"; then 5594 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5595 echo $ECHO_N "(cached) $ECHO_C" >&6 5596else 5597 # Double quotes because CXXCPP needs to be expanded 5598 for CXXCPP in "$CXX -E" "/lib/cpp" 5599 do 5600 ac_preproc_ok=false 5601for ac_cxx_preproc_warn_flag in '' yes 5602do 5603 # Use a header file that comes with gcc, so configuring glibc 5604 # with a fresh cross-compiler works. 5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5606 # <limits.h> exists even on freestanding compilers. 5607 # On the NeXT, cc -E runs the code through the compiler's parser, 5608 # not just through cpp. "Syntax error" is here to catch this case. 5609 cat >conftest.$ac_ext <<_ACEOF 5610/* confdefs.h. */ 5611_ACEOF 5612cat confdefs.h >>conftest.$ac_ext 5613cat >>conftest.$ac_ext <<_ACEOF 5614/* end confdefs.h. */ 5615@%:@ifdef __STDC__ 5616@%:@ include <limits.h> 5617@%:@else 5618@%:@ include <assert.h> 5619@%:@endif 5620 Syntax error 5621_ACEOF 5622if { (ac_try="$ac_cpp conftest.$ac_ext" 5623case "(($ac_try" in 5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5625 *) ac_try_echo=$ac_try;; 5626esac 5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5629 ac_status=$? 5630 grep -v '^ *+' conftest.er1 >conftest.err 5631 rm -f conftest.er1 5632 cat conftest.err >&5 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); } >/dev/null && { 5635 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5636 test ! -s conftest.err 5637 }; then 5638 : 5639else 5640 echo "$as_me: failed program was:" >&5 5641sed 's/^/| /' conftest.$ac_ext >&5 5642 5643 # Broken: fails on valid input. 5644continue 5645fi 5646 5647rm -f conftest.err conftest.$ac_ext 5648 5649 # OK, works on sane cases. Now check whether nonexistent headers 5650 # can be detected and how. 5651 cat >conftest.$ac_ext <<_ACEOF 5652/* confdefs.h. */ 5653_ACEOF 5654cat confdefs.h >>conftest.$ac_ext 5655cat >>conftest.$ac_ext <<_ACEOF 5656/* end confdefs.h. */ 5657@%:@include <ac_nonexistent.h> 5658_ACEOF 5659if { (ac_try="$ac_cpp conftest.$ac_ext" 5660case "(($ac_try" in 5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5662 *) ac_try_echo=$ac_try;; 5663esac 5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5666 ac_status=$? 5667 grep -v '^ *+' conftest.er1 >conftest.err 5668 rm -f conftest.er1 5669 cat conftest.err >&5 5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5671 (exit $ac_status); } >/dev/null && { 5672 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5673 test ! -s conftest.err 5674 }; then 5675 # Broken: success on invalid input. 5676continue 5677else 5678 echo "$as_me: failed program was:" >&5 5679sed 's/^/| /' conftest.$ac_ext >&5 5680 5681 # Passes both tests. 5682ac_preproc_ok=: 5683break 5684fi 5685 5686rm -f conftest.err conftest.$ac_ext 5687 5688done 5689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5690rm -f conftest.err conftest.$ac_ext 5691if $ac_preproc_ok; then 5692 break 5693fi 5694 5695 done 5696 ac_cv_prog_CXXCPP=$CXXCPP 5697 5698fi 5699 CXXCPP=$ac_cv_prog_CXXCPP 5700else 5701 ac_cv_prog_CXXCPP=$CXXCPP 5702fi 5703{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5704echo "${ECHO_T}$CXXCPP" >&6; } 5705ac_preproc_ok=false 5706for ac_cxx_preproc_warn_flag in '' yes 5707do 5708 # Use a header file that comes with gcc, so configuring glibc 5709 # with a fresh cross-compiler works. 5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5711 # <limits.h> exists even on freestanding compilers. 5712 # On the NeXT, cc -E runs the code through the compiler's parser, 5713 # not just through cpp. "Syntax error" is here to catch this case. 5714 cat >conftest.$ac_ext <<_ACEOF 5715/* confdefs.h. */ 5716_ACEOF 5717cat confdefs.h >>conftest.$ac_ext 5718cat >>conftest.$ac_ext <<_ACEOF 5719/* end confdefs.h. */ 5720@%:@ifdef __STDC__ 5721@%:@ include <limits.h> 5722@%:@else 5723@%:@ include <assert.h> 5724@%:@endif 5725 Syntax error 5726_ACEOF 5727if { (ac_try="$ac_cpp conftest.$ac_ext" 5728case "(($ac_try" in 5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5730 *) ac_try_echo=$ac_try;; 5731esac 5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5734 ac_status=$? 5735 grep -v '^ *+' conftest.er1 >conftest.err 5736 rm -f conftest.er1 5737 cat conftest.err >&5 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5739 (exit $ac_status); } >/dev/null && { 5740 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5741 test ! -s conftest.err 5742 }; then 5743 : 5744else 5745 echo "$as_me: failed program was:" >&5 5746sed 's/^/| /' conftest.$ac_ext >&5 5747 5748 # Broken: fails on valid input. 5749continue 5750fi 5751 5752rm -f conftest.err conftest.$ac_ext 5753 5754 # OK, works on sane cases. Now check whether nonexistent headers 5755 # can be detected and how. 5756 cat >conftest.$ac_ext <<_ACEOF 5757/* confdefs.h. */ 5758_ACEOF 5759cat confdefs.h >>conftest.$ac_ext 5760cat >>conftest.$ac_ext <<_ACEOF 5761/* end confdefs.h. */ 5762@%:@include <ac_nonexistent.h> 5763_ACEOF 5764if { (ac_try="$ac_cpp conftest.$ac_ext" 5765case "(($ac_try" in 5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5767 *) ac_try_echo=$ac_try;; 5768esac 5769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5771 ac_status=$? 5772 grep -v '^ *+' conftest.er1 >conftest.err 5773 rm -f conftest.er1 5774 cat conftest.err >&5 5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5776 (exit $ac_status); } >/dev/null && { 5777 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5778 test ! -s conftest.err 5779 }; then 5780 # Broken: success on invalid input. 5781continue 5782else 5783 echo "$as_me: failed program was:" >&5 5784sed 's/^/| /' conftest.$ac_ext >&5 5785 5786 # Passes both tests. 5787ac_preproc_ok=: 5788break 5789fi 5790 5791rm -f conftest.err conftest.$ac_ext 5792 5793done 5794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5795rm -f conftest.err conftest.$ac_ext 5796if $ac_preproc_ok; then 5797 : 5798else 5799 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5800See \`config.log' for more details." >&5 5801echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5802See \`config.log' for more details." >&2;} 5803 { (exit 1); exit 1; }; } 5804fi 5805 5806ac_ext=cpp 5807ac_cpp='$CXXCPP $CPPFLAGS' 5808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5811 5812fi 5813 5814 5815ac_ext=f 5816ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5817ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5818ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5819if test -n "$ac_tool_prefix"; then 5820 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 5821 do 5822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5826if test "${ac_cv_prog_F77+set}" = set; then 5827 echo $ECHO_N "(cached) $ECHO_C" >&6 5828else 5829 if test -n "$F77"; then 5830 ac_cv_prog_F77="$F77" # Let the user override the test. 5831else 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5839 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849F77=$ac_cv_prog_F77 5850if test -n "$F77"; then 5851 { echo "$as_me:$LINENO: result: $F77" >&5 5852echo "${ECHO_T}$F77" >&6; } 5853else 5854 { echo "$as_me:$LINENO: result: no" >&5 5855echo "${ECHO_T}no" >&6; } 5856fi 5857 5858 5859 test -n "$F77" && break 5860 done 5861fi 5862if test -z "$F77"; then 5863 ac_ct_F77=$F77 5864 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 5865do 5866 # Extract the first word of "$ac_prog", so it can be a program name with args. 5867set dummy $ac_prog; ac_word=$2 5868{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5870if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5871 echo $ECHO_N "(cached) $ECHO_C" >&6 5872else 5873 if test -n "$ac_ct_F77"; then 5874 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5875else 5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5877for as_dir in $PATH 5878do 5879 IFS=$as_save_IFS 5880 test -z "$as_dir" && as_dir=. 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5883 ac_cv_prog_ac_ct_F77="$ac_prog" 5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5885 break 2 5886 fi 5887done 5888done 5889IFS=$as_save_IFS 5890 5891fi 5892fi 5893ac_ct_F77=$ac_cv_prog_ac_ct_F77 5894if test -n "$ac_ct_F77"; then 5895 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5896echo "${ECHO_T}$ac_ct_F77" >&6; } 5897else 5898 { echo "$as_me:$LINENO: result: no" >&5 5899echo "${ECHO_T}no" >&6; } 5900fi 5901 5902 5903 test -n "$ac_ct_F77" && break 5904done 5905 5906 if test "x$ac_ct_F77" = x; then 5907 F77="" 5908 else 5909 case $cross_compiling:$ac_tool_warned in 5910yes:) 5911{ echo "$as_me:$LINENO: 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." >&5 5914echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5915whose name does not start with the host triplet. If you think this 5916configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5917ac_tool_warned=yes ;; 5918esac 5919 F77=$ac_ct_F77 5920 fi 5921fi 5922 5923 5924# Provide some information about the compiler. 5925echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5926ac_compiler=`set X $ac_compile; echo $2` 5927{ (ac_try="$ac_compiler --version >&5" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_compiler --version >&5") 2>&5 5934 ac_status=$? 5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5936 (exit $ac_status); } 5937{ (ac_try="$ac_compiler -v >&5" 5938case "(($ac_try" in 5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5940 *) ac_try_echo=$ac_try;; 5941esac 5942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5943 (eval "$ac_compiler -v >&5") 2>&5 5944 ac_status=$? 5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } 5947{ (ac_try="$ac_compiler -V >&5" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5953 (eval "$ac_compiler -V >&5") 2>&5 5954 ac_status=$? 5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5956 (exit $ac_status); } 5957rm -f a.out 5958 5959# If we don't use `.F' as extension, the preprocessor is not run on the 5960# input file. (Note that this only needs to work for GNU compilers.) 5961ac_save_ext=$ac_ext 5962ac_ext=F 5963{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5964echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5965if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5966 echo $ECHO_N "(cached) $ECHO_C" >&6 5967else 5968 cat >conftest.$ac_ext <<_ACEOF 5969 program main 5970#ifndef __GNUC__ 5971 choke me 5972#endif 5973 5974 end 5975_ACEOF 5976rm -f conftest.$ac_objext 5977if { (ac_try="$ac_compile" 5978case "(($ac_try" in 5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5980 *) ac_try_echo=$ac_try;; 5981esac 5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5983 (eval "$ac_compile") 2>conftest.er1 5984 ac_status=$? 5985 grep -v '^ *+' conftest.er1 >conftest.err 5986 rm -f conftest.er1 5987 cat conftest.err >&5 5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5989 (exit $ac_status); } && { 5990 test -z "$ac_f77_werror_flag" || 5991 test ! -s conftest.err 5992 } && test -s conftest.$ac_objext; then 5993 ac_compiler_gnu=yes 5994else 5995 echo "$as_me: failed program was:" >&5 5996sed 's/^/| /' conftest.$ac_ext >&5 5997 5998 ac_compiler_gnu=no 5999fi 6000 6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6002ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6003 6004fi 6005{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6006echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6007ac_ext=$ac_save_ext 6008ac_test_FFLAGS=${FFLAGS+set} 6009ac_save_FFLAGS=$FFLAGS 6010FFLAGS= 6011{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6012echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6013if test "${ac_cv_prog_f77_g+set}" = set; then 6014 echo $ECHO_N "(cached) $ECHO_C" >&6 6015else 6016 FFLAGS=-g 6017cat >conftest.$ac_ext <<_ACEOF 6018 program main 6019 6020 end 6021_ACEOF 6022rm -f conftest.$ac_objext 6023if { (ac_try="$ac_compile" 6024case "(($ac_try" in 6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6026 *) ac_try_echo=$ac_try;; 6027esac 6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6029 (eval "$ac_compile") 2>conftest.er1 6030 ac_status=$? 6031 grep -v '^ *+' conftest.er1 >conftest.err 6032 rm -f conftest.er1 6033 cat conftest.err >&5 6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 (exit $ac_status); } && { 6036 test -z "$ac_f77_werror_flag" || 6037 test ! -s conftest.err 6038 } && test -s conftest.$ac_objext; then 6039 ac_cv_prog_f77_g=yes 6040else 6041 echo "$as_me: failed program was:" >&5 6042sed 's/^/| /' conftest.$ac_ext >&5 6043 6044 ac_cv_prog_f77_g=no 6045fi 6046 6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6048 6049fi 6050{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6051echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6052if test "$ac_test_FFLAGS" = set; then 6053 FFLAGS=$ac_save_FFLAGS 6054elif test $ac_cv_prog_f77_g = yes; then 6055 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6056 FFLAGS="-g -O2" 6057 else 6058 FFLAGS="-g" 6059 fi 6060else 6061 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6062 FFLAGS="-O2" 6063 else 6064 FFLAGS= 6065 fi 6066fi 6067 6068G77=`test $ac_compiler_gnu = yes && echo yes` 6069ac_ext=c 6070ac_cpp='$CPP $CPPFLAGS' 6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6073ac_compiler_gnu=$ac_cv_c_compiler_gnu 6074 6075 6076 6077# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6078 6079# find the maximum length of command line arguments 6080{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6081echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6082if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6083 echo $ECHO_N "(cached) $ECHO_C" >&6 6084else 6085 i=0 6086 teststring="ABCD" 6087 6088 case $build_os in 6089 msdosdjgpp*) 6090 # On DJGPP, this test can blow up pretty badly due to problems in libc 6091 # (any single argument exceeding 2000 bytes causes a buffer overrun 6092 # during glob expansion). Even if it were fixed, the result of this 6093 # check would be larger than it should be. 6094 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6095 ;; 6096 6097 gnu*) 6098 # Under GNU Hurd, this test is not required because there is 6099 # no limit to the length of command line arguments. 6100 # Libtool will interpret -1 as no limit whatsoever 6101 lt_cv_sys_max_cmd_len=-1; 6102 ;; 6103 6104 cygwin* | mingw*) 6105 # On Win9x/ME, this test blows up -- it succeeds, but takes 6106 # about 5 minutes as the teststring grows exponentially. 6107 # Worse, since 9x/ME are not pre-emptively multitasking, 6108 # you end up with a "frozen" computer, even though with patience 6109 # the test eventually succeeds (with a max line length of 256k). 6110 # Instead, let's just punt: use the minimum linelength reported by 6111 # all of the supported platforms: 8192 (on NT/2K/XP). 6112 lt_cv_sys_max_cmd_len=8192; 6113 ;; 6114 6115 amigaos*) 6116 # On AmigaOS with pdksh, this test takes hours, literally. 6117 # So we just punt and use a minimum line length of 8192. 6118 lt_cv_sys_max_cmd_len=8192; 6119 ;; 6120 6121 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6122 # This has been around since 386BSD, at least. Likely further. 6123 if test -x /sbin/sysctl; then 6124 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6125 elif test -x /usr/sbin/sysctl; then 6126 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6127 else 6128 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6129 fi 6130 # And add a safety zone 6131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6133 ;; 6134 6135 interix*) 6136 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6137 lt_cv_sys_max_cmd_len=196608 6138 ;; 6139 6140 osf*) 6141 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6142 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6143 # nice to cause kernel panics so lets avoid the loop below. 6144 # First set a reasonable default. 6145 lt_cv_sys_max_cmd_len=16384 6146 # 6147 if test -x /sbin/sysconfig; then 6148 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6149 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6150 esac 6151 fi 6152 ;; 6153 sco3.2v5*) 6154 lt_cv_sys_max_cmd_len=102400 6155 ;; 6156 sysv5* | sco5v6* | sysv4.2uw2*) 6157 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6158 if test -n "$kargmax"; then 6159 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6160 else 6161 lt_cv_sys_max_cmd_len=32768 6162 fi 6163 ;; 6164 *) 6165 # If test is not a shell built-in, we'll probably end up computing a 6166 # maximum length that is only half of the actual maximum length, but 6167 # we can't tell. 6168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6169 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6170 = "XX$teststring") >/dev/null 2>&1 && 6171 new_result=`expr "X$teststring" : ".*" 2>&1` && 6172 lt_cv_sys_max_cmd_len=$new_result && 6173 test $i != 17 # 1/2 MB should be enough 6174 do 6175 i=`expr $i + 1` 6176 teststring=$teststring$teststring 6177 done 6178 teststring= 6179 # Add a significant safety factor because C++ compilers can tack on massive 6180 # amounts of additional arguments before passing them to the linker. 6181 # It appears as though 1/2 is a usable value. 6182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6183 ;; 6184 esac 6185 6186fi 6187 6188if test -n $lt_cv_sys_max_cmd_len ; then 6189 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6190echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6191else 6192 { echo "$as_me:$LINENO: result: none" >&5 6193echo "${ECHO_T}none" >&6; } 6194fi 6195 6196 6197 6198 6199# Check for command to grab the raw symbol name followed by C symbol from nm. 6200{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6201echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6202if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6203 echo $ECHO_N "(cached) $ECHO_C" >&6 6204else 6205 6206# These are sane defaults that work on at least a few old systems. 6207# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6208 6209# Character class describing NM global symbol codes. 6210symcode='[BCDEGRST]' 6211 6212# Regexp to match symbols that can be accessed directly from C. 6213sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6214 6215# Transform an extracted symbol line into a proper C declaration 6216lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6217 6218# Transform an extracted symbol line into symbol name and symbol address 6219lt_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'" 6220 6221# Define system-specific variables. 6222case $host_os in 6223aix*) 6224 symcode='[BCDT]' 6225 ;; 6226cygwin* | mingw* | pw32*) 6227 symcode='[ABCDGISTW]' 6228 ;; 6229hpux*) # Its linker distinguishes data from code symbols 6230 if test "$host_cpu" = ia64; then 6231 symcode='[ABCDEGRST]' 6232 fi 6233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6234 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'" 6235 ;; 6236linux* | k*bsd*-gnu) 6237 if test "$host_cpu" = ia64; then 6238 symcode='[ABCDGIRSTW]' 6239 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6240 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'" 6241 fi 6242 ;; 6243irix* | nonstopux*) 6244 symcode='[BCDEGRST]' 6245 ;; 6246osf*) 6247 symcode='[BCDEGQRST]' 6248 ;; 6249solaris*) 6250 symcode='[BDRT]' 6251 ;; 6252sco3.2v5*) 6253 symcode='[DT]' 6254 ;; 6255sysv4.2uw2*) 6256 symcode='[DT]' 6257 ;; 6258sysv5* | sco5v6* | unixware* | OpenUNIX*) 6259 symcode='[ABDT]' 6260 ;; 6261sysv4) 6262 symcode='[DFNSTU]' 6263 ;; 6264esac 6265 6266# Handle CRLF in mingw tool chain 6267opt_cr= 6268case $build_os in 6269mingw*) 6270 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6271 ;; 6272esac 6273 6274# If we're using GNU nm, then use its standard symbol codes. 6275case `$NM -V 2>&1` in 6276*GNU* | *'with BFD'*) 6277 symcode='[ABCDGIRSTW]' ;; 6278esac 6279 6280# Try without a prefix undercore, then with it. 6281for ac_symprfx in "" "_"; do 6282 6283 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6284 symxfrm="\\1 $ac_symprfx\\2 \\2" 6285 6286 # Write the raw and C identifiers. 6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6288 6289 # Check to see that the pipe works correctly. 6290 pipe_works=no 6291 6292 rm -f conftest* 6293 cat > conftest.$ac_ext <<EOF 6294#ifdef __cplusplus 6295extern "C" { 6296#endif 6297char nm_test_var; 6298void nm_test_func(){} 6299#ifdef __cplusplus 6300} 6301#endif 6302int main(){nm_test_var='a';nm_test_func();return(0);} 6303EOF 6304 6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6306 (eval $ac_compile) 2>&5 6307 ac_status=$? 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); }; then 6310 # Now try to grab the symbols. 6311 nlist=conftest.nm 6312 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6313 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6314 ac_status=$? 6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6316 (exit $ac_status); } && test -s "$nlist"; then 6317 # Try sorting and uniquifying the output. 6318 if sort "$nlist" | uniq > "$nlist"T; then 6319 mv -f "$nlist"T "$nlist" 6320 else 6321 rm -f "$nlist"T 6322 fi 6323 6324 # Make sure that we snagged all the symbols we need. 6325 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6326 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6327 cat <<EOF > conftest.$ac_ext 6328#ifdef __cplusplus 6329extern "C" { 6330#endif 6331 6332EOF 6333 # Now generate the symbol file. 6334 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6335 6336 cat <<EOF >> conftest.$ac_ext 6337#if defined (__STDC__) && __STDC__ 6338# define lt_ptr_t void * 6339#else 6340# define lt_ptr_t char * 6341# define const 6342#endif 6343 6344/* The mapping between symbol names and symbols. */ 6345const struct { 6346 const char *name; 6347 lt_ptr_t address; 6348} 6349lt_preloaded_symbols[] = 6350{ 6351EOF 6352 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6353 cat <<\EOF >> conftest.$ac_ext 6354 {0, (lt_ptr_t) 0} 6355}; 6356 6357#ifdef __cplusplus 6358} 6359#endif 6360EOF 6361 # Now try linking the two files. 6362 mv conftest.$ac_objext conftstm.$ac_objext 6363 lt_save_LIBS="$LIBS" 6364 lt_save_CFLAGS="$CFLAGS" 6365 LIBS="conftstm.$ac_objext" 6366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6368 (eval $ac_link) 2>&5 6369 ac_status=$? 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6371 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6372 pipe_works=yes 6373 fi 6374 LIBS="$lt_save_LIBS" 6375 CFLAGS="$lt_save_CFLAGS" 6376 else 6377 echo "cannot find nm_test_func in $nlist" >&5 6378 fi 6379 else 6380 echo "cannot find nm_test_var in $nlist" >&5 6381 fi 6382 else 6383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6384 fi 6385 else 6386 echo "$progname: failed program was:" >&5 6387 cat conftest.$ac_ext >&5 6388 fi 6389 rm -f conftest* conftst* 6390 6391 # Do not use the global_symbol_pipe unless it works. 6392 if test "$pipe_works" = yes; then 6393 break 6394 else 6395 lt_cv_sys_global_symbol_pipe= 6396 fi 6397done 6398 6399fi 6400 6401if test -z "$lt_cv_sys_global_symbol_pipe"; then 6402 lt_cv_sys_global_symbol_to_cdecl= 6403fi 6404if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6405 { echo "$as_me:$LINENO: result: failed" >&5 6406echo "${ECHO_T}failed" >&6; } 6407else 6408 { echo "$as_me:$LINENO: result: ok" >&5 6409echo "${ECHO_T}ok" >&6; } 6410fi 6411 6412{ echo "$as_me:$LINENO: checking for objdir" >&5 6413echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6414if test "${lt_cv_objdir+set}" = set; then 6415 echo $ECHO_N "(cached) $ECHO_C" >&6 6416else 6417 rm -f .libs 2>/dev/null 6418mkdir .libs 2>/dev/null 6419if test -d .libs; then 6420 lt_cv_objdir=.libs 6421else 6422 # MS-DOS does not allow filenames that begin with a dot. 6423 lt_cv_objdir=_libs 6424fi 6425rmdir .libs 2>/dev/null 6426fi 6427{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6428echo "${ECHO_T}$lt_cv_objdir" >&6; } 6429objdir=$lt_cv_objdir 6430 6431 6432 6433 6434 6435case $host_os in 6436aix3*) 6437 # AIX sometimes has problems with the GCC collect2 program. For some 6438 # reason, if we set the COLLECT_NAMES environment variable, the problems 6439 # vanish in a puff of smoke. 6440 if test "X${COLLECT_NAMES+set}" != Xset; then 6441 COLLECT_NAMES= 6442 export COLLECT_NAMES 6443 fi 6444 ;; 6445esac 6446 6447# Sed substitution that helps us do robust quoting. It backslashifies 6448# metacharacters that are still active within double-quoted strings. 6449Xsed='sed -e 1s/^X//' 6450sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6451 6452# Same as above, but do not quote variable references. 6453double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6454 6455# Sed substitution to delay expansion of an escaped shell variable in a 6456# double_quote_subst'ed string. 6457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6458 6459# Sed substitution to avoid accidental globbing in evaled expressions 6460no_glob_subst='s/\*/\\\*/g' 6461 6462# Constants: 6463rm="rm -f" 6464 6465# Global variables: 6466default_ofile=libtool 6467can_build_shared=yes 6468 6469# All known linkers require a `.a' archive for static linking (except MSVC, 6470# which needs '.lib'). 6471libext=a 6472ltmain="$ac_aux_dir/ltmain.sh" 6473ofile="$default_ofile" 6474with_gnu_ld="$lt_cv_prog_gnu_ld" 6475 6476if test -n "$ac_tool_prefix"; then 6477 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6478set dummy ${ac_tool_prefix}ar; ac_word=$2 6479{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6481if test "${ac_cv_prog_AR+set}" = set; then 6482 echo $ECHO_N "(cached) $ECHO_C" >&6 6483else 6484 if test -n "$AR"; then 6485 ac_cv_prog_AR="$AR" # Let the user override the test. 6486else 6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6488for as_dir in $PATH 6489do 6490 IFS=$as_save_IFS 6491 test -z "$as_dir" && as_dir=. 6492 for ac_exec_ext in '' $ac_executable_extensions; do 6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6494 ac_cv_prog_AR="${ac_tool_prefix}ar" 6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6496 break 2 6497 fi 6498done 6499done 6500IFS=$as_save_IFS 6501 6502fi 6503fi 6504AR=$ac_cv_prog_AR 6505if test -n "$AR"; then 6506 { echo "$as_me:$LINENO: result: $AR" >&5 6507echo "${ECHO_T}$AR" >&6; } 6508else 6509 { echo "$as_me:$LINENO: result: no" >&5 6510echo "${ECHO_T}no" >&6; } 6511fi 6512 6513 6514fi 6515if test -z "$ac_cv_prog_AR"; then 6516 ac_ct_AR=$AR 6517 # Extract the first word of "ar", so it can be a program name with args. 6518set dummy ar; ac_word=$2 6519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6521if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6522 echo $ECHO_N "(cached) $ECHO_C" >&6 6523else 6524 if test -n "$ac_ct_AR"; then 6525 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6526else 6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6528for as_dir in $PATH 6529do 6530 IFS=$as_save_IFS 6531 test -z "$as_dir" && as_dir=. 6532 for ac_exec_ext in '' $ac_executable_extensions; do 6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6534 ac_cv_prog_ac_ct_AR="ar" 6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6536 break 2 6537 fi 6538done 6539done 6540IFS=$as_save_IFS 6541 6542fi 6543fi 6544ac_ct_AR=$ac_cv_prog_ac_ct_AR 6545if test -n "$ac_ct_AR"; then 6546 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6547echo "${ECHO_T}$ac_ct_AR" >&6; } 6548else 6549 { echo "$as_me:$LINENO: result: no" >&5 6550echo "${ECHO_T}no" >&6; } 6551fi 6552 6553 if test "x$ac_ct_AR" = x; then 6554 AR="false" 6555 else 6556 case $cross_compiling:$ac_tool_warned in 6557yes:) 6558{ echo "$as_me:$LINENO: 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." >&5 6561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6562whose name does not start with the host triplet. If you think this 6563configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6564ac_tool_warned=yes ;; 6565esac 6566 AR=$ac_ct_AR 6567 fi 6568else 6569 AR="$ac_cv_prog_AR" 6570fi 6571 6572if test -n "$ac_tool_prefix"; then 6573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6574set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6577if test "${ac_cv_prog_RANLIB+set}" = set; then 6578 echo $ECHO_N "(cached) $ECHO_C" >&6 6579else 6580 if test -n "$RANLIB"; then 6581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594done 6595done 6596IFS=$as_save_IFS 6597 6598fi 6599fi 6600RANLIB=$ac_cv_prog_RANLIB 6601if test -n "$RANLIB"; then 6602 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6603echo "${ECHO_T}$RANLIB" >&6; } 6604else 6605 { echo "$as_me:$LINENO: result: no" >&5 6606echo "${ECHO_T}no" >&6; } 6607fi 6608 6609 6610fi 6611if test -z "$ac_cv_prog_RANLIB"; then 6612 ac_ct_RANLIB=$RANLIB 6613 # Extract the first word of "ranlib", so it can be a program name with args. 6614set dummy ranlib; ac_word=$2 6615{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6617if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6618 echo $ECHO_N "(cached) $ECHO_C" >&6 6619else 6620 if test -n "$ac_ct_RANLIB"; then 6621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6630 ac_cv_prog_ac_ct_RANLIB="ranlib" 6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6641if test -n "$ac_ct_RANLIB"; then 6642 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6643echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6644else 6645 { echo "$as_me:$LINENO: result: no" >&5 6646echo "${ECHO_T}no" >&6; } 6647fi 6648 6649 if test "x$ac_ct_RANLIB" = x; then 6650 RANLIB=":" 6651 else 6652 case $cross_compiling:$ac_tool_warned in 6653yes:) 6654{ echo "$as_me:$LINENO: 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." >&5 6657echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6658whose name does not start with the host triplet. If you think this 6659configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6660ac_tool_warned=yes ;; 6661esac 6662 RANLIB=$ac_ct_RANLIB 6663 fi 6664else 6665 RANLIB="$ac_cv_prog_RANLIB" 6666fi 6667 6668if test -n "$ac_tool_prefix"; then 6669 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6670set dummy ${ac_tool_prefix}strip; ac_word=$2 6671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6673if test "${ac_cv_prog_STRIP+set}" = set; then 6674 echo $ECHO_N "(cached) $ECHO_C" >&6 6675else 6676 if test -n "$STRIP"; then 6677 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6678else 6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680for as_dir in $PATH 6681do 6682 IFS=$as_save_IFS 6683 test -z "$as_dir" && as_dir=. 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6686 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690done 6691done 6692IFS=$as_save_IFS 6693 6694fi 6695fi 6696STRIP=$ac_cv_prog_STRIP 6697if test -n "$STRIP"; then 6698 { echo "$as_me:$LINENO: result: $STRIP" >&5 6699echo "${ECHO_T}$STRIP" >&6; } 6700else 6701 { echo "$as_me:$LINENO: result: no" >&5 6702echo "${ECHO_T}no" >&6; } 6703fi 6704 6705 6706fi 6707if test -z "$ac_cv_prog_STRIP"; then 6708 ac_ct_STRIP=$STRIP 6709 # Extract the first word of "strip", so it can be a program name with args. 6710set dummy strip; ac_word=$2 6711{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6713if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6714 echo $ECHO_N "(cached) $ECHO_C" >&6 6715else 6716 if test -n "$ac_ct_STRIP"; then 6717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6718else 6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6720for as_dir in $PATH 6721do 6722 IFS=$as_save_IFS 6723 test -z "$as_dir" && as_dir=. 6724 for ac_exec_ext in '' $ac_executable_extensions; do 6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6726 ac_cv_prog_ac_ct_STRIP="strip" 6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6728 break 2 6729 fi 6730done 6731done 6732IFS=$as_save_IFS 6733 6734fi 6735fi 6736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6737if test -n "$ac_ct_STRIP"; then 6738 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6739echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6740else 6741 { echo "$as_me:$LINENO: result: no" >&5 6742echo "${ECHO_T}no" >&6; } 6743fi 6744 6745 if test "x$ac_ct_STRIP" = x; then 6746 STRIP=":" 6747 else 6748 case $cross_compiling:$ac_tool_warned in 6749yes:) 6750{ echo "$as_me:$LINENO: 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." >&5 6753echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6754whose name does not start with the host triplet. If you think this 6755configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6756ac_tool_warned=yes ;; 6757esac 6758 STRIP=$ac_ct_STRIP 6759 fi 6760else 6761 STRIP="$ac_cv_prog_STRIP" 6762fi 6763 6764 6765old_CC="$CC" 6766old_CFLAGS="$CFLAGS" 6767 6768# Set sane defaults for various variables 6769test -z "$AR" && AR=ar 6770test -z "$AR_FLAGS" && AR_FLAGS=cru 6771test -z "$AS" && AS=as 6772test -z "$CC" && CC=cc 6773test -z "$LTCC" && LTCC=$CC 6774test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6775test -z "$DLLTOOL" && DLLTOOL=dlltool 6776test -z "$LD" && LD=ld 6777test -z "$LN_S" && LN_S="ln -s" 6778test -z "$MAGIC_CMD" && MAGIC_CMD=file 6779test -z "$NM" && NM=nm 6780test -z "$SED" && SED=sed 6781test -z "$OBJDUMP" && OBJDUMP=objdump 6782test -z "$RANLIB" && RANLIB=: 6783test -z "$STRIP" && STRIP=: 6784test -z "$ac_objext" && ac_objext=o 6785 6786# Determine commands to create old-style static archives. 6787old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6788old_postinstall_cmds='chmod 644 $oldlib' 6789old_postuninstall_cmds= 6790 6791if test -n "$RANLIB"; then 6792 case $host_os in 6793 openbsd*) 6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6795 ;; 6796 *) 6797 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6798 ;; 6799 esac 6800 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6801fi 6802 6803for cc_temp in $compiler""; do 6804 case $cc_temp in 6805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6807 \-*) ;; 6808 *) break;; 6809 esac 6810done 6811cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6812 6813 6814# Only perform the check for file, if the check method requires it 6815case $deplibs_check_method in 6816file_magic*) 6817 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6818 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6819echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6820if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6821 echo $ECHO_N "(cached) $ECHO_C" >&6 6822else 6823 case $MAGIC_CMD in 6824[\\/*] | ?:[\\/]*) 6825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6826 ;; 6827*) 6828 lt_save_MAGIC_CMD="$MAGIC_CMD" 6829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6831 for ac_dir in $ac_dummy; do 6832 IFS="$lt_save_ifs" 6833 test -z "$ac_dir" && ac_dir=. 6834 if test -f $ac_dir/${ac_tool_prefix}file; then 6835 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6836 if test -n "$file_magic_test_file"; then 6837 case $deplibs_check_method in 6838 "file_magic "*) 6839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6842 $EGREP "$file_magic_regex" > /dev/null; then 6843 : 6844 else 6845 cat <<EOF 1>&2 6846 6847*** Warning: the command libtool uses to detect shared libraries, 6848*** $file_magic_cmd, produces output that libtool cannot recognize. 6849*** The result is that libtool may fail to recognize shared libraries 6850*** as such. This will affect the creation of libtool libraries that 6851*** depend on shared libraries, but programs linked with such libtool 6852*** libraries will work regardless of this problem. Nevertheless, you 6853*** may want to report the problem to your system manager and/or to 6854*** bug-libtool@gnu.org 6855 6856EOF 6857 fi ;; 6858 esac 6859 fi 6860 break 6861 fi 6862 done 6863 IFS="$lt_save_ifs" 6864 MAGIC_CMD="$lt_save_MAGIC_CMD" 6865 ;; 6866esac 6867fi 6868 6869MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6870if test -n "$MAGIC_CMD"; then 6871 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6872echo "${ECHO_T}$MAGIC_CMD" >&6; } 6873else 6874 { echo "$as_me:$LINENO: result: no" >&5 6875echo "${ECHO_T}no" >&6; } 6876fi 6877 6878if test -z "$lt_cv_path_MAGIC_CMD"; then 6879 if test -n "$ac_tool_prefix"; then 6880 { echo "$as_me:$LINENO: checking for file" >&5 6881echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6882if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6883 echo $ECHO_N "(cached) $ECHO_C" >&6 6884else 6885 case $MAGIC_CMD in 6886[\\/*] | ?:[\\/]*) 6887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6888 ;; 6889*) 6890 lt_save_MAGIC_CMD="$MAGIC_CMD" 6891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6893 for ac_dir in $ac_dummy; do 6894 IFS="$lt_save_ifs" 6895 test -z "$ac_dir" && ac_dir=. 6896 if test -f $ac_dir/file; then 6897 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6898 if test -n "$file_magic_test_file"; then 6899 case $deplibs_check_method in 6900 "file_magic "*) 6901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6904 $EGREP "$file_magic_regex" > /dev/null; then 6905 : 6906 else 6907 cat <<EOF 1>&2 6908 6909*** Warning: the command libtool uses to detect shared libraries, 6910*** $file_magic_cmd, produces output that libtool cannot recognize. 6911*** The result is that libtool may fail to recognize shared libraries 6912*** as such. This will affect the creation of libtool libraries that 6913*** depend on shared libraries, but programs linked with such libtool 6914*** libraries will work regardless of this problem. Nevertheless, you 6915*** may want to report the problem to your system manager and/or to 6916*** bug-libtool@gnu.org 6917 6918EOF 6919 fi ;; 6920 esac 6921 fi 6922 break 6923 fi 6924 done 6925 IFS="$lt_save_ifs" 6926 MAGIC_CMD="$lt_save_MAGIC_CMD" 6927 ;; 6928esac 6929fi 6930 6931MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6932if test -n "$MAGIC_CMD"; then 6933 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6934echo "${ECHO_T}$MAGIC_CMD" >&6; } 6935else 6936 { echo "$as_me:$LINENO: result: no" >&5 6937echo "${ECHO_T}no" >&6; } 6938fi 6939 6940 else 6941 MAGIC_CMD=: 6942 fi 6943fi 6944 6945 fi 6946 ;; 6947esac 6948 6949enable_dlopen=no 6950enable_win32_dll=no 6951 6952# Check whether --enable-libtool-lock was given. 6953if test "${enable_libtool_lock+set}" = set; then 6954 enableval=$enable_libtool_lock; 6955fi 6956 6957test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6958 6959 6960# Check whether --with-pic was given. 6961if test "${with_pic+set}" = set; then 6962 withval=$with_pic; pic_mode="$withval" 6963else 6964 pic_mode=default 6965fi 6966 6967test -z "$pic_mode" && pic_mode=default 6968 6969# Use C for the default configuration in the libtool script 6970tagname= 6971lt_save_CC="$CC" 6972ac_ext=c 6973ac_cpp='$CPP $CPPFLAGS' 6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6976ac_compiler_gnu=$ac_cv_c_compiler_gnu 6977 6978 6979# Source file extension for C test sources. 6980ac_ext=c 6981 6982# Object file extension for compiled C test sources. 6983objext=o 6984objext=$objext 6985 6986# Code to be used in simple compile tests 6987lt_simple_compile_test_code="int some_variable = 0;\n" 6988 6989# Code to be used in simple link tests 6990lt_simple_link_test_code='int main(){return(0);}\n' 6991 6992 6993# If no C compiler was specified, use CC. 6994LTCC=${LTCC-"$CC"} 6995 6996# If no C compiler flags were specified, use CFLAGS. 6997LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6998 6999# Allow CC to be a program name with arguments. 7000compiler=$CC 7001 7002 7003# save warnings/boilerplate of simple test code 7004ac_outfile=conftest.$ac_objext 7005printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7006eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7007_lt_compiler_boilerplate=`cat conftest.err` 7008$rm conftest* 7009 7010ac_outfile=conftest.$ac_objext 7011printf "$lt_simple_link_test_code" >conftest.$ac_ext 7012eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7013_lt_linker_boilerplate=`cat conftest.err` 7014$rm conftest* 7015 7016 7017 7018lt_prog_compiler_no_builtin_flag= 7019 7020if test "$GCC" = yes; then 7021 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7022 7023 7024{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7025echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7026if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7027 echo $ECHO_N "(cached) $ECHO_C" >&6 7028else 7029 lt_cv_prog_compiler_rtti_exceptions=no 7030 ac_outfile=conftest.$ac_objext 7031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7032 lt_compiler_flag="-fno-rtti -fno-exceptions" 7033 # Insert the option either (1) after the last *FLAGS variable, or 7034 # (2) before a word containing "conftest.", or (3) at the end. 7035 # Note that $ac_compile itself does not contain backslashes and begins 7036 # with a dollar sign (not a hyphen), so the echo should work correctly. 7037 # The option is referenced via a variable to avoid confusing sed. 7038 lt_compile=`echo "$ac_compile" | $SED \ 7039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7041 -e 's:$: $lt_compiler_flag:'` 7042 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7043 (eval "$lt_compile" 2>conftest.err) 7044 ac_status=$? 7045 cat conftest.err >&5 7046 echo "$as_me:__oline__: \$? = $ac_status" >&5 7047 if (exit $ac_status) && test -s "$ac_outfile"; then 7048 # The compiler can only warn and ignore the option if not recognized 7049 # So say no if there are warnings other than the usual output. 7050 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7053 lt_cv_prog_compiler_rtti_exceptions=yes 7054 fi 7055 fi 7056 $rm conftest* 7057 7058fi 7059{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7060echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7061 7062if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7063 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7064else 7065 : 7066fi 7067 7068fi 7069 7070lt_prog_compiler_wl= 7071lt_prog_compiler_pic= 7072lt_prog_compiler_static= 7073 7074{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7075echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7076 7077 if test "$GCC" = yes; then 7078 lt_prog_compiler_wl='-Wl,' 7079 lt_prog_compiler_static='-static' 7080 7081 case $host_os in 7082 aix*) 7083 # All AIX code is PIC. 7084 if test "$host_cpu" = ia64; then 7085 # AIX 5 now supports IA64 processor 7086 lt_prog_compiler_static='-Bstatic' 7087 fi 7088 ;; 7089 7090 amigaos*) 7091 # FIXME: we need at least 68020 code to build shared libraries, but 7092 # adding the `-m68020' flag to GCC prevents building anything better, 7093 # like `-m68040'. 7094 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7095 ;; 7096 7097 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7098 # PIC is the default for these OSes. 7099 ;; 7100 7101 mingw* | pw32* | os2*) 7102 # This hack is so that the source file can tell whether it is being 7103 # built for inclusion in a dll (and should export symbols for example). 7104 lt_prog_compiler_pic='-DDLL_EXPORT' 7105 ;; 7106 7107 darwin* | rhapsody*) 7108 # PIC is the default on this platform 7109 # Common symbols not allowed in MH_DYLIB files 7110 lt_prog_compiler_pic='-fno-common' 7111 ;; 7112 7113 interix3*) 7114 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7115 # Instead, we relocate shared libraries at runtime. 7116 ;; 7117 7118 msdosdjgpp*) 7119 # Just because we use GCC doesn't mean we suddenly get shared libraries 7120 # on systems that don't support them. 7121 lt_prog_compiler_can_build_shared=no 7122 enable_shared=no 7123 ;; 7124 7125 sysv4*MP*) 7126 if test -d /usr/nec; then 7127 lt_prog_compiler_pic=-Kconform_pic 7128 fi 7129 ;; 7130 7131 hpux*) 7132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7133 # not for PA HP-UX. 7134 case $host_cpu in 7135 hppa*64*|ia64*) 7136 # +Z the default 7137 ;; 7138 *) 7139 lt_prog_compiler_pic='-fPIC' 7140 ;; 7141 esac 7142 ;; 7143 7144 *) 7145 lt_prog_compiler_pic='-fPIC' 7146 ;; 7147 esac 7148 else 7149 # PORTME Check for flag to pass linker flags through the system compiler. 7150 case $host_os in 7151 aix*) 7152 lt_prog_compiler_wl='-Wl,' 7153 if test "$host_cpu" = ia64; then 7154 # AIX 5 now supports IA64 processor 7155 lt_prog_compiler_static='-Bstatic' 7156 else 7157 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7158 fi 7159 ;; 7160 darwin*) 7161 # PIC is the default on this platform 7162 # Common symbols not allowed in MH_DYLIB files 7163 case $cc_basename in 7164 xlc*) 7165 lt_prog_compiler_pic='-qnocommon' 7166 lt_prog_compiler_wl='-Wl,' 7167 ;; 7168 esac 7169 ;; 7170 7171 mingw* | pw32* | os2*) 7172 # This hack is so that the source file can tell whether it is being 7173 # built for inclusion in a dll (and should export symbols for example). 7174 lt_prog_compiler_pic='-DDLL_EXPORT' 7175 ;; 7176 7177 hpux9* | hpux10* | hpux11*) 7178 lt_prog_compiler_wl='-Wl,' 7179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7180 # not for PA HP-UX. 7181 case $host_cpu in 7182 hppa*64*|ia64*) 7183 # +Z the default 7184 ;; 7185 *) 7186 lt_prog_compiler_pic='+Z' 7187 ;; 7188 esac 7189 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7190 lt_prog_compiler_static='${wl}-a ${wl}archive' 7191 ;; 7192 7193 irix5* | irix6* | nonstopux*) 7194 lt_prog_compiler_wl='-Wl,' 7195 # PIC (with -KPIC) is the default. 7196 lt_prog_compiler_static='-non_shared' 7197 ;; 7198 7199 newsos6) 7200 lt_prog_compiler_pic='-KPIC' 7201 lt_prog_compiler_static='-Bstatic' 7202 ;; 7203 7204 linux* | k*bsd*-gnu) 7205 case $cc_basename in 7206 icc* | ecc*) 7207 lt_prog_compiler_wl='-Wl,' 7208 lt_prog_compiler_pic='-KPIC' 7209 lt_prog_compiler_static='-static' 7210 ;; 7211 pgcc* | pgf77* | pgf90* | pgf95*) 7212 # Portland Group compilers (*not* the Pentium gcc compiler, 7213 # which looks to be a dead project) 7214 lt_prog_compiler_wl='-Wl,' 7215 lt_prog_compiler_pic='-fpic' 7216 lt_prog_compiler_static='-Bstatic' 7217 ;; 7218 ccc*) 7219 lt_prog_compiler_wl='-Wl,' 7220 # All Alpha code is PIC. 7221 lt_prog_compiler_static='-non_shared' 7222 ;; 7223 esac 7224 ;; 7225 7226 osf3* | osf4* | osf5*) 7227 lt_prog_compiler_wl='-Wl,' 7228 # All OSF/1 code is PIC. 7229 lt_prog_compiler_static='-non_shared' 7230 ;; 7231 7232 solaris*) 7233 lt_prog_compiler_pic='-KPIC' 7234 lt_prog_compiler_static='-Bstatic' 7235 case $cc_basename in 7236 f77* | f90* | f95*) 7237 lt_prog_compiler_wl='-Qoption ld ';; 7238 *) 7239 lt_prog_compiler_wl='-Wl,';; 7240 esac 7241 ;; 7242 7243 sunos4*) 7244 lt_prog_compiler_wl='-Qoption ld ' 7245 lt_prog_compiler_pic='-PIC' 7246 lt_prog_compiler_static='-Bstatic' 7247 ;; 7248 7249 sysv4 | sysv4.2uw2* | sysv4.3*) 7250 lt_prog_compiler_wl='-Wl,' 7251 lt_prog_compiler_pic='-KPIC' 7252 lt_prog_compiler_static='-Bstatic' 7253 ;; 7254 7255 sysv4*MP*) 7256 if test -d /usr/nec ;then 7257 lt_prog_compiler_pic='-Kconform_pic' 7258 lt_prog_compiler_static='-Bstatic' 7259 fi 7260 ;; 7261 7262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7263 lt_prog_compiler_wl='-Wl,' 7264 lt_prog_compiler_pic='-KPIC' 7265 lt_prog_compiler_static='-Bstatic' 7266 ;; 7267 7268 unicos*) 7269 lt_prog_compiler_wl='-Wl,' 7270 lt_prog_compiler_can_build_shared=no 7271 ;; 7272 7273 uts4*) 7274 lt_prog_compiler_pic='-pic' 7275 lt_prog_compiler_static='-Bstatic' 7276 ;; 7277 7278 *) 7279 lt_prog_compiler_can_build_shared=no 7280 ;; 7281 esac 7282 fi 7283 7284{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7285echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7286 7287# 7288# Check to make sure the PIC flag actually works. 7289# 7290if test -n "$lt_prog_compiler_pic"; then 7291 7292{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7293echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7294if test "${lt_prog_compiler_pic_works+set}" = set; then 7295 echo $ECHO_N "(cached) $ECHO_C" >&6 7296else 7297 lt_prog_compiler_pic_works=no 7298 ac_outfile=conftest.$ac_objext 7299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7300 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7301 # Insert the option either (1) after the last *FLAGS variable, or 7302 # (2) before a word containing "conftest.", or (3) at the end. 7303 # Note that $ac_compile itself does not contain backslashes and begins 7304 # with a dollar sign (not a hyphen), so the echo should work correctly. 7305 # The option is referenced via a variable to avoid confusing sed. 7306 lt_compile=`echo "$ac_compile" | $SED \ 7307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7309 -e 's:$: $lt_compiler_flag:'` 7310 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7311 (eval "$lt_compile" 2>conftest.err) 7312 ac_status=$? 7313 cat conftest.err >&5 7314 echo "$as_me:__oline__: \$? = $ac_status" >&5 7315 if (exit $ac_status) && test -s "$ac_outfile"; then 7316 # The compiler can only warn and ignore the option if not recognized 7317 # So say no if there are warnings other than the usual output. 7318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7321 lt_prog_compiler_pic_works=yes 7322 fi 7323 fi 7324 $rm conftest* 7325 7326fi 7327{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7328echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7329 7330if test x"$lt_prog_compiler_pic_works" = xyes; then 7331 case $lt_prog_compiler_pic in 7332 "" | " "*) ;; 7333 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7334 esac 7335else 7336 lt_prog_compiler_pic= 7337 lt_prog_compiler_can_build_shared=no 7338fi 7339 7340fi 7341case $host_os in 7342 # For platforms which do not support PIC, -DPIC is meaningless: 7343 *djgpp*) 7344 lt_prog_compiler_pic= 7345 ;; 7346 *) 7347 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7348 ;; 7349esac 7350 7351# 7352# Check to make sure the static flag actually works. 7353# 7354wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7355{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7356echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7357if test "${lt_prog_compiler_static_works+set}" = set; then 7358 echo $ECHO_N "(cached) $ECHO_C" >&6 7359else 7360 lt_prog_compiler_static_works=no 7361 save_LDFLAGS="$LDFLAGS" 7362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7363 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7365 # The linker can only warn and ignore the option if not recognized 7366 # So say no if there are warnings 7367 if test -s conftest.err; then 7368 # Append any errors to the config.log. 7369 cat conftest.err 1>&5 7370 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7372 if diff conftest.exp conftest.er2 >/dev/null; then 7373 lt_prog_compiler_static_works=yes 7374 fi 7375 else 7376 lt_prog_compiler_static_works=yes 7377 fi 7378 fi 7379 $rm conftest* 7380 LDFLAGS="$save_LDFLAGS" 7381 7382fi 7383{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7384echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7385 7386if test x"$lt_prog_compiler_static_works" = xyes; then 7387 : 7388else 7389 lt_prog_compiler_static= 7390fi 7391 7392 7393{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7394echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7395if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7396 echo $ECHO_N "(cached) $ECHO_C" >&6 7397else 7398 lt_cv_prog_compiler_c_o=no 7399 $rm -r conftest 2>/dev/null 7400 mkdir conftest 7401 cd conftest 7402 mkdir out 7403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7404 7405 lt_compiler_flag="-o out/conftest2.$ac_objext" 7406 # Insert the option either (1) after the last *FLAGS variable, or 7407 # (2) before a word containing "conftest.", or (3) at the end. 7408 # Note that $ac_compile itself does not contain backslashes and begins 7409 # with a dollar sign (not a hyphen), so the echo should work correctly. 7410 lt_compile=`echo "$ac_compile" | $SED \ 7411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7413 -e 's:$: $lt_compiler_flag:'` 7414 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 7415 (eval "$lt_compile" 2>out/conftest.err) 7416 ac_status=$? 7417 cat out/conftest.err >&5 7418 echo "$as_me:__oline__: \$? = $ac_status" >&5 7419 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7420 then 7421 # The compiler can only warn and ignore the option if not recognized 7422 # So say no if there are warnings 7423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7426 lt_cv_prog_compiler_c_o=yes 7427 fi 7428 fi 7429 chmod u+w . 2>&5 7430 $rm conftest* 7431 # SGI C++ compiler will create directory out/ii_files/ for 7432 # template instantiation 7433 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7434 $rm out/* && rmdir out 7435 cd .. 7436 rmdir conftest 7437 $rm conftest* 7438 7439fi 7440{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7441echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7442 7443 7444hard_links="nottested" 7445if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7446 # do not overwrite the value of need_locks provided by the user 7447 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7448echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7449 hard_links=yes 7450 $rm conftest* 7451 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7452 touch conftest.a 7453 ln conftest.a conftest.b 2>&5 || hard_links=no 7454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7455 { echo "$as_me:$LINENO: result: $hard_links" >&5 7456echo "${ECHO_T}$hard_links" >&6; } 7457 if test "$hard_links" = no; then 7458 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7459echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7460 need_locks=warn 7461 fi 7462else 7463 need_locks=no 7464fi 7465 7466{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7467echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7468 7469 runpath_var= 7470 allow_undefined_flag= 7471 enable_shared_with_static_runtimes=no 7472 archive_cmds= 7473 archive_expsym_cmds= 7474 old_archive_From_new_cmds= 7475 old_archive_from_expsyms_cmds= 7476 export_dynamic_flag_spec= 7477 whole_archive_flag_spec= 7478 thread_safe_flag_spec= 7479 hardcode_libdir_flag_spec= 7480 hardcode_libdir_flag_spec_ld= 7481 hardcode_libdir_separator= 7482 hardcode_direct=no 7483 hardcode_minus_L=no 7484 hardcode_shlibpath_var=unsupported 7485 link_all_deplibs=unknown 7486 hardcode_automatic=no 7487 module_cmds= 7488 module_expsym_cmds= 7489 always_export_symbols=no 7490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7491 # include_expsyms should be a list of space-separated symbols to be *always* 7492 # included in the symbol list 7493 include_expsyms= 7494 # exclude_expsyms can be an extended regexp of symbols to exclude 7495 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7497 # as well as any symbol that contains `d'. 7498 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7500 # platforms (ab)use it in PIC code, but their linkers get confused if 7501 # the symbol is explicitly referenced. Since portable code cannot 7502 # rely on this symbol name, it's probably fine to never include it in 7503 # preloaded symbol tables. 7504 extract_expsyms_cmds= 7505 # Just being paranoid about ensuring that cc_basename is set. 7506 for cc_temp in $compiler""; do 7507 case $cc_temp in 7508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7510 \-*) ;; 7511 *) break;; 7512 esac 7513done 7514cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7515 7516 case $host_os in 7517 cygwin* | mingw* | pw32*) 7518 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7519 # When not using gcc, we currently assume that we are using 7520 # Microsoft Visual C++. 7521 if test "$GCC" != yes; then 7522 with_gnu_ld=no 7523 fi 7524 ;; 7525 interix*) 7526 # we just hope/assume this is gcc and not c89 (= MSVC++) 7527 with_gnu_ld=yes 7528 ;; 7529 openbsd*) 7530 with_gnu_ld=no 7531 ;; 7532 esac 7533 7534 ld_shlibs=yes 7535 if test "$with_gnu_ld" = yes; then 7536 # If archive_cmds runs LD, not CC, wlarc should be empty 7537 wlarc='${wl}' 7538 7539 # Set some defaults for GNU ld with shared library support. These 7540 # are reset later if shared libraries are not supported. Putting them 7541 # here allows them to be overridden if necessary. 7542 runpath_var=LD_RUN_PATH 7543 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7544 export_dynamic_flag_spec='${wl}--export-dynamic' 7545 # ancient GNU ld didn't support --whole-archive et. al. 7546 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7547 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7548 else 7549 whole_archive_flag_spec= 7550 fi 7551 supports_anon_versioning=no 7552 case `$LD -v 2>/dev/null` in 7553 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7554 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7555 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7556 *\ 2.11.*) ;; # other 2.11 versions 7557 *) supports_anon_versioning=yes ;; 7558 esac 7559 7560 # See if GNU ld supports shared libraries. 7561 case $host_os in 7562 aix3* | aix4* | aix5*) 7563 # On AIX/PPC, the GNU linker is very broken 7564 if test "$host_cpu" != ia64; then 7565 ld_shlibs=no 7566 cat <<EOF 1>&2 7567 7568*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7569*** to be unable to reliably create shared libraries on AIX. 7570*** Therefore, libtool is disabling shared libraries support. If you 7571*** really care for shared libraries, you may want to modify your PATH 7572*** so that a non-GNU linker is found, and then restart. 7573 7574EOF 7575 fi 7576 ;; 7577 7578 amigaos*) 7579 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)' 7580 hardcode_libdir_flag_spec='-L$libdir' 7581 hardcode_minus_L=yes 7582 7583 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7584 # that the semantics of dynamic libraries on AmigaOS, at least up 7585 # to version 4, is to share data among multiple programs linked 7586 # with the same dynamic library. Since this doesn't match the 7587 # behavior of shared libraries on other platforms, we can't use 7588 # them. 7589 ld_shlibs=no 7590 ;; 7591 7592 beos*) 7593 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7594 allow_undefined_flag=unsupported 7595 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7596 # support --undefined. This deserves some investigation. FIXME 7597 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7598 else 7599 ld_shlibs=no 7600 fi 7601 ;; 7602 7603 cygwin* | mingw* | pw32*) 7604 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7605 # as there is no search path for DLLs. 7606 hardcode_libdir_flag_spec='-L$libdir' 7607 allow_undefined_flag=unsupported 7608 always_export_symbols=no 7609 enable_shared_with_static_runtimes=yes 7610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7611 7612 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7614 # If the export-symbols file already is a .def file (1st line 7615 # is EXPORTS), use it as is; otherwise, prepend... 7616 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7617 cp $export_symbols $output_objdir/$soname.def; 7618 else 7619 echo EXPORTS > $output_objdir/$soname.def; 7620 cat $export_symbols >> $output_objdir/$soname.def; 7621 fi~ 7622 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7623 else 7624 ld_shlibs=no 7625 fi 7626 ;; 7627 7628 interix3*) 7629 hardcode_direct=no 7630 hardcode_shlibpath_var=no 7631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7632 export_dynamic_flag_spec='${wl}-E' 7633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7634 # Instead, shared libraries are loaded at an image base (0x10000000 by 7635 # default) and relocated if they conflict, which is a slow very memory 7636 # consuming and fragmenting process. To avoid this, we pick a random, 7637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7638 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7639 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7640 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' 7641 ;; 7642 7643 linux* | k*bsd*-gnu) 7644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7645 tmp_addflag= 7646 case $cc_basename,$host_cpu in 7647 pgcc*) # Portland Group C compiler 7648 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' 7649 tmp_addflag=' $pic_flag' 7650 ;; 7651 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7652 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' 7653 tmp_addflag=' $pic_flag -Mnomain' ;; 7654 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7655 tmp_addflag=' -i_dynamic' ;; 7656 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7657 tmp_addflag=' -i_dynamic -nofor_main' ;; 7658 ifc* | ifort*) # Intel Fortran compiler 7659 tmp_addflag=' -nofor_main' ;; 7660 esac 7661 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7662 7663 if test $supports_anon_versioning = yes; then 7664 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7666 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7667 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7668 fi 7669 link_all_deplibs=no 7670 else 7671 ld_shlibs=no 7672 fi 7673 ;; 7674 7675 netbsd* | netbsdelf*-gnu) 7676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7677 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7678 wlarc= 7679 else 7680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7682 fi 7683 ;; 7684 7685 solaris*) 7686 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7687 ld_shlibs=no 7688 cat <<EOF 1>&2 7689 7690*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7691*** create shared libraries on Solaris systems. Therefore, libtool 7692*** is disabling shared libraries support. We urge you to upgrade GNU 7693*** binutils to release 2.9.1 or newer. Another option is to modify 7694*** your PATH or compiler configuration so that the native linker is 7695*** used, and then restart. 7696 7697EOF 7698 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7701 else 7702 ld_shlibs=no 7703 fi 7704 ;; 7705 7706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7707 case `$LD -v 2>&1` in 7708 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7709 ld_shlibs=no 7710 cat <<_LT_EOF 1>&2 7711 7712*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7713*** reliably create shared libraries on SCO systems. Therefore, libtool 7714*** is disabling shared libraries support. We urge you to upgrade GNU 7715*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7716*** your PATH or compiler configuration so that the native linker is 7717*** used, and then restart. 7718 7719_LT_EOF 7720 ;; 7721 *) 7722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7723 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7726 else 7727 ld_shlibs=no 7728 fi 7729 ;; 7730 esac 7731 ;; 7732 7733 sunos4*) 7734 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7735 wlarc= 7736 hardcode_direct=yes 7737 hardcode_shlibpath_var=no 7738 ;; 7739 7740 *) 7741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7744 else 7745 ld_shlibs=no 7746 fi 7747 ;; 7748 esac 7749 7750 if test "$ld_shlibs" = no; then 7751 runpath_var= 7752 hardcode_libdir_flag_spec= 7753 export_dynamic_flag_spec= 7754 whole_archive_flag_spec= 7755 fi 7756 else 7757 # PORTME fill in a description of your system's linker (not GNU ld) 7758 case $host_os in 7759 aix3*) 7760 allow_undefined_flag=unsupported 7761 always_export_symbols=yes 7762 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' 7763 # Note: this linker hardcodes the directories in LIBPATH if there 7764 # are no directories specified by -L. 7765 hardcode_minus_L=yes 7766 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7767 # Neither direct hardcoding nor static linking is supported with a 7768 # broken collect2. 7769 hardcode_direct=unsupported 7770 fi 7771 ;; 7772 7773 aix4* | aix5*) 7774 if test "$host_cpu" = ia64; then 7775 # On IA64, the linker does run time linking by default, so we don't 7776 # have to do anything special. 7777 aix_use_runtimelinking=no 7778 exp_sym_flag='-Bexport' 7779 no_entry_flag="" 7780 else 7781 # If we're using GNU nm, then we don't want the "-C" option. 7782 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7783 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7784 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' 7785 else 7786 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' 7787 fi 7788 aix_use_runtimelinking=no 7789 7790 # Test if we are trying to use run time linking or normal 7791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7792 # need to do runtime linking. 7793 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7794 for ld_flag in $LDFLAGS; do 7795 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7796 aix_use_runtimelinking=yes 7797 break 7798 fi 7799 done 7800 ;; 7801 esac 7802 7803 exp_sym_flag='-bexport' 7804 no_entry_flag='-bnoentry' 7805 fi 7806 7807 # When large executables or shared objects are built, AIX ld can 7808 # have problems creating the table of contents. If linking a library 7809 # or program results in "error TOC overflow" add -mminimal-toc to 7810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7812 7813 archive_cmds='' 7814 hardcode_direct=yes 7815 hardcode_libdir_separator=':' 7816 link_all_deplibs=yes 7817 7818 if test "$GCC" = yes; then 7819 case $host_os in aix4.[012]|aix4.[012].*) 7820 # We only want to do this on AIX 4.2 and lower, the check 7821 # below for broken collect2 doesn't work under 4.3+ 7822 collect2name=`${CC} -print-prog-name=collect2` 7823 if test -f "$collect2name" && \ 7824 strings "$collect2name" | grep resolve_lib_name >/dev/null 7825 then 7826 # We have reworked collect2 7827 hardcode_direct=yes 7828 else 7829 # We have old collect2 7830 hardcode_direct=unsupported 7831 # It fails to find uninstalled libraries when the uninstalled 7832 # path is not listed in the libpath. Setting hardcode_minus_L 7833 # to unsupported forces relinking 7834 hardcode_minus_L=yes 7835 hardcode_libdir_flag_spec='-L$libdir' 7836 hardcode_libdir_separator= 7837 fi 7838 ;; 7839 esac 7840 shared_flag='-shared' 7841 if test "$aix_use_runtimelinking" = yes; then 7842 shared_flag="$shared_flag "'${wl}-G' 7843 fi 7844 else 7845 # not using gcc 7846 if test "$host_cpu" = ia64; then 7847 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7848 # chokes on -Wl,-G. The following line is correct: 7849 shared_flag='-G' 7850 else 7851 if test "$aix_use_runtimelinking" = yes; then 7852 shared_flag='${wl}-G' 7853 else 7854 shared_flag='${wl}-bM:SRE' 7855 fi 7856 fi 7857 fi 7858 7859 # It seems that -bexpall does not export symbols beginning with 7860 # underscore (_), so it is better to generate a list of symbols to export. 7861 always_export_symbols=yes 7862 if test "$aix_use_runtimelinking" = yes; then 7863 # Warning - without using the other runtime loading flags (-brtl), 7864 # -berok will link without error, but may produce a broken library. 7865 allow_undefined_flag='-berok' 7866 # Determine the default libpath from the value encoded in an empty executable. 7867 cat >conftest.$ac_ext <<_ACEOF 7868/* confdefs.h. */ 7869_ACEOF 7870cat confdefs.h >>conftest.$ac_ext 7871cat >>conftest.$ac_ext <<_ACEOF 7872/* end confdefs.h. */ 7873 7874int 7875main () 7876{ 7877 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882rm -f conftest.$ac_objext conftest$ac_exeext 7883if { (ac_try="$ac_link" 7884case "(($ac_try" in 7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7886 *) ac_try_echo=$ac_try;; 7887esac 7888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7889 (eval "$ac_link") 2>conftest.er1 7890 ac_status=$? 7891 grep -v '^ *+' conftest.er1 >conftest.err 7892 rm -f conftest.er1 7893 cat conftest.err >&5 7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7895 (exit $ac_status); } && { 7896 test -z "$ac_c_werror_flag" || 7897 test ! -s conftest.err 7898 } && test -s conftest$ac_exeext && 7899 $as_test_x conftest$ac_exeext; then 7900 7901aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7902}'` 7903# Check for a 64-bit object if we didn't find anything. 7904if 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; } 7905}'`; fi 7906else 7907 echo "$as_me: failed program was:" >&5 7908sed 's/^/| /' conftest.$ac_ext >&5 7909 7910 7911fi 7912 7913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7914 conftest$ac_exeext conftest.$ac_ext 7915if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7916 7917 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7918 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" 7919 else 7920 if test "$host_cpu" = ia64; then 7921 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7922 allow_undefined_flag="-z nodefs" 7923 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" 7924 else 7925 # Determine the default libpath from the value encoded in an empty executable. 7926 cat >conftest.$ac_ext <<_ACEOF 7927/* confdefs.h. */ 7928_ACEOF 7929cat confdefs.h >>conftest.$ac_ext 7930cat >>conftest.$ac_ext <<_ACEOF 7931/* end confdefs.h. */ 7932 7933int 7934main () 7935{ 7936 7937 ; 7938 return 0; 7939} 7940_ACEOF 7941rm -f conftest.$ac_objext conftest$ac_exeext 7942if { (ac_try="$ac_link" 7943case "(($ac_try" in 7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7945 *) ac_try_echo=$ac_try;; 7946esac 7947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7948 (eval "$ac_link") 2>conftest.er1 7949 ac_status=$? 7950 grep -v '^ *+' conftest.er1 >conftest.err 7951 rm -f conftest.er1 7952 cat conftest.err >&5 7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 (exit $ac_status); } && { 7955 test -z "$ac_c_werror_flag" || 7956 test ! -s conftest.err 7957 } && test -s conftest$ac_exeext && 7958 $as_test_x conftest$ac_exeext; then 7959 7960aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7961}'` 7962# Check for a 64-bit object if we didn't find anything. 7963if 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; } 7964}'`; fi 7965else 7966 echo "$as_me: failed program was:" >&5 7967sed 's/^/| /' conftest.$ac_ext >&5 7968 7969 7970fi 7971 7972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7973 conftest$ac_exeext conftest.$ac_ext 7974if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7975 7976 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7977 # Warning - without using the other run time loading flags, 7978 # -berok will link without error, but may produce a broken library. 7979 no_undefined_flag=' ${wl}-bernotok' 7980 allow_undefined_flag=' ${wl}-berok' 7981 # Exported symbols can be pulled into shared objects from archives 7982 whole_archive_flag_spec='$convenience' 7983 archive_cmds_need_lc=yes 7984 # This is similar to how AIX traditionally builds its shared libraries. 7985 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' 7986 fi 7987 fi 7988 ;; 7989 7990 amigaos*) 7991 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)' 7992 hardcode_libdir_flag_spec='-L$libdir' 7993 hardcode_minus_L=yes 7994 # see comment about different semantics on the GNU ld section 7995 ld_shlibs=no 7996 ;; 7997 7998 bsdi[45]*) 7999 export_dynamic_flag_spec=-rdynamic 8000 ;; 8001 8002 cygwin* | mingw* | pw32*) 8003 # When not using gcc, we currently assume that we are using 8004 # Microsoft Visual C++. 8005 # hardcode_libdir_flag_spec is actually meaningless, as there is 8006 # no search path for DLLs. 8007 hardcode_libdir_flag_spec=' ' 8008 allow_undefined_flag=unsupported 8009 # Tell ltmain to make .lib files, not .a files. 8010 libext=lib 8011 # Tell ltmain to make .dll files, not .so files. 8012 shrext_cmds=".dll" 8013 # FIXME: Setting linknames here is a bad hack. 8014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8015 # The linker will automatically build a .lib file if we build a DLL. 8016 old_archive_From_new_cmds='true' 8017 # FIXME: Should let the user specify the lib program. 8018 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8019 fix_srcfile_path='`cygpath -w "$srcfile"`' 8020 enable_shared_with_static_runtimes=yes 8021 ;; 8022 8023 darwin* | rhapsody*) 8024 case $host_os in 8025 rhapsody* | darwin1.[012]) 8026 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8027 ;; 8028 *) # Darwin 1.3 on 8029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8030 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8031 else 8032 case ${MACOSX_DEPLOYMENT_TARGET} in 8033 10.[012]) 8034 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8035 ;; 8036 10.*) 8037 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8038 ;; 8039 esac 8040 fi 8041 ;; 8042 esac 8043 archive_cmds_need_lc=no 8044 hardcode_direct=no 8045 hardcode_automatic=yes 8046 hardcode_shlibpath_var=unsupported 8047 whole_archive_flag_spec='' 8048 link_all_deplibs=yes 8049 if test "$GCC" = yes ; then 8050 output_verbose_link_cmd='echo' 8051 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8052 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8054 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}' 8055 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}' 8056 else 8057 case $cc_basename in 8058 xlc*) 8059 output_verbose_link_cmd='echo' 8060 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8061 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8063 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}' 8064 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}' 8065 ;; 8066 *) 8067 ld_shlibs=no 8068 ;; 8069 esac 8070 fi 8071 ;; 8072 8073 dgux*) 8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8075 hardcode_libdir_flag_spec='-L$libdir' 8076 hardcode_shlibpath_var=no 8077 ;; 8078 8079 freebsd1*) 8080 ld_shlibs=no 8081 ;; 8082 8083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8084 # support. Future versions do this automatically, but an explicit c++rt0.o 8085 # does not break anything, and helps significantly (at the cost of a little 8086 # extra space). 8087 freebsd2.2*) 8088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8089 hardcode_libdir_flag_spec='-R$libdir' 8090 hardcode_direct=yes 8091 hardcode_shlibpath_var=no 8092 ;; 8093 8094 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8095 freebsd2*) 8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8097 hardcode_direct=yes 8098 hardcode_minus_L=yes 8099 hardcode_shlibpath_var=no 8100 ;; 8101 8102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8103 freebsd* | dragonfly*) 8104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8105 hardcode_libdir_flag_spec='-R$libdir' 8106 hardcode_direct=yes 8107 hardcode_shlibpath_var=no 8108 ;; 8109 8110 hpux9*) 8111 if test "$GCC" = yes; then 8112 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' 8113 else 8114 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' 8115 fi 8116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8117 hardcode_libdir_separator=: 8118 hardcode_direct=yes 8119 8120 # hardcode_minus_L: Not really in the search PATH, 8121 # but as the default location of the library. 8122 hardcode_minus_L=yes 8123 export_dynamic_flag_spec='${wl}-E' 8124 ;; 8125 8126 hpux10*) 8127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8129 else 8130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8131 fi 8132 if test "$with_gnu_ld" = no; then 8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8134 hardcode_libdir_separator=: 8135 8136 hardcode_direct=yes 8137 export_dynamic_flag_spec='${wl}-E' 8138 8139 # hardcode_minus_L: Not really in the search PATH, 8140 # but as the default location of the library. 8141 hardcode_minus_L=yes 8142 fi 8143 ;; 8144 8145 hpux11*) 8146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8147 case $host_cpu in 8148 hppa*64*) 8149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8150 ;; 8151 ia64*) 8152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8153 ;; 8154 *) 8155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8156 ;; 8157 esac 8158 else 8159 case $host_cpu in 8160 hppa*64*) 8161 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8162 ;; 8163 ia64*) 8164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8165 ;; 8166 *) 8167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8168 ;; 8169 esac 8170 fi 8171 if test "$with_gnu_ld" = no; then 8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8173 hardcode_libdir_separator=: 8174 8175 case $host_cpu in 8176 hppa*64*|ia64*) 8177 hardcode_libdir_flag_spec_ld='+b $libdir' 8178 hardcode_direct=no 8179 hardcode_shlibpath_var=no 8180 ;; 8181 *) 8182 hardcode_direct=yes 8183 export_dynamic_flag_spec='${wl}-E' 8184 8185 # hardcode_minus_L: Not really in the search PATH, 8186 # but as the default location of the library. 8187 hardcode_minus_L=yes 8188 ;; 8189 esac 8190 fi 8191 ;; 8192 8193 irix5* | irix6* | nonstopux*) 8194 if test "$GCC" = yes; then 8195 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' 8196 else 8197 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' 8198 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8199 fi 8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8201 hardcode_libdir_separator=: 8202 link_all_deplibs=yes 8203 ;; 8204 8205 netbsd* | netbsdelf*-gnu) 8206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8208 else 8209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8210 fi 8211 hardcode_libdir_flag_spec='-R$libdir' 8212 hardcode_direct=yes 8213 hardcode_shlibpath_var=no 8214 ;; 8215 8216 newsos6) 8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8218 hardcode_direct=yes 8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8220 hardcode_libdir_separator=: 8221 hardcode_shlibpath_var=no 8222 ;; 8223 8224 openbsd*) 8225 hardcode_direct=yes 8226 hardcode_shlibpath_var=no 8227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8229 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8231 export_dynamic_flag_spec='${wl}-E' 8232 else 8233 case $host_os in 8234 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8236 hardcode_libdir_flag_spec='-R$libdir' 8237 ;; 8238 *) 8239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8241 ;; 8242 esac 8243 fi 8244 ;; 8245 8246 os2*) 8247 hardcode_libdir_flag_spec='-L$libdir' 8248 hardcode_minus_L=yes 8249 allow_undefined_flag=unsupported 8250 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' 8251 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8252 ;; 8253 8254 osf3*) 8255 if test "$GCC" = yes; then 8256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8257 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' 8258 else 8259 allow_undefined_flag=' -expect_unresolved \*' 8260 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' 8261 fi 8262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8263 hardcode_libdir_separator=: 8264 ;; 8265 8266 osf4* | osf5*) # as osf3* with the addition of -msym flag 8267 if test "$GCC" = yes; then 8268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8269 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' 8270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8271 else 8272 allow_undefined_flag=' -expect_unresolved \*' 8273 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' 8274 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8275 $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' 8276 8277 # Both c and cxx compiler support -rpath directly 8278 hardcode_libdir_flag_spec='-rpath $libdir' 8279 fi 8280 hardcode_libdir_separator=: 8281 ;; 8282 8283 solaris*) 8284 no_undefined_flag=' -z text' 8285 if test "$GCC" = yes; then 8286 wlarc='${wl}' 8287 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8289 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8290 else 8291 wlarc='' 8292 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8293 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8294 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8295 fi 8296 hardcode_libdir_flag_spec='-R$libdir' 8297 hardcode_shlibpath_var=no 8298 case $host_os in 8299 solaris2.[0-5] | solaris2.[0-5].*) ;; 8300 *) 8301 # The compiler driver will combine linker options so we 8302 # cannot just pass the convience library names through 8303 # without $wl, iff we do not link with $LD. 8304 # Luckily, gcc supports the same syntax we need for Sun Studio. 8305 # Supported since Solaris 2.6 (maybe 2.5.1?) 8306 case $wlarc in 8307 '') 8308 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8309 *) 8310 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' ;; 8311 esac ;; 8312 esac 8313 link_all_deplibs=yes 8314 ;; 8315 8316 sunos4*) 8317 if test "x$host_vendor" = xsequent; then 8318 # Use $CC to link under sequent, because it throws in some extra .o 8319 # files that make .init and .fini sections work. 8320 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8321 else 8322 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8323 fi 8324 hardcode_libdir_flag_spec='-L$libdir' 8325 hardcode_direct=yes 8326 hardcode_minus_L=yes 8327 hardcode_shlibpath_var=no 8328 ;; 8329 8330 sysv4) 8331 case $host_vendor in 8332 sni) 8333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8334 hardcode_direct=yes # is this really true??? 8335 ;; 8336 siemens) 8337 ## LD is ld it makes a PLAMLIB 8338 ## CC just makes a GrossModule. 8339 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8340 reload_cmds='$CC -r -o $output$reload_objs' 8341 hardcode_direct=no 8342 ;; 8343 motorola) 8344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8345 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8346 ;; 8347 esac 8348 runpath_var='LD_RUN_PATH' 8349 hardcode_shlibpath_var=no 8350 ;; 8351 8352 sysv4.3*) 8353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8354 hardcode_shlibpath_var=no 8355 export_dynamic_flag_spec='-Bexport' 8356 ;; 8357 8358 sysv4*MP*) 8359 if test -d /usr/nec; then 8360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8361 hardcode_shlibpath_var=no 8362 runpath_var=LD_RUN_PATH 8363 hardcode_runpath_var=yes 8364 ld_shlibs=yes 8365 fi 8366 ;; 8367 8368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8369 no_undefined_flag='${wl}-z,text' 8370 archive_cmds_need_lc=no 8371 hardcode_shlibpath_var=no 8372 runpath_var='LD_RUN_PATH' 8373 8374 if test "$GCC" = yes; then 8375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8377 else 8378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8380 fi 8381 ;; 8382 8383 sysv5* | sco3.2v5* | sco5v6*) 8384 # Note: We can NOT use -z defs as we might desire, because we do not 8385 # link with -lc, and that would cause any symbols used from libc to 8386 # always be unresolved, which means just about no library would 8387 # ever link correctly. If we're not using GNU ld we use -z text 8388 # though, which does catch some bad symbols but isn't as heavy-handed 8389 # as -z defs. 8390 no_undefined_flag='${wl}-z,text' 8391 allow_undefined_flag='${wl}-z,nodefs' 8392 archive_cmds_need_lc=no 8393 hardcode_shlibpath_var=no 8394 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8395 hardcode_libdir_separator=':' 8396 link_all_deplibs=yes 8397 export_dynamic_flag_spec='${wl}-Bexport' 8398 runpath_var='LD_RUN_PATH' 8399 8400 if test "$GCC" = yes; then 8401 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8403 else 8404 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8406 fi 8407 ;; 8408 8409 uts4*) 8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8411 hardcode_libdir_flag_spec='-L$libdir' 8412 hardcode_shlibpath_var=no 8413 ;; 8414 8415 *) 8416 ld_shlibs=no 8417 ;; 8418 esac 8419 fi 8420 8421{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8422echo "${ECHO_T}$ld_shlibs" >&6; } 8423test "$ld_shlibs" = no && can_build_shared=no 8424 8425# 8426# Do we need to explicitly link libc? 8427# 8428case "x$archive_cmds_need_lc" in 8429x|xyes) 8430 # Assume -lc should be added 8431 archive_cmds_need_lc=yes 8432 8433 if test "$enable_shared" = yes && test "$GCC" = yes; then 8434 case $archive_cmds in 8435 *'~'*) 8436 # FIXME: we may have to deal with multi-command sequences. 8437 ;; 8438 '$CC '*) 8439 # Test whether the compiler implicitly links with -lc since on some 8440 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8441 # to ld, don't add -lc before -lgcc. 8442 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8443echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8444 $rm conftest* 8445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8446 8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8448 (eval $ac_compile) 2>&5 8449 ac_status=$? 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 (exit $ac_status); } 2>conftest.err; then 8452 soname=conftest 8453 lib=conftest 8454 libobjs=conftest.$ac_objext 8455 deplibs= 8456 wl=$lt_prog_compiler_wl 8457 pic_flag=$lt_prog_compiler_pic 8458 compiler_flags=-v 8459 linker_flags=-v 8460 verstring= 8461 output_objdir=. 8462 libname=conftest 8463 lt_save_allow_undefined_flag=$allow_undefined_flag 8464 allow_undefined_flag= 8465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8466 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8467 ac_status=$? 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 (exit $ac_status); } 8470 then 8471 archive_cmds_need_lc=no 8472 else 8473 archive_cmds_need_lc=yes 8474 fi 8475 allow_undefined_flag=$lt_save_allow_undefined_flag 8476 else 8477 cat conftest.err 1>&5 8478 fi 8479 $rm conftest* 8480 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8481echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8482 ;; 8483 esac 8484 fi 8485 ;; 8486esac 8487 8488{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8489echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8490library_names_spec= 8491libname_spec='lib$name' 8492soname_spec= 8493shrext_cmds=".so" 8494postinstall_cmds= 8495postuninstall_cmds= 8496finish_cmds= 8497finish_eval= 8498shlibpath_var= 8499shlibpath_overrides_runpath=unknown 8500version_type=none 8501dynamic_linker="$host_os ld.so" 8502sys_lib_dlsearch_path_spec="/lib /usr/lib" 8503if test "$GCC" = yes; then 8504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8506 # if the path contains ";" then we assume it to be the separator 8507 # otherwise default to the standard path separator (i.e. ":") - it is 8508 # assumed that no part of a normal pathname contains ";" but that should 8509 # okay in the real world where ";" in dirpaths is itself problematic. 8510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8511 else 8512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8513 fi 8514else 8515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8516fi 8517need_lib_prefix=unknown 8518hardcode_into_libs=no 8519 8520# when you set need_version to no, make sure it does not cause -set_version 8521# flags to be left without arguments 8522need_version=unknown 8523 8524case $host_os in 8525aix3*) 8526 version_type=linux 8527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8528 shlibpath_var=LIBPATH 8529 8530 # AIX 3 has no versioning support, so we append a major version to the name. 8531 soname_spec='${libname}${release}${shared_ext}$major' 8532 ;; 8533 8534aix4* | aix5*) 8535 version_type=linux 8536 need_lib_prefix=no 8537 need_version=no 8538 hardcode_into_libs=yes 8539 if test "$host_cpu" = ia64; then 8540 # AIX 5 supports IA64 8541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8542 shlibpath_var=LD_LIBRARY_PATH 8543 else 8544 # With GCC up to 2.95.x, collect2 would create an import file 8545 # for dependence libraries. The import file would start with 8546 # the line `#! .'. This would cause the generated library to 8547 # depend on `.', always an invalid library. This was fixed in 8548 # development snapshots of GCC prior to 3.0. 8549 case $host_os in 8550 aix4 | aix4.[01] | aix4.[01].*) 8551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8552 echo ' yes ' 8553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8554 : 8555 else 8556 can_build_shared=no 8557 fi 8558 ;; 8559 esac 8560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8561 # soname into executable. Probably we can add versioning support to 8562 # collect2, so additional links can be useful in future. 8563 if test "$aix_use_runtimelinking" = yes; then 8564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8565 # instead of lib<name>.a to let people know that these are not 8566 # typical AIX shared libraries. 8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8568 else 8569 # We preserve .a as extension for shared libraries through AIX4.2 8570 # and later when we are not doing run time linking. 8571 library_names_spec='${libname}${release}.a $libname.a' 8572 soname_spec='${libname}${release}${shared_ext}$major' 8573 fi 8574 shlibpath_var=LIBPATH 8575 fi 8576 ;; 8577 8578amigaos*) 8579 library_names_spec='$libname.ixlibrary $libname.a' 8580 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8581 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' 8582 ;; 8583 8584beos*) 8585 library_names_spec='${libname}${shared_ext}' 8586 dynamic_linker="$host_os ld.so" 8587 shlibpath_var=LIBRARY_PATH 8588 ;; 8589 8590bsdi[45]*) 8591 version_type=linux 8592 need_version=no 8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8594 soname_spec='${libname}${release}${shared_ext}$major' 8595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8596 shlibpath_var=LD_LIBRARY_PATH 8597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8599 # the default ld.so.conf also contains /usr/contrib/lib and 8600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8601 # libtool to hard-code these into programs 8602 ;; 8603 8604cygwin* | mingw* | pw32*) 8605 version_type=windows 8606 shrext_cmds=".dll" 8607 need_version=no 8608 need_lib_prefix=no 8609 8610 case $GCC,$host_os in 8611 yes,cygwin* | yes,mingw* | yes,pw32*) 8612 library_names_spec='$libname.dll.a' 8613 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8614 postinstall_cmds='base_file=`basename \${file}`~ 8615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8616 dldir=$destdir/`dirname \$dlpath`~ 8617 test -d \$dldir || mkdir -p \$dldir~ 8618 $install_prog $dir/$dlname \$dldir/$dlname~ 8619 chmod a+x \$dldir/$dlname' 8620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8621 dlpath=$dir/\$dldll~ 8622 $rm \$dlpath' 8623 shlibpath_overrides_runpath=yes 8624 8625 case $host_os in 8626 cygwin*) 8627 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8630 ;; 8631 mingw*) 8632 # MinGW DLLs use traditional 'lib' prefix 8633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8636 # It is most probably a Windows format PATH printed by 8637 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8638 # path with ; separators, and with drive letters. We can handle the 8639 # drive letters (cygwin fileutils understands them), so leave them, 8640 # especially as we might pass files found there to a mingw objdump, 8641 # which wouldn't understand a cygwinified path. Ahh. 8642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8643 else 8644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8645 fi 8646 ;; 8647 pw32*) 8648 # pw32 DLLs use 'pw' prefix rather than 'lib' 8649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8650 ;; 8651 esac 8652 ;; 8653 8654 *) 8655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8656 ;; 8657 esac 8658 dynamic_linker='Win32 ld.exe' 8659 # FIXME: first we should search . and the directory the executable is in 8660 shlibpath_var=PATH 8661 ;; 8662 8663darwin* | rhapsody*) 8664 dynamic_linker="$host_os dyld" 8665 version_type=darwin 8666 need_lib_prefix=no 8667 need_version=no 8668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8669 soname_spec='${libname}${release}${major}$shared_ext' 8670 shlibpath_overrides_runpath=yes 8671 shlibpath_var=DYLD_LIBRARY_PATH 8672 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8674 if test "$GCC" = yes; then 8675 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"` 8676 else 8677 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8678 fi 8679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8680 ;; 8681 8682dgux*) 8683 version_type=linux 8684 need_lib_prefix=no 8685 need_version=no 8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8687 soname_spec='${libname}${release}${shared_ext}$major' 8688 shlibpath_var=LD_LIBRARY_PATH 8689 ;; 8690 8691freebsd1*) 8692 dynamic_linker=no 8693 ;; 8694 8695freebsd* | dragonfly*) 8696 # DragonFly does not have aout. When/if they implement a new 8697 # versioning mechanism, adjust this. 8698 if test -x /usr/bin/objformat; then 8699 objformat=`/usr/bin/objformat` 8700 else 8701 case $host_os in 8702 freebsd[123]*) objformat=aout ;; 8703 *) objformat=elf ;; 8704 esac 8705 fi 8706 version_type=freebsd-$objformat 8707 case $version_type in 8708 freebsd-elf*) 8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8710 need_version=no 8711 need_lib_prefix=no 8712 ;; 8713 freebsd-*) 8714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8715 need_version=yes 8716 ;; 8717 esac 8718 shlibpath_var=LD_LIBRARY_PATH 8719 case $host_os in 8720 freebsd2*) 8721 shlibpath_overrides_runpath=yes 8722 ;; 8723 freebsd3.[01]* | freebsdelf3.[01]*) 8724 shlibpath_overrides_runpath=yes 8725 hardcode_into_libs=yes 8726 ;; 8727 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8728 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8729 shlibpath_overrides_runpath=no 8730 hardcode_into_libs=yes 8731 ;; 8732 freebsd*) # from 4.6 on 8733 shlibpath_overrides_runpath=yes 8734 hardcode_into_libs=yes 8735 ;; 8736 esac 8737 ;; 8738 8739gnu*) 8740 version_type=linux 8741 need_lib_prefix=no 8742 need_version=no 8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8744 soname_spec='${libname}${release}${shared_ext}$major' 8745 shlibpath_var=LD_LIBRARY_PATH 8746 hardcode_into_libs=yes 8747 ;; 8748 8749hpux9* | hpux10* | hpux11*) 8750 # Give a soname corresponding to the major version so that dld.sl refuses to 8751 # link against other versions. 8752 version_type=sunos 8753 need_lib_prefix=no 8754 need_version=no 8755 case $host_cpu in 8756 ia64*) 8757 shrext_cmds='.so' 8758 hardcode_into_libs=yes 8759 dynamic_linker="$host_os dld.so" 8760 shlibpath_var=LD_LIBRARY_PATH 8761 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8763 soname_spec='${libname}${release}${shared_ext}$major' 8764 if test "X$HPUX_IA64_MODE" = X32; then 8765 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8766 else 8767 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8768 fi 8769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8770 ;; 8771 hppa*64*) 8772 shrext_cmds='.sl' 8773 hardcode_into_libs=yes 8774 dynamic_linker="$host_os dld.sl" 8775 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8778 soname_spec='${libname}${release}${shared_ext}$major' 8779 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8781 ;; 8782 *) 8783 shrext_cmds='.sl' 8784 dynamic_linker="$host_os dld.sl" 8785 shlibpath_var=SHLIB_PATH 8786 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8788 soname_spec='${libname}${release}${shared_ext}$major' 8789 ;; 8790 esac 8791 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8792 postinstall_cmds='chmod 555 $lib' 8793 ;; 8794 8795interix3*) 8796 version_type=linux 8797 need_lib_prefix=no 8798 need_version=no 8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8800 soname_spec='${libname}${release}${shared_ext}$major' 8801 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8802 shlibpath_var=LD_LIBRARY_PATH 8803 shlibpath_overrides_runpath=no 8804 hardcode_into_libs=yes 8805 ;; 8806 8807irix5* | irix6* | nonstopux*) 8808 case $host_os in 8809 nonstopux*) version_type=nonstopux ;; 8810 *) 8811 if test "$lt_cv_prog_gnu_ld" = yes; then 8812 version_type=linux 8813 else 8814 version_type=irix 8815 fi ;; 8816 esac 8817 need_lib_prefix=no 8818 need_version=no 8819 soname_spec='${libname}${release}${shared_ext}$major' 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8821 case $host_os in 8822 irix5* | nonstopux*) 8823 libsuff= shlibsuff= 8824 ;; 8825 *) 8826 case $LD in # libtool.m4 will add one of these switches to LD 8827 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8828 libsuff= shlibsuff= libmagic=32-bit;; 8829 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8830 libsuff=32 shlibsuff=N32 libmagic=N32;; 8831 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8832 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8833 *) libsuff= shlibsuff= libmagic=never-match;; 8834 esac 8835 ;; 8836 esac 8837 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8838 shlibpath_overrides_runpath=no 8839 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8840 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8841 hardcode_into_libs=yes 8842 ;; 8843 8844# No shared lib support for Linux oldld, aout, or coff. 8845linux*oldld* | linux*aout* | linux*coff*) 8846 dynamic_linker=no 8847 ;; 8848 8849# This must be Linux ELF. 8850linux* | k*bsd*-gnu) 8851 version_type=linux 8852 need_lib_prefix=no 8853 need_version=no 8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8855 soname_spec='${libname}${release}${shared_ext}$major' 8856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8857 shlibpath_var=LD_LIBRARY_PATH 8858 shlibpath_overrides_runpath=no 8859 # This implies no fast_install, which is unacceptable. 8860 # Some rework will be needed to allow for fast_install 8861 # before this can be enabled. 8862 hardcode_into_libs=yes 8863 8864 # Append ld.so.conf contents to the search path 8865 if test -f /etc/ld.so.conf; then 8866 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' ' '` 8867 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8868 fi 8869 8870 # We used to test for /lib/ld.so.1 and disable shared libraries on 8871 # powerpc, because MkLinux only supported shared libraries with the 8872 # GNU dynamic linker. Since this was broken with cross compilers, 8873 # most powerpc-linux boxes support dynamic linking these days and 8874 # people can always --disable-shared, the test was removed, and we 8875 # assume the GNU/Linux dynamic linker is in use. 8876 dynamic_linker='GNU/Linux ld.so' 8877 ;; 8878 8879netbsdelf*-gnu) 8880 version_type=linux 8881 need_lib_prefix=no 8882 need_version=no 8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8884 soname_spec='${libname}${release}${shared_ext}$major' 8885 shlibpath_var=LD_LIBRARY_PATH 8886 shlibpath_overrides_runpath=no 8887 hardcode_into_libs=yes 8888 dynamic_linker='NetBSD ld.elf_so' 8889 ;; 8890 8891netbsd*) 8892 version_type=sunos 8893 need_lib_prefix=no 8894 need_version=no 8895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8898 dynamic_linker='NetBSD (a.out) ld.so' 8899 else 8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8901 soname_spec='${libname}${release}${shared_ext}$major' 8902 dynamic_linker='NetBSD ld.elf_so' 8903 fi 8904 shlibpath_var=LD_LIBRARY_PATH 8905 shlibpath_overrides_runpath=yes 8906 hardcode_into_libs=yes 8907 ;; 8908 8909newsos6) 8910 version_type=linux 8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8912 shlibpath_var=LD_LIBRARY_PATH 8913 shlibpath_overrides_runpath=yes 8914 ;; 8915 8916nto-qnx*) 8917 version_type=linux 8918 need_lib_prefix=no 8919 need_version=no 8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8921 soname_spec='${libname}${release}${shared_ext}$major' 8922 shlibpath_var=LD_LIBRARY_PATH 8923 shlibpath_overrides_runpath=yes 8924 ;; 8925 8926openbsd*) 8927 version_type=sunos 8928 sys_lib_dlsearch_path_spec="/usr/lib" 8929 need_lib_prefix=no 8930 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8931 case $host_os in 8932 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8933 *) need_version=no ;; 8934 esac 8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8937 shlibpath_var=LD_LIBRARY_PATH 8938 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8939 case $host_os in 8940 openbsd2.[89] | openbsd2.[89].*) 8941 shlibpath_overrides_runpath=no 8942 ;; 8943 *) 8944 shlibpath_overrides_runpath=yes 8945 ;; 8946 esac 8947 else 8948 shlibpath_overrides_runpath=yes 8949 fi 8950 ;; 8951 8952os2*) 8953 libname_spec='$name' 8954 shrext_cmds=".dll" 8955 need_lib_prefix=no 8956 library_names_spec='$libname${shared_ext} $libname.a' 8957 dynamic_linker='OS/2 ld.exe' 8958 shlibpath_var=LIBPATH 8959 ;; 8960 8961osf3* | osf4* | osf5*) 8962 version_type=osf 8963 need_lib_prefix=no 8964 need_version=no 8965 soname_spec='${libname}${release}${shared_ext}$major' 8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8967 shlibpath_var=LD_LIBRARY_PATH 8968 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8969 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8970 ;; 8971 8972solaris*) 8973 version_type=linux 8974 need_lib_prefix=no 8975 need_version=no 8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8977 soname_spec='${libname}${release}${shared_ext}$major' 8978 shlibpath_var=LD_LIBRARY_PATH 8979 shlibpath_overrides_runpath=yes 8980 hardcode_into_libs=yes 8981 # ldd complains unless libraries are executable 8982 postinstall_cmds='chmod +x $lib' 8983 ;; 8984 8985sunos4*) 8986 version_type=sunos 8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8989 shlibpath_var=LD_LIBRARY_PATH 8990 shlibpath_overrides_runpath=yes 8991 if test "$with_gnu_ld" = yes; then 8992 need_lib_prefix=no 8993 fi 8994 need_version=yes 8995 ;; 8996 8997sysv4 | sysv4.3*) 8998 version_type=linux 8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9000 soname_spec='${libname}${release}${shared_ext}$major' 9001 shlibpath_var=LD_LIBRARY_PATH 9002 case $host_vendor in 9003 sni) 9004 shlibpath_overrides_runpath=no 9005 need_lib_prefix=no 9006 export_dynamic_flag_spec='${wl}-Blargedynsym' 9007 runpath_var=LD_RUN_PATH 9008 ;; 9009 siemens) 9010 need_lib_prefix=no 9011 ;; 9012 motorola) 9013 need_lib_prefix=no 9014 need_version=no 9015 shlibpath_overrides_runpath=no 9016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9017 ;; 9018 esac 9019 ;; 9020 9021sysv4*MP*) 9022 if test -d /usr/nec ;then 9023 version_type=linux 9024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9025 soname_spec='$libname${shared_ext}.$major' 9026 shlibpath_var=LD_LIBRARY_PATH 9027 fi 9028 ;; 9029 9030sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9031 version_type=freebsd-elf 9032 need_lib_prefix=no 9033 need_version=no 9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9035 soname_spec='${libname}${release}${shared_ext}$major' 9036 shlibpath_var=LD_LIBRARY_PATH 9037 hardcode_into_libs=yes 9038 if test "$with_gnu_ld" = yes; then 9039 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9040 shlibpath_overrides_runpath=no 9041 else 9042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9043 shlibpath_overrides_runpath=yes 9044 case $host_os in 9045 sco3.2v5*) 9046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9047 ;; 9048 esac 9049 fi 9050 sys_lib_dlsearch_path_spec='/usr/lib' 9051 ;; 9052 9053uts4*) 9054 version_type=linux 9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9056 soname_spec='${libname}${release}${shared_ext}$major' 9057 shlibpath_var=LD_LIBRARY_PATH 9058 ;; 9059 9060*) 9061 dynamic_linker=no 9062 ;; 9063esac 9064{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9065echo "${ECHO_T}$dynamic_linker" >&6; } 9066test "$dynamic_linker" = no && can_build_shared=no 9067 9068variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9069if test "$GCC" = yes; then 9070 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9071fi 9072 9073{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9074echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9075hardcode_action= 9076if test -n "$hardcode_libdir_flag_spec" || \ 9077 test -n "$runpath_var" || \ 9078 test "X$hardcode_automatic" = "Xyes" ; then 9079 9080 # We can hardcode non-existant directories. 9081 if test "$hardcode_direct" != no && 9082 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9083 # have to relink, otherwise we might link with an installed library 9084 # when we should be linking with a yet-to-be-installed one 9085 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9086 test "$hardcode_minus_L" != no; then 9087 # Linking always hardcodes the temporary library directory. 9088 hardcode_action=relink 9089 else 9090 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9091 hardcode_action=immediate 9092 fi 9093else 9094 # We cannot hardcode anything, or else we can only hardcode existing 9095 # directories. 9096 hardcode_action=unsupported 9097fi 9098{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9099echo "${ECHO_T}$hardcode_action" >&6; } 9100 9101if test "$hardcode_action" = relink; then 9102 # Fast installation is not supported 9103 enable_fast_install=no 9104elif test "$shlibpath_overrides_runpath" = yes || 9105 test "$enable_shared" = no; then 9106 # Fast installation is not necessary 9107 enable_fast_install=needless 9108fi 9109 9110striplib= 9111old_striplib= 9112{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9113echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9114if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9115 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9116 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9117 { echo "$as_me:$LINENO: result: yes" >&5 9118echo "${ECHO_T}yes" >&6; } 9119else 9120# FIXME - insert some real tests, host_os isn't really good enough 9121 case $host_os in 9122 darwin*) 9123 if test -n "$STRIP" ; then 9124 striplib="$STRIP -x" 9125 { echo "$as_me:$LINENO: result: yes" >&5 9126echo "${ECHO_T}yes" >&6; } 9127 else 9128 { echo "$as_me:$LINENO: result: no" >&5 9129echo "${ECHO_T}no" >&6; } 9130fi 9131 ;; 9132 *) 9133 { echo "$as_me:$LINENO: result: no" >&5 9134echo "${ECHO_T}no" >&6; } 9135 ;; 9136 esac 9137fi 9138 9139if test "x$enable_dlopen" != xyes; then 9140 enable_dlopen=unknown 9141 enable_dlopen_self=unknown 9142 enable_dlopen_self_static=unknown 9143else 9144 lt_cv_dlopen=no 9145 lt_cv_dlopen_libs= 9146 9147 case $host_os in 9148 beos*) 9149 lt_cv_dlopen="load_add_on" 9150 lt_cv_dlopen_libs= 9151 lt_cv_dlopen_self=yes 9152 ;; 9153 9154 mingw* | pw32*) 9155 lt_cv_dlopen="LoadLibrary" 9156 lt_cv_dlopen_libs= 9157 ;; 9158 9159 cygwin*) 9160 lt_cv_dlopen="dlopen" 9161 lt_cv_dlopen_libs= 9162 ;; 9163 9164 darwin*) 9165 # if libdl is installed we need to link against it 9166 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9167echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9168if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9169 echo $ECHO_N "(cached) $ECHO_C" >&6 9170else 9171 ac_check_lib_save_LIBS=$LIBS 9172LIBS="-ldl $LIBS" 9173cat >conftest.$ac_ext <<_ACEOF 9174/* confdefs.h. */ 9175_ACEOF 9176cat confdefs.h >>conftest.$ac_ext 9177cat >>conftest.$ac_ext <<_ACEOF 9178/* end confdefs.h. */ 9179 9180/* Override any GCC internal prototype to avoid an error. 9181 Use char because int might match the return type of a GCC 9182 builtin and then its argument prototype would still apply. */ 9183#ifdef __cplusplus 9184extern "C" 9185#endif 9186char dlopen (); 9187int 9188main () 9189{ 9190return dlopen (); 9191 ; 9192 return 0; 9193} 9194_ACEOF 9195rm -f conftest.$ac_objext conftest$ac_exeext 9196if { (ac_try="$ac_link" 9197case "(($ac_try" in 9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9199 *) ac_try_echo=$ac_try;; 9200esac 9201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9202 (eval "$ac_link") 2>conftest.er1 9203 ac_status=$? 9204 grep -v '^ *+' conftest.er1 >conftest.err 9205 rm -f conftest.er1 9206 cat conftest.err >&5 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 (exit $ac_status); } && { 9209 test -z "$ac_c_werror_flag" || 9210 test ! -s conftest.err 9211 } && test -s conftest$ac_exeext && 9212 $as_test_x conftest$ac_exeext; then 9213 ac_cv_lib_dl_dlopen=yes 9214else 9215 echo "$as_me: failed program was:" >&5 9216sed 's/^/| /' conftest.$ac_ext >&5 9217 9218 ac_cv_lib_dl_dlopen=no 9219fi 9220 9221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9222 conftest$ac_exeext conftest.$ac_ext 9223LIBS=$ac_check_lib_save_LIBS 9224fi 9225{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9226echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9227if test $ac_cv_lib_dl_dlopen = yes; then 9228 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9229else 9230 9231 lt_cv_dlopen="dyld" 9232 lt_cv_dlopen_libs= 9233 lt_cv_dlopen_self=yes 9234 9235fi 9236 9237 ;; 9238 9239 *) 9240 { echo "$as_me:$LINENO: checking for shl_load" >&5 9241echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9242if test "${ac_cv_func_shl_load+set}" = set; then 9243 echo $ECHO_N "(cached) $ECHO_C" >&6 9244else 9245 cat >conftest.$ac_ext <<_ACEOF 9246/* confdefs.h. */ 9247_ACEOF 9248cat confdefs.h >>conftest.$ac_ext 9249cat >>conftest.$ac_ext <<_ACEOF 9250/* end confdefs.h. */ 9251/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9252 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9253#define shl_load innocuous_shl_load 9254 9255/* System header to define __stub macros and hopefully few prototypes, 9256 which can conflict with char shl_load (); below. 9257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9258 <limits.h> exists even on freestanding compilers. */ 9259 9260#ifdef __STDC__ 9261# include <limits.h> 9262#else 9263# include <assert.h> 9264#endif 9265 9266#undef shl_load 9267 9268/* Override any GCC internal prototype to avoid an error. 9269 Use char because int might match the return type of a GCC 9270 builtin and then its argument prototype would still apply. */ 9271#ifdef __cplusplus 9272extern "C" 9273#endif 9274char shl_load (); 9275/* The GNU C library defines this for functions which it implements 9276 to always fail with ENOSYS. Some functions are actually named 9277 something starting with __ and the normal name is an alias. */ 9278#if defined __stub_shl_load || defined __stub___shl_load 9279choke me 9280#endif 9281 9282int 9283main () 9284{ 9285return shl_load (); 9286 ; 9287 return 0; 9288} 9289_ACEOF 9290rm -f conftest.$ac_objext conftest$ac_exeext 9291if { (ac_try="$ac_link" 9292case "(($ac_try" in 9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9294 *) ac_try_echo=$ac_try;; 9295esac 9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9297 (eval "$ac_link") 2>conftest.er1 9298 ac_status=$? 9299 grep -v '^ *+' conftest.er1 >conftest.err 9300 rm -f conftest.er1 9301 cat conftest.err >&5 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); } && { 9304 test -z "$ac_c_werror_flag" || 9305 test ! -s conftest.err 9306 } && test -s conftest$ac_exeext && 9307 $as_test_x conftest$ac_exeext; then 9308 ac_cv_func_shl_load=yes 9309else 9310 echo "$as_me: failed program was:" >&5 9311sed 's/^/| /' conftest.$ac_ext >&5 9312 9313 ac_cv_func_shl_load=no 9314fi 9315 9316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9317 conftest$ac_exeext conftest.$ac_ext 9318fi 9319{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9320echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9321if test $ac_cv_func_shl_load = yes; then 9322 lt_cv_dlopen="shl_load" 9323else 9324 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9325echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9326if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9327 echo $ECHO_N "(cached) $ECHO_C" >&6 9328else 9329 ac_check_lib_save_LIBS=$LIBS 9330LIBS="-ldld $LIBS" 9331cat >conftest.$ac_ext <<_ACEOF 9332/* confdefs.h. */ 9333_ACEOF 9334cat confdefs.h >>conftest.$ac_ext 9335cat >>conftest.$ac_ext <<_ACEOF 9336/* end confdefs.h. */ 9337 9338/* Override any GCC internal prototype to avoid an error. 9339 Use char because int might match the return type of a GCC 9340 builtin and then its argument prototype would still apply. */ 9341#ifdef __cplusplus 9342extern "C" 9343#endif 9344char shl_load (); 9345int 9346main () 9347{ 9348return shl_load (); 9349 ; 9350 return 0; 9351} 9352_ACEOF 9353rm -f conftest.$ac_objext conftest$ac_exeext 9354if { (ac_try="$ac_link" 9355case "(($ac_try" in 9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9357 *) ac_try_echo=$ac_try;; 9358esac 9359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9360 (eval "$ac_link") 2>conftest.er1 9361 ac_status=$? 9362 grep -v '^ *+' conftest.er1 >conftest.err 9363 rm -f conftest.er1 9364 cat conftest.err >&5 9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9366 (exit $ac_status); } && { 9367 test -z "$ac_c_werror_flag" || 9368 test ! -s conftest.err 9369 } && test -s conftest$ac_exeext && 9370 $as_test_x conftest$ac_exeext; then 9371 ac_cv_lib_dld_shl_load=yes 9372else 9373 echo "$as_me: failed program was:" >&5 9374sed 's/^/| /' conftest.$ac_ext >&5 9375 9376 ac_cv_lib_dld_shl_load=no 9377fi 9378 9379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9380 conftest$ac_exeext conftest.$ac_ext 9381LIBS=$ac_check_lib_save_LIBS 9382fi 9383{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9384echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9385if test $ac_cv_lib_dld_shl_load = yes; then 9386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9387else 9388 { echo "$as_me:$LINENO: checking for dlopen" >&5 9389echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9390if test "${ac_cv_func_dlopen+set}" = set; then 9391 echo $ECHO_N "(cached) $ECHO_C" >&6 9392else 9393 cat >conftest.$ac_ext <<_ACEOF 9394/* confdefs.h. */ 9395_ACEOF 9396cat confdefs.h >>conftest.$ac_ext 9397cat >>conftest.$ac_ext <<_ACEOF 9398/* end confdefs.h. */ 9399/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9401#define dlopen innocuous_dlopen 9402 9403/* System header to define __stub macros and hopefully few prototypes, 9404 which can conflict with char dlopen (); below. 9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9406 <limits.h> exists even on freestanding compilers. */ 9407 9408#ifdef __STDC__ 9409# include <limits.h> 9410#else 9411# include <assert.h> 9412#endif 9413 9414#undef dlopen 9415 9416/* Override any GCC internal prototype to avoid an error. 9417 Use char because int might match the return type of a GCC 9418 builtin and then its argument prototype would still apply. */ 9419#ifdef __cplusplus 9420extern "C" 9421#endif 9422char dlopen (); 9423/* The GNU C library defines this for functions which it implements 9424 to always fail with ENOSYS. Some functions are actually named 9425 something starting with __ and the normal name is an alias. */ 9426#if defined __stub_dlopen || defined __stub___dlopen 9427choke me 9428#endif 9429 9430int 9431main () 9432{ 9433return dlopen (); 9434 ; 9435 return 0; 9436} 9437_ACEOF 9438rm -f conftest.$ac_objext conftest$ac_exeext 9439if { (ac_try="$ac_link" 9440case "(($ac_try" in 9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9442 *) ac_try_echo=$ac_try;; 9443esac 9444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9445 (eval "$ac_link") 2>conftest.er1 9446 ac_status=$? 9447 grep -v '^ *+' conftest.er1 >conftest.err 9448 rm -f conftest.er1 9449 cat conftest.err >&5 9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9451 (exit $ac_status); } && { 9452 test -z "$ac_c_werror_flag" || 9453 test ! -s conftest.err 9454 } && test -s conftest$ac_exeext && 9455 $as_test_x conftest$ac_exeext; then 9456 ac_cv_func_dlopen=yes 9457else 9458 echo "$as_me: failed program was:" >&5 9459sed 's/^/| /' conftest.$ac_ext >&5 9460 9461 ac_cv_func_dlopen=no 9462fi 9463 9464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9465 conftest$ac_exeext conftest.$ac_ext 9466fi 9467{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9468echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9469if test $ac_cv_func_dlopen = yes; then 9470 lt_cv_dlopen="dlopen" 9471else 9472 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9473echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9474if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9475 echo $ECHO_N "(cached) $ECHO_C" >&6 9476else 9477 ac_check_lib_save_LIBS=$LIBS 9478LIBS="-ldl $LIBS" 9479cat >conftest.$ac_ext <<_ACEOF 9480/* confdefs.h. */ 9481_ACEOF 9482cat confdefs.h >>conftest.$ac_ext 9483cat >>conftest.$ac_ext <<_ACEOF 9484/* end confdefs.h. */ 9485 9486/* Override any GCC internal prototype to avoid an error. 9487 Use char because int might match the return type of a GCC 9488 builtin and then its argument prototype would still apply. */ 9489#ifdef __cplusplus 9490extern "C" 9491#endif 9492char dlopen (); 9493int 9494main () 9495{ 9496return dlopen (); 9497 ; 9498 return 0; 9499} 9500_ACEOF 9501rm -f conftest.$ac_objext conftest$ac_exeext 9502if { (ac_try="$ac_link" 9503case "(($ac_try" in 9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9505 *) ac_try_echo=$ac_try;; 9506esac 9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9508 (eval "$ac_link") 2>conftest.er1 9509 ac_status=$? 9510 grep -v '^ *+' conftest.er1 >conftest.err 9511 rm -f conftest.er1 9512 cat conftest.err >&5 9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9514 (exit $ac_status); } && { 9515 test -z "$ac_c_werror_flag" || 9516 test ! -s conftest.err 9517 } && test -s conftest$ac_exeext && 9518 $as_test_x conftest$ac_exeext; then 9519 ac_cv_lib_dl_dlopen=yes 9520else 9521 echo "$as_me: failed program was:" >&5 9522sed 's/^/| /' conftest.$ac_ext >&5 9523 9524 ac_cv_lib_dl_dlopen=no 9525fi 9526 9527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9528 conftest$ac_exeext conftest.$ac_ext 9529LIBS=$ac_check_lib_save_LIBS 9530fi 9531{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9532echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9533if test $ac_cv_lib_dl_dlopen = yes; then 9534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9535else 9536 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9537echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9538if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9539 echo $ECHO_N "(cached) $ECHO_C" >&6 9540else 9541 ac_check_lib_save_LIBS=$LIBS 9542LIBS="-lsvld $LIBS" 9543cat >conftest.$ac_ext <<_ACEOF 9544/* confdefs.h. */ 9545_ACEOF 9546cat confdefs.h >>conftest.$ac_ext 9547cat >>conftest.$ac_ext <<_ACEOF 9548/* end confdefs.h. */ 9549 9550/* Override any GCC internal prototype to avoid an error. 9551 Use char because int might match the return type of a GCC 9552 builtin and then its argument prototype would still apply. */ 9553#ifdef __cplusplus 9554extern "C" 9555#endif 9556char dlopen (); 9557int 9558main () 9559{ 9560return dlopen (); 9561 ; 9562 return 0; 9563} 9564_ACEOF 9565rm -f conftest.$ac_objext conftest$ac_exeext 9566if { (ac_try="$ac_link" 9567case "(($ac_try" in 9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9569 *) ac_try_echo=$ac_try;; 9570esac 9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9572 (eval "$ac_link") 2>conftest.er1 9573 ac_status=$? 9574 grep -v '^ *+' conftest.er1 >conftest.err 9575 rm -f conftest.er1 9576 cat conftest.err >&5 9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9578 (exit $ac_status); } && { 9579 test -z "$ac_c_werror_flag" || 9580 test ! -s conftest.err 9581 } && test -s conftest$ac_exeext && 9582 $as_test_x conftest$ac_exeext; then 9583 ac_cv_lib_svld_dlopen=yes 9584else 9585 echo "$as_me: failed program was:" >&5 9586sed 's/^/| /' conftest.$ac_ext >&5 9587 9588 ac_cv_lib_svld_dlopen=no 9589fi 9590 9591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9592 conftest$ac_exeext conftest.$ac_ext 9593LIBS=$ac_check_lib_save_LIBS 9594fi 9595{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9596echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9597if test $ac_cv_lib_svld_dlopen = yes; then 9598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9599else 9600 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9601echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9602if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9603 echo $ECHO_N "(cached) $ECHO_C" >&6 9604else 9605 ac_check_lib_save_LIBS=$LIBS 9606LIBS="-ldld $LIBS" 9607cat >conftest.$ac_ext <<_ACEOF 9608/* confdefs.h. */ 9609_ACEOF 9610cat confdefs.h >>conftest.$ac_ext 9611cat >>conftest.$ac_ext <<_ACEOF 9612/* end confdefs.h. */ 9613 9614/* Override any GCC internal prototype to avoid an error. 9615 Use char because int might match the return type of a GCC 9616 builtin and then its argument prototype would still apply. */ 9617#ifdef __cplusplus 9618extern "C" 9619#endif 9620char dld_link (); 9621int 9622main () 9623{ 9624return dld_link (); 9625 ; 9626 return 0; 9627} 9628_ACEOF 9629rm -f conftest.$ac_objext conftest$ac_exeext 9630if { (ac_try="$ac_link" 9631case "(($ac_try" in 9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9633 *) ac_try_echo=$ac_try;; 9634esac 9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9636 (eval "$ac_link") 2>conftest.er1 9637 ac_status=$? 9638 grep -v '^ *+' conftest.er1 >conftest.err 9639 rm -f conftest.er1 9640 cat conftest.err >&5 9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9642 (exit $ac_status); } && { 9643 test -z "$ac_c_werror_flag" || 9644 test ! -s conftest.err 9645 } && test -s conftest$ac_exeext && 9646 $as_test_x conftest$ac_exeext; then 9647 ac_cv_lib_dld_dld_link=yes 9648else 9649 echo "$as_me: failed program was:" >&5 9650sed 's/^/| /' conftest.$ac_ext >&5 9651 9652 ac_cv_lib_dld_dld_link=no 9653fi 9654 9655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9656 conftest$ac_exeext conftest.$ac_ext 9657LIBS=$ac_check_lib_save_LIBS 9658fi 9659{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9660echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9661if test $ac_cv_lib_dld_dld_link = yes; then 9662 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9663fi 9664 9665 9666fi 9667 9668 9669fi 9670 9671 9672fi 9673 9674 9675fi 9676 9677 9678fi 9679 9680 ;; 9681 esac 9682 9683 if test "x$lt_cv_dlopen" != xno; then 9684 enable_dlopen=yes 9685 else 9686 enable_dlopen=no 9687 fi 9688 9689 case $lt_cv_dlopen in 9690 dlopen) 9691 save_CPPFLAGS="$CPPFLAGS" 9692 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9693 9694 save_LDFLAGS="$LDFLAGS" 9695 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9696 9697 save_LIBS="$LIBS" 9698 LIBS="$lt_cv_dlopen_libs $LIBS" 9699 9700 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9701echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9702if test "${lt_cv_dlopen_self+set}" = set; then 9703 echo $ECHO_N "(cached) $ECHO_C" >&6 9704else 9705 if test "$cross_compiling" = yes; then : 9706 lt_cv_dlopen_self=cross 9707else 9708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9709 lt_status=$lt_dlunknown 9710 cat > conftest.$ac_ext <<EOF 9711#line __oline__ "configure" 9712#include "confdefs.h" 9713 9714#if HAVE_DLFCN_H 9715#include <dlfcn.h> 9716#endif 9717 9718#include <stdio.h> 9719 9720#ifdef RTLD_GLOBAL 9721# define LT_DLGLOBAL RTLD_GLOBAL 9722#else 9723# ifdef DL_GLOBAL 9724# define LT_DLGLOBAL DL_GLOBAL 9725# else 9726# define LT_DLGLOBAL 0 9727# endif 9728#endif 9729 9730/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9731 find out it does not work in some platform. */ 9732#ifndef LT_DLLAZY_OR_NOW 9733# ifdef RTLD_LAZY 9734# define LT_DLLAZY_OR_NOW RTLD_LAZY 9735# else 9736# ifdef DL_LAZY 9737# define LT_DLLAZY_OR_NOW DL_LAZY 9738# else 9739# ifdef RTLD_NOW 9740# define LT_DLLAZY_OR_NOW RTLD_NOW 9741# else 9742# ifdef DL_NOW 9743# define LT_DLLAZY_OR_NOW DL_NOW 9744# else 9745# define LT_DLLAZY_OR_NOW 0 9746# endif 9747# endif 9748# endif 9749# endif 9750#endif 9751 9752#ifdef __cplusplus 9753extern "C" void exit (int); 9754#endif 9755 9756void fnord() { int i=42;} 9757int main () 9758{ 9759 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9760 int status = $lt_dlunknown; 9761 9762 if (self) 9763 { 9764 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9765 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9766 /* dlclose (self); */ 9767 } 9768 else 9769 puts (dlerror ()); 9770 9771 exit (status); 9772} 9773EOF 9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9775 (eval $ac_link) 2>&5 9776 ac_status=$? 9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9778 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9779 (./conftest; exit; ) >&5 2>/dev/null 9780 lt_status=$? 9781 case x$lt_status in 9782 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9783 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9784 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9785 esac 9786 else : 9787 # compilation failed 9788 lt_cv_dlopen_self=no 9789 fi 9790fi 9791rm -fr conftest* 9792 9793 9794fi 9795{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9796echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9797 9798 if test "x$lt_cv_dlopen_self" = xyes; then 9799 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9800 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9801echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9802if test "${lt_cv_dlopen_self_static+set}" = set; then 9803 echo $ECHO_N "(cached) $ECHO_C" >&6 9804else 9805 if test "$cross_compiling" = yes; then : 9806 lt_cv_dlopen_self_static=cross 9807else 9808 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9809 lt_status=$lt_dlunknown 9810 cat > conftest.$ac_ext <<EOF 9811#line __oline__ "configure" 9812#include "confdefs.h" 9813 9814#if HAVE_DLFCN_H 9815#include <dlfcn.h> 9816#endif 9817 9818#include <stdio.h> 9819 9820#ifdef RTLD_GLOBAL 9821# define LT_DLGLOBAL RTLD_GLOBAL 9822#else 9823# ifdef DL_GLOBAL 9824# define LT_DLGLOBAL DL_GLOBAL 9825# else 9826# define LT_DLGLOBAL 0 9827# endif 9828#endif 9829 9830/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9831 find out it does not work in some platform. */ 9832#ifndef LT_DLLAZY_OR_NOW 9833# ifdef RTLD_LAZY 9834# define LT_DLLAZY_OR_NOW RTLD_LAZY 9835# else 9836# ifdef DL_LAZY 9837# define LT_DLLAZY_OR_NOW DL_LAZY 9838# else 9839# ifdef RTLD_NOW 9840# define LT_DLLAZY_OR_NOW RTLD_NOW 9841# else 9842# ifdef DL_NOW 9843# define LT_DLLAZY_OR_NOW DL_NOW 9844# else 9845# define LT_DLLAZY_OR_NOW 0 9846# endif 9847# endif 9848# endif 9849# endif 9850#endif 9851 9852#ifdef __cplusplus 9853extern "C" void exit (int); 9854#endif 9855 9856void fnord() { int i=42;} 9857int main () 9858{ 9859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9860 int status = $lt_dlunknown; 9861 9862 if (self) 9863 { 9864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9865 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9866 /* dlclose (self); */ 9867 } 9868 else 9869 puts (dlerror ()); 9870 9871 exit (status); 9872} 9873EOF 9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9875 (eval $ac_link) 2>&5 9876 ac_status=$? 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9879 (./conftest; exit; ) >&5 2>/dev/null 9880 lt_status=$? 9881 case x$lt_status in 9882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9884 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9885 esac 9886 else : 9887 # compilation failed 9888 lt_cv_dlopen_self_static=no 9889 fi 9890fi 9891rm -fr conftest* 9892 9893 9894fi 9895{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9896echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9897 fi 9898 9899 CPPFLAGS="$save_CPPFLAGS" 9900 LDFLAGS="$save_LDFLAGS" 9901 LIBS="$save_LIBS" 9902 ;; 9903 esac 9904 9905 case $lt_cv_dlopen_self in 9906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9907 *) enable_dlopen_self=unknown ;; 9908 esac 9909 9910 case $lt_cv_dlopen_self_static in 9911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9912 *) enable_dlopen_self_static=unknown ;; 9913 esac 9914fi 9915 9916 9917# Report which library types will actually be built 9918{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9919echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9920{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9921echo "${ECHO_T}$can_build_shared" >&6; } 9922 9923{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9924echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9925test "$can_build_shared" = "no" && enable_shared=no 9926 9927# On AIX, shared libraries and static libraries use the same namespace, and 9928# are all built from PIC. 9929case $host_os in 9930aix3*) 9931 test "$enable_shared" = yes && enable_static=no 9932 if test -n "$RANLIB"; then 9933 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9934 postinstall_cmds='$RANLIB $lib' 9935 fi 9936 ;; 9937 9938aix4* | aix5*) 9939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9940 test "$enable_shared" = yes && enable_static=no 9941 fi 9942 ;; 9943esac 9944{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9945echo "${ECHO_T}$enable_shared" >&6; } 9946 9947{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9948echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9949# Make sure either enable_shared or enable_static is yes. 9950test "$enable_shared" = yes || enable_static=yes 9951{ echo "$as_me:$LINENO: result: $enable_static" >&5 9952echo "${ECHO_T}$enable_static" >&6; } 9953 9954# The else clause should only fire when bootstrapping the 9955# libtool distribution, otherwise you forgot to ship ltmain.sh 9956# with your package, and you will get complaints that there are 9957# no rules to generate ltmain.sh. 9958if test -f "$ltmain"; then 9959 # See if we are running on zsh, and set the options which allow our commands through 9960 # without removal of \ escapes. 9961 if test -n "${ZSH_VERSION+set}" ; then 9962 setopt NO_GLOB_SUBST 9963 fi 9964 # Now quote all the things that may contain metacharacters while being 9965 # careful not to overquote the AC_SUBSTed values. We take copies of the 9966 # variables and quote the copies for generation of the libtool script. 9967 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9968 SED SHELL STRIP \ 9969 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9970 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9971 deplibs_check_method reload_flag reload_cmds need_locks \ 9972 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9973 lt_cv_sys_global_symbol_to_c_name_address \ 9974 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9975 old_postinstall_cmds old_postuninstall_cmds \ 9976 compiler \ 9977 CC \ 9978 LD \ 9979 lt_prog_compiler_wl \ 9980 lt_prog_compiler_pic \ 9981 lt_prog_compiler_static \ 9982 lt_prog_compiler_no_builtin_flag \ 9983 export_dynamic_flag_spec \ 9984 thread_safe_flag_spec \ 9985 whole_archive_flag_spec \ 9986 enable_shared_with_static_runtimes \ 9987 old_archive_cmds \ 9988 old_archive_from_new_cmds \ 9989 predep_objects \ 9990 postdep_objects \ 9991 predeps \ 9992 postdeps \ 9993 compiler_lib_search_path \ 9994 archive_cmds \ 9995 archive_expsym_cmds \ 9996 postinstall_cmds \ 9997 postuninstall_cmds \ 9998 old_archive_from_expsyms_cmds \ 9999 allow_undefined_flag \ 10000 no_undefined_flag \ 10001 export_symbols_cmds \ 10002 hardcode_libdir_flag_spec \ 10003 hardcode_libdir_flag_spec_ld \ 10004 hardcode_libdir_separator \ 10005 hardcode_automatic \ 10006 module_cmds \ 10007 module_expsym_cmds \ 10008 lt_cv_prog_compiler_c_o \ 10009 exclude_expsyms \ 10010 include_expsyms; do 10011 10012 case $var in 10013 old_archive_cmds | \ 10014 old_archive_from_new_cmds | \ 10015 archive_cmds | \ 10016 archive_expsym_cmds | \ 10017 module_cmds | \ 10018 module_expsym_cmds | \ 10019 old_archive_from_expsyms_cmds | \ 10020 export_symbols_cmds | \ 10021 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10022 postinstall_cmds | postuninstall_cmds | \ 10023 old_postinstall_cmds | old_postuninstall_cmds | \ 10024 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10025 # Double-quote double-evaled strings. 10026 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10027 ;; 10028 *) 10029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10030 ;; 10031 esac 10032 done 10033 10034 case $lt_echo in 10035 *'\$0 --fallback-echo"') 10036 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10037 ;; 10038 esac 10039 10040cfgfile="${ofile}T" 10041 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10042 $rm -f "$cfgfile" 10043 { echo "$as_me:$LINENO: creating $ofile" >&5 10044echo "$as_me: creating $ofile" >&6;} 10045 10046 cat <<__EOF__ >> "$cfgfile" 10047#! $SHELL 10048 10049# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10050# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10051# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10052# 10053# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10054# Free Software Foundation, Inc. 10055# 10056# This file is part of GNU Libtool: 10057# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10058# 10059# This program is free software; you can redistribute it and/or modify 10060# it under the terms of the GNU General Public License as published by 10061# the Free Software Foundation; either version 2 of the License, or 10062# (at your option) any later version. 10063# 10064# This program is distributed in the hope that it will be useful, but 10065# WITHOUT ANY WARRANTY; without even the implied warranty of 10066# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10067# General Public License for more details. 10068# 10069# You should have received a copy of the GNU General Public License 10070# along with this program; if not, write to the Free Software 10071# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10072# 10073# As a special exception to the GNU General Public License, if you 10074# distribute this file as part of a program that contains a 10075# configuration script generated by Autoconf, you may include it under 10076# the same distribution terms that you use for the rest of that program. 10077 10078# A sed program that does not truncate output. 10079SED=$lt_SED 10080 10081# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10082Xsed="$SED -e 1s/^X//" 10083 10084# The HP-UX ksh and POSIX shell print the target directory to stdout 10085# if CDPATH is set. 10086(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10087 10088# The names of the tagged configurations supported by this script. 10089available_tags= 10090 10091# ### BEGIN LIBTOOL CONFIG 10092 10093# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10094 10095# Shell to use when invoking shell scripts. 10096SHELL=$lt_SHELL 10097 10098# Whether or not to build shared libraries. 10099build_libtool_libs=$enable_shared 10100 10101# Whether or not to build static libraries. 10102build_old_libs=$enable_static 10103 10104# Whether or not to add -lc for building shared libraries. 10105build_libtool_need_lc=$archive_cmds_need_lc 10106 10107# Whether or not to disallow shared libs when runtime libs are static 10108allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10109 10110# Whether or not to optimize for fast installation. 10111fast_install=$enable_fast_install 10112 10113# The host system. 10114host_alias=$host_alias 10115host=$host 10116host_os=$host_os 10117 10118# The build system. 10119build_alias=$build_alias 10120build=$build 10121build_os=$build_os 10122 10123# An echo program that does not interpret backslashes. 10124echo=$lt_echo 10125 10126# The archiver. 10127AR=$lt_AR 10128AR_FLAGS=$lt_AR_FLAGS 10129 10130# A C compiler. 10131LTCC=$lt_LTCC 10132 10133# LTCC compiler flags. 10134LTCFLAGS=$lt_LTCFLAGS 10135 10136# A language-specific compiler. 10137CC=$lt_compiler 10138 10139# Is the compiler the GNU C compiler? 10140with_gcc=$GCC 10141 10142# An ERE matcher. 10143EGREP=$lt_EGREP 10144 10145# The linker used to build libraries. 10146LD=$lt_LD 10147 10148# Whether we need hard or soft links. 10149LN_S=$lt_LN_S 10150 10151# A BSD-compatible nm program. 10152NM=$lt_NM 10153 10154# A symbol stripping program 10155STRIP=$lt_STRIP 10156 10157# Used to examine libraries when file_magic_cmd begins "file" 10158MAGIC_CMD=$MAGIC_CMD 10159 10160# Used on cygwin: DLL creation program. 10161DLLTOOL="$DLLTOOL" 10162 10163# Used on cygwin: object dumper. 10164OBJDUMP="$OBJDUMP" 10165 10166# Used on cygwin: assembler. 10167AS="$AS" 10168 10169# The name of the directory that contains temporary libtool files. 10170objdir=$objdir 10171 10172# How to create reloadable object files. 10173reload_flag=$lt_reload_flag 10174reload_cmds=$lt_reload_cmds 10175 10176# How to pass a linker flag through the compiler. 10177wl=$lt_lt_prog_compiler_wl 10178 10179# Object file suffix (normally "o"). 10180objext="$ac_objext" 10181 10182# Old archive suffix (normally "a"). 10183libext="$libext" 10184 10185# Shared library suffix (normally ".so"). 10186shrext_cmds='$shrext_cmds' 10187 10188# Executable file suffix (normally ""). 10189exeext="$exeext" 10190 10191# Additional compiler flags for building library objects. 10192pic_flag=$lt_lt_prog_compiler_pic 10193pic_mode=$pic_mode 10194 10195# What is the maximum length of a command? 10196max_cmd_len=$lt_cv_sys_max_cmd_len 10197 10198# Does compiler simultaneously support -c and -o options? 10199compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10200 10201# Must we lock files when doing compilation? 10202need_locks=$lt_need_locks 10203 10204# Do we need the lib prefix for modules? 10205need_lib_prefix=$need_lib_prefix 10206 10207# Do we need a version for libraries? 10208need_version=$need_version 10209 10210# Whether dlopen is supported. 10211dlopen_support=$enable_dlopen 10212 10213# Whether dlopen of programs is supported. 10214dlopen_self=$enable_dlopen_self 10215 10216# Whether dlopen of statically linked programs is supported. 10217dlopen_self_static=$enable_dlopen_self_static 10218 10219# Compiler flag to prevent dynamic linking. 10220link_static_flag=$lt_lt_prog_compiler_static 10221 10222# Compiler flag to turn off builtin functions. 10223no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10224 10225# Compiler flag to allow reflexive dlopens. 10226export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10227 10228# Compiler flag to generate shared objects directly from archives. 10229whole_archive_flag_spec=$lt_whole_archive_flag_spec 10230 10231# Compiler flag to generate thread-safe objects. 10232thread_safe_flag_spec=$lt_thread_safe_flag_spec 10233 10234# Library versioning type. 10235version_type=$version_type 10236 10237# Format of library name prefix. 10238libname_spec=$lt_libname_spec 10239 10240# List of archive names. First name is the real one, the rest are links. 10241# The last name is the one that the linker finds with -lNAME. 10242library_names_spec=$lt_library_names_spec 10243 10244# The coded name of the library, if different from the real name. 10245soname_spec=$lt_soname_spec 10246 10247# Commands used to build and install an old-style archive. 10248RANLIB=$lt_RANLIB 10249old_archive_cmds=$lt_old_archive_cmds 10250old_postinstall_cmds=$lt_old_postinstall_cmds 10251old_postuninstall_cmds=$lt_old_postuninstall_cmds 10252 10253# Create an old-style archive from a shared archive. 10254old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10255 10256# Create a temporary old-style archive to link instead of a shared archive. 10257old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10258 10259# Commands used to build and install a shared archive. 10260archive_cmds=$lt_archive_cmds 10261archive_expsym_cmds=$lt_archive_expsym_cmds 10262postinstall_cmds=$lt_postinstall_cmds 10263postuninstall_cmds=$lt_postuninstall_cmds 10264 10265# Commands used to build a loadable module (assumed same as above if empty) 10266module_cmds=$lt_module_cmds 10267module_expsym_cmds=$lt_module_expsym_cmds 10268 10269# Commands to strip libraries. 10270old_striplib=$lt_old_striplib 10271striplib=$lt_striplib 10272 10273# Dependencies to place before the objects being linked to create a 10274# shared library. 10275predep_objects=$lt_predep_objects 10276 10277# Dependencies to place after the objects being linked to create a 10278# shared library. 10279postdep_objects=$lt_postdep_objects 10280 10281# Dependencies to place before the objects being linked to create a 10282# shared library. 10283predeps=$lt_predeps 10284 10285# Dependencies to place after the objects being linked to create a 10286# shared library. 10287postdeps=$lt_postdeps 10288 10289# The library search path used internally by the compiler when linking 10290# a shared library. 10291compiler_lib_search_path=$lt_compiler_lib_search_path 10292 10293# Method to check whether dependent libraries are shared objects. 10294deplibs_check_method=$lt_deplibs_check_method 10295 10296# Command to use when deplibs_check_method == file_magic. 10297file_magic_cmd=$lt_file_magic_cmd 10298 10299# Flag that allows shared libraries with undefined symbols to be built. 10300allow_undefined_flag=$lt_allow_undefined_flag 10301 10302# Flag that forces no undefined symbols. 10303no_undefined_flag=$lt_no_undefined_flag 10304 10305# Commands used to finish a libtool library installation in a directory. 10306finish_cmds=$lt_finish_cmds 10307 10308# Same as above, but a single script fragment to be evaled but not shown. 10309finish_eval=$lt_finish_eval 10310 10311# Take the output of nm and produce a listing of raw symbols and C names. 10312global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10313 10314# Transform the output of nm in a proper C declaration 10315global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10316 10317# Transform the output of nm in a C name address pair 10318global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10319 10320# This is the shared library runtime path variable. 10321runpath_var=$runpath_var 10322 10323# This is the shared library path variable. 10324shlibpath_var=$shlibpath_var 10325 10326# Is shlibpath searched before the hard-coded library search path? 10327shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10328 10329# How to hardcode a shared library path into an executable. 10330hardcode_action=$hardcode_action 10331 10332# Whether we should hardcode library paths into libraries. 10333hardcode_into_libs=$hardcode_into_libs 10334 10335# Flag to hardcode \$libdir into a binary during linking. 10336# This must work even if \$libdir does not exist. 10337hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10338 10339# If ld is used when linking, flag to hardcode \$libdir into 10340# a binary during linking. This must work even if \$libdir does 10341# not exist. 10342hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10343 10344# Whether we need a single -rpath flag with a separated argument. 10345hardcode_libdir_separator=$lt_hardcode_libdir_separator 10346 10347# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10348# resulting binary. 10349hardcode_direct=$hardcode_direct 10350 10351# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10352# resulting binary. 10353hardcode_minus_L=$hardcode_minus_L 10354 10355# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10356# the resulting binary. 10357hardcode_shlibpath_var=$hardcode_shlibpath_var 10358 10359# Set to yes if building a shared library automatically hardcodes DIR into the library 10360# and all subsequent libraries and executables linked against it. 10361hardcode_automatic=$hardcode_automatic 10362 10363# Variables whose values should be saved in libtool wrapper scripts and 10364# restored at relink time. 10365variables_saved_for_relink="$variables_saved_for_relink" 10366 10367# Whether libtool must link a program against all its dependency libraries. 10368link_all_deplibs=$link_all_deplibs 10369 10370# Compile-time system search path for libraries 10371sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10372 10373# Run-time system search path for libraries 10374sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10375 10376# Fix the shell variable \$srcfile for the compiler. 10377fix_srcfile_path="$fix_srcfile_path" 10378 10379# Set to yes if exported symbols are required. 10380always_export_symbols=$always_export_symbols 10381 10382# The commands to list exported symbols. 10383export_symbols_cmds=$lt_export_symbols_cmds 10384 10385# The commands to extract the exported symbol list from a shared archive. 10386extract_expsyms_cmds=$lt_extract_expsyms_cmds 10387 10388# Symbols that should not be listed in the preloaded symbols. 10389exclude_expsyms=$lt_exclude_expsyms 10390 10391# Symbols that must always be exported. 10392include_expsyms=$lt_include_expsyms 10393 10394# ### END LIBTOOL CONFIG 10395 10396__EOF__ 10397 10398 10399 case $host_os in 10400 aix3*) 10401 cat <<\EOF >> "$cfgfile" 10402 10403# AIX sometimes has problems with the GCC collect2 program. For some 10404# reason, if we set the COLLECT_NAMES environment variable, the problems 10405# vanish in a puff of smoke. 10406if test "X${COLLECT_NAMES+set}" != Xset; then 10407 COLLECT_NAMES= 10408 export COLLECT_NAMES 10409fi 10410EOF 10411 ;; 10412 esac 10413 10414 # We use sed instead of cat because bash on DJGPP gets confused if 10415 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10416 # text mode, it properly converts lines to CR/LF. This bash problem 10417 # is reportedly fixed, but why not run on old versions too? 10418 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10419 10420 mv -f "$cfgfile" "$ofile" || \ 10421 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10422 chmod +x "$ofile" 10423 10424else 10425 # If there is no Makefile yet, we rely on a make rule to execute 10426 # `config.status --recheck' to rerun these tests and create the 10427 # libtool script then. 10428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10429 if test -f "$ltmain_in"; then 10430 test -f Makefile && make "$ltmain" 10431 fi 10432fi 10433 10434 10435ac_ext=c 10436ac_cpp='$CPP $CPPFLAGS' 10437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10439ac_compiler_gnu=$ac_cv_c_compiler_gnu 10440 10441CC="$lt_save_CC" 10442 10443 10444# Check whether --with-tags was given. 10445if test "${with_tags+set}" = set; then 10446 withval=$with_tags; tagnames="$withval" 10447fi 10448 10449 10450if test -f "$ltmain" && test -n "$tagnames"; then 10451 if test ! -f "${ofile}"; then 10452 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10453echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10454 fi 10455 10456 if test -z "$LTCC"; then 10457 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10458 if test -z "$LTCC"; then 10459 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10460echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10461 else 10462 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10463echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10464 fi 10465 fi 10466 if test -z "$LTCFLAGS"; then 10467 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10468 fi 10469 10470 # Extract list of available tagged configurations in $ofile. 10471 # Note that this assumes the entire list is on one line. 10472 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10473 10474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10475 for tagname in $tagnames; do 10476 IFS="$lt_save_ifs" 10477 # Check whether tagname contains only valid characters 10478 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10479 "") ;; 10480 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10481echo "$as_me: error: invalid tag name: $tagname" >&2;} 10482 { (exit 1); exit 1; }; } 10483 ;; 10484 esac 10485 10486 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10487 then 10488 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10489echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10490 { (exit 1); exit 1; }; } 10491 fi 10492 10493 # Update the list of available tags. 10494 if test -n "$tagname"; then 10495 echo appending configuration tag \"$tagname\" to $ofile 10496 10497 case $tagname in 10498 CXX) 10499 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10500 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10501 (test "X$CXX" != "Xg++"))) ; then 10502 ac_ext=cpp 10503ac_cpp='$CXXCPP $CPPFLAGS' 10504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10507 10508 10509 10510 10511archive_cmds_need_lc_CXX=no 10512allow_undefined_flag_CXX= 10513always_export_symbols_CXX=no 10514archive_expsym_cmds_CXX= 10515export_dynamic_flag_spec_CXX= 10516hardcode_direct_CXX=no 10517hardcode_libdir_flag_spec_CXX= 10518hardcode_libdir_flag_spec_ld_CXX= 10519hardcode_libdir_separator_CXX= 10520hardcode_minus_L_CXX=no 10521hardcode_shlibpath_var_CXX=unsupported 10522hardcode_automatic_CXX=no 10523module_cmds_CXX= 10524module_expsym_cmds_CXX= 10525link_all_deplibs_CXX=unknown 10526old_archive_cmds_CXX=$old_archive_cmds 10527no_undefined_flag_CXX= 10528whole_archive_flag_spec_CXX= 10529enable_shared_with_static_runtimes_CXX=no 10530 10531# Dependencies to place before and after the object being linked: 10532predep_objects_CXX= 10533postdep_objects_CXX= 10534predeps_CXX= 10535postdeps_CXX= 10536compiler_lib_search_path_CXX= 10537 10538# Source file extension for C++ test sources. 10539ac_ext=cpp 10540 10541# Object file extension for compiled C++ test sources. 10542objext=o 10543objext_CXX=$objext 10544 10545# Code to be used in simple compile tests 10546lt_simple_compile_test_code="int some_variable = 0;\n" 10547 10548# Code to be used in simple link tests 10549lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10550 10551# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10552 10553# If no C compiler was specified, use CC. 10554LTCC=${LTCC-"$CC"} 10555 10556# If no C compiler flags were specified, use CFLAGS. 10557LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10558 10559# Allow CC to be a program name with arguments. 10560compiler=$CC 10561 10562 10563# save warnings/boilerplate of simple test code 10564ac_outfile=conftest.$ac_objext 10565printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10566eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10567_lt_compiler_boilerplate=`cat conftest.err` 10568$rm conftest* 10569 10570ac_outfile=conftest.$ac_objext 10571printf "$lt_simple_link_test_code" >conftest.$ac_ext 10572eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10573_lt_linker_boilerplate=`cat conftest.err` 10574$rm conftest* 10575 10576 10577# Allow CC to be a program name with arguments. 10578lt_save_CC=$CC 10579lt_save_LD=$LD 10580lt_save_GCC=$GCC 10581GCC=$GXX 10582lt_save_with_gnu_ld=$with_gnu_ld 10583lt_save_path_LD=$lt_cv_path_LD 10584if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10585 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10586else 10587 $as_unset lt_cv_prog_gnu_ld 10588fi 10589if test -n "${lt_cv_path_LDCXX+set}"; then 10590 lt_cv_path_LD=$lt_cv_path_LDCXX 10591else 10592 $as_unset lt_cv_path_LD 10593fi 10594test -z "${LDCXX+set}" || LD=$LDCXX 10595CC=${CXX-"c++"} 10596compiler=$CC 10597compiler_CXX=$CC 10598for cc_temp in $compiler""; do 10599 case $cc_temp in 10600 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10601 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10602 \-*) ;; 10603 *) break;; 10604 esac 10605done 10606cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10607 10608 10609# We don't want -fno-exception wen compiling C++ code, so set the 10610# no_builtin_flag separately 10611if test "$GXX" = yes; then 10612 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10613else 10614 lt_prog_compiler_no_builtin_flag_CXX= 10615fi 10616 10617if test "$GXX" = yes; then 10618 # Set up default GNU C++ configuration 10619 10620 10621# Check whether --with-gnu-ld was given. 10622if test "${with_gnu_ld+set}" = set; then 10623 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10624else 10625 with_gnu_ld=no 10626fi 10627 10628ac_prog=ld 10629if test "$GCC" = yes; then 10630 # Check if gcc -print-prog-name=ld gives a path. 10631 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10632echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10633 case $host in 10634 *-*-mingw*) 10635 # gcc leaves a trailing carriage return which upsets mingw 10636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10637 *) 10638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10639 esac 10640 case $ac_prog in 10641 # Accept absolute paths. 10642 [\\/]* | ?:[\\/]*) 10643 re_direlt='/[^/][^/]*/\.\./' 10644 # Canonicalize the pathname of ld 10645 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10646 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10647 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10648 done 10649 test -z "$LD" && LD="$ac_prog" 10650 ;; 10651 "") 10652 # If it fails, then pretend we aren't using GCC. 10653 ac_prog=ld 10654 ;; 10655 *) 10656 # If it is relative, then search for the first ld in PATH. 10657 with_gnu_ld=unknown 10658 ;; 10659 esac 10660elif test "$with_gnu_ld" = yes; then 10661 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10662echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10663else 10664 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10665echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10666fi 10667if test "${lt_cv_path_LD+set}" = set; then 10668 echo $ECHO_N "(cached) $ECHO_C" >&6 10669else 10670 if test -z "$LD"; then 10671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10672 for ac_dir in $PATH; do 10673 IFS="$lt_save_ifs" 10674 test -z "$ac_dir" && ac_dir=. 10675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10676 lt_cv_path_LD="$ac_dir/$ac_prog" 10677 # Check to see if the program is GNU ld. I'd rather use --version, 10678 # but apparently some variants of GNU ld only accept -v. 10679 # Break only if it was the GNU/non-GNU ld that we prefer. 10680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10681 *GNU* | *'with BFD'*) 10682 test "$with_gnu_ld" != no && break 10683 ;; 10684 *) 10685 test "$with_gnu_ld" != yes && break 10686 ;; 10687 esac 10688 fi 10689 done 10690 IFS="$lt_save_ifs" 10691else 10692 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10693fi 10694fi 10695 10696LD="$lt_cv_path_LD" 10697if test -n "$LD"; then 10698 { echo "$as_me:$LINENO: result: $LD" >&5 10699echo "${ECHO_T}$LD" >&6; } 10700else 10701 { echo "$as_me:$LINENO: result: no" >&5 10702echo "${ECHO_T}no" >&6; } 10703fi 10704test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10705echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10706 { (exit 1); exit 1; }; } 10707{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10708echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10709if test "${lt_cv_prog_gnu_ld+set}" = set; then 10710 echo $ECHO_N "(cached) $ECHO_C" >&6 10711else 10712 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10713case `$LD -v 2>&1 </dev/null` in 10714*GNU* | *'with BFD'*) 10715 lt_cv_prog_gnu_ld=yes 10716 ;; 10717*) 10718 lt_cv_prog_gnu_ld=no 10719 ;; 10720esac 10721fi 10722{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10723echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10724with_gnu_ld=$lt_cv_prog_gnu_ld 10725 10726 10727 10728 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10729 # archiving commands below assume that GNU ld is being used. 10730 if test "$with_gnu_ld" = yes; then 10731 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10732 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' 10733 10734 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10736 10737 # If archive_cmds runs LD, not CC, wlarc should be empty 10738 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10739 # investigate it a little bit more. (MM) 10740 wlarc='${wl}' 10741 10742 # ancient GNU ld didn't support --whole-archive et. al. 10743 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10744 grep 'no-whole-archive' > /dev/null; then 10745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10746 else 10747 whole_archive_flag_spec_CXX= 10748 fi 10749 else 10750 with_gnu_ld=no 10751 wlarc= 10752 10753 # A generic and very simple default shared library creation 10754 # command for GNU C++ for the case where it uses the native 10755 # linker, instead of GNU ld. If possible, this setting should 10756 # overridden to take advantage of the native linker features on 10757 # the platform it is being used on. 10758 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10759 fi 10760 10761 # Commands to make compiler produce verbose output that lists 10762 # what "hidden" libraries, object files and flags are used when 10763 # linking a shared library. 10764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10765 10766else 10767 GXX=no 10768 with_gnu_ld=no 10769 wlarc= 10770fi 10771 10772# PORTME: fill in a description of your system's C++ link characteristics 10773{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10774echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10775ld_shlibs_CXX=yes 10776case $host_os in 10777 aix3*) 10778 # FIXME: insert proper C++ library support 10779 ld_shlibs_CXX=no 10780 ;; 10781 aix4* | aix5*) 10782 if test "$host_cpu" = ia64; then 10783 # On IA64, the linker does run time linking by default, so we don't 10784 # have to do anything special. 10785 aix_use_runtimelinking=no 10786 exp_sym_flag='-Bexport' 10787 no_entry_flag="" 10788 else 10789 aix_use_runtimelinking=no 10790 10791 # Test if we are trying to use run time linking or normal 10792 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10793 # need to do runtime linking. 10794 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10795 for ld_flag in $LDFLAGS; do 10796 case $ld_flag in 10797 *-brtl*) 10798 aix_use_runtimelinking=yes 10799 break 10800 ;; 10801 esac 10802 done 10803 ;; 10804 esac 10805 10806 exp_sym_flag='-bexport' 10807 no_entry_flag='-bnoentry' 10808 fi 10809 10810 # When large executables or shared objects are built, AIX ld can 10811 # have problems creating the table of contents. If linking a library 10812 # or program results in "error TOC overflow" add -mminimal-toc to 10813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10815 10816 archive_cmds_CXX='' 10817 hardcode_direct_CXX=yes 10818 hardcode_libdir_separator_CXX=':' 10819 link_all_deplibs_CXX=yes 10820 10821 if test "$GXX" = yes; then 10822 case $host_os in aix4.[012]|aix4.[012].*) 10823 # We only want to do this on AIX 4.2 and lower, the check 10824 # below for broken collect2 doesn't work under 4.3+ 10825 collect2name=`${CC} -print-prog-name=collect2` 10826 if test -f "$collect2name" && \ 10827 strings "$collect2name" | grep resolve_lib_name >/dev/null 10828 then 10829 # We have reworked collect2 10830 hardcode_direct_CXX=yes 10831 else 10832 # We have old collect2 10833 hardcode_direct_CXX=unsupported 10834 # It fails to find uninstalled libraries when the uninstalled 10835 # path is not listed in the libpath. Setting hardcode_minus_L 10836 # to unsupported forces relinking 10837 hardcode_minus_L_CXX=yes 10838 hardcode_libdir_flag_spec_CXX='-L$libdir' 10839 hardcode_libdir_separator_CXX= 10840 fi 10841 ;; 10842 esac 10843 shared_flag='-shared' 10844 if test "$aix_use_runtimelinking" = yes; then 10845 shared_flag="$shared_flag "'${wl}-G' 10846 fi 10847 else 10848 # not using gcc 10849 if test "$host_cpu" = ia64; then 10850 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10851 # chokes on -Wl,-G. The following line is correct: 10852 shared_flag='-G' 10853 else 10854 if test "$aix_use_runtimelinking" = yes; then 10855 shared_flag='${wl}-G' 10856 else 10857 shared_flag='${wl}-bM:SRE' 10858 fi 10859 fi 10860 fi 10861 10862 # It seems that -bexpall does not export symbols beginning with 10863 # underscore (_), so it is better to generate a list of symbols to export. 10864 always_export_symbols_CXX=yes 10865 if test "$aix_use_runtimelinking" = yes; then 10866 # Warning - without using the other runtime loading flags (-brtl), 10867 # -berok will link without error, but may produce a broken library. 10868 allow_undefined_flag_CXX='-berok' 10869 # Determine the default libpath from the value encoded in an empty executable. 10870 cat >conftest.$ac_ext <<_ACEOF 10871/* confdefs.h. */ 10872_ACEOF 10873cat confdefs.h >>conftest.$ac_ext 10874cat >>conftest.$ac_ext <<_ACEOF 10875/* end confdefs.h. */ 10876 10877int 10878main () 10879{ 10880 10881 ; 10882 return 0; 10883} 10884_ACEOF 10885rm -f conftest.$ac_objext conftest$ac_exeext 10886if { (ac_try="$ac_link" 10887case "(($ac_try" in 10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10889 *) ac_try_echo=$ac_try;; 10890esac 10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10892 (eval "$ac_link") 2>conftest.er1 10893 ac_status=$? 10894 grep -v '^ *+' conftest.er1 >conftest.err 10895 rm -f conftest.er1 10896 cat conftest.err >&5 10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10898 (exit $ac_status); } && { 10899 test -z "$ac_cxx_werror_flag" || 10900 test ! -s conftest.err 10901 } && test -s conftest$ac_exeext && 10902 $as_test_x conftest$ac_exeext; then 10903 10904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10905}'` 10906# Check for a 64-bit object if we didn't find anything. 10907if 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; } 10908}'`; fi 10909else 10910 echo "$as_me: failed program was:" >&5 10911sed 's/^/| /' conftest.$ac_ext >&5 10912 10913 10914fi 10915 10916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10917 conftest$ac_exeext conftest.$ac_ext 10918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10919 10920 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10921 10922 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" 10923 else 10924 if test "$host_cpu" = ia64; then 10925 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10926 allow_undefined_flag_CXX="-z nodefs" 10927 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" 10928 else 10929 # Determine the default libpath from the value encoded in an empty executable. 10930 cat >conftest.$ac_ext <<_ACEOF 10931/* confdefs.h. */ 10932_ACEOF 10933cat confdefs.h >>conftest.$ac_ext 10934cat >>conftest.$ac_ext <<_ACEOF 10935/* end confdefs.h. */ 10936 10937int 10938main () 10939{ 10940 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945rm -f conftest.$ac_objext conftest$ac_exeext 10946if { (ac_try="$ac_link" 10947case "(($ac_try" in 10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10949 *) ac_try_echo=$ac_try;; 10950esac 10951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10952 (eval "$ac_link") 2>conftest.er1 10953 ac_status=$? 10954 grep -v '^ *+' conftest.er1 >conftest.err 10955 rm -f conftest.er1 10956 cat conftest.err >&5 10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10958 (exit $ac_status); } && { 10959 test -z "$ac_cxx_werror_flag" || 10960 test ! -s conftest.err 10961 } && test -s conftest$ac_exeext && 10962 $as_test_x conftest$ac_exeext; then 10963 10964aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10965}'` 10966# Check for a 64-bit object if we didn't find anything. 10967if 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; } 10968}'`; fi 10969else 10970 echo "$as_me: failed program was:" >&5 10971sed 's/^/| /' conftest.$ac_ext >&5 10972 10973 10974fi 10975 10976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10977 conftest$ac_exeext conftest.$ac_ext 10978if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10979 10980 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10981 # Warning - without using the other run time loading flags, 10982 # -berok will link without error, but may produce a broken library. 10983 no_undefined_flag_CXX=' ${wl}-bernotok' 10984 allow_undefined_flag_CXX=' ${wl}-berok' 10985 # Exported symbols can be pulled into shared objects from archives 10986 whole_archive_flag_spec_CXX='$convenience' 10987 archive_cmds_need_lc_CXX=yes 10988 # This is similar to how AIX traditionally builds its shared libraries. 10989 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' 10990 fi 10991 fi 10992 ;; 10993 10994 beos*) 10995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10996 allow_undefined_flag_CXX=unsupported 10997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10998 # support --undefined. This deserves some investigation. FIXME 10999 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11000 else 11001 ld_shlibs_CXX=no 11002 fi 11003 ;; 11004 11005 chorus*) 11006 case $cc_basename in 11007 *) 11008 # FIXME: insert proper C++ library support 11009 ld_shlibs_CXX=no 11010 ;; 11011 esac 11012 ;; 11013 11014 cygwin* | mingw* | pw32*) 11015 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11016 # as there is no search path for DLLs. 11017 hardcode_libdir_flag_spec_CXX='-L$libdir' 11018 allow_undefined_flag_CXX=unsupported 11019 always_export_symbols_CXX=no 11020 enable_shared_with_static_runtimes_CXX=yes 11021 11022 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11023 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' 11024 # If the export-symbols file already is a .def file (1st line 11025 # is EXPORTS), use it as is; otherwise, prepend... 11026 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11027 cp $export_symbols $output_objdir/$soname.def; 11028 else 11029 echo EXPORTS > $output_objdir/$soname.def; 11030 cat $export_symbols >> $output_objdir/$soname.def; 11031 fi~ 11032 $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' 11033 else 11034 ld_shlibs_CXX=no 11035 fi 11036 ;; 11037 darwin* | rhapsody*) 11038 case $host_os in 11039 rhapsody* | darwin1.[012]) 11040 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11041 ;; 11042 *) # Darwin 1.3 on 11043 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11044 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11045 else 11046 case ${MACOSX_DEPLOYMENT_TARGET} in 11047 10.[012]) 11048 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11049 ;; 11050 10.*) 11051 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11052 ;; 11053 esac 11054 fi 11055 ;; 11056 esac 11057 archive_cmds_need_lc_CXX=no 11058 hardcode_direct_CXX=no 11059 hardcode_automatic_CXX=yes 11060 hardcode_shlibpath_var_CXX=unsupported 11061 whole_archive_flag_spec_CXX='' 11062 link_all_deplibs_CXX=yes 11063 11064 if test "$GXX" = yes ; then 11065 lt_int_apple_cc_single_mod=no 11066 output_verbose_link_cmd='echo' 11067 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11068 lt_int_apple_cc_single_mod=yes 11069 fi 11070 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11071 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11072 else 11073 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' 11074 fi 11075 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11076 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11077 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11078 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}' 11079 else 11080 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}' 11081 fi 11082 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}' 11083 else 11084 case $cc_basename in 11085 xlc*) 11086 output_verbose_link_cmd='echo' 11087 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' 11088 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11089 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11090 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}' 11091 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}' 11092 ;; 11093 *) 11094 ld_shlibs_CXX=no 11095 ;; 11096 esac 11097 fi 11098 ;; 11099 11100 dgux*) 11101 case $cc_basename in 11102 ec++*) 11103 # FIXME: insert proper C++ library support 11104 ld_shlibs_CXX=no 11105 ;; 11106 ghcx*) 11107 # Green Hills C++ Compiler 11108 # FIXME: insert proper C++ library support 11109 ld_shlibs_CXX=no 11110 ;; 11111 *) 11112 # FIXME: insert proper C++ library support 11113 ld_shlibs_CXX=no 11114 ;; 11115 esac 11116 ;; 11117 freebsd[12]*) 11118 # C++ shared libraries reported to be fairly broken before switch to ELF 11119 ld_shlibs_CXX=no 11120 ;; 11121 freebsd-elf*) 11122 archive_cmds_need_lc_CXX=no 11123 ;; 11124 freebsd* | dragonfly*) 11125 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11126 # conventions 11127 ld_shlibs_CXX=yes 11128 ;; 11129 gnu*) 11130 ;; 11131 hpux9*) 11132 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11133 hardcode_libdir_separator_CXX=: 11134 export_dynamic_flag_spec_CXX='${wl}-E' 11135 hardcode_direct_CXX=yes 11136 hardcode_minus_L_CXX=yes # Not in the search PATH, 11137 # but as the default 11138 # location of the library. 11139 11140 case $cc_basename in 11141 CC*) 11142 # FIXME: insert proper C++ library support 11143 ld_shlibs_CXX=no 11144 ;; 11145 aCC*) 11146 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' 11147 # Commands to make compiler produce verbose output that lists 11148 # what "hidden" libraries, object files and flags are used when 11149 # linking a shared library. 11150 # 11151 # There doesn't appear to be a way to prevent this compiler from 11152 # explicitly linking system object files so we need to strip them 11153 # from the output so that they don't get included in the library 11154 # dependencies. 11155 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' 11156 ;; 11157 *) 11158 if test "$GXX" = yes; then 11159 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' 11160 else 11161 # FIXME: insert proper C++ library support 11162 ld_shlibs_CXX=no 11163 fi 11164 ;; 11165 esac 11166 ;; 11167 hpux10*|hpux11*) 11168 if test $with_gnu_ld = no; then 11169 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11170 hardcode_libdir_separator_CXX=: 11171 11172 case $host_cpu in 11173 hppa*64*|ia64*) 11174 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11175 ;; 11176 *) 11177 export_dynamic_flag_spec_CXX='${wl}-E' 11178 ;; 11179 esac 11180 fi 11181 case $host_cpu in 11182 hppa*64*|ia64*) 11183 hardcode_direct_CXX=no 11184 hardcode_shlibpath_var_CXX=no 11185 ;; 11186 *) 11187 hardcode_direct_CXX=yes 11188 hardcode_minus_L_CXX=yes # Not in the search PATH, 11189 # but as the default 11190 # location of the library. 11191 ;; 11192 esac 11193 11194 case $cc_basename in 11195 CC*) 11196 # FIXME: insert proper C++ library support 11197 ld_shlibs_CXX=no 11198 ;; 11199 aCC*) 11200 case $host_cpu in 11201 hppa*64*) 11202 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11203 ;; 11204 ia64*) 11205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11206 ;; 11207 *) 11208 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11209 ;; 11210 esac 11211 # Commands to make compiler produce verbose output that lists 11212 # what "hidden" libraries, object files and flags are used when 11213 # linking a shared library. 11214 # 11215 # There doesn't appear to be a way to prevent this compiler from 11216 # explicitly linking system object files so we need to strip them 11217 # from the output so that they don't get included in the library 11218 # dependencies. 11219 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' 11220 ;; 11221 *) 11222 if test "$GXX" = yes; then 11223 if test $with_gnu_ld = no; then 11224 case $host_cpu in 11225 hppa*64*) 11226 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11227 ;; 11228 ia64*) 11229 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11230 ;; 11231 *) 11232 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' 11233 ;; 11234 esac 11235 fi 11236 else 11237 # FIXME: insert proper C++ library support 11238 ld_shlibs_CXX=no 11239 fi 11240 ;; 11241 esac 11242 ;; 11243 interix3*) 11244 hardcode_direct_CXX=no 11245 hardcode_shlibpath_var_CXX=no 11246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11247 export_dynamic_flag_spec_CXX='${wl}-E' 11248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11249 # Instead, shared libraries are loaded at an image base (0x10000000 by 11250 # default) and relocated if they conflict, which is a slow very memory 11251 # consuming and fragmenting process. To avoid this, we pick a random, 11252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11253 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11254 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' 11255 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' 11256 ;; 11257 irix5* | irix6*) 11258 case $cc_basename in 11259 CC*) 11260 # SGI C++ 11261 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' 11262 11263 # Archives containing C++ object files must be created using 11264 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11265 # necessary to make sure instantiated templates are included 11266 # in the archive. 11267 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11268 ;; 11269 *) 11270 if test "$GXX" = yes; then 11271 if test "$with_gnu_ld" = no; then 11272 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' 11273 else 11274 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' 11275 fi 11276 fi 11277 link_all_deplibs_CXX=yes 11278 ;; 11279 esac 11280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11281 hardcode_libdir_separator_CXX=: 11282 ;; 11283 linux* | k*bsd*-gnu) 11284 case $cc_basename in 11285 KCC*) 11286 # Kuck and Associates, Inc. (KAI) C++ Compiler 11287 11288 # KCC will only create a shared library if the output file 11289 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11290 # to its proper name (with version) after linking. 11291 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' 11292 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' 11293 # Commands to make compiler produce verbose output that lists 11294 # what "hidden" libraries, object files and flags are used when 11295 # linking a shared library. 11296 # 11297 # There doesn't appear to be a way to prevent this compiler from 11298 # explicitly linking system object files so we need to strip them 11299 # from the output so that they don't get included in the library 11300 # dependencies. 11301 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' 11302 11303 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11305 11306 # Archives containing C++ object files must be created using 11307 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11308 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11309 ;; 11310 icpc*) 11311 # Intel C++ 11312 with_gnu_ld=yes 11313 # version 8.0 and above of icpc choke on multiply defined symbols 11314 # if we add $predep_objects and $postdep_objects, however 7.1 and 11315 # earlier do not add the objects themselves. 11316 case `$CC -V 2>&1` in 11317 *"Version 7."*) 11318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11319 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' 11320 ;; 11321 *) # Version 8.0 or newer 11322 tmp_idyn= 11323 case $host_cpu in 11324 ia64*) tmp_idyn=' -i_dynamic';; 11325 esac 11326 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11327 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' 11328 ;; 11329 esac 11330 archive_cmds_need_lc_CXX=no 11331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11334 ;; 11335 pgCC*) 11336 # Portland Group C++ compiler 11337 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11338 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' 11339 11340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11342 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' 11343 ;; 11344 cxx*) 11345 # Compaq C++ 11346 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11347 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' 11348 11349 runpath_var=LD_RUN_PATH 11350 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11351 hardcode_libdir_separator_CXX=: 11352 11353 # Commands to make compiler produce verbose output that lists 11354 # what "hidden" libraries, object files and flags are used when 11355 # linking a shared library. 11356 # 11357 # There doesn't appear to be a way to prevent this compiler from 11358 # explicitly linking system object files so we need to strip them 11359 # from the output so that they don't get included in the library 11360 # dependencies. 11361 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' 11362 ;; 11363 esac 11364 ;; 11365 lynxos*) 11366 # FIXME: insert proper C++ library support 11367 ld_shlibs_CXX=no 11368 ;; 11369 m88k*) 11370 # FIXME: insert proper C++ library support 11371 ld_shlibs_CXX=no 11372 ;; 11373 mvs*) 11374 case $cc_basename in 11375 cxx*) 11376 # FIXME: insert proper C++ library support 11377 ld_shlibs_CXX=no 11378 ;; 11379 *) 11380 # FIXME: insert proper C++ library support 11381 ld_shlibs_CXX=no 11382 ;; 11383 esac 11384 ;; 11385 netbsd* | netbsdelf*-gnu) 11386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11387 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11388 wlarc= 11389 hardcode_libdir_flag_spec_CXX='-R$libdir' 11390 hardcode_direct_CXX=yes 11391 hardcode_shlibpath_var_CXX=no 11392 fi 11393 # Workaround some broken pre-1.5 toolchains 11394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11395 ;; 11396 openbsd2*) 11397 # C++ shared libraries are fairly broken 11398 ld_shlibs_CXX=no 11399 ;; 11400 openbsd*) 11401 hardcode_direct_CXX=yes 11402 hardcode_shlibpath_var_CXX=no 11403 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11404 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11406 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11407 export_dynamic_flag_spec_CXX='${wl}-E' 11408 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11409 fi 11410 output_verbose_link_cmd='echo' 11411 ;; 11412 osf3*) 11413 case $cc_basename in 11414 KCC*) 11415 # Kuck and Associates, Inc. (KAI) C++ Compiler 11416 11417 # KCC will only create a shared library if the output file 11418 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11419 # to its proper name (with version) after linking. 11420 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' 11421 11422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11423 hardcode_libdir_separator_CXX=: 11424 11425 # Archives containing C++ object files must be created using 11426 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11427 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11428 11429 ;; 11430 RCC*) 11431 # Rational C++ 2.4.1 11432 # FIXME: insert proper C++ library support 11433 ld_shlibs_CXX=no 11434 ;; 11435 cxx*) 11436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11437 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' 11438 11439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11440 hardcode_libdir_separator_CXX=: 11441 11442 # Commands to make compiler produce verbose output that lists 11443 # what "hidden" libraries, object files and flags are used when 11444 # linking a shared library. 11445 # 11446 # There doesn't appear to be a way to prevent this compiler from 11447 # explicitly linking system object files so we need to strip them 11448 # from the output so that they don't get included in the library 11449 # dependencies. 11450 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' 11451 ;; 11452 *) 11453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11455 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' 11456 11457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11458 hardcode_libdir_separator_CXX=: 11459 11460 # Commands to make compiler produce verbose output that lists 11461 # what "hidden" libraries, object files and flags are used when 11462 # linking a shared library. 11463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11464 11465 else 11466 # FIXME: insert proper C++ library support 11467 ld_shlibs_CXX=no 11468 fi 11469 ;; 11470 esac 11471 ;; 11472 osf4* | osf5*) 11473 case $cc_basename in 11474 KCC*) 11475 # Kuck and Associates, Inc. (KAI) C++ Compiler 11476 11477 # KCC will only create a shared library if the output file 11478 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11479 # to its proper name (with version) after linking. 11480 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' 11481 11482 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11483 hardcode_libdir_separator_CXX=: 11484 11485 # Archives containing C++ object files must be created using 11486 # the KAI C++ compiler. 11487 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11488 ;; 11489 RCC*) 11490 # Rational C++ 2.4.1 11491 # FIXME: insert proper C++ library support 11492 ld_shlibs_CXX=no 11493 ;; 11494 cxx*) 11495 allow_undefined_flag_CXX=' -expect_unresolved \*' 11496 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' 11497 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11498 echo "-hidden">> $lib.exp~ 11499 $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~ 11500 $rm $lib.exp' 11501 11502 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11503 hardcode_libdir_separator_CXX=: 11504 11505 # Commands to make compiler produce verbose output that lists 11506 # what "hidden" libraries, object files and flags are used when 11507 # linking a shared library. 11508 # 11509 # There doesn't appear to be a way to prevent this compiler from 11510 # explicitly linking system object files so we need to strip them 11511 # from the output so that they don't get included in the library 11512 # dependencies. 11513 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' 11514 ;; 11515 *) 11516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11517 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11518 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' 11519 11520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11521 hardcode_libdir_separator_CXX=: 11522 11523 # Commands to make compiler produce verbose output that lists 11524 # what "hidden" libraries, object files and flags are used when 11525 # linking a shared library. 11526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11527 11528 else 11529 # FIXME: insert proper C++ library support 11530 ld_shlibs_CXX=no 11531 fi 11532 ;; 11533 esac 11534 ;; 11535 psos*) 11536 # FIXME: insert proper C++ library support 11537 ld_shlibs_CXX=no 11538 ;; 11539 sunos4*) 11540 case $cc_basename in 11541 CC*) 11542 # Sun C++ 4.x 11543 # FIXME: insert proper C++ library support 11544 ld_shlibs_CXX=no 11545 ;; 11546 lcc*) 11547 # Lucid 11548 # FIXME: insert proper C++ library support 11549 ld_shlibs_CXX=no 11550 ;; 11551 *) 11552 # FIXME: insert proper C++ library support 11553 ld_shlibs_CXX=no 11554 ;; 11555 esac 11556 ;; 11557 solaris*) 11558 case $cc_basename in 11559 CC*) 11560 # Sun C++ 4.2, 5.x and Centerline C++ 11561 archive_cmds_need_lc_CXX=yes 11562 no_undefined_flag_CXX=' -zdefs' 11563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11564 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11565 $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' 11566 11567 hardcode_libdir_flag_spec_CXX='-R$libdir' 11568 hardcode_shlibpath_var_CXX=no 11569 case $host_os in 11570 solaris2.[0-5] | solaris2.[0-5].*) ;; 11571 *) 11572 # The C++ compiler is used as linker so we must use $wl 11573 # flag to pass the commands to the underlying system 11574 # linker. We must also pass each convience library through 11575 # to the system linker between allextract/defaultextract. 11576 # The C++ compiler will combine linker options so we 11577 # cannot just pass the convience library names through 11578 # without $wl. 11579 # Supported since Solaris 2.6 (maybe 2.5.1?) 11580 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' 11581 ;; 11582 esac 11583 link_all_deplibs_CXX=yes 11584 11585 output_verbose_link_cmd='echo' 11586 11587 # Archives containing C++ object files must be created using 11588 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11589 # necessary to make sure instantiated templates are included 11590 # in the archive. 11591 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11592 ;; 11593 gcx*) 11594 # Green Hills C++ Compiler 11595 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11596 11597 # The C++ compiler must be used to create the archive. 11598 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11599 ;; 11600 *) 11601 # GNU C++ compiler with Solaris linker 11602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11603 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11604 if $CC --version | grep -v '^2\.7' > /dev/null; then 11605 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11606 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11607 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11608 11609 # Commands to make compiler produce verbose output that lists 11610 # what "hidden" libraries, object files and flags are used when 11611 # linking a shared library. 11612 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11613 else 11614 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11615 # platform. 11616 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11617 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11618 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11619 11620 # Commands to make compiler produce verbose output that lists 11621 # what "hidden" libraries, object files and flags are used when 11622 # linking a shared library. 11623 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11624 fi 11625 11626 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11627 fi 11628 ;; 11629 esac 11630 ;; 11631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11632 no_undefined_flag_CXX='${wl}-z,text' 11633 archive_cmds_need_lc_CXX=no 11634 hardcode_shlibpath_var_CXX=no 11635 runpath_var='LD_RUN_PATH' 11636 11637 case $cc_basename in 11638 CC*) 11639 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11640 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11641 ;; 11642 *) 11643 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11644 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11645 ;; 11646 esac 11647 ;; 11648 sysv5* | sco3.2v5* | sco5v6*) 11649 # Note: We can NOT use -z defs as we might desire, because we do not 11650 # link with -lc, and that would cause any symbols used from libc to 11651 # always be unresolved, which means just about no library would 11652 # ever link correctly. If we're not using GNU ld we use -z text 11653 # though, which does catch some bad symbols but isn't as heavy-handed 11654 # as -z defs. 11655 # For security reasons, it is highly recommended that you always 11656 # use absolute paths for naming shared libraries, and exclude the 11657 # DT_RUNPATH tag from executables and libraries. But doing so 11658 # requires that you compile everything twice, which is a pain. 11659 # So that behaviour is only enabled if SCOABSPATH is set to a 11660 # non-empty value in the environment. Most likely only useful for 11661 # creating official distributions of packages. 11662 # This is a hack until libtool officially supports absolute path 11663 # names for shared libraries. 11664 no_undefined_flag_CXX='${wl}-z,text' 11665 allow_undefined_flag_CXX='${wl}-z,nodefs' 11666 archive_cmds_need_lc_CXX=no 11667 hardcode_shlibpath_var_CXX=no 11668 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11669 hardcode_libdir_separator_CXX=':' 11670 link_all_deplibs_CXX=yes 11671 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11672 runpath_var='LD_RUN_PATH' 11673 11674 case $cc_basename in 11675 CC*) 11676 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11677 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11678 ;; 11679 *) 11680 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11682 ;; 11683 esac 11684 ;; 11685 tandem*) 11686 case $cc_basename in 11687 NCC*) 11688 # NonStop-UX NCC 3.20 11689 # FIXME: insert proper C++ library support 11690 ld_shlibs_CXX=no 11691 ;; 11692 *) 11693 # FIXME: insert proper C++ library support 11694 ld_shlibs_CXX=no 11695 ;; 11696 esac 11697 ;; 11698 vxworks*) 11699 # FIXME: insert proper C++ library support 11700 ld_shlibs_CXX=no 11701 ;; 11702 *) 11703 # FIXME: insert proper C++ library support 11704 ld_shlibs_CXX=no 11705 ;; 11706esac 11707{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11708echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11709test "$ld_shlibs_CXX" = no && can_build_shared=no 11710 11711GCC_CXX="$GXX" 11712LD_CXX="$LD" 11713 11714 11715cat > conftest.$ac_ext <<EOF 11716class Foo 11717{ 11718public: 11719 Foo (void) { a = 0; } 11720private: 11721 int a; 11722}; 11723EOF 11724 11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11726 (eval $ac_compile) 2>&5 11727 ac_status=$? 11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11729 (exit $ac_status); }; then 11730 # Parse the compiler output and extract the necessary 11731 # objects, libraries and library flags. 11732 11733 # Sentinel used to keep track of whether or not we are before 11734 # the conftest object file. 11735 pre_test_object_deps_done=no 11736 11737 # The `*' in the case matches for architectures that use `case' in 11738 # $output_verbose_cmd can trigger glob expansion during the loop 11739 # eval without this substitution. 11740 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11741 11742 for p in `eval $output_verbose_link_cmd`; do 11743 case $p in 11744 11745 -L* | -R* | -l*) 11746 # Some compilers place space between "-{L,R}" and the path. 11747 # Remove the space. 11748 if test $p = "-L" \ 11749 || test $p = "-R"; then 11750 prev=$p 11751 continue 11752 else 11753 prev= 11754 fi 11755 11756 if test "$pre_test_object_deps_done" = no; then 11757 case $p in 11758 -L* | -R*) 11759 # Internal compiler library paths should come after those 11760 # provided the user. The postdeps already come after the 11761 # user supplied libs so there is no need to process them. 11762 if test -z "$compiler_lib_search_path_CXX"; then 11763 compiler_lib_search_path_CXX="${prev}${p}" 11764 else 11765 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11766 fi 11767 ;; 11768 # The "-l" case would never come before the object being 11769 # linked, so don't bother handling this case. 11770 esac 11771 else 11772 if test -z "$postdeps_CXX"; then 11773 postdeps_CXX="${prev}${p}" 11774 else 11775 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11776 fi 11777 fi 11778 ;; 11779 11780 *.$objext) 11781 # This assumes that the test object file only shows up 11782 # once in the compiler output. 11783 if test "$p" = "conftest.$objext"; then 11784 pre_test_object_deps_done=yes 11785 continue 11786 fi 11787 11788 if test "$pre_test_object_deps_done" = no; then 11789 if test -z "$predep_objects_CXX"; then 11790 predep_objects_CXX="$p" 11791 else 11792 predep_objects_CXX="$predep_objects_CXX $p" 11793 fi 11794 else 11795 if test -z "$postdep_objects_CXX"; then 11796 postdep_objects_CXX="$p" 11797 else 11798 postdep_objects_CXX="$postdep_objects_CXX $p" 11799 fi 11800 fi 11801 ;; 11802 11803 *) ;; # Ignore the rest. 11804 11805 esac 11806 done 11807 11808 # Clean up. 11809 rm -f a.out a.exe 11810else 11811 echo "libtool.m4: error: problem compiling CXX test program" 11812fi 11813 11814$rm -f confest.$objext 11815 11816# PORTME: override above test on systems where it is broken 11817case $host_os in 11818interix3*) 11819 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11820 # hack all around it, let's just trust "g++" to DTRT. 11821 predep_objects_CXX= 11822 postdep_objects_CXX= 11823 postdeps_CXX= 11824 ;; 11825 11826solaris*) 11827 case $cc_basename in 11828 CC*) 11829 # Adding this requires a known-good setup of shared libraries for 11830 # Sun compiler versions before 5.6, else PIC objects from an old 11831 # archive will be linked into the output, leading to subtle bugs. 11832 postdeps_CXX='-lCstd -lCrun' 11833 ;; 11834 esac 11835 ;; 11836esac 11837 11838 11839case " $postdeps_CXX " in 11840*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11841esac 11842 11843lt_prog_compiler_wl_CXX= 11844lt_prog_compiler_pic_CXX= 11845lt_prog_compiler_static_CXX= 11846 11847{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11848echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11849 11850 # C++ specific cases for pic, static, wl, etc. 11851 if test "$GXX" = yes; then 11852 lt_prog_compiler_wl_CXX='-Wl,' 11853 lt_prog_compiler_static_CXX='-static' 11854 11855 case $host_os in 11856 aix*) 11857 # All AIX code is PIC. 11858 if test "$host_cpu" = ia64; then 11859 # AIX 5 now supports IA64 processor 11860 lt_prog_compiler_static_CXX='-Bstatic' 11861 fi 11862 ;; 11863 amigaos*) 11864 # FIXME: we need at least 68020 code to build shared libraries, but 11865 # adding the `-m68020' flag to GCC prevents building anything better, 11866 # like `-m68040'. 11867 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11868 ;; 11869 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11870 # PIC is the default for these OSes. 11871 ;; 11872 mingw* | os2* | pw32*) 11873 # This hack is so that the source file can tell whether it is being 11874 # built for inclusion in a dll (and should export symbols for example). 11875 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11876 ;; 11877 darwin* | rhapsody*) 11878 # PIC is the default on this platform 11879 # Common symbols not allowed in MH_DYLIB files 11880 lt_prog_compiler_pic_CXX='-fno-common' 11881 ;; 11882 *djgpp*) 11883 # DJGPP does not support shared libraries at all 11884 lt_prog_compiler_pic_CXX= 11885 ;; 11886 interix3*) 11887 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11888 # Instead, we relocate shared libraries at runtime. 11889 ;; 11890 sysv4*MP*) 11891 if test -d /usr/nec; then 11892 lt_prog_compiler_pic_CXX=-Kconform_pic 11893 fi 11894 ;; 11895 hpux*) 11896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11897 # not for PA HP-UX. 11898 case $host_cpu in 11899 hppa*64*|ia64*) 11900 ;; 11901 *) 11902 lt_prog_compiler_pic_CXX='-fPIC' 11903 ;; 11904 esac 11905 ;; 11906 *) 11907 lt_prog_compiler_pic_CXX='-fPIC' 11908 ;; 11909 esac 11910 else 11911 case $host_os in 11912 aix4* | aix5*) 11913 # All AIX code is PIC. 11914 if test "$host_cpu" = ia64; then 11915 # AIX 5 now supports IA64 processor 11916 lt_prog_compiler_static_CXX='-Bstatic' 11917 else 11918 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11919 fi 11920 ;; 11921 chorus*) 11922 case $cc_basename in 11923 cxch68*) 11924 # Green Hills C++ Compiler 11925 # _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" 11926 ;; 11927 esac 11928 ;; 11929 darwin*) 11930 # PIC is the default on this platform 11931 # Common symbols not allowed in MH_DYLIB files 11932 case $cc_basename in 11933 xlc*) 11934 lt_prog_compiler_pic_CXX='-qnocommon' 11935 lt_prog_compiler_wl_CXX='-Wl,' 11936 ;; 11937 esac 11938 ;; 11939 dgux*) 11940 case $cc_basename in 11941 ec++*) 11942 lt_prog_compiler_pic_CXX='-KPIC' 11943 ;; 11944 ghcx*) 11945 # Green Hills C++ Compiler 11946 lt_prog_compiler_pic_CXX='-pic' 11947 ;; 11948 *) 11949 ;; 11950 esac 11951 ;; 11952 freebsd* | dragonfly*) 11953 # FreeBSD uses GNU C++ 11954 ;; 11955 hpux9* | hpux10* | hpux11*) 11956 case $cc_basename in 11957 CC*) 11958 lt_prog_compiler_wl_CXX='-Wl,' 11959 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11960 if test "$host_cpu" != ia64; then 11961 lt_prog_compiler_pic_CXX='+Z' 11962 fi 11963 ;; 11964 aCC*) 11965 lt_prog_compiler_wl_CXX='-Wl,' 11966 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11967 case $host_cpu in 11968 hppa*64*|ia64*) 11969 # +Z the default 11970 ;; 11971 *) 11972 lt_prog_compiler_pic_CXX='+Z' 11973 ;; 11974 esac 11975 ;; 11976 *) 11977 ;; 11978 esac 11979 ;; 11980 interix*) 11981 # This is c89, which is MS Visual C++ (no shared libs) 11982 # Anyone wants to do a port? 11983 ;; 11984 irix5* | irix6* | nonstopux*) 11985 case $cc_basename in 11986 CC*) 11987 lt_prog_compiler_wl_CXX='-Wl,' 11988 lt_prog_compiler_static_CXX='-non_shared' 11989 # CC pic flag -KPIC is the default. 11990 ;; 11991 *) 11992 ;; 11993 esac 11994 ;; 11995 linux* | k*bsd*-gnu) 11996 case $cc_basename in 11997 KCC*) 11998 # KAI C++ Compiler 11999 lt_prog_compiler_wl_CXX='--backend -Wl,' 12000 lt_prog_compiler_pic_CXX='-fPIC' 12001 ;; 12002 icpc* | ecpc*) 12003 # Intel C++ 12004 lt_prog_compiler_wl_CXX='-Wl,' 12005 lt_prog_compiler_pic_CXX='-KPIC' 12006 lt_prog_compiler_static_CXX='-static' 12007 ;; 12008 pgCC*) 12009 # Portland Group C++ compiler. 12010 lt_prog_compiler_wl_CXX='-Wl,' 12011 lt_prog_compiler_pic_CXX='-fpic' 12012 lt_prog_compiler_static_CXX='-Bstatic' 12013 ;; 12014 cxx*) 12015 # Compaq C++ 12016 # Make sure the PIC flag is empty. It appears that all Alpha 12017 # Linux and Compaq Tru64 Unix objects are PIC. 12018 lt_prog_compiler_pic_CXX= 12019 lt_prog_compiler_static_CXX='-non_shared' 12020 ;; 12021 *) 12022 ;; 12023 esac 12024 ;; 12025 lynxos*) 12026 ;; 12027 m88k*) 12028 ;; 12029 mvs*) 12030 case $cc_basename in 12031 cxx*) 12032 lt_prog_compiler_pic_CXX='-W c,exportall' 12033 ;; 12034 *) 12035 ;; 12036 esac 12037 ;; 12038 netbsd* | netbsdelf*-gnu) 12039 ;; 12040 osf3* | osf4* | osf5*) 12041 case $cc_basename in 12042 KCC*) 12043 lt_prog_compiler_wl_CXX='--backend -Wl,' 12044 ;; 12045 RCC*) 12046 # Rational C++ 2.4.1 12047 lt_prog_compiler_pic_CXX='-pic' 12048 ;; 12049 cxx*) 12050 # Digital/Compaq C++ 12051 lt_prog_compiler_wl_CXX='-Wl,' 12052 # Make sure the PIC flag is empty. It appears that all Alpha 12053 # Linux and Compaq Tru64 Unix objects are PIC. 12054 lt_prog_compiler_pic_CXX= 12055 lt_prog_compiler_static_CXX='-non_shared' 12056 ;; 12057 *) 12058 ;; 12059 esac 12060 ;; 12061 psos*) 12062 ;; 12063 solaris*) 12064 case $cc_basename in 12065 CC*) 12066 # Sun C++ 4.2, 5.x and Centerline C++ 12067 lt_prog_compiler_pic_CXX='-KPIC' 12068 lt_prog_compiler_static_CXX='-Bstatic' 12069 lt_prog_compiler_wl_CXX='-Qoption ld ' 12070 ;; 12071 gcx*) 12072 # Green Hills C++ Compiler 12073 lt_prog_compiler_pic_CXX='-PIC' 12074 ;; 12075 *) 12076 ;; 12077 esac 12078 ;; 12079 sunos4*) 12080 case $cc_basename in 12081 CC*) 12082 # Sun C++ 4.x 12083 lt_prog_compiler_pic_CXX='-pic' 12084 lt_prog_compiler_static_CXX='-Bstatic' 12085 ;; 12086 lcc*) 12087 # Lucid 12088 lt_prog_compiler_pic_CXX='-pic' 12089 ;; 12090 *) 12091 ;; 12092 esac 12093 ;; 12094 tandem*) 12095 case $cc_basename in 12096 NCC*) 12097 # NonStop-UX NCC 3.20 12098 lt_prog_compiler_pic_CXX='-KPIC' 12099 ;; 12100 *) 12101 ;; 12102 esac 12103 ;; 12104 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12105 case $cc_basename in 12106 CC*) 12107 lt_prog_compiler_wl_CXX='-Wl,' 12108 lt_prog_compiler_pic_CXX='-KPIC' 12109 lt_prog_compiler_static_CXX='-Bstatic' 12110 ;; 12111 esac 12112 ;; 12113 vxworks*) 12114 ;; 12115 *) 12116 lt_prog_compiler_can_build_shared_CXX=no 12117 ;; 12118 esac 12119 fi 12120 12121{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12122echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12123 12124# 12125# Check to make sure the PIC flag actually works. 12126# 12127if test -n "$lt_prog_compiler_pic_CXX"; then 12128 12129{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12130echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12131if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12132 echo $ECHO_N "(cached) $ECHO_C" >&6 12133else 12134 lt_prog_compiler_pic_works_CXX=no 12135 ac_outfile=conftest.$ac_objext 12136 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12137 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12138 # Insert the option either (1) after the last *FLAGS variable, or 12139 # (2) before a word containing "conftest.", or (3) at the end. 12140 # Note that $ac_compile itself does not contain backslashes and begins 12141 # with a dollar sign (not a hyphen), so the echo should work correctly. 12142 # The option is referenced via a variable to avoid confusing sed. 12143 lt_compile=`echo "$ac_compile" | $SED \ 12144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12146 -e 's:$: $lt_compiler_flag:'` 12147 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12148 (eval "$lt_compile" 2>conftest.err) 12149 ac_status=$? 12150 cat conftest.err >&5 12151 echo "$as_me:__oline__: \$? = $ac_status" >&5 12152 if (exit $ac_status) && test -s "$ac_outfile"; then 12153 # The compiler can only warn and ignore the option if not recognized 12154 # So say no if there are warnings other than the usual output. 12155 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12158 lt_prog_compiler_pic_works_CXX=yes 12159 fi 12160 fi 12161 $rm conftest* 12162 12163fi 12164{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12165echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12166 12167if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12168 case $lt_prog_compiler_pic_CXX in 12169 "" | " "*) ;; 12170 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12171 esac 12172else 12173 lt_prog_compiler_pic_CXX= 12174 lt_prog_compiler_can_build_shared_CXX=no 12175fi 12176 12177fi 12178case $host_os in 12179 # For platforms which do not support PIC, -DPIC is meaningless: 12180 *djgpp*) 12181 lt_prog_compiler_pic_CXX= 12182 ;; 12183 *) 12184 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12185 ;; 12186esac 12187 12188# 12189# Check to make sure the static flag actually works. 12190# 12191wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12192{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12193echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12194if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12195 echo $ECHO_N "(cached) $ECHO_C" >&6 12196else 12197 lt_prog_compiler_static_works_CXX=no 12198 save_LDFLAGS="$LDFLAGS" 12199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12200 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12202 # The linker can only warn and ignore the option if not recognized 12203 # So say no if there are warnings 12204 if test -s conftest.err; then 12205 # Append any errors to the config.log. 12206 cat conftest.err 1>&5 12207 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12209 if diff conftest.exp conftest.er2 >/dev/null; then 12210 lt_prog_compiler_static_works_CXX=yes 12211 fi 12212 else 12213 lt_prog_compiler_static_works_CXX=yes 12214 fi 12215 fi 12216 $rm conftest* 12217 LDFLAGS="$save_LDFLAGS" 12218 12219fi 12220{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12221echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12222 12223if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12224 : 12225else 12226 lt_prog_compiler_static_CXX= 12227fi 12228 12229 12230{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12231echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12232if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12233 echo $ECHO_N "(cached) $ECHO_C" >&6 12234else 12235 lt_cv_prog_compiler_c_o_CXX=no 12236 $rm -r conftest 2>/dev/null 12237 mkdir conftest 12238 cd conftest 12239 mkdir out 12240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12241 12242 lt_compiler_flag="-o out/conftest2.$ac_objext" 12243 # Insert the option either (1) after the last *FLAGS variable, or 12244 # (2) before a word containing "conftest.", or (3) at the end. 12245 # Note that $ac_compile itself does not contain backslashes and begins 12246 # with a dollar sign (not a hyphen), so the echo should work correctly. 12247 lt_compile=`echo "$ac_compile" | $SED \ 12248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12250 -e 's:$: $lt_compiler_flag:'` 12251 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12252 (eval "$lt_compile" 2>out/conftest.err) 12253 ac_status=$? 12254 cat out/conftest.err >&5 12255 echo "$as_me:__oline__: \$? = $ac_status" >&5 12256 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12257 then 12258 # The compiler can only warn and ignore the option if not recognized 12259 # So say no if there are warnings 12260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12263 lt_cv_prog_compiler_c_o_CXX=yes 12264 fi 12265 fi 12266 chmod u+w . 2>&5 12267 $rm conftest* 12268 # SGI C++ compiler will create directory out/ii_files/ for 12269 # template instantiation 12270 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12271 $rm out/* && rmdir out 12272 cd .. 12273 rmdir conftest 12274 $rm conftest* 12275 12276fi 12277{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12278echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12279 12280 12281hard_links="nottested" 12282if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12283 # do not overwrite the value of need_locks provided by the user 12284 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12285echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12286 hard_links=yes 12287 $rm conftest* 12288 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12289 touch conftest.a 12290 ln conftest.a conftest.b 2>&5 || hard_links=no 12291 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12292 { echo "$as_me:$LINENO: result: $hard_links" >&5 12293echo "${ECHO_T}$hard_links" >&6; } 12294 if test "$hard_links" = no; then 12295 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12296echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12297 need_locks=warn 12298 fi 12299else 12300 need_locks=no 12301fi 12302 12303{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12304echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12305 12306 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12307 case $host_os in 12308 aix4* | aix5*) 12309 # If we're using GNU nm, then we don't want the "-C" option. 12310 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12312 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' 12313 else 12314 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' 12315 fi 12316 ;; 12317 pw32*) 12318 export_symbols_cmds_CXX="$ltdll_cmds" 12319 ;; 12320 cygwin* | mingw*) 12321 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' 12322 ;; 12323 linux* | k*bsd*-gnu) 12324 link_all_deplibs_CXX=no 12325 ;; 12326 *) 12327 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12328 ;; 12329 esac 12330 12331{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12332echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12333test "$ld_shlibs_CXX" = no && can_build_shared=no 12334 12335# 12336# Do we need to explicitly link libc? 12337# 12338case "x$archive_cmds_need_lc_CXX" in 12339x|xyes) 12340 # Assume -lc should be added 12341 archive_cmds_need_lc_CXX=yes 12342 12343 if test "$enable_shared" = yes && test "$GCC" = yes; then 12344 case $archive_cmds_CXX in 12345 *'~'*) 12346 # FIXME: we may have to deal with multi-command sequences. 12347 ;; 12348 '$CC '*) 12349 # Test whether the compiler implicitly links with -lc since on some 12350 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12351 # to ld, don't add -lc before -lgcc. 12352 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12353echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12354 $rm conftest* 12355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12356 12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12358 (eval $ac_compile) 2>&5 12359 ac_status=$? 12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12361 (exit $ac_status); } 2>conftest.err; then 12362 soname=conftest 12363 lib=conftest 12364 libobjs=conftest.$ac_objext 12365 deplibs= 12366 wl=$lt_prog_compiler_wl_CXX 12367 pic_flag=$lt_prog_compiler_pic_CXX 12368 compiler_flags=-v 12369 linker_flags=-v 12370 verstring= 12371 output_objdir=. 12372 libname=conftest 12373 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12374 allow_undefined_flag_CXX= 12375 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12376 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12377 ac_status=$? 12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12379 (exit $ac_status); } 12380 then 12381 archive_cmds_need_lc_CXX=no 12382 else 12383 archive_cmds_need_lc_CXX=yes 12384 fi 12385 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12386 else 12387 cat conftest.err 1>&5 12388 fi 12389 $rm conftest* 12390 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12391echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12392 ;; 12393 esac 12394 fi 12395 ;; 12396esac 12397 12398{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12399echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12400library_names_spec= 12401libname_spec='lib$name' 12402soname_spec= 12403shrext_cmds=".so" 12404postinstall_cmds= 12405postuninstall_cmds= 12406finish_cmds= 12407finish_eval= 12408shlibpath_var= 12409shlibpath_overrides_runpath=unknown 12410version_type=none 12411dynamic_linker="$host_os ld.so" 12412sys_lib_dlsearch_path_spec="/lib /usr/lib" 12413if test "$GCC" = yes; then 12414 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12415 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12416 # if the path contains ";" then we assume it to be the separator 12417 # otherwise default to the standard path separator (i.e. ":") - it is 12418 # assumed that no part of a normal pathname contains ";" but that should 12419 # okay in the real world where ";" in dirpaths is itself problematic. 12420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12421 else 12422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12423 fi 12424else 12425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12426fi 12427need_lib_prefix=unknown 12428hardcode_into_libs=no 12429 12430# when you set need_version to no, make sure it does not cause -set_version 12431# flags to be left without arguments 12432need_version=unknown 12433 12434case $host_os in 12435aix3*) 12436 version_type=linux 12437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12438 shlibpath_var=LIBPATH 12439 12440 # AIX 3 has no versioning support, so we append a major version to the name. 12441 soname_spec='${libname}${release}${shared_ext}$major' 12442 ;; 12443 12444aix4* | aix5*) 12445 version_type=linux 12446 need_lib_prefix=no 12447 need_version=no 12448 hardcode_into_libs=yes 12449 if test "$host_cpu" = ia64; then 12450 # AIX 5 supports IA64 12451 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12452 shlibpath_var=LD_LIBRARY_PATH 12453 else 12454 # With GCC up to 2.95.x, collect2 would create an import file 12455 # for dependence libraries. The import file would start with 12456 # the line `#! .'. This would cause the generated library to 12457 # depend on `.', always an invalid library. This was fixed in 12458 # development snapshots of GCC prior to 3.0. 12459 case $host_os in 12460 aix4 | aix4.[01] | aix4.[01].*) 12461 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12462 echo ' yes ' 12463 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12464 : 12465 else 12466 can_build_shared=no 12467 fi 12468 ;; 12469 esac 12470 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12471 # soname into executable. Probably we can add versioning support to 12472 # collect2, so additional links can be useful in future. 12473 if test "$aix_use_runtimelinking" = yes; then 12474 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12475 # instead of lib<name>.a to let people know that these are not 12476 # typical AIX shared libraries. 12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12478 else 12479 # We preserve .a as extension for shared libraries through AIX4.2 12480 # and later when we are not doing run time linking. 12481 library_names_spec='${libname}${release}.a $libname.a' 12482 soname_spec='${libname}${release}${shared_ext}$major' 12483 fi 12484 shlibpath_var=LIBPATH 12485 fi 12486 ;; 12487 12488amigaos*) 12489 library_names_spec='$libname.ixlibrary $libname.a' 12490 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12491 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' 12492 ;; 12493 12494beos*) 12495 library_names_spec='${libname}${shared_ext}' 12496 dynamic_linker="$host_os ld.so" 12497 shlibpath_var=LIBRARY_PATH 12498 ;; 12499 12500bsdi[45]*) 12501 version_type=linux 12502 need_version=no 12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12504 soname_spec='${libname}${release}${shared_ext}$major' 12505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12506 shlibpath_var=LD_LIBRARY_PATH 12507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12509 # the default ld.so.conf also contains /usr/contrib/lib and 12510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12511 # libtool to hard-code these into programs 12512 ;; 12513 12514cygwin* | mingw* | pw32*) 12515 version_type=windows 12516 shrext_cmds=".dll" 12517 need_version=no 12518 need_lib_prefix=no 12519 12520 case $GCC,$host_os in 12521 yes,cygwin* | yes,mingw* | yes,pw32*) 12522 library_names_spec='$libname.dll.a' 12523 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12524 postinstall_cmds='base_file=`basename \${file}`~ 12525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12526 dldir=$destdir/`dirname \$dlpath`~ 12527 test -d \$dldir || mkdir -p \$dldir~ 12528 $install_prog $dir/$dlname \$dldir/$dlname~ 12529 chmod a+x \$dldir/$dlname' 12530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12531 dlpath=$dir/\$dldll~ 12532 $rm \$dlpath' 12533 shlibpath_overrides_runpath=yes 12534 12535 case $host_os in 12536 cygwin*) 12537 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12539 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12540 ;; 12541 mingw*) 12542 # MinGW DLLs use traditional 'lib' prefix 12543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12544 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12545 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12546 # It is most probably a Windows format PATH printed by 12547 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12548 # path with ; separators, and with drive letters. We can handle the 12549 # drive letters (cygwin fileutils understands them), so leave them, 12550 # especially as we might pass files found there to a mingw objdump, 12551 # which wouldn't understand a cygwinified path. Ahh. 12552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12553 else 12554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12555 fi 12556 ;; 12557 pw32*) 12558 # pw32 DLLs use 'pw' prefix rather than 'lib' 12559 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12560 ;; 12561 esac 12562 ;; 12563 12564 *) 12565 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12566 ;; 12567 esac 12568 dynamic_linker='Win32 ld.exe' 12569 # FIXME: first we should search . and the directory the executable is in 12570 shlibpath_var=PATH 12571 ;; 12572 12573darwin* | rhapsody*) 12574 dynamic_linker="$host_os dyld" 12575 version_type=darwin 12576 need_lib_prefix=no 12577 need_version=no 12578 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12579 soname_spec='${libname}${release}${major}$shared_ext' 12580 shlibpath_overrides_runpath=yes 12581 shlibpath_var=DYLD_LIBRARY_PATH 12582 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12583 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12584 if test "$GCC" = yes; then 12585 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"` 12586 else 12587 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12588 fi 12589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12590 ;; 12591 12592dgux*) 12593 version_type=linux 12594 need_lib_prefix=no 12595 need_version=no 12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12597 soname_spec='${libname}${release}${shared_ext}$major' 12598 shlibpath_var=LD_LIBRARY_PATH 12599 ;; 12600 12601freebsd1*) 12602 dynamic_linker=no 12603 ;; 12604 12605freebsd* | dragonfly*) 12606 # DragonFly does not have aout. When/if they implement a new 12607 # versioning mechanism, adjust this. 12608 if test -x /usr/bin/objformat; then 12609 objformat=`/usr/bin/objformat` 12610 else 12611 case $host_os in 12612 freebsd[123]*) objformat=aout ;; 12613 *) objformat=elf ;; 12614 esac 12615 fi 12616 version_type=freebsd-$objformat 12617 case $version_type in 12618 freebsd-elf*) 12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12620 need_version=no 12621 need_lib_prefix=no 12622 ;; 12623 freebsd-*) 12624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12625 need_version=yes 12626 ;; 12627 esac 12628 shlibpath_var=LD_LIBRARY_PATH 12629 case $host_os in 12630 freebsd2*) 12631 shlibpath_overrides_runpath=yes 12632 ;; 12633 freebsd3.[01]* | freebsdelf3.[01]*) 12634 shlibpath_overrides_runpath=yes 12635 hardcode_into_libs=yes 12636 ;; 12637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12639 shlibpath_overrides_runpath=no 12640 hardcode_into_libs=yes 12641 ;; 12642 freebsd*) # from 4.6 on 12643 shlibpath_overrides_runpath=yes 12644 hardcode_into_libs=yes 12645 ;; 12646 esac 12647 ;; 12648 12649gnu*) 12650 version_type=linux 12651 need_lib_prefix=no 12652 need_version=no 12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12654 soname_spec='${libname}${release}${shared_ext}$major' 12655 shlibpath_var=LD_LIBRARY_PATH 12656 hardcode_into_libs=yes 12657 ;; 12658 12659hpux9* | hpux10* | hpux11*) 12660 # Give a soname corresponding to the major version so that dld.sl refuses to 12661 # link against other versions. 12662 version_type=sunos 12663 need_lib_prefix=no 12664 need_version=no 12665 case $host_cpu in 12666 ia64*) 12667 shrext_cmds='.so' 12668 hardcode_into_libs=yes 12669 dynamic_linker="$host_os dld.so" 12670 shlibpath_var=LD_LIBRARY_PATH 12671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12673 soname_spec='${libname}${release}${shared_ext}$major' 12674 if test "X$HPUX_IA64_MODE" = X32; then 12675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12676 else 12677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12678 fi 12679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12680 ;; 12681 hppa*64*) 12682 shrext_cmds='.sl' 12683 hardcode_into_libs=yes 12684 dynamic_linker="$host_os dld.sl" 12685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12688 soname_spec='${libname}${release}${shared_ext}$major' 12689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12691 ;; 12692 *) 12693 shrext_cmds='.sl' 12694 dynamic_linker="$host_os dld.sl" 12695 shlibpath_var=SHLIB_PATH 12696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12698 soname_spec='${libname}${release}${shared_ext}$major' 12699 ;; 12700 esac 12701 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12702 postinstall_cmds='chmod 555 $lib' 12703 ;; 12704 12705interix3*) 12706 version_type=linux 12707 need_lib_prefix=no 12708 need_version=no 12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12710 soname_spec='${libname}${release}${shared_ext}$major' 12711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12712 shlibpath_var=LD_LIBRARY_PATH 12713 shlibpath_overrides_runpath=no 12714 hardcode_into_libs=yes 12715 ;; 12716 12717irix5* | irix6* | nonstopux*) 12718 case $host_os in 12719 nonstopux*) version_type=nonstopux ;; 12720 *) 12721 if test "$lt_cv_prog_gnu_ld" = yes; then 12722 version_type=linux 12723 else 12724 version_type=irix 12725 fi ;; 12726 esac 12727 need_lib_prefix=no 12728 need_version=no 12729 soname_spec='${libname}${release}${shared_ext}$major' 12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12731 case $host_os in 12732 irix5* | nonstopux*) 12733 libsuff= shlibsuff= 12734 ;; 12735 *) 12736 case $LD in # libtool.m4 will add one of these switches to LD 12737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12738 libsuff= shlibsuff= libmagic=32-bit;; 12739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12740 libsuff=32 shlibsuff=N32 libmagic=N32;; 12741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12742 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12743 *) libsuff= shlibsuff= libmagic=never-match;; 12744 esac 12745 ;; 12746 esac 12747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12748 shlibpath_overrides_runpath=no 12749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12751 hardcode_into_libs=yes 12752 ;; 12753 12754# No shared lib support for Linux oldld, aout, or coff. 12755linux*oldld* | linux*aout* | linux*coff*) 12756 dynamic_linker=no 12757 ;; 12758 12759# This must be Linux ELF. 12760linux* | k*bsd*-gnu) 12761 version_type=linux 12762 need_lib_prefix=no 12763 need_version=no 12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12765 soname_spec='${libname}${release}${shared_ext}$major' 12766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12767 shlibpath_var=LD_LIBRARY_PATH 12768 shlibpath_overrides_runpath=no 12769 # This implies no fast_install, which is unacceptable. 12770 # Some rework will be needed to allow for fast_install 12771 # before this can be enabled. 12772 hardcode_into_libs=yes 12773 12774 # Append ld.so.conf contents to the search path 12775 if test -f /etc/ld.so.conf; then 12776 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' ' '` 12777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12778 fi 12779 12780 # We used to test for /lib/ld.so.1 and disable shared libraries on 12781 # powerpc, because MkLinux only supported shared libraries with the 12782 # GNU dynamic linker. Since this was broken with cross compilers, 12783 # most powerpc-linux boxes support dynamic linking these days and 12784 # people can always --disable-shared, the test was removed, and we 12785 # assume the GNU/Linux dynamic linker is in use. 12786 dynamic_linker='GNU/Linux ld.so' 12787 ;; 12788 12789netbsdelf*-gnu) 12790 version_type=linux 12791 need_lib_prefix=no 12792 need_version=no 12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12794 soname_spec='${libname}${release}${shared_ext}$major' 12795 shlibpath_var=LD_LIBRARY_PATH 12796 shlibpath_overrides_runpath=no 12797 hardcode_into_libs=yes 12798 dynamic_linker='NetBSD ld.elf_so' 12799 ;; 12800 12801netbsd*) 12802 version_type=sunos 12803 need_lib_prefix=no 12804 need_version=no 12805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12808 dynamic_linker='NetBSD (a.out) ld.so' 12809 else 12810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12811 soname_spec='${libname}${release}${shared_ext}$major' 12812 dynamic_linker='NetBSD ld.elf_so' 12813 fi 12814 shlibpath_var=LD_LIBRARY_PATH 12815 shlibpath_overrides_runpath=yes 12816 hardcode_into_libs=yes 12817 ;; 12818 12819newsos6) 12820 version_type=linux 12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12822 shlibpath_var=LD_LIBRARY_PATH 12823 shlibpath_overrides_runpath=yes 12824 ;; 12825 12826nto-qnx*) 12827 version_type=linux 12828 need_lib_prefix=no 12829 need_version=no 12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12831 soname_spec='${libname}${release}${shared_ext}$major' 12832 shlibpath_var=LD_LIBRARY_PATH 12833 shlibpath_overrides_runpath=yes 12834 ;; 12835 12836openbsd*) 12837 version_type=sunos 12838 sys_lib_dlsearch_path_spec="/usr/lib" 12839 need_lib_prefix=no 12840 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12841 case $host_os in 12842 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12843 *) need_version=no ;; 12844 esac 12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12847 shlibpath_var=LD_LIBRARY_PATH 12848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12849 case $host_os in 12850 openbsd2.[89] | openbsd2.[89].*) 12851 shlibpath_overrides_runpath=no 12852 ;; 12853 *) 12854 shlibpath_overrides_runpath=yes 12855 ;; 12856 esac 12857 else 12858 shlibpath_overrides_runpath=yes 12859 fi 12860 ;; 12861 12862os2*) 12863 libname_spec='$name' 12864 shrext_cmds=".dll" 12865 need_lib_prefix=no 12866 library_names_spec='$libname${shared_ext} $libname.a' 12867 dynamic_linker='OS/2 ld.exe' 12868 shlibpath_var=LIBPATH 12869 ;; 12870 12871osf3* | osf4* | osf5*) 12872 version_type=osf 12873 need_lib_prefix=no 12874 need_version=no 12875 soname_spec='${libname}${release}${shared_ext}$major' 12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12877 shlibpath_var=LD_LIBRARY_PATH 12878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12880 ;; 12881 12882solaris*) 12883 version_type=linux 12884 need_lib_prefix=no 12885 need_version=no 12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12887 soname_spec='${libname}${release}${shared_ext}$major' 12888 shlibpath_var=LD_LIBRARY_PATH 12889 shlibpath_overrides_runpath=yes 12890 hardcode_into_libs=yes 12891 # ldd complains unless libraries are executable 12892 postinstall_cmds='chmod +x $lib' 12893 ;; 12894 12895sunos4*) 12896 version_type=sunos 12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12899 shlibpath_var=LD_LIBRARY_PATH 12900 shlibpath_overrides_runpath=yes 12901 if test "$with_gnu_ld" = yes; then 12902 need_lib_prefix=no 12903 fi 12904 need_version=yes 12905 ;; 12906 12907sysv4 | sysv4.3*) 12908 version_type=linux 12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12910 soname_spec='${libname}${release}${shared_ext}$major' 12911 shlibpath_var=LD_LIBRARY_PATH 12912 case $host_vendor in 12913 sni) 12914 shlibpath_overrides_runpath=no 12915 need_lib_prefix=no 12916 export_dynamic_flag_spec='${wl}-Blargedynsym' 12917 runpath_var=LD_RUN_PATH 12918 ;; 12919 siemens) 12920 need_lib_prefix=no 12921 ;; 12922 motorola) 12923 need_lib_prefix=no 12924 need_version=no 12925 shlibpath_overrides_runpath=no 12926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12927 ;; 12928 esac 12929 ;; 12930 12931sysv4*MP*) 12932 if test -d /usr/nec ;then 12933 version_type=linux 12934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12935 soname_spec='$libname${shared_ext}.$major' 12936 shlibpath_var=LD_LIBRARY_PATH 12937 fi 12938 ;; 12939 12940sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12941 version_type=freebsd-elf 12942 need_lib_prefix=no 12943 need_version=no 12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12945 soname_spec='${libname}${release}${shared_ext}$major' 12946 shlibpath_var=LD_LIBRARY_PATH 12947 hardcode_into_libs=yes 12948 if test "$with_gnu_ld" = yes; then 12949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12950 shlibpath_overrides_runpath=no 12951 else 12952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12953 shlibpath_overrides_runpath=yes 12954 case $host_os in 12955 sco3.2v5*) 12956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12957 ;; 12958 esac 12959 fi 12960 sys_lib_dlsearch_path_spec='/usr/lib' 12961 ;; 12962 12963uts4*) 12964 version_type=linux 12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12966 soname_spec='${libname}${release}${shared_ext}$major' 12967 shlibpath_var=LD_LIBRARY_PATH 12968 ;; 12969 12970*) 12971 dynamic_linker=no 12972 ;; 12973esac 12974{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12975echo "${ECHO_T}$dynamic_linker" >&6; } 12976test "$dynamic_linker" = no && can_build_shared=no 12977 12978variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12979if test "$GCC" = yes; then 12980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12981fi 12982 12983{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12984echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12985hardcode_action_CXX= 12986if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12987 test -n "$runpath_var_CXX" || \ 12988 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12989 12990 # We can hardcode non-existant directories. 12991 if test "$hardcode_direct_CXX" != no && 12992 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12993 # have to relink, otherwise we might link with an installed library 12994 # when we should be linking with a yet-to-be-installed one 12995 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12996 test "$hardcode_minus_L_CXX" != no; then 12997 # Linking always hardcodes the temporary library directory. 12998 hardcode_action_CXX=relink 12999 else 13000 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13001 hardcode_action_CXX=immediate 13002 fi 13003else 13004 # We cannot hardcode anything, or else we can only hardcode existing 13005 # directories. 13006 hardcode_action_CXX=unsupported 13007fi 13008{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13009echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13010 13011if test "$hardcode_action_CXX" = relink; then 13012 # Fast installation is not supported 13013 enable_fast_install=no 13014elif test "$shlibpath_overrides_runpath" = yes || 13015 test "$enable_shared" = no; then 13016 # Fast installation is not necessary 13017 enable_fast_install=needless 13018fi 13019 13020 13021# The else clause should only fire when bootstrapping the 13022# libtool distribution, otherwise you forgot to ship ltmain.sh 13023# with your package, and you will get complaints that there are 13024# no rules to generate ltmain.sh. 13025if test -f "$ltmain"; then 13026 # See if we are running on zsh, and set the options which allow our commands through 13027 # without removal of \ escapes. 13028 if test -n "${ZSH_VERSION+set}" ; then 13029 setopt NO_GLOB_SUBST 13030 fi 13031 # Now quote all the things that may contain metacharacters while being 13032 # careful not to overquote the AC_SUBSTed values. We take copies of the 13033 # variables and quote the copies for generation of the libtool script. 13034 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13035 SED SHELL STRIP \ 13036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13038 deplibs_check_method reload_flag reload_cmds need_locks \ 13039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13040 lt_cv_sys_global_symbol_to_c_name_address \ 13041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13042 old_postinstall_cmds old_postuninstall_cmds \ 13043 compiler_CXX \ 13044 CC_CXX \ 13045 LD_CXX \ 13046 lt_prog_compiler_wl_CXX \ 13047 lt_prog_compiler_pic_CXX \ 13048 lt_prog_compiler_static_CXX \ 13049 lt_prog_compiler_no_builtin_flag_CXX \ 13050 export_dynamic_flag_spec_CXX \ 13051 thread_safe_flag_spec_CXX \ 13052 whole_archive_flag_spec_CXX \ 13053 enable_shared_with_static_runtimes_CXX \ 13054 old_archive_cmds_CXX \ 13055 old_archive_from_new_cmds_CXX \ 13056 predep_objects_CXX \ 13057 postdep_objects_CXX \ 13058 predeps_CXX \ 13059 postdeps_CXX \ 13060 compiler_lib_search_path_CXX \ 13061 archive_cmds_CXX \ 13062 archive_expsym_cmds_CXX \ 13063 postinstall_cmds_CXX \ 13064 postuninstall_cmds_CXX \ 13065 old_archive_from_expsyms_cmds_CXX \ 13066 allow_undefined_flag_CXX \ 13067 no_undefined_flag_CXX \ 13068 export_symbols_cmds_CXX \ 13069 hardcode_libdir_flag_spec_CXX \ 13070 hardcode_libdir_flag_spec_ld_CXX \ 13071 hardcode_libdir_separator_CXX \ 13072 hardcode_automatic_CXX \ 13073 module_cmds_CXX \ 13074 module_expsym_cmds_CXX \ 13075 lt_cv_prog_compiler_c_o_CXX \ 13076 exclude_expsyms_CXX \ 13077 include_expsyms_CXX; do 13078 13079 case $var in 13080 old_archive_cmds_CXX | \ 13081 old_archive_from_new_cmds_CXX | \ 13082 archive_cmds_CXX | \ 13083 archive_expsym_cmds_CXX | \ 13084 module_cmds_CXX | \ 13085 module_expsym_cmds_CXX | \ 13086 old_archive_from_expsyms_cmds_CXX | \ 13087 export_symbols_cmds_CXX | \ 13088 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13089 postinstall_cmds | postuninstall_cmds | \ 13090 old_postinstall_cmds | old_postuninstall_cmds | \ 13091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13092 # Double-quote double-evaled strings. 13093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13094 ;; 13095 *) 13096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13097 ;; 13098 esac 13099 done 13100 13101 case $lt_echo in 13102 *'\$0 --fallback-echo"') 13103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13104 ;; 13105 esac 13106 13107cfgfile="$ofile" 13108 13109 cat <<__EOF__ >> "$cfgfile" 13110# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13111 13112# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13113 13114# Shell to use when invoking shell scripts. 13115SHELL=$lt_SHELL 13116 13117# Whether or not to build shared libraries. 13118build_libtool_libs=$enable_shared 13119 13120# Whether or not to build static libraries. 13121build_old_libs=$enable_static 13122 13123# Whether or not to add -lc for building shared libraries. 13124build_libtool_need_lc=$archive_cmds_need_lc_CXX 13125 13126# Whether or not to disallow shared libs when runtime libs are static 13127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13128 13129# Whether or not to optimize for fast installation. 13130fast_install=$enable_fast_install 13131 13132# The host system. 13133host_alias=$host_alias 13134host=$host 13135host_os=$host_os 13136 13137# The build system. 13138build_alias=$build_alias 13139build=$build 13140build_os=$build_os 13141 13142# An echo program that does not interpret backslashes. 13143echo=$lt_echo 13144 13145# The archiver. 13146AR=$lt_AR 13147AR_FLAGS=$lt_AR_FLAGS 13148 13149# A C compiler. 13150LTCC=$lt_LTCC 13151 13152# LTCC compiler flags. 13153LTCFLAGS=$lt_LTCFLAGS 13154 13155# A language-specific compiler. 13156CC=$lt_compiler_CXX 13157 13158# Is the compiler the GNU C compiler? 13159with_gcc=$GCC_CXX 13160 13161# An ERE matcher. 13162EGREP=$lt_EGREP 13163 13164# The linker used to build libraries. 13165LD=$lt_LD_CXX 13166 13167# Whether we need hard or soft links. 13168LN_S=$lt_LN_S 13169 13170# A BSD-compatible nm program. 13171NM=$lt_NM 13172 13173# A symbol stripping program 13174STRIP=$lt_STRIP 13175 13176# Used to examine libraries when file_magic_cmd begins "file" 13177MAGIC_CMD=$MAGIC_CMD 13178 13179# Used on cygwin: DLL creation program. 13180DLLTOOL="$DLLTOOL" 13181 13182# Used on cygwin: object dumper. 13183OBJDUMP="$OBJDUMP" 13184 13185# Used on cygwin: assembler. 13186AS="$AS" 13187 13188# The name of the directory that contains temporary libtool files. 13189objdir=$objdir 13190 13191# How to create reloadable object files. 13192reload_flag=$lt_reload_flag 13193reload_cmds=$lt_reload_cmds 13194 13195# How to pass a linker flag through the compiler. 13196wl=$lt_lt_prog_compiler_wl_CXX 13197 13198# Object file suffix (normally "o"). 13199objext="$ac_objext" 13200 13201# Old archive suffix (normally "a"). 13202libext="$libext" 13203 13204# Shared library suffix (normally ".so"). 13205shrext_cmds='$shrext_cmds' 13206 13207# Executable file suffix (normally ""). 13208exeext="$exeext" 13209 13210# Additional compiler flags for building library objects. 13211pic_flag=$lt_lt_prog_compiler_pic_CXX 13212pic_mode=$pic_mode 13213 13214# What is the maximum length of a command? 13215max_cmd_len=$lt_cv_sys_max_cmd_len 13216 13217# Does compiler simultaneously support -c and -o options? 13218compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13219 13220# Must we lock files when doing compilation? 13221need_locks=$lt_need_locks 13222 13223# Do we need the lib prefix for modules? 13224need_lib_prefix=$need_lib_prefix 13225 13226# Do we need a version for libraries? 13227need_version=$need_version 13228 13229# Whether dlopen is supported. 13230dlopen_support=$enable_dlopen 13231 13232# Whether dlopen of programs is supported. 13233dlopen_self=$enable_dlopen_self 13234 13235# Whether dlopen of statically linked programs is supported. 13236dlopen_self_static=$enable_dlopen_self_static 13237 13238# Compiler flag to prevent dynamic linking. 13239link_static_flag=$lt_lt_prog_compiler_static_CXX 13240 13241# Compiler flag to turn off builtin functions. 13242no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13243 13244# Compiler flag to allow reflexive dlopens. 13245export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13246 13247# Compiler flag to generate shared objects directly from archives. 13248whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13249 13250# Compiler flag to generate thread-safe objects. 13251thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13252 13253# Library versioning type. 13254version_type=$version_type 13255 13256# Format of library name prefix. 13257libname_spec=$lt_libname_spec 13258 13259# List of archive names. First name is the real one, the rest are links. 13260# The last name is the one that the linker finds with -lNAME. 13261library_names_spec=$lt_library_names_spec 13262 13263# The coded name of the library, if different from the real name. 13264soname_spec=$lt_soname_spec 13265 13266# Commands used to build and install an old-style archive. 13267RANLIB=$lt_RANLIB 13268old_archive_cmds=$lt_old_archive_cmds_CXX 13269old_postinstall_cmds=$lt_old_postinstall_cmds 13270old_postuninstall_cmds=$lt_old_postuninstall_cmds 13271 13272# Create an old-style archive from a shared archive. 13273old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13274 13275# Create a temporary old-style archive to link instead of a shared archive. 13276old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13277 13278# Commands used to build and install a shared archive. 13279archive_cmds=$lt_archive_cmds_CXX 13280archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13281postinstall_cmds=$lt_postinstall_cmds 13282postuninstall_cmds=$lt_postuninstall_cmds 13283 13284# Commands used to build a loadable module (assumed same as above if empty) 13285module_cmds=$lt_module_cmds_CXX 13286module_expsym_cmds=$lt_module_expsym_cmds_CXX 13287 13288# Commands to strip libraries. 13289old_striplib=$lt_old_striplib 13290striplib=$lt_striplib 13291 13292# Dependencies to place before the objects being linked to create a 13293# shared library. 13294predep_objects=$lt_predep_objects_CXX 13295 13296# Dependencies to place after the objects being linked to create a 13297# shared library. 13298postdep_objects=$lt_postdep_objects_CXX 13299 13300# Dependencies to place before the objects being linked to create a 13301# shared library. 13302predeps=$lt_predeps_CXX 13303 13304# Dependencies to place after the objects being linked to create a 13305# shared library. 13306postdeps=$lt_postdeps_CXX 13307 13308# The library search path used internally by the compiler when linking 13309# a shared library. 13310compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13311 13312# Method to check whether dependent libraries are shared objects. 13313deplibs_check_method=$lt_deplibs_check_method 13314 13315# Command to use when deplibs_check_method == file_magic. 13316file_magic_cmd=$lt_file_magic_cmd 13317 13318# Flag that allows shared libraries with undefined symbols to be built. 13319allow_undefined_flag=$lt_allow_undefined_flag_CXX 13320 13321# Flag that forces no undefined symbols. 13322no_undefined_flag=$lt_no_undefined_flag_CXX 13323 13324# Commands used to finish a libtool library installation in a directory. 13325finish_cmds=$lt_finish_cmds 13326 13327# Same as above, but a single script fragment to be evaled but not shown. 13328finish_eval=$lt_finish_eval 13329 13330# Take the output of nm and produce a listing of raw symbols and C names. 13331global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13332 13333# Transform the output of nm in a proper C declaration 13334global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13335 13336# Transform the output of nm in a C name address pair 13337global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13338 13339# This is the shared library runtime path variable. 13340runpath_var=$runpath_var 13341 13342# This is the shared library path variable. 13343shlibpath_var=$shlibpath_var 13344 13345# Is shlibpath searched before the hard-coded library search path? 13346shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13347 13348# How to hardcode a shared library path into an executable. 13349hardcode_action=$hardcode_action_CXX 13350 13351# Whether we should hardcode library paths into libraries. 13352hardcode_into_libs=$hardcode_into_libs 13353 13354# Flag to hardcode \$libdir into a binary during linking. 13355# This must work even if \$libdir does not exist. 13356hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13357 13358# If ld is used when linking, flag to hardcode \$libdir into 13359# a binary during linking. This must work even if \$libdir does 13360# not exist. 13361hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13362 13363# Whether we need a single -rpath flag with a separated argument. 13364hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13365 13366# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13367# resulting binary. 13368hardcode_direct=$hardcode_direct_CXX 13369 13370# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13371# resulting binary. 13372hardcode_minus_L=$hardcode_minus_L_CXX 13373 13374# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13375# the resulting binary. 13376hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13377 13378# Set to yes if building a shared library automatically hardcodes DIR into the library 13379# and all subsequent libraries and executables linked against it. 13380hardcode_automatic=$hardcode_automatic_CXX 13381 13382# Variables whose values should be saved in libtool wrapper scripts and 13383# restored at relink time. 13384variables_saved_for_relink="$variables_saved_for_relink" 13385 13386# Whether libtool must link a program against all its dependency libraries. 13387link_all_deplibs=$link_all_deplibs_CXX 13388 13389# Compile-time system search path for libraries 13390sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13391 13392# Run-time system search path for libraries 13393sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13394 13395# Fix the shell variable \$srcfile for the compiler. 13396fix_srcfile_path="$fix_srcfile_path_CXX" 13397 13398# Set to yes if exported symbols are required. 13399always_export_symbols=$always_export_symbols_CXX 13400 13401# The commands to list exported symbols. 13402export_symbols_cmds=$lt_export_symbols_cmds_CXX 13403 13404# The commands to extract the exported symbol list from a shared archive. 13405extract_expsyms_cmds=$lt_extract_expsyms_cmds 13406 13407# Symbols that should not be listed in the preloaded symbols. 13408exclude_expsyms=$lt_exclude_expsyms_CXX 13409 13410# Symbols that must always be exported. 13411include_expsyms=$lt_include_expsyms_CXX 13412 13413# ### END LIBTOOL TAG CONFIG: $tagname 13414 13415__EOF__ 13416 13417 13418else 13419 # If there is no Makefile yet, we rely on a make rule to execute 13420 # `config.status --recheck' to rerun these tests and create the 13421 # libtool script then. 13422 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13423 if test -f "$ltmain_in"; then 13424 test -f Makefile && make "$ltmain" 13425 fi 13426fi 13427 13428 13429ac_ext=c 13430ac_cpp='$CPP $CPPFLAGS' 13431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13433ac_compiler_gnu=$ac_cv_c_compiler_gnu 13434 13435CC=$lt_save_CC 13436LDCXX=$LD 13437LD=$lt_save_LD 13438GCC=$lt_save_GCC 13439with_gnu_ldcxx=$with_gnu_ld 13440with_gnu_ld=$lt_save_with_gnu_ld 13441lt_cv_path_LDCXX=$lt_cv_path_LD 13442lt_cv_path_LD=$lt_save_path_LD 13443lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13444lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13445 13446 else 13447 tagname="" 13448 fi 13449 ;; 13450 13451 F77) 13452 if test -n "$F77" && test "X$F77" != "Xno"; then 13453 13454ac_ext=f 13455ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13456ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13457ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13458 13459 13460archive_cmds_need_lc_F77=no 13461allow_undefined_flag_F77= 13462always_export_symbols_F77=no 13463archive_expsym_cmds_F77= 13464export_dynamic_flag_spec_F77= 13465hardcode_direct_F77=no 13466hardcode_libdir_flag_spec_F77= 13467hardcode_libdir_flag_spec_ld_F77= 13468hardcode_libdir_separator_F77= 13469hardcode_minus_L_F77=no 13470hardcode_automatic_F77=no 13471module_cmds_F77= 13472module_expsym_cmds_F77= 13473link_all_deplibs_F77=unknown 13474old_archive_cmds_F77=$old_archive_cmds 13475no_undefined_flag_F77= 13476whole_archive_flag_spec_F77= 13477enable_shared_with_static_runtimes_F77=no 13478 13479# Source file extension for f77 test sources. 13480ac_ext=f 13481 13482# Object file extension for compiled f77 test sources. 13483objext=o 13484objext_F77=$objext 13485 13486# Code to be used in simple compile tests 13487lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13488 13489# Code to be used in simple link tests 13490lt_simple_link_test_code=" program t\n end\n" 13491 13492# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13493 13494# If no C compiler was specified, use CC. 13495LTCC=${LTCC-"$CC"} 13496 13497# If no C compiler flags were specified, use CFLAGS. 13498LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13499 13500# Allow CC to be a program name with arguments. 13501compiler=$CC 13502 13503 13504# save warnings/boilerplate of simple test code 13505ac_outfile=conftest.$ac_objext 13506printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13507eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13508_lt_compiler_boilerplate=`cat conftest.err` 13509$rm conftest* 13510 13511ac_outfile=conftest.$ac_objext 13512printf "$lt_simple_link_test_code" >conftest.$ac_ext 13513eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13514_lt_linker_boilerplate=`cat conftest.err` 13515$rm conftest* 13516 13517 13518# Allow CC to be a program name with arguments. 13519lt_save_CC="$CC" 13520CC=${F77-"f77"} 13521compiler=$CC 13522compiler_F77=$CC 13523for cc_temp in $compiler""; do 13524 case $cc_temp in 13525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13527 \-*) ;; 13528 *) break;; 13529 esac 13530done 13531cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13532 13533 13534{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13535echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13536{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13537echo "${ECHO_T}$can_build_shared" >&6; } 13538 13539{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13540echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13541test "$can_build_shared" = "no" && enable_shared=no 13542 13543# On AIX, shared libraries and static libraries use the same namespace, and 13544# are all built from PIC. 13545case $host_os in 13546aix3*) 13547 test "$enable_shared" = yes && enable_static=no 13548 if test -n "$RANLIB"; then 13549 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13550 postinstall_cmds='$RANLIB $lib' 13551 fi 13552 ;; 13553aix4* | aix5*) 13554 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13555 test "$enable_shared" = yes && enable_static=no 13556 fi 13557 ;; 13558esac 13559{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13560echo "${ECHO_T}$enable_shared" >&6; } 13561 13562{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13563echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13564# Make sure either enable_shared or enable_static is yes. 13565test "$enable_shared" = yes || enable_static=yes 13566{ echo "$as_me:$LINENO: result: $enable_static" >&5 13567echo "${ECHO_T}$enable_static" >&6; } 13568 13569GCC_F77="$G77" 13570LD_F77="$LD" 13571 13572lt_prog_compiler_wl_F77= 13573lt_prog_compiler_pic_F77= 13574lt_prog_compiler_static_F77= 13575 13576{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13577echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13578 13579 if test "$GCC" = yes; then 13580 lt_prog_compiler_wl_F77='-Wl,' 13581 lt_prog_compiler_static_F77='-static' 13582 13583 case $host_os in 13584 aix*) 13585 # All AIX code is PIC. 13586 if test "$host_cpu" = ia64; then 13587 # AIX 5 now supports IA64 processor 13588 lt_prog_compiler_static_F77='-Bstatic' 13589 fi 13590 ;; 13591 13592 amigaos*) 13593 # FIXME: we need at least 68020 code to build shared libraries, but 13594 # adding the `-m68020' flag to GCC prevents building anything better, 13595 # like `-m68040'. 13596 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13597 ;; 13598 13599 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13600 # PIC is the default for these OSes. 13601 ;; 13602 13603 mingw* | pw32* | os2*) 13604 # This hack is so that the source file can tell whether it is being 13605 # built for inclusion in a dll (and should export symbols for example). 13606 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13607 ;; 13608 13609 darwin* | rhapsody*) 13610 # PIC is the default on this platform 13611 # Common symbols not allowed in MH_DYLIB files 13612 lt_prog_compiler_pic_F77='-fno-common' 13613 ;; 13614 13615 interix3*) 13616 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13617 # Instead, we relocate shared libraries at runtime. 13618 ;; 13619 13620 msdosdjgpp*) 13621 # Just because we use GCC doesn't mean we suddenly get shared libraries 13622 # on systems that don't support them. 13623 lt_prog_compiler_can_build_shared_F77=no 13624 enable_shared=no 13625 ;; 13626 13627 sysv4*MP*) 13628 if test -d /usr/nec; then 13629 lt_prog_compiler_pic_F77=-Kconform_pic 13630 fi 13631 ;; 13632 13633 hpux*) 13634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13635 # not for PA HP-UX. 13636 case $host_cpu in 13637 hppa*64*|ia64*) 13638 # +Z the default 13639 ;; 13640 *) 13641 lt_prog_compiler_pic_F77='-fPIC' 13642 ;; 13643 esac 13644 ;; 13645 13646 *) 13647 lt_prog_compiler_pic_F77='-fPIC' 13648 ;; 13649 esac 13650 else 13651 # PORTME Check for flag to pass linker flags through the system compiler. 13652 case $host_os in 13653 aix*) 13654 lt_prog_compiler_wl_F77='-Wl,' 13655 if test "$host_cpu" = ia64; then 13656 # AIX 5 now supports IA64 processor 13657 lt_prog_compiler_static_F77='-Bstatic' 13658 else 13659 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13660 fi 13661 ;; 13662 darwin*) 13663 # PIC is the default on this platform 13664 # Common symbols not allowed in MH_DYLIB files 13665 case $cc_basename in 13666 xlc*) 13667 lt_prog_compiler_pic_F77='-qnocommon' 13668 lt_prog_compiler_wl_F77='-Wl,' 13669 ;; 13670 esac 13671 ;; 13672 13673 mingw* | pw32* | os2*) 13674 # This hack is so that the source file can tell whether it is being 13675 # built for inclusion in a dll (and should export symbols for example). 13676 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13677 ;; 13678 13679 hpux9* | hpux10* | hpux11*) 13680 lt_prog_compiler_wl_F77='-Wl,' 13681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13682 # not for PA HP-UX. 13683 case $host_cpu in 13684 hppa*64*|ia64*) 13685 # +Z the default 13686 ;; 13687 *) 13688 lt_prog_compiler_pic_F77='+Z' 13689 ;; 13690 esac 13691 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13692 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13693 ;; 13694 13695 irix5* | irix6* | nonstopux*) 13696 lt_prog_compiler_wl_F77='-Wl,' 13697 # PIC (with -KPIC) is the default. 13698 lt_prog_compiler_static_F77='-non_shared' 13699 ;; 13700 13701 newsos6) 13702 lt_prog_compiler_pic_F77='-KPIC' 13703 lt_prog_compiler_static_F77='-Bstatic' 13704 ;; 13705 13706 linux* | k*bsd*-gnu) 13707 case $cc_basename in 13708 icc* | ecc*) 13709 lt_prog_compiler_wl_F77='-Wl,' 13710 lt_prog_compiler_pic_F77='-KPIC' 13711 lt_prog_compiler_static_F77='-static' 13712 ;; 13713 pgcc* | pgf77* | pgf90* | pgf95*) 13714 # Portland Group compilers (*not* the Pentium gcc compiler, 13715 # which looks to be a dead project) 13716 lt_prog_compiler_wl_F77='-Wl,' 13717 lt_prog_compiler_pic_F77='-fpic' 13718 lt_prog_compiler_static_F77='-Bstatic' 13719 ;; 13720 ccc*) 13721 lt_prog_compiler_wl_F77='-Wl,' 13722 # All Alpha code is PIC. 13723 lt_prog_compiler_static_F77='-non_shared' 13724 ;; 13725 esac 13726 ;; 13727 13728 osf3* | osf4* | osf5*) 13729 lt_prog_compiler_wl_F77='-Wl,' 13730 # All OSF/1 code is PIC. 13731 lt_prog_compiler_static_F77='-non_shared' 13732 ;; 13733 13734 solaris*) 13735 lt_prog_compiler_pic_F77='-KPIC' 13736 lt_prog_compiler_static_F77='-Bstatic' 13737 case $cc_basename in 13738 f77* | f90* | f95*) 13739 lt_prog_compiler_wl_F77='-Qoption ld ';; 13740 *) 13741 lt_prog_compiler_wl_F77='-Wl,';; 13742 esac 13743 ;; 13744 13745 sunos4*) 13746 lt_prog_compiler_wl_F77='-Qoption ld ' 13747 lt_prog_compiler_pic_F77='-PIC' 13748 lt_prog_compiler_static_F77='-Bstatic' 13749 ;; 13750 13751 sysv4 | sysv4.2uw2* | sysv4.3*) 13752 lt_prog_compiler_wl_F77='-Wl,' 13753 lt_prog_compiler_pic_F77='-KPIC' 13754 lt_prog_compiler_static_F77='-Bstatic' 13755 ;; 13756 13757 sysv4*MP*) 13758 if test -d /usr/nec ;then 13759 lt_prog_compiler_pic_F77='-Kconform_pic' 13760 lt_prog_compiler_static_F77='-Bstatic' 13761 fi 13762 ;; 13763 13764 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13765 lt_prog_compiler_wl_F77='-Wl,' 13766 lt_prog_compiler_pic_F77='-KPIC' 13767 lt_prog_compiler_static_F77='-Bstatic' 13768 ;; 13769 13770 unicos*) 13771 lt_prog_compiler_wl_F77='-Wl,' 13772 lt_prog_compiler_can_build_shared_F77=no 13773 ;; 13774 13775 uts4*) 13776 lt_prog_compiler_pic_F77='-pic' 13777 lt_prog_compiler_static_F77='-Bstatic' 13778 ;; 13779 13780 *) 13781 lt_prog_compiler_can_build_shared_F77=no 13782 ;; 13783 esac 13784 fi 13785 13786{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13787echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13788 13789# 13790# Check to make sure the PIC flag actually works. 13791# 13792if test -n "$lt_prog_compiler_pic_F77"; then 13793 13794{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13795echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13796if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13797 echo $ECHO_N "(cached) $ECHO_C" >&6 13798else 13799 lt_prog_compiler_pic_works_F77=no 13800 ac_outfile=conftest.$ac_objext 13801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13802 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13803 # Insert the option either (1) after the last *FLAGS variable, or 13804 # (2) before a word containing "conftest.", or (3) at the end. 13805 # Note that $ac_compile itself does not contain backslashes and begins 13806 # with a dollar sign (not a hyphen), so the echo should work correctly. 13807 # The option is referenced via a variable to avoid confusing sed. 13808 lt_compile=`echo "$ac_compile" | $SED \ 13809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13811 -e 's:$: $lt_compiler_flag:'` 13812 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13813 (eval "$lt_compile" 2>conftest.err) 13814 ac_status=$? 13815 cat conftest.err >&5 13816 echo "$as_me:__oline__: \$? = $ac_status" >&5 13817 if (exit $ac_status) && test -s "$ac_outfile"; then 13818 # The compiler can only warn and ignore the option if not recognized 13819 # So say no if there are warnings other than the usual output. 13820 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13823 lt_prog_compiler_pic_works_F77=yes 13824 fi 13825 fi 13826 $rm conftest* 13827 13828fi 13829{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13830echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13831 13832if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13833 case $lt_prog_compiler_pic_F77 in 13834 "" | " "*) ;; 13835 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13836 esac 13837else 13838 lt_prog_compiler_pic_F77= 13839 lt_prog_compiler_can_build_shared_F77=no 13840fi 13841 13842fi 13843case $host_os in 13844 # For platforms which do not support PIC, -DPIC is meaningless: 13845 *djgpp*) 13846 lt_prog_compiler_pic_F77= 13847 ;; 13848 *) 13849 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13850 ;; 13851esac 13852 13853# 13854# Check to make sure the static flag actually works. 13855# 13856wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13857{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13858echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13859if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13860 echo $ECHO_N "(cached) $ECHO_C" >&6 13861else 13862 lt_prog_compiler_static_works_F77=no 13863 save_LDFLAGS="$LDFLAGS" 13864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13865 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13867 # The linker can only warn and ignore the option if not recognized 13868 # So say no if there are warnings 13869 if test -s conftest.err; then 13870 # Append any errors to the config.log. 13871 cat conftest.err 1>&5 13872 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13874 if diff conftest.exp conftest.er2 >/dev/null; then 13875 lt_prog_compiler_static_works_F77=yes 13876 fi 13877 else 13878 lt_prog_compiler_static_works_F77=yes 13879 fi 13880 fi 13881 $rm conftest* 13882 LDFLAGS="$save_LDFLAGS" 13883 13884fi 13885{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13886echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13887 13888if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13889 : 13890else 13891 lt_prog_compiler_static_F77= 13892fi 13893 13894 13895{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13896echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13897if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13898 echo $ECHO_N "(cached) $ECHO_C" >&6 13899else 13900 lt_cv_prog_compiler_c_o_F77=no 13901 $rm -r conftest 2>/dev/null 13902 mkdir conftest 13903 cd conftest 13904 mkdir out 13905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13906 13907 lt_compiler_flag="-o out/conftest2.$ac_objext" 13908 # Insert the option either (1) after the last *FLAGS variable, or 13909 # (2) before a word containing "conftest.", or (3) at the end. 13910 # Note that $ac_compile itself does not contain backslashes and begins 13911 # with a dollar sign (not a hyphen), so the echo should work correctly. 13912 lt_compile=`echo "$ac_compile" | $SED \ 13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13915 -e 's:$: $lt_compiler_flag:'` 13916 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13917 (eval "$lt_compile" 2>out/conftest.err) 13918 ac_status=$? 13919 cat out/conftest.err >&5 13920 echo "$as_me:__oline__: \$? = $ac_status" >&5 13921 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13922 then 13923 # The compiler can only warn and ignore the option if not recognized 13924 # So say no if there are warnings 13925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13928 lt_cv_prog_compiler_c_o_F77=yes 13929 fi 13930 fi 13931 chmod u+w . 2>&5 13932 $rm conftest* 13933 # SGI C++ compiler will create directory out/ii_files/ for 13934 # template instantiation 13935 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13936 $rm out/* && rmdir out 13937 cd .. 13938 rmdir conftest 13939 $rm conftest* 13940 13941fi 13942{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13943echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13944 13945 13946hard_links="nottested" 13947if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13948 # do not overwrite the value of need_locks provided by the user 13949 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13950echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13951 hard_links=yes 13952 $rm conftest* 13953 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13954 touch conftest.a 13955 ln conftest.a conftest.b 2>&5 || hard_links=no 13956 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13957 { echo "$as_me:$LINENO: result: $hard_links" >&5 13958echo "${ECHO_T}$hard_links" >&6; } 13959 if test "$hard_links" = no; then 13960 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13961echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13962 need_locks=warn 13963 fi 13964else 13965 need_locks=no 13966fi 13967 13968{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13969echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13970 13971 runpath_var= 13972 allow_undefined_flag_F77= 13973 enable_shared_with_static_runtimes_F77=no 13974 archive_cmds_F77= 13975 archive_expsym_cmds_F77= 13976 old_archive_From_new_cmds_F77= 13977 old_archive_from_expsyms_cmds_F77= 13978 export_dynamic_flag_spec_F77= 13979 whole_archive_flag_spec_F77= 13980 thread_safe_flag_spec_F77= 13981 hardcode_libdir_flag_spec_F77= 13982 hardcode_libdir_flag_spec_ld_F77= 13983 hardcode_libdir_separator_F77= 13984 hardcode_direct_F77=no 13985 hardcode_minus_L_F77=no 13986 hardcode_shlibpath_var_F77=unsupported 13987 link_all_deplibs_F77=unknown 13988 hardcode_automatic_F77=no 13989 module_cmds_F77= 13990 module_expsym_cmds_F77= 13991 always_export_symbols_F77=no 13992 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13993 # include_expsyms should be a list of space-separated symbols to be *always* 13994 # included in the symbol list 13995 include_expsyms_F77= 13996 # exclude_expsyms can be an extended regexp of symbols to exclude 13997 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13998 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13999 # as well as any symbol that contains `d'. 14000 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14001 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14002 # platforms (ab)use it in PIC code, but their linkers get confused if 14003 # the symbol is explicitly referenced. Since portable code cannot 14004 # rely on this symbol name, it's probably fine to never include it in 14005 # preloaded symbol tables. 14006 extract_expsyms_cmds= 14007 # Just being paranoid about ensuring that cc_basename is set. 14008 for cc_temp in $compiler""; do 14009 case $cc_temp in 14010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14012 \-*) ;; 14013 *) break;; 14014 esac 14015done 14016cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14017 14018 case $host_os in 14019 cygwin* | mingw* | pw32*) 14020 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14021 # When not using gcc, we currently assume that we are using 14022 # Microsoft Visual C++. 14023 if test "$GCC" != yes; then 14024 with_gnu_ld=no 14025 fi 14026 ;; 14027 interix*) 14028 # we just hope/assume this is gcc and not c89 (= MSVC++) 14029 with_gnu_ld=yes 14030 ;; 14031 openbsd*) 14032 with_gnu_ld=no 14033 ;; 14034 esac 14035 14036 ld_shlibs_F77=yes 14037 if test "$with_gnu_ld" = yes; then 14038 # If archive_cmds runs LD, not CC, wlarc should be empty 14039 wlarc='${wl}' 14040 14041 # Set some defaults for GNU ld with shared library support. These 14042 # are reset later if shared libraries are not supported. Putting them 14043 # here allows them to be overridden if necessary. 14044 runpath_var=LD_RUN_PATH 14045 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14046 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14047 # ancient GNU ld didn't support --whole-archive et. al. 14048 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14049 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14050 else 14051 whole_archive_flag_spec_F77= 14052 fi 14053 supports_anon_versioning=no 14054 case `$LD -v 2>/dev/null` in 14055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14058 *\ 2.11.*) ;; # other 2.11 versions 14059 *) supports_anon_versioning=yes ;; 14060 esac 14061 14062 # See if GNU ld supports shared libraries. 14063 case $host_os in 14064 aix3* | aix4* | aix5*) 14065 # On AIX/PPC, the GNU linker is very broken 14066 if test "$host_cpu" != ia64; then 14067 ld_shlibs_F77=no 14068 cat <<EOF 1>&2 14069 14070*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14071*** to be unable to reliably create shared libraries on AIX. 14072*** Therefore, libtool is disabling shared libraries support. If you 14073*** really care for shared libraries, you may want to modify your PATH 14074*** so that a non-GNU linker is found, and then restart. 14075 14076EOF 14077 fi 14078 ;; 14079 14080 amigaos*) 14081 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)' 14082 hardcode_libdir_flag_spec_F77='-L$libdir' 14083 hardcode_minus_L_F77=yes 14084 14085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14086 # that the semantics of dynamic libraries on AmigaOS, at least up 14087 # to version 4, is to share data among multiple programs linked 14088 # with the same dynamic library. Since this doesn't match the 14089 # behavior of shared libraries on other platforms, we can't use 14090 # them. 14091 ld_shlibs_F77=no 14092 ;; 14093 14094 beos*) 14095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14096 allow_undefined_flag_F77=unsupported 14097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14098 # support --undefined. This deserves some investigation. FIXME 14099 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14100 else 14101 ld_shlibs_F77=no 14102 fi 14103 ;; 14104 14105 cygwin* | mingw* | pw32*) 14106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14107 # as there is no search path for DLLs. 14108 hardcode_libdir_flag_spec_F77='-L$libdir' 14109 allow_undefined_flag_F77=unsupported 14110 always_export_symbols_F77=no 14111 enable_shared_with_static_runtimes_F77=yes 14112 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14113 14114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14115 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14116 # If the export-symbols file already is a .def file (1st line 14117 # is EXPORTS), use it as is; otherwise, prepend... 14118 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14119 cp $export_symbols $output_objdir/$soname.def; 14120 else 14121 echo EXPORTS > $output_objdir/$soname.def; 14122 cat $export_symbols >> $output_objdir/$soname.def; 14123 fi~ 14124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14125 else 14126 ld_shlibs_F77=no 14127 fi 14128 ;; 14129 14130 interix3*) 14131 hardcode_direct_F77=no 14132 hardcode_shlibpath_var_F77=no 14133 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14134 export_dynamic_flag_spec_F77='${wl}-E' 14135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14136 # Instead, shared libraries are loaded at an image base (0x10000000 by 14137 # default) and relocated if they conflict, which is a slow very memory 14138 # consuming and fragmenting process. To avoid this, we pick a random, 14139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14140 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14141 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' 14142 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' 14143 ;; 14144 14145 linux* | k*bsd*-gnu) 14146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14147 tmp_addflag= 14148 case $cc_basename,$host_cpu in 14149 pgcc*) # Portland Group C compiler 14150 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' 14151 tmp_addflag=' $pic_flag' 14152 ;; 14153 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14154 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' 14155 tmp_addflag=' $pic_flag -Mnomain' ;; 14156 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14157 tmp_addflag=' -i_dynamic' ;; 14158 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14159 tmp_addflag=' -i_dynamic -nofor_main' ;; 14160 ifc* | ifort*) # Intel Fortran compiler 14161 tmp_addflag=' -nofor_main' ;; 14162 esac 14163 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14164 14165 if test $supports_anon_versioning = yes; then 14166 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14168 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14169 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14170 fi 14171 link_all_deplibs_F77=no 14172 else 14173 ld_shlibs_F77=no 14174 fi 14175 ;; 14176 14177 netbsd* | netbsdelf*-gnu) 14178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14179 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14180 wlarc= 14181 else 14182 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14183 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14184 fi 14185 ;; 14186 14187 solaris*) 14188 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14189 ld_shlibs_F77=no 14190 cat <<EOF 1>&2 14191 14192*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14193*** create shared libraries on Solaris systems. Therefore, libtool 14194*** is disabling shared libraries support. We urge you to upgrade GNU 14195*** binutils to release 2.9.1 or newer. Another option is to modify 14196*** your PATH or compiler configuration so that the native linker is 14197*** used, and then restart. 14198 14199EOF 14200 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14202 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14203 else 14204 ld_shlibs_F77=no 14205 fi 14206 ;; 14207 14208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14209 case `$LD -v 2>&1` in 14210 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14211 ld_shlibs_F77=no 14212 cat <<_LT_EOF 1>&2 14213 14214*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14215*** reliably create shared libraries on SCO systems. Therefore, libtool 14216*** is disabling shared libraries support. We urge you to upgrade GNU 14217*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14218*** your PATH or compiler configuration so that the native linker is 14219*** used, and then restart. 14220 14221_LT_EOF 14222 ;; 14223 *) 14224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14225 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14227 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14228 else 14229 ld_shlibs_F77=no 14230 fi 14231 ;; 14232 esac 14233 ;; 14234 14235 sunos4*) 14236 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14237 wlarc= 14238 hardcode_direct_F77=yes 14239 hardcode_shlibpath_var_F77=no 14240 ;; 14241 14242 *) 14243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14244 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14245 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14246 else 14247 ld_shlibs_F77=no 14248 fi 14249 ;; 14250 esac 14251 14252 if test "$ld_shlibs_F77" = no; then 14253 runpath_var= 14254 hardcode_libdir_flag_spec_F77= 14255 export_dynamic_flag_spec_F77= 14256 whole_archive_flag_spec_F77= 14257 fi 14258 else 14259 # PORTME fill in a description of your system's linker (not GNU ld) 14260 case $host_os in 14261 aix3*) 14262 allow_undefined_flag_F77=unsupported 14263 always_export_symbols_F77=yes 14264 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' 14265 # Note: this linker hardcodes the directories in LIBPATH if there 14266 # are no directories specified by -L. 14267 hardcode_minus_L_F77=yes 14268 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14269 # Neither direct hardcoding nor static linking is supported with a 14270 # broken collect2. 14271 hardcode_direct_F77=unsupported 14272 fi 14273 ;; 14274 14275 aix4* | aix5*) 14276 if test "$host_cpu" = ia64; then 14277 # On IA64, the linker does run time linking by default, so we don't 14278 # have to do anything special. 14279 aix_use_runtimelinking=no 14280 exp_sym_flag='-Bexport' 14281 no_entry_flag="" 14282 else 14283 # If we're using GNU nm, then we don't want the "-C" option. 14284 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14285 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14286 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' 14287 else 14288 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' 14289 fi 14290 aix_use_runtimelinking=no 14291 14292 # Test if we are trying to use run time linking or normal 14293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14294 # need to do runtime linking. 14295 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14296 for ld_flag in $LDFLAGS; do 14297 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14298 aix_use_runtimelinking=yes 14299 break 14300 fi 14301 done 14302 ;; 14303 esac 14304 14305 exp_sym_flag='-bexport' 14306 no_entry_flag='-bnoentry' 14307 fi 14308 14309 # When large executables or shared objects are built, AIX ld can 14310 # have problems creating the table of contents. If linking a library 14311 # or program results in "error TOC overflow" add -mminimal-toc to 14312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14314 14315 archive_cmds_F77='' 14316 hardcode_direct_F77=yes 14317 hardcode_libdir_separator_F77=':' 14318 link_all_deplibs_F77=yes 14319 14320 if test "$GCC" = yes; then 14321 case $host_os in aix4.[012]|aix4.[012].*) 14322 # We only want to do this on AIX 4.2 and lower, the check 14323 # below for broken collect2 doesn't work under 4.3+ 14324 collect2name=`${CC} -print-prog-name=collect2` 14325 if test -f "$collect2name" && \ 14326 strings "$collect2name" | grep resolve_lib_name >/dev/null 14327 then 14328 # We have reworked collect2 14329 hardcode_direct_F77=yes 14330 else 14331 # We have old collect2 14332 hardcode_direct_F77=unsupported 14333 # It fails to find uninstalled libraries when the uninstalled 14334 # path is not listed in the libpath. Setting hardcode_minus_L 14335 # to unsupported forces relinking 14336 hardcode_minus_L_F77=yes 14337 hardcode_libdir_flag_spec_F77='-L$libdir' 14338 hardcode_libdir_separator_F77= 14339 fi 14340 ;; 14341 esac 14342 shared_flag='-shared' 14343 if test "$aix_use_runtimelinking" = yes; then 14344 shared_flag="$shared_flag "'${wl}-G' 14345 fi 14346 else 14347 # not using gcc 14348 if test "$host_cpu" = ia64; then 14349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14350 # chokes on -Wl,-G. The following line is correct: 14351 shared_flag='-G' 14352 else 14353 if test "$aix_use_runtimelinking" = yes; then 14354 shared_flag='${wl}-G' 14355 else 14356 shared_flag='${wl}-bM:SRE' 14357 fi 14358 fi 14359 fi 14360 14361 # It seems that -bexpall does not export symbols beginning with 14362 # underscore (_), so it is better to generate a list of symbols to export. 14363 always_export_symbols_F77=yes 14364 if test "$aix_use_runtimelinking" = yes; then 14365 # Warning - without using the other runtime loading flags (-brtl), 14366 # -berok will link without error, but may produce a broken library. 14367 allow_undefined_flag_F77='-berok' 14368 # Determine the default libpath from the value encoded in an empty executable. 14369 cat >conftest.$ac_ext <<_ACEOF 14370 program main 14371 14372 end 14373_ACEOF 14374rm -f conftest.$ac_objext conftest$ac_exeext 14375if { (ac_try="$ac_link" 14376case "(($ac_try" in 14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14378 *) ac_try_echo=$ac_try;; 14379esac 14380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14381 (eval "$ac_link") 2>conftest.er1 14382 ac_status=$? 14383 grep -v '^ *+' conftest.er1 >conftest.err 14384 rm -f conftest.er1 14385 cat conftest.err >&5 14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14387 (exit $ac_status); } && { 14388 test -z "$ac_f77_werror_flag" || 14389 test ! -s conftest.err 14390 } && test -s conftest$ac_exeext && 14391 $as_test_x conftest$ac_exeext; then 14392 14393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14394}'` 14395# Check for a 64-bit object if we didn't find anything. 14396if 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; } 14397}'`; fi 14398else 14399 echo "$as_me: failed program was:" >&5 14400sed 's/^/| /' conftest.$ac_ext >&5 14401 14402 14403fi 14404 14405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14406 conftest$ac_exeext conftest.$ac_ext 14407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14408 14409 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14410 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" 14411 else 14412 if test "$host_cpu" = ia64; then 14413 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14414 allow_undefined_flag_F77="-z nodefs" 14415 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" 14416 else 14417 # Determine the default libpath from the value encoded in an empty executable. 14418 cat >conftest.$ac_ext <<_ACEOF 14419 program main 14420 14421 end 14422_ACEOF 14423rm -f conftest.$ac_objext conftest$ac_exeext 14424if { (ac_try="$ac_link" 14425case "(($ac_try" in 14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14427 *) ac_try_echo=$ac_try;; 14428esac 14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14430 (eval "$ac_link") 2>conftest.er1 14431 ac_status=$? 14432 grep -v '^ *+' conftest.er1 >conftest.err 14433 rm -f conftest.er1 14434 cat conftest.err >&5 14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14436 (exit $ac_status); } && { 14437 test -z "$ac_f77_werror_flag" || 14438 test ! -s conftest.err 14439 } && test -s conftest$ac_exeext && 14440 $as_test_x conftest$ac_exeext; then 14441 14442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14443}'` 14444# Check for a 64-bit object if we didn't find anything. 14445if 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; } 14446}'`; fi 14447else 14448 echo "$as_me: failed program was:" >&5 14449sed 's/^/| /' conftest.$ac_ext >&5 14450 14451 14452fi 14453 14454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14455 conftest$ac_exeext conftest.$ac_ext 14456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14457 14458 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14459 # Warning - without using the other run time loading flags, 14460 # -berok will link without error, but may produce a broken library. 14461 no_undefined_flag_F77=' ${wl}-bernotok' 14462 allow_undefined_flag_F77=' ${wl}-berok' 14463 # Exported symbols can be pulled into shared objects from archives 14464 whole_archive_flag_spec_F77='$convenience' 14465 archive_cmds_need_lc_F77=yes 14466 # This is similar to how AIX traditionally builds its shared libraries. 14467 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' 14468 fi 14469 fi 14470 ;; 14471 14472 amigaos*) 14473 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)' 14474 hardcode_libdir_flag_spec_F77='-L$libdir' 14475 hardcode_minus_L_F77=yes 14476 # see comment about different semantics on the GNU ld section 14477 ld_shlibs_F77=no 14478 ;; 14479 14480 bsdi[45]*) 14481 export_dynamic_flag_spec_F77=-rdynamic 14482 ;; 14483 14484 cygwin* | mingw* | pw32*) 14485 # When not using gcc, we currently assume that we are using 14486 # Microsoft Visual C++. 14487 # hardcode_libdir_flag_spec is actually meaningless, as there is 14488 # no search path for DLLs. 14489 hardcode_libdir_flag_spec_F77=' ' 14490 allow_undefined_flag_F77=unsupported 14491 # Tell ltmain to make .lib files, not .a files. 14492 libext=lib 14493 # Tell ltmain to make .dll files, not .so files. 14494 shrext_cmds=".dll" 14495 # FIXME: Setting linknames here is a bad hack. 14496 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14497 # The linker will automatically build a .lib file if we build a DLL. 14498 old_archive_From_new_cmds_F77='true' 14499 # FIXME: Should let the user specify the lib program. 14500 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14501 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14502 enable_shared_with_static_runtimes_F77=yes 14503 ;; 14504 14505 darwin* | rhapsody*) 14506 case $host_os in 14507 rhapsody* | darwin1.[012]) 14508 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14509 ;; 14510 *) # Darwin 1.3 on 14511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14512 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14513 else 14514 case ${MACOSX_DEPLOYMENT_TARGET} in 14515 10.[012]) 14516 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14517 ;; 14518 10.*) 14519 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14520 ;; 14521 esac 14522 fi 14523 ;; 14524 esac 14525 archive_cmds_need_lc_F77=no 14526 hardcode_direct_F77=no 14527 hardcode_automatic_F77=yes 14528 hardcode_shlibpath_var_F77=unsupported 14529 whole_archive_flag_spec_F77='' 14530 link_all_deplibs_F77=yes 14531 if test "$GCC" = yes ; then 14532 output_verbose_link_cmd='echo' 14533 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14534 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14536 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}' 14537 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}' 14538 else 14539 case $cc_basename in 14540 xlc*) 14541 output_verbose_link_cmd='echo' 14542 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14543 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14544 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14545 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}' 14546 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}' 14547 ;; 14548 *) 14549 ld_shlibs_F77=no 14550 ;; 14551 esac 14552 fi 14553 ;; 14554 14555 dgux*) 14556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14557 hardcode_libdir_flag_spec_F77='-L$libdir' 14558 hardcode_shlibpath_var_F77=no 14559 ;; 14560 14561 freebsd1*) 14562 ld_shlibs_F77=no 14563 ;; 14564 14565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14566 # support. Future versions do this automatically, but an explicit c++rt0.o 14567 # does not break anything, and helps significantly (at the cost of a little 14568 # extra space). 14569 freebsd2.2*) 14570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14571 hardcode_libdir_flag_spec_F77='-R$libdir' 14572 hardcode_direct_F77=yes 14573 hardcode_shlibpath_var_F77=no 14574 ;; 14575 14576 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14577 freebsd2*) 14578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14579 hardcode_direct_F77=yes 14580 hardcode_minus_L_F77=yes 14581 hardcode_shlibpath_var_F77=no 14582 ;; 14583 14584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14585 freebsd* | dragonfly*) 14586 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14587 hardcode_libdir_flag_spec_F77='-R$libdir' 14588 hardcode_direct_F77=yes 14589 hardcode_shlibpath_var_F77=no 14590 ;; 14591 14592 hpux9*) 14593 if test "$GCC" = yes; then 14594 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' 14595 else 14596 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' 14597 fi 14598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14599 hardcode_libdir_separator_F77=: 14600 hardcode_direct_F77=yes 14601 14602 # hardcode_minus_L: Not really in the search PATH, 14603 # but as the default location of the library. 14604 hardcode_minus_L_F77=yes 14605 export_dynamic_flag_spec_F77='${wl}-E' 14606 ;; 14607 14608 hpux10*) 14609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14610 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14611 else 14612 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14613 fi 14614 if test "$with_gnu_ld" = no; then 14615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14616 hardcode_libdir_separator_F77=: 14617 14618 hardcode_direct_F77=yes 14619 export_dynamic_flag_spec_F77='${wl}-E' 14620 14621 # hardcode_minus_L: Not really in the search PATH, 14622 # but as the default location of the library. 14623 hardcode_minus_L_F77=yes 14624 fi 14625 ;; 14626 14627 hpux11*) 14628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14629 case $host_cpu in 14630 hppa*64*) 14631 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14632 ;; 14633 ia64*) 14634 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14635 ;; 14636 *) 14637 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14638 ;; 14639 esac 14640 else 14641 case $host_cpu in 14642 hppa*64*) 14643 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14644 ;; 14645 ia64*) 14646 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14647 ;; 14648 *) 14649 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14650 ;; 14651 esac 14652 fi 14653 if test "$with_gnu_ld" = no; then 14654 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14655 hardcode_libdir_separator_F77=: 14656 14657 case $host_cpu in 14658 hppa*64*|ia64*) 14659 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14660 hardcode_direct_F77=no 14661 hardcode_shlibpath_var_F77=no 14662 ;; 14663 *) 14664 hardcode_direct_F77=yes 14665 export_dynamic_flag_spec_F77='${wl}-E' 14666 14667 # hardcode_minus_L: Not really in the search PATH, 14668 # but as the default location of the library. 14669 hardcode_minus_L_F77=yes 14670 ;; 14671 esac 14672 fi 14673 ;; 14674 14675 irix5* | irix6* | nonstopux*) 14676 if test "$GCC" = yes; then 14677 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' 14678 else 14679 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' 14680 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14681 fi 14682 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14683 hardcode_libdir_separator_F77=: 14684 link_all_deplibs_F77=yes 14685 ;; 14686 14687 netbsd* | netbsdelf*-gnu) 14688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14689 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14690 else 14691 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14692 fi 14693 hardcode_libdir_flag_spec_F77='-R$libdir' 14694 hardcode_direct_F77=yes 14695 hardcode_shlibpath_var_F77=no 14696 ;; 14697 14698 newsos6) 14699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14700 hardcode_direct_F77=yes 14701 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14702 hardcode_libdir_separator_F77=: 14703 hardcode_shlibpath_var_F77=no 14704 ;; 14705 14706 openbsd*) 14707 hardcode_direct_F77=yes 14708 hardcode_shlibpath_var_F77=no 14709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14710 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14711 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14712 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14713 export_dynamic_flag_spec_F77='${wl}-E' 14714 else 14715 case $host_os in 14716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14717 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14718 hardcode_libdir_flag_spec_F77='-R$libdir' 14719 ;; 14720 *) 14721 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14723 ;; 14724 esac 14725 fi 14726 ;; 14727 14728 os2*) 14729 hardcode_libdir_flag_spec_F77='-L$libdir' 14730 hardcode_minus_L_F77=yes 14731 allow_undefined_flag_F77=unsupported 14732 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' 14733 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14734 ;; 14735 14736 osf3*) 14737 if test "$GCC" = yes; then 14738 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14739 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' 14740 else 14741 allow_undefined_flag_F77=' -expect_unresolved \*' 14742 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' 14743 fi 14744 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14745 hardcode_libdir_separator_F77=: 14746 ;; 14747 14748 osf4* | osf5*) # as osf3* with the addition of -msym flag 14749 if test "$GCC" = yes; then 14750 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14751 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' 14752 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14753 else 14754 allow_undefined_flag_F77=' -expect_unresolved \*' 14755 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' 14756 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~ 14757 $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' 14758 14759 # Both c and cxx compiler support -rpath directly 14760 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14761 fi 14762 hardcode_libdir_separator_F77=: 14763 ;; 14764 14765 solaris*) 14766 no_undefined_flag_F77=' -z text' 14767 if test "$GCC" = yes; then 14768 wlarc='${wl}' 14769 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14770 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14771 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14772 else 14773 wlarc='' 14774 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14775 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14776 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14777 fi 14778 hardcode_libdir_flag_spec_F77='-R$libdir' 14779 hardcode_shlibpath_var_F77=no 14780 case $host_os in 14781 solaris2.[0-5] | solaris2.[0-5].*) ;; 14782 *) 14783 # The compiler driver will combine linker options so we 14784 # cannot just pass the convience library names through 14785 # without $wl, iff we do not link with $LD. 14786 # Luckily, gcc supports the same syntax we need for Sun Studio. 14787 # Supported since Solaris 2.6 (maybe 2.5.1?) 14788 case $wlarc in 14789 '') 14790 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14791 *) 14792 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' ;; 14793 esac ;; 14794 esac 14795 link_all_deplibs_F77=yes 14796 ;; 14797 14798 sunos4*) 14799 if test "x$host_vendor" = xsequent; then 14800 # Use $CC to link under sequent, because it throws in some extra .o 14801 # files that make .init and .fini sections work. 14802 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14803 else 14804 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14805 fi 14806 hardcode_libdir_flag_spec_F77='-L$libdir' 14807 hardcode_direct_F77=yes 14808 hardcode_minus_L_F77=yes 14809 hardcode_shlibpath_var_F77=no 14810 ;; 14811 14812 sysv4) 14813 case $host_vendor in 14814 sni) 14815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14816 hardcode_direct_F77=yes # is this really true??? 14817 ;; 14818 siemens) 14819 ## LD is ld it makes a PLAMLIB 14820 ## CC just makes a GrossModule. 14821 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14822 reload_cmds_F77='$CC -r -o $output$reload_objs' 14823 hardcode_direct_F77=no 14824 ;; 14825 motorola) 14826 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14827 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14828 ;; 14829 esac 14830 runpath_var='LD_RUN_PATH' 14831 hardcode_shlibpath_var_F77=no 14832 ;; 14833 14834 sysv4.3*) 14835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14836 hardcode_shlibpath_var_F77=no 14837 export_dynamic_flag_spec_F77='-Bexport' 14838 ;; 14839 14840 sysv4*MP*) 14841 if test -d /usr/nec; then 14842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14843 hardcode_shlibpath_var_F77=no 14844 runpath_var=LD_RUN_PATH 14845 hardcode_runpath_var=yes 14846 ld_shlibs_F77=yes 14847 fi 14848 ;; 14849 14850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14851 no_undefined_flag_F77='${wl}-z,text' 14852 archive_cmds_need_lc_F77=no 14853 hardcode_shlibpath_var_F77=no 14854 runpath_var='LD_RUN_PATH' 14855 14856 if test "$GCC" = yes; then 14857 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14858 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14859 else 14860 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14861 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14862 fi 14863 ;; 14864 14865 sysv5* | sco3.2v5* | sco5v6*) 14866 # Note: We can NOT use -z defs as we might desire, because we do not 14867 # link with -lc, and that would cause any symbols used from libc to 14868 # always be unresolved, which means just about no library would 14869 # ever link correctly. If we're not using GNU ld we use -z text 14870 # though, which does catch some bad symbols but isn't as heavy-handed 14871 # as -z defs. 14872 no_undefined_flag_F77='${wl}-z,text' 14873 allow_undefined_flag_F77='${wl}-z,nodefs' 14874 archive_cmds_need_lc_F77=no 14875 hardcode_shlibpath_var_F77=no 14876 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14877 hardcode_libdir_separator_F77=':' 14878 link_all_deplibs_F77=yes 14879 export_dynamic_flag_spec_F77='${wl}-Bexport' 14880 runpath_var='LD_RUN_PATH' 14881 14882 if test "$GCC" = yes; then 14883 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14884 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14885 else 14886 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14887 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14888 fi 14889 ;; 14890 14891 uts4*) 14892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14893 hardcode_libdir_flag_spec_F77='-L$libdir' 14894 hardcode_shlibpath_var_F77=no 14895 ;; 14896 14897 *) 14898 ld_shlibs_F77=no 14899 ;; 14900 esac 14901 fi 14902 14903{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14904echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14905test "$ld_shlibs_F77" = no && can_build_shared=no 14906 14907# 14908# Do we need to explicitly link libc? 14909# 14910case "x$archive_cmds_need_lc_F77" in 14911x|xyes) 14912 # Assume -lc should be added 14913 archive_cmds_need_lc_F77=yes 14914 14915 if test "$enable_shared" = yes && test "$GCC" = yes; then 14916 case $archive_cmds_F77 in 14917 *'~'*) 14918 # FIXME: we may have to deal with multi-command sequences. 14919 ;; 14920 '$CC '*) 14921 # Test whether the compiler implicitly links with -lc since on some 14922 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14923 # to ld, don't add -lc before -lgcc. 14924 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14925echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14926 $rm conftest* 14927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14928 14929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14930 (eval $ac_compile) 2>&5 14931 ac_status=$? 14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14933 (exit $ac_status); } 2>conftest.err; then 14934 soname=conftest 14935 lib=conftest 14936 libobjs=conftest.$ac_objext 14937 deplibs= 14938 wl=$lt_prog_compiler_wl_F77 14939 pic_flag=$lt_prog_compiler_pic_F77 14940 compiler_flags=-v 14941 linker_flags=-v 14942 verstring= 14943 output_objdir=. 14944 libname=conftest 14945 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14946 allow_undefined_flag_F77= 14947 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14948 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14949 ac_status=$? 14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14951 (exit $ac_status); } 14952 then 14953 archive_cmds_need_lc_F77=no 14954 else 14955 archive_cmds_need_lc_F77=yes 14956 fi 14957 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14958 else 14959 cat conftest.err 1>&5 14960 fi 14961 $rm conftest* 14962 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14963echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14964 ;; 14965 esac 14966 fi 14967 ;; 14968esac 14969 14970{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14971echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14972library_names_spec= 14973libname_spec='lib$name' 14974soname_spec= 14975shrext_cmds=".so" 14976postinstall_cmds= 14977postuninstall_cmds= 14978finish_cmds= 14979finish_eval= 14980shlibpath_var= 14981shlibpath_overrides_runpath=unknown 14982version_type=none 14983dynamic_linker="$host_os ld.so" 14984sys_lib_dlsearch_path_spec="/lib /usr/lib" 14985if test "$GCC" = yes; then 14986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14987 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14988 # if the path contains ";" then we assume it to be the separator 14989 # otherwise default to the standard path separator (i.e. ":") - it is 14990 # assumed that no part of a normal pathname contains ";" but that should 14991 # okay in the real world where ";" in dirpaths is itself problematic. 14992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14993 else 14994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14995 fi 14996else 14997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14998fi 14999need_lib_prefix=unknown 15000hardcode_into_libs=no 15001 15002# when you set need_version to no, make sure it does not cause -set_version 15003# flags to be left without arguments 15004need_version=unknown 15005 15006case $host_os in 15007aix3*) 15008 version_type=linux 15009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15010 shlibpath_var=LIBPATH 15011 15012 # AIX 3 has no versioning support, so we append a major version to the name. 15013 soname_spec='${libname}${release}${shared_ext}$major' 15014 ;; 15015 15016aix4* | aix5*) 15017 version_type=linux 15018 need_lib_prefix=no 15019 need_version=no 15020 hardcode_into_libs=yes 15021 if test "$host_cpu" = ia64; then 15022 # AIX 5 supports IA64 15023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15024 shlibpath_var=LD_LIBRARY_PATH 15025 else 15026 # With GCC up to 2.95.x, collect2 would create an import file 15027 # for dependence libraries. The import file would start with 15028 # the line `#! .'. This would cause the generated library to 15029 # depend on `.', always an invalid library. This was fixed in 15030 # development snapshots of GCC prior to 3.0. 15031 case $host_os in 15032 aix4 | aix4.[01] | aix4.[01].*) 15033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15034 echo ' yes ' 15035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15036 : 15037 else 15038 can_build_shared=no 15039 fi 15040 ;; 15041 esac 15042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15043 # soname into executable. Probably we can add versioning support to 15044 # collect2, so additional links can be useful in future. 15045 if test "$aix_use_runtimelinking" = yes; then 15046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15047 # instead of lib<name>.a to let people know that these are not 15048 # typical AIX shared libraries. 15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15050 else 15051 # We preserve .a as extension for shared libraries through AIX4.2 15052 # and later when we are not doing run time linking. 15053 library_names_spec='${libname}${release}.a $libname.a' 15054 soname_spec='${libname}${release}${shared_ext}$major' 15055 fi 15056 shlibpath_var=LIBPATH 15057 fi 15058 ;; 15059 15060amigaos*) 15061 library_names_spec='$libname.ixlibrary $libname.a' 15062 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15063 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' 15064 ;; 15065 15066beos*) 15067 library_names_spec='${libname}${shared_ext}' 15068 dynamic_linker="$host_os ld.so" 15069 shlibpath_var=LIBRARY_PATH 15070 ;; 15071 15072bsdi[45]*) 15073 version_type=linux 15074 need_version=no 15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15076 soname_spec='${libname}${release}${shared_ext}$major' 15077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15078 shlibpath_var=LD_LIBRARY_PATH 15079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15081 # the default ld.so.conf also contains /usr/contrib/lib and 15082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15083 # libtool to hard-code these into programs 15084 ;; 15085 15086cygwin* | mingw* | pw32*) 15087 version_type=windows 15088 shrext_cmds=".dll" 15089 need_version=no 15090 need_lib_prefix=no 15091 15092 case $GCC,$host_os in 15093 yes,cygwin* | yes,mingw* | yes,pw32*) 15094 library_names_spec='$libname.dll.a' 15095 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15096 postinstall_cmds='base_file=`basename \${file}`~ 15097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15098 dldir=$destdir/`dirname \$dlpath`~ 15099 test -d \$dldir || mkdir -p \$dldir~ 15100 $install_prog $dir/$dlname \$dldir/$dlname~ 15101 chmod a+x \$dldir/$dlname' 15102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15103 dlpath=$dir/\$dldll~ 15104 $rm \$dlpath' 15105 shlibpath_overrides_runpath=yes 15106 15107 case $host_os in 15108 cygwin*) 15109 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15112 ;; 15113 mingw*) 15114 # MinGW DLLs use traditional 'lib' prefix 15115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15118 # It is most probably a Windows format PATH printed by 15119 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15120 # path with ; separators, and with drive letters. We can handle the 15121 # drive letters (cygwin fileutils understands them), so leave them, 15122 # especially as we might pass files found there to a mingw objdump, 15123 # which wouldn't understand a cygwinified path. Ahh. 15124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15125 else 15126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15127 fi 15128 ;; 15129 pw32*) 15130 # pw32 DLLs use 'pw' prefix rather than 'lib' 15131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15132 ;; 15133 esac 15134 ;; 15135 15136 *) 15137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15138 ;; 15139 esac 15140 dynamic_linker='Win32 ld.exe' 15141 # FIXME: first we should search . and the directory the executable is in 15142 shlibpath_var=PATH 15143 ;; 15144 15145darwin* | rhapsody*) 15146 dynamic_linker="$host_os dyld" 15147 version_type=darwin 15148 need_lib_prefix=no 15149 need_version=no 15150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15151 soname_spec='${libname}${release}${major}$shared_ext' 15152 shlibpath_overrides_runpath=yes 15153 shlibpath_var=DYLD_LIBRARY_PATH 15154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15155 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15156 if test "$GCC" = yes; then 15157 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"` 15158 else 15159 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15160 fi 15161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15162 ;; 15163 15164dgux*) 15165 version_type=linux 15166 need_lib_prefix=no 15167 need_version=no 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15169 soname_spec='${libname}${release}${shared_ext}$major' 15170 shlibpath_var=LD_LIBRARY_PATH 15171 ;; 15172 15173freebsd1*) 15174 dynamic_linker=no 15175 ;; 15176 15177freebsd* | dragonfly*) 15178 # DragonFly does not have aout. When/if they implement a new 15179 # versioning mechanism, adjust this. 15180 if test -x /usr/bin/objformat; then 15181 objformat=`/usr/bin/objformat` 15182 else 15183 case $host_os in 15184 freebsd[123]*) objformat=aout ;; 15185 *) objformat=elf ;; 15186 esac 15187 fi 15188 version_type=freebsd-$objformat 15189 case $version_type in 15190 freebsd-elf*) 15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15192 need_version=no 15193 need_lib_prefix=no 15194 ;; 15195 freebsd-*) 15196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15197 need_version=yes 15198 ;; 15199 esac 15200 shlibpath_var=LD_LIBRARY_PATH 15201 case $host_os in 15202 freebsd2*) 15203 shlibpath_overrides_runpath=yes 15204 ;; 15205 freebsd3.[01]* | freebsdelf3.[01]*) 15206 shlibpath_overrides_runpath=yes 15207 hardcode_into_libs=yes 15208 ;; 15209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15211 shlibpath_overrides_runpath=no 15212 hardcode_into_libs=yes 15213 ;; 15214 freebsd*) # from 4.6 on 15215 shlibpath_overrides_runpath=yes 15216 hardcode_into_libs=yes 15217 ;; 15218 esac 15219 ;; 15220 15221gnu*) 15222 version_type=linux 15223 need_lib_prefix=no 15224 need_version=no 15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15226 soname_spec='${libname}${release}${shared_ext}$major' 15227 shlibpath_var=LD_LIBRARY_PATH 15228 hardcode_into_libs=yes 15229 ;; 15230 15231hpux9* | hpux10* | hpux11*) 15232 # Give a soname corresponding to the major version so that dld.sl refuses to 15233 # link against other versions. 15234 version_type=sunos 15235 need_lib_prefix=no 15236 need_version=no 15237 case $host_cpu in 15238 ia64*) 15239 shrext_cmds='.so' 15240 hardcode_into_libs=yes 15241 dynamic_linker="$host_os dld.so" 15242 shlibpath_var=LD_LIBRARY_PATH 15243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15245 soname_spec='${libname}${release}${shared_ext}$major' 15246 if test "X$HPUX_IA64_MODE" = X32; then 15247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15248 else 15249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15250 fi 15251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15252 ;; 15253 hppa*64*) 15254 shrext_cmds='.sl' 15255 hardcode_into_libs=yes 15256 dynamic_linker="$host_os dld.sl" 15257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15260 soname_spec='${libname}${release}${shared_ext}$major' 15261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15263 ;; 15264 *) 15265 shrext_cmds='.sl' 15266 dynamic_linker="$host_os dld.sl" 15267 shlibpath_var=SHLIB_PATH 15268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15270 soname_spec='${libname}${release}${shared_ext}$major' 15271 ;; 15272 esac 15273 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15274 postinstall_cmds='chmod 555 $lib' 15275 ;; 15276 15277interix3*) 15278 version_type=linux 15279 need_lib_prefix=no 15280 need_version=no 15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15282 soname_spec='${libname}${release}${shared_ext}$major' 15283 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15284 shlibpath_var=LD_LIBRARY_PATH 15285 shlibpath_overrides_runpath=no 15286 hardcode_into_libs=yes 15287 ;; 15288 15289irix5* | irix6* | nonstopux*) 15290 case $host_os in 15291 nonstopux*) version_type=nonstopux ;; 15292 *) 15293 if test "$lt_cv_prog_gnu_ld" = yes; then 15294 version_type=linux 15295 else 15296 version_type=irix 15297 fi ;; 15298 esac 15299 need_lib_prefix=no 15300 need_version=no 15301 soname_spec='${libname}${release}${shared_ext}$major' 15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15303 case $host_os in 15304 irix5* | nonstopux*) 15305 libsuff= shlibsuff= 15306 ;; 15307 *) 15308 case $LD in # libtool.m4 will add one of these switches to LD 15309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15310 libsuff= shlibsuff= libmagic=32-bit;; 15311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15312 libsuff=32 shlibsuff=N32 libmagic=N32;; 15313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15314 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15315 *) libsuff= shlibsuff= libmagic=never-match;; 15316 esac 15317 ;; 15318 esac 15319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15320 shlibpath_overrides_runpath=no 15321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15323 hardcode_into_libs=yes 15324 ;; 15325 15326# No shared lib support for Linux oldld, aout, or coff. 15327linux*oldld* | linux*aout* | linux*coff*) 15328 dynamic_linker=no 15329 ;; 15330 15331# This must be Linux ELF. 15332linux* | k*bsd*-gnu) 15333 version_type=linux 15334 need_lib_prefix=no 15335 need_version=no 15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15337 soname_spec='${libname}${release}${shared_ext}$major' 15338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15339 shlibpath_var=LD_LIBRARY_PATH 15340 shlibpath_overrides_runpath=no 15341 # This implies no fast_install, which is unacceptable. 15342 # Some rework will be needed to allow for fast_install 15343 # before this can be enabled. 15344 hardcode_into_libs=yes 15345 15346 # Append ld.so.conf contents to the search path 15347 if test -f /etc/ld.so.conf; then 15348 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' ' '` 15349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15350 fi 15351 15352 # We used to test for /lib/ld.so.1 and disable shared libraries on 15353 # powerpc, because MkLinux only supported shared libraries with the 15354 # GNU dynamic linker. Since this was broken with cross compilers, 15355 # most powerpc-linux boxes support dynamic linking these days and 15356 # people can always --disable-shared, the test was removed, and we 15357 # assume the GNU/Linux dynamic linker is in use. 15358 dynamic_linker='GNU/Linux ld.so' 15359 ;; 15360 15361netbsdelf*-gnu) 15362 version_type=linux 15363 need_lib_prefix=no 15364 need_version=no 15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15366 soname_spec='${libname}${release}${shared_ext}$major' 15367 shlibpath_var=LD_LIBRARY_PATH 15368 shlibpath_overrides_runpath=no 15369 hardcode_into_libs=yes 15370 dynamic_linker='NetBSD ld.elf_so' 15371 ;; 15372 15373netbsd*) 15374 version_type=sunos 15375 need_lib_prefix=no 15376 need_version=no 15377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15380 dynamic_linker='NetBSD (a.out) ld.so' 15381 else 15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15383 soname_spec='${libname}${release}${shared_ext}$major' 15384 dynamic_linker='NetBSD ld.elf_so' 15385 fi 15386 shlibpath_var=LD_LIBRARY_PATH 15387 shlibpath_overrides_runpath=yes 15388 hardcode_into_libs=yes 15389 ;; 15390 15391newsos6) 15392 version_type=linux 15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15394 shlibpath_var=LD_LIBRARY_PATH 15395 shlibpath_overrides_runpath=yes 15396 ;; 15397 15398nto-qnx*) 15399 version_type=linux 15400 need_lib_prefix=no 15401 need_version=no 15402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15403 soname_spec='${libname}${release}${shared_ext}$major' 15404 shlibpath_var=LD_LIBRARY_PATH 15405 shlibpath_overrides_runpath=yes 15406 ;; 15407 15408openbsd*) 15409 version_type=sunos 15410 sys_lib_dlsearch_path_spec="/usr/lib" 15411 need_lib_prefix=no 15412 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15413 case $host_os in 15414 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15415 *) need_version=no ;; 15416 esac 15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15419 shlibpath_var=LD_LIBRARY_PATH 15420 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15421 case $host_os in 15422 openbsd2.[89] | openbsd2.[89].*) 15423 shlibpath_overrides_runpath=no 15424 ;; 15425 *) 15426 shlibpath_overrides_runpath=yes 15427 ;; 15428 esac 15429 else 15430 shlibpath_overrides_runpath=yes 15431 fi 15432 ;; 15433 15434os2*) 15435 libname_spec='$name' 15436 shrext_cmds=".dll" 15437 need_lib_prefix=no 15438 library_names_spec='$libname${shared_ext} $libname.a' 15439 dynamic_linker='OS/2 ld.exe' 15440 shlibpath_var=LIBPATH 15441 ;; 15442 15443osf3* | osf4* | osf5*) 15444 version_type=osf 15445 need_lib_prefix=no 15446 need_version=no 15447 soname_spec='${libname}${release}${shared_ext}$major' 15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15449 shlibpath_var=LD_LIBRARY_PATH 15450 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15451 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15452 ;; 15453 15454solaris*) 15455 version_type=linux 15456 need_lib_prefix=no 15457 need_version=no 15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15459 soname_spec='${libname}${release}${shared_ext}$major' 15460 shlibpath_var=LD_LIBRARY_PATH 15461 shlibpath_overrides_runpath=yes 15462 hardcode_into_libs=yes 15463 # ldd complains unless libraries are executable 15464 postinstall_cmds='chmod +x $lib' 15465 ;; 15466 15467sunos4*) 15468 version_type=sunos 15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15471 shlibpath_var=LD_LIBRARY_PATH 15472 shlibpath_overrides_runpath=yes 15473 if test "$with_gnu_ld" = yes; then 15474 need_lib_prefix=no 15475 fi 15476 need_version=yes 15477 ;; 15478 15479sysv4 | sysv4.3*) 15480 version_type=linux 15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15482 soname_spec='${libname}${release}${shared_ext}$major' 15483 shlibpath_var=LD_LIBRARY_PATH 15484 case $host_vendor in 15485 sni) 15486 shlibpath_overrides_runpath=no 15487 need_lib_prefix=no 15488 export_dynamic_flag_spec='${wl}-Blargedynsym' 15489 runpath_var=LD_RUN_PATH 15490 ;; 15491 siemens) 15492 need_lib_prefix=no 15493 ;; 15494 motorola) 15495 need_lib_prefix=no 15496 need_version=no 15497 shlibpath_overrides_runpath=no 15498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15499 ;; 15500 esac 15501 ;; 15502 15503sysv4*MP*) 15504 if test -d /usr/nec ;then 15505 version_type=linux 15506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15507 soname_spec='$libname${shared_ext}.$major' 15508 shlibpath_var=LD_LIBRARY_PATH 15509 fi 15510 ;; 15511 15512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15513 version_type=freebsd-elf 15514 need_lib_prefix=no 15515 need_version=no 15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15517 soname_spec='${libname}${release}${shared_ext}$major' 15518 shlibpath_var=LD_LIBRARY_PATH 15519 hardcode_into_libs=yes 15520 if test "$with_gnu_ld" = yes; then 15521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15522 shlibpath_overrides_runpath=no 15523 else 15524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15525 shlibpath_overrides_runpath=yes 15526 case $host_os in 15527 sco3.2v5*) 15528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15529 ;; 15530 esac 15531 fi 15532 sys_lib_dlsearch_path_spec='/usr/lib' 15533 ;; 15534 15535uts4*) 15536 version_type=linux 15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15538 soname_spec='${libname}${release}${shared_ext}$major' 15539 shlibpath_var=LD_LIBRARY_PATH 15540 ;; 15541 15542*) 15543 dynamic_linker=no 15544 ;; 15545esac 15546{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15547echo "${ECHO_T}$dynamic_linker" >&6; } 15548test "$dynamic_linker" = no && can_build_shared=no 15549 15550variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15551if test "$GCC" = yes; then 15552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15553fi 15554 15555{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15556echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15557hardcode_action_F77= 15558if test -n "$hardcode_libdir_flag_spec_F77" || \ 15559 test -n "$runpath_var_F77" || \ 15560 test "X$hardcode_automatic_F77" = "Xyes" ; then 15561 15562 # We can hardcode non-existant directories. 15563 if test "$hardcode_direct_F77" != no && 15564 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15565 # have to relink, otherwise we might link with an installed library 15566 # when we should be linking with a yet-to-be-installed one 15567 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15568 test "$hardcode_minus_L_F77" != no; then 15569 # Linking always hardcodes the temporary library directory. 15570 hardcode_action_F77=relink 15571 else 15572 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15573 hardcode_action_F77=immediate 15574 fi 15575else 15576 # We cannot hardcode anything, or else we can only hardcode existing 15577 # directories. 15578 hardcode_action_F77=unsupported 15579fi 15580{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15581echo "${ECHO_T}$hardcode_action_F77" >&6; } 15582 15583if test "$hardcode_action_F77" = relink; then 15584 # Fast installation is not supported 15585 enable_fast_install=no 15586elif test "$shlibpath_overrides_runpath" = yes || 15587 test "$enable_shared" = no; then 15588 # Fast installation is not necessary 15589 enable_fast_install=needless 15590fi 15591 15592 15593# The else clause should only fire when bootstrapping the 15594# libtool distribution, otherwise you forgot to ship ltmain.sh 15595# with your package, and you will get complaints that there are 15596# no rules to generate ltmain.sh. 15597if test -f "$ltmain"; then 15598 # See if we are running on zsh, and set the options which allow our commands through 15599 # without removal of \ escapes. 15600 if test -n "${ZSH_VERSION+set}" ; then 15601 setopt NO_GLOB_SUBST 15602 fi 15603 # Now quote all the things that may contain metacharacters while being 15604 # careful not to overquote the AC_SUBSTed values. We take copies of the 15605 # variables and quote the copies for generation of the libtool script. 15606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15607 SED SHELL STRIP \ 15608 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15609 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15610 deplibs_check_method reload_flag reload_cmds need_locks \ 15611 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15612 lt_cv_sys_global_symbol_to_c_name_address \ 15613 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15614 old_postinstall_cmds old_postuninstall_cmds \ 15615 compiler_F77 \ 15616 CC_F77 \ 15617 LD_F77 \ 15618 lt_prog_compiler_wl_F77 \ 15619 lt_prog_compiler_pic_F77 \ 15620 lt_prog_compiler_static_F77 \ 15621 lt_prog_compiler_no_builtin_flag_F77 \ 15622 export_dynamic_flag_spec_F77 \ 15623 thread_safe_flag_spec_F77 \ 15624 whole_archive_flag_spec_F77 \ 15625 enable_shared_with_static_runtimes_F77 \ 15626 old_archive_cmds_F77 \ 15627 old_archive_from_new_cmds_F77 \ 15628 predep_objects_F77 \ 15629 postdep_objects_F77 \ 15630 predeps_F77 \ 15631 postdeps_F77 \ 15632 compiler_lib_search_path_F77 \ 15633 archive_cmds_F77 \ 15634 archive_expsym_cmds_F77 \ 15635 postinstall_cmds_F77 \ 15636 postuninstall_cmds_F77 \ 15637 old_archive_from_expsyms_cmds_F77 \ 15638 allow_undefined_flag_F77 \ 15639 no_undefined_flag_F77 \ 15640 export_symbols_cmds_F77 \ 15641 hardcode_libdir_flag_spec_F77 \ 15642 hardcode_libdir_flag_spec_ld_F77 \ 15643 hardcode_libdir_separator_F77 \ 15644 hardcode_automatic_F77 \ 15645 module_cmds_F77 \ 15646 module_expsym_cmds_F77 \ 15647 lt_cv_prog_compiler_c_o_F77 \ 15648 exclude_expsyms_F77 \ 15649 include_expsyms_F77; do 15650 15651 case $var in 15652 old_archive_cmds_F77 | \ 15653 old_archive_from_new_cmds_F77 | \ 15654 archive_cmds_F77 | \ 15655 archive_expsym_cmds_F77 | \ 15656 module_cmds_F77 | \ 15657 module_expsym_cmds_F77 | \ 15658 old_archive_from_expsyms_cmds_F77 | \ 15659 export_symbols_cmds_F77 | \ 15660 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15661 postinstall_cmds | postuninstall_cmds | \ 15662 old_postinstall_cmds | old_postuninstall_cmds | \ 15663 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15664 # Double-quote double-evaled strings. 15665 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15666 ;; 15667 *) 15668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15669 ;; 15670 esac 15671 done 15672 15673 case $lt_echo in 15674 *'\$0 --fallback-echo"') 15675 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15676 ;; 15677 esac 15678 15679cfgfile="$ofile" 15680 15681 cat <<__EOF__ >> "$cfgfile" 15682# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15683 15684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15685 15686# Shell to use when invoking shell scripts. 15687SHELL=$lt_SHELL 15688 15689# Whether or not to build shared libraries. 15690build_libtool_libs=$enable_shared 15691 15692# Whether or not to build static libraries. 15693build_old_libs=$enable_static 15694 15695# Whether or not to add -lc for building shared libraries. 15696build_libtool_need_lc=$archive_cmds_need_lc_F77 15697 15698# Whether or not to disallow shared libs when runtime libs are static 15699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15700 15701# Whether or not to optimize for fast installation. 15702fast_install=$enable_fast_install 15703 15704# The host system. 15705host_alias=$host_alias 15706host=$host 15707host_os=$host_os 15708 15709# The build system. 15710build_alias=$build_alias 15711build=$build 15712build_os=$build_os 15713 15714# An echo program that does not interpret backslashes. 15715echo=$lt_echo 15716 15717# The archiver. 15718AR=$lt_AR 15719AR_FLAGS=$lt_AR_FLAGS 15720 15721# A C compiler. 15722LTCC=$lt_LTCC 15723 15724# LTCC compiler flags. 15725LTCFLAGS=$lt_LTCFLAGS 15726 15727# A language-specific compiler. 15728CC=$lt_compiler_F77 15729 15730# Is the compiler the GNU C compiler? 15731with_gcc=$GCC_F77 15732 15733# An ERE matcher. 15734EGREP=$lt_EGREP 15735 15736# The linker used to build libraries. 15737LD=$lt_LD_F77 15738 15739# Whether we need hard or soft links. 15740LN_S=$lt_LN_S 15741 15742# A BSD-compatible nm program. 15743NM=$lt_NM 15744 15745# A symbol stripping program 15746STRIP=$lt_STRIP 15747 15748# Used to examine libraries when file_magic_cmd begins "file" 15749MAGIC_CMD=$MAGIC_CMD 15750 15751# Used on cygwin: DLL creation program. 15752DLLTOOL="$DLLTOOL" 15753 15754# Used on cygwin: object dumper. 15755OBJDUMP="$OBJDUMP" 15756 15757# Used on cygwin: assembler. 15758AS="$AS" 15759 15760# The name of the directory that contains temporary libtool files. 15761objdir=$objdir 15762 15763# How to create reloadable object files. 15764reload_flag=$lt_reload_flag 15765reload_cmds=$lt_reload_cmds 15766 15767# How to pass a linker flag through the compiler. 15768wl=$lt_lt_prog_compiler_wl_F77 15769 15770# Object file suffix (normally "o"). 15771objext="$ac_objext" 15772 15773# Old archive suffix (normally "a"). 15774libext="$libext" 15775 15776# Shared library suffix (normally ".so"). 15777shrext_cmds='$shrext_cmds' 15778 15779# Executable file suffix (normally ""). 15780exeext="$exeext" 15781 15782# Additional compiler flags for building library objects. 15783pic_flag=$lt_lt_prog_compiler_pic_F77 15784pic_mode=$pic_mode 15785 15786# What is the maximum length of a command? 15787max_cmd_len=$lt_cv_sys_max_cmd_len 15788 15789# Does compiler simultaneously support -c and -o options? 15790compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15791 15792# Must we lock files when doing compilation? 15793need_locks=$lt_need_locks 15794 15795# Do we need the lib prefix for modules? 15796need_lib_prefix=$need_lib_prefix 15797 15798# Do we need a version for libraries? 15799need_version=$need_version 15800 15801# Whether dlopen is supported. 15802dlopen_support=$enable_dlopen 15803 15804# Whether dlopen of programs is supported. 15805dlopen_self=$enable_dlopen_self 15806 15807# Whether dlopen of statically linked programs is supported. 15808dlopen_self_static=$enable_dlopen_self_static 15809 15810# Compiler flag to prevent dynamic linking. 15811link_static_flag=$lt_lt_prog_compiler_static_F77 15812 15813# Compiler flag to turn off builtin functions. 15814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15815 15816# Compiler flag to allow reflexive dlopens. 15817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15818 15819# Compiler flag to generate shared objects directly from archives. 15820whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15821 15822# Compiler flag to generate thread-safe objects. 15823thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15824 15825# Library versioning type. 15826version_type=$version_type 15827 15828# Format of library name prefix. 15829libname_spec=$lt_libname_spec 15830 15831# List of archive names. First name is the real one, the rest are links. 15832# The last name is the one that the linker finds with -lNAME. 15833library_names_spec=$lt_library_names_spec 15834 15835# The coded name of the library, if different from the real name. 15836soname_spec=$lt_soname_spec 15837 15838# Commands used to build and install an old-style archive. 15839RANLIB=$lt_RANLIB 15840old_archive_cmds=$lt_old_archive_cmds_F77 15841old_postinstall_cmds=$lt_old_postinstall_cmds 15842old_postuninstall_cmds=$lt_old_postuninstall_cmds 15843 15844# Create an old-style archive from a shared archive. 15845old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15846 15847# Create a temporary old-style archive to link instead of a shared archive. 15848old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15849 15850# Commands used to build and install a shared archive. 15851archive_cmds=$lt_archive_cmds_F77 15852archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15853postinstall_cmds=$lt_postinstall_cmds 15854postuninstall_cmds=$lt_postuninstall_cmds 15855 15856# Commands used to build a loadable module (assumed same as above if empty) 15857module_cmds=$lt_module_cmds_F77 15858module_expsym_cmds=$lt_module_expsym_cmds_F77 15859 15860# Commands to strip libraries. 15861old_striplib=$lt_old_striplib 15862striplib=$lt_striplib 15863 15864# Dependencies to place before the objects being linked to create a 15865# shared library. 15866predep_objects=$lt_predep_objects_F77 15867 15868# Dependencies to place after the objects being linked to create a 15869# shared library. 15870postdep_objects=$lt_postdep_objects_F77 15871 15872# Dependencies to place before the objects being linked to create a 15873# shared library. 15874predeps=$lt_predeps_F77 15875 15876# Dependencies to place after the objects being linked to create a 15877# shared library. 15878postdeps=$lt_postdeps_F77 15879 15880# The library search path used internally by the compiler when linking 15881# a shared library. 15882compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15883 15884# Method to check whether dependent libraries are shared objects. 15885deplibs_check_method=$lt_deplibs_check_method 15886 15887# Command to use when deplibs_check_method == file_magic. 15888file_magic_cmd=$lt_file_magic_cmd 15889 15890# Flag that allows shared libraries with undefined symbols to be built. 15891allow_undefined_flag=$lt_allow_undefined_flag_F77 15892 15893# Flag that forces no undefined symbols. 15894no_undefined_flag=$lt_no_undefined_flag_F77 15895 15896# Commands used to finish a libtool library installation in a directory. 15897finish_cmds=$lt_finish_cmds 15898 15899# Same as above, but a single script fragment to be evaled but not shown. 15900finish_eval=$lt_finish_eval 15901 15902# Take the output of nm and produce a listing of raw symbols and C names. 15903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15904 15905# Transform the output of nm in a proper C declaration 15906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15907 15908# Transform the output of nm in a C name address pair 15909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15910 15911# This is the shared library runtime path variable. 15912runpath_var=$runpath_var 15913 15914# This is the shared library path variable. 15915shlibpath_var=$shlibpath_var 15916 15917# Is shlibpath searched before the hard-coded library search path? 15918shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15919 15920# How to hardcode a shared library path into an executable. 15921hardcode_action=$hardcode_action_F77 15922 15923# Whether we should hardcode library paths into libraries. 15924hardcode_into_libs=$hardcode_into_libs 15925 15926# Flag to hardcode \$libdir into a binary during linking. 15927# This must work even if \$libdir does not exist. 15928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15929 15930# If ld is used when linking, flag to hardcode \$libdir into 15931# a binary during linking. This must work even if \$libdir does 15932# not exist. 15933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15934 15935# Whether we need a single -rpath flag with a separated argument. 15936hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15937 15938# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15939# resulting binary. 15940hardcode_direct=$hardcode_direct_F77 15941 15942# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15943# resulting binary. 15944hardcode_minus_L=$hardcode_minus_L_F77 15945 15946# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15947# the resulting binary. 15948hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15949 15950# Set to yes if building a shared library automatically hardcodes DIR into the library 15951# and all subsequent libraries and executables linked against it. 15952hardcode_automatic=$hardcode_automatic_F77 15953 15954# Variables whose values should be saved in libtool wrapper scripts and 15955# restored at relink time. 15956variables_saved_for_relink="$variables_saved_for_relink" 15957 15958# Whether libtool must link a program against all its dependency libraries. 15959link_all_deplibs=$link_all_deplibs_F77 15960 15961# Compile-time system search path for libraries 15962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15963 15964# Run-time system search path for libraries 15965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15966 15967# Fix the shell variable \$srcfile for the compiler. 15968fix_srcfile_path="$fix_srcfile_path_F77" 15969 15970# Set to yes if exported symbols are required. 15971always_export_symbols=$always_export_symbols_F77 15972 15973# The commands to list exported symbols. 15974export_symbols_cmds=$lt_export_symbols_cmds_F77 15975 15976# The commands to extract the exported symbol list from a shared archive. 15977extract_expsyms_cmds=$lt_extract_expsyms_cmds 15978 15979# Symbols that should not be listed in the preloaded symbols. 15980exclude_expsyms=$lt_exclude_expsyms_F77 15981 15982# Symbols that must always be exported. 15983include_expsyms=$lt_include_expsyms_F77 15984 15985# ### END LIBTOOL TAG CONFIG: $tagname 15986 15987__EOF__ 15988 15989 15990else 15991 # If there is no Makefile yet, we rely on a make rule to execute 15992 # `config.status --recheck' to rerun these tests and create the 15993 # libtool script then. 15994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15995 if test -f "$ltmain_in"; then 15996 test -f Makefile && make "$ltmain" 15997 fi 15998fi 15999 16000 16001ac_ext=c 16002ac_cpp='$CPP $CPPFLAGS' 16003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16005ac_compiler_gnu=$ac_cv_c_compiler_gnu 16006 16007CC="$lt_save_CC" 16008 16009 else 16010 tagname="" 16011 fi 16012 ;; 16013 16014 GCJ) 16015 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16016 16017 16018# Source file extension for Java test sources. 16019ac_ext=java 16020 16021# Object file extension for compiled Java test sources. 16022objext=o 16023objext_GCJ=$objext 16024 16025# Code to be used in simple compile tests 16026lt_simple_compile_test_code="class foo {}\n" 16027 16028# Code to be used in simple link tests 16029lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16030 16031# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16032 16033# If no C compiler was specified, use CC. 16034LTCC=${LTCC-"$CC"} 16035 16036# If no C compiler flags were specified, use CFLAGS. 16037LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16038 16039# Allow CC to be a program name with arguments. 16040compiler=$CC 16041 16042 16043# save warnings/boilerplate of simple test code 16044ac_outfile=conftest.$ac_objext 16045printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16047_lt_compiler_boilerplate=`cat conftest.err` 16048$rm conftest* 16049 16050ac_outfile=conftest.$ac_objext 16051printf "$lt_simple_link_test_code" >conftest.$ac_ext 16052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16053_lt_linker_boilerplate=`cat conftest.err` 16054$rm conftest* 16055 16056 16057# Allow CC to be a program name with arguments. 16058lt_save_CC="$CC" 16059CC=${GCJ-"gcj"} 16060compiler=$CC 16061compiler_GCJ=$CC 16062for cc_temp in $compiler""; do 16063 case $cc_temp in 16064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16066 \-*) ;; 16067 *) break;; 16068 esac 16069done 16070cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16071 16072 16073# GCJ did not exist at the time GCC didn't implicitly link libc in. 16074archive_cmds_need_lc_GCJ=no 16075 16076old_archive_cmds_GCJ=$old_archive_cmds 16077 16078 16079lt_prog_compiler_no_builtin_flag_GCJ= 16080 16081if test "$GCC" = yes; then 16082 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16083 16084 16085{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16086echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16087if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16088 echo $ECHO_N "(cached) $ECHO_C" >&6 16089else 16090 lt_cv_prog_compiler_rtti_exceptions=no 16091 ac_outfile=conftest.$ac_objext 16092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16093 lt_compiler_flag="-fno-rtti -fno-exceptions" 16094 # Insert the option either (1) after the last *FLAGS variable, or 16095 # (2) before a word containing "conftest.", or (3) at the end. 16096 # Note that $ac_compile itself does not contain backslashes and begins 16097 # with a dollar sign (not a hyphen), so the echo should work correctly. 16098 # The option is referenced via a variable to avoid confusing sed. 16099 lt_compile=`echo "$ac_compile" | $SED \ 16100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16102 -e 's:$: $lt_compiler_flag:'` 16103 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16104 (eval "$lt_compile" 2>conftest.err) 16105 ac_status=$? 16106 cat conftest.err >&5 16107 echo "$as_me:__oline__: \$? = $ac_status" >&5 16108 if (exit $ac_status) && test -s "$ac_outfile"; then 16109 # The compiler can only warn and ignore the option if not recognized 16110 # So say no if there are warnings other than the usual output. 16111 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16114 lt_cv_prog_compiler_rtti_exceptions=yes 16115 fi 16116 fi 16117 $rm conftest* 16118 16119fi 16120{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16121echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16122 16123if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16124 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16125else 16126 : 16127fi 16128 16129fi 16130 16131lt_prog_compiler_wl_GCJ= 16132lt_prog_compiler_pic_GCJ= 16133lt_prog_compiler_static_GCJ= 16134 16135{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16136echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16137 16138 if test "$GCC" = yes; then 16139 lt_prog_compiler_wl_GCJ='-Wl,' 16140 lt_prog_compiler_static_GCJ='-static' 16141 16142 case $host_os in 16143 aix*) 16144 # All AIX code is PIC. 16145 if test "$host_cpu" = ia64; then 16146 # AIX 5 now supports IA64 processor 16147 lt_prog_compiler_static_GCJ='-Bstatic' 16148 fi 16149 ;; 16150 16151 amigaos*) 16152 # FIXME: we need at least 68020 code to build shared libraries, but 16153 # adding the `-m68020' flag to GCC prevents building anything better, 16154 # like `-m68040'. 16155 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16156 ;; 16157 16158 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16159 # PIC is the default for these OSes. 16160 ;; 16161 16162 mingw* | pw32* | os2*) 16163 # This hack is so that the source file can tell whether it is being 16164 # built for inclusion in a dll (and should export symbols for example). 16165 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16166 ;; 16167 16168 darwin* | rhapsody*) 16169 # PIC is the default on this platform 16170 # Common symbols not allowed in MH_DYLIB files 16171 lt_prog_compiler_pic_GCJ='-fno-common' 16172 ;; 16173 16174 interix3*) 16175 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16176 # Instead, we relocate shared libraries at runtime. 16177 ;; 16178 16179 msdosdjgpp*) 16180 # Just because we use GCC doesn't mean we suddenly get shared libraries 16181 # on systems that don't support them. 16182 lt_prog_compiler_can_build_shared_GCJ=no 16183 enable_shared=no 16184 ;; 16185 16186 sysv4*MP*) 16187 if test -d /usr/nec; then 16188 lt_prog_compiler_pic_GCJ=-Kconform_pic 16189 fi 16190 ;; 16191 16192 hpux*) 16193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16194 # not for PA HP-UX. 16195 case $host_cpu in 16196 hppa*64*|ia64*) 16197 # +Z the default 16198 ;; 16199 *) 16200 lt_prog_compiler_pic_GCJ='-fPIC' 16201 ;; 16202 esac 16203 ;; 16204 16205 *) 16206 lt_prog_compiler_pic_GCJ='-fPIC' 16207 ;; 16208 esac 16209 else 16210 # PORTME Check for flag to pass linker flags through the system compiler. 16211 case $host_os in 16212 aix*) 16213 lt_prog_compiler_wl_GCJ='-Wl,' 16214 if test "$host_cpu" = ia64; then 16215 # AIX 5 now supports IA64 processor 16216 lt_prog_compiler_static_GCJ='-Bstatic' 16217 else 16218 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16219 fi 16220 ;; 16221 darwin*) 16222 # PIC is the default on this platform 16223 # Common symbols not allowed in MH_DYLIB files 16224 case $cc_basename in 16225 xlc*) 16226 lt_prog_compiler_pic_GCJ='-qnocommon' 16227 lt_prog_compiler_wl_GCJ='-Wl,' 16228 ;; 16229 esac 16230 ;; 16231 16232 mingw* | pw32* | os2*) 16233 # This hack is so that the source file can tell whether it is being 16234 # built for inclusion in a dll (and should export symbols for example). 16235 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16236 ;; 16237 16238 hpux9* | hpux10* | hpux11*) 16239 lt_prog_compiler_wl_GCJ='-Wl,' 16240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16241 # not for PA HP-UX. 16242 case $host_cpu in 16243 hppa*64*|ia64*) 16244 # +Z the default 16245 ;; 16246 *) 16247 lt_prog_compiler_pic_GCJ='+Z' 16248 ;; 16249 esac 16250 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16251 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16252 ;; 16253 16254 irix5* | irix6* | nonstopux*) 16255 lt_prog_compiler_wl_GCJ='-Wl,' 16256 # PIC (with -KPIC) is the default. 16257 lt_prog_compiler_static_GCJ='-non_shared' 16258 ;; 16259 16260 newsos6) 16261 lt_prog_compiler_pic_GCJ='-KPIC' 16262 lt_prog_compiler_static_GCJ='-Bstatic' 16263 ;; 16264 16265 linux* | k*bsd*-gnu) 16266 case $cc_basename in 16267 icc* | ecc*) 16268 lt_prog_compiler_wl_GCJ='-Wl,' 16269 lt_prog_compiler_pic_GCJ='-KPIC' 16270 lt_prog_compiler_static_GCJ='-static' 16271 ;; 16272 pgcc* | pgf77* | pgf90* | pgf95*) 16273 # Portland Group compilers (*not* the Pentium gcc compiler, 16274 # which looks to be a dead project) 16275 lt_prog_compiler_wl_GCJ='-Wl,' 16276 lt_prog_compiler_pic_GCJ='-fpic' 16277 lt_prog_compiler_static_GCJ='-Bstatic' 16278 ;; 16279 ccc*) 16280 lt_prog_compiler_wl_GCJ='-Wl,' 16281 # All Alpha code is PIC. 16282 lt_prog_compiler_static_GCJ='-non_shared' 16283 ;; 16284 esac 16285 ;; 16286 16287 osf3* | osf4* | osf5*) 16288 lt_prog_compiler_wl_GCJ='-Wl,' 16289 # All OSF/1 code is PIC. 16290 lt_prog_compiler_static_GCJ='-non_shared' 16291 ;; 16292 16293 solaris*) 16294 lt_prog_compiler_pic_GCJ='-KPIC' 16295 lt_prog_compiler_static_GCJ='-Bstatic' 16296 case $cc_basename in 16297 f77* | f90* | f95*) 16298 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16299 *) 16300 lt_prog_compiler_wl_GCJ='-Wl,';; 16301 esac 16302 ;; 16303 16304 sunos4*) 16305 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16306 lt_prog_compiler_pic_GCJ='-PIC' 16307 lt_prog_compiler_static_GCJ='-Bstatic' 16308 ;; 16309 16310 sysv4 | sysv4.2uw2* | sysv4.3*) 16311 lt_prog_compiler_wl_GCJ='-Wl,' 16312 lt_prog_compiler_pic_GCJ='-KPIC' 16313 lt_prog_compiler_static_GCJ='-Bstatic' 16314 ;; 16315 16316 sysv4*MP*) 16317 if test -d /usr/nec ;then 16318 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16319 lt_prog_compiler_static_GCJ='-Bstatic' 16320 fi 16321 ;; 16322 16323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16324 lt_prog_compiler_wl_GCJ='-Wl,' 16325 lt_prog_compiler_pic_GCJ='-KPIC' 16326 lt_prog_compiler_static_GCJ='-Bstatic' 16327 ;; 16328 16329 unicos*) 16330 lt_prog_compiler_wl_GCJ='-Wl,' 16331 lt_prog_compiler_can_build_shared_GCJ=no 16332 ;; 16333 16334 uts4*) 16335 lt_prog_compiler_pic_GCJ='-pic' 16336 lt_prog_compiler_static_GCJ='-Bstatic' 16337 ;; 16338 16339 *) 16340 lt_prog_compiler_can_build_shared_GCJ=no 16341 ;; 16342 esac 16343 fi 16344 16345{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16346echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16347 16348# 16349# Check to make sure the PIC flag actually works. 16350# 16351if test -n "$lt_prog_compiler_pic_GCJ"; then 16352 16353{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16354echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16355if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16356 echo $ECHO_N "(cached) $ECHO_C" >&6 16357else 16358 lt_prog_compiler_pic_works_GCJ=no 16359 ac_outfile=conftest.$ac_objext 16360 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16361 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16362 # Insert the option either (1) after the last *FLAGS variable, or 16363 # (2) before a word containing "conftest.", or (3) at the end. 16364 # Note that $ac_compile itself does not contain backslashes and begins 16365 # with a dollar sign (not a hyphen), so the echo should work correctly. 16366 # The option is referenced via a variable to avoid confusing sed. 16367 lt_compile=`echo "$ac_compile" | $SED \ 16368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16370 -e 's:$: $lt_compiler_flag:'` 16371 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16372 (eval "$lt_compile" 2>conftest.err) 16373 ac_status=$? 16374 cat conftest.err >&5 16375 echo "$as_me:__oline__: \$? = $ac_status" >&5 16376 if (exit $ac_status) && test -s "$ac_outfile"; then 16377 # The compiler can only warn and ignore the option if not recognized 16378 # So say no if there are warnings other than the usual output. 16379 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16382 lt_prog_compiler_pic_works_GCJ=yes 16383 fi 16384 fi 16385 $rm conftest* 16386 16387fi 16388{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16389echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16390 16391if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16392 case $lt_prog_compiler_pic_GCJ in 16393 "" | " "*) ;; 16394 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16395 esac 16396else 16397 lt_prog_compiler_pic_GCJ= 16398 lt_prog_compiler_can_build_shared_GCJ=no 16399fi 16400 16401fi 16402case $host_os in 16403 # For platforms which do not support PIC, -DPIC is meaningless: 16404 *djgpp*) 16405 lt_prog_compiler_pic_GCJ= 16406 ;; 16407 *) 16408 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16409 ;; 16410esac 16411 16412# 16413# Check to make sure the static flag actually works. 16414# 16415wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16416{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16417echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16418if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16419 echo $ECHO_N "(cached) $ECHO_C" >&6 16420else 16421 lt_prog_compiler_static_works_GCJ=no 16422 save_LDFLAGS="$LDFLAGS" 16423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16424 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16426 # The linker can only warn and ignore the option if not recognized 16427 # So say no if there are warnings 16428 if test -s conftest.err; then 16429 # Append any errors to the config.log. 16430 cat conftest.err 1>&5 16431 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16433 if diff conftest.exp conftest.er2 >/dev/null; then 16434 lt_prog_compiler_static_works_GCJ=yes 16435 fi 16436 else 16437 lt_prog_compiler_static_works_GCJ=yes 16438 fi 16439 fi 16440 $rm conftest* 16441 LDFLAGS="$save_LDFLAGS" 16442 16443fi 16444{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16445echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16446 16447if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16448 : 16449else 16450 lt_prog_compiler_static_GCJ= 16451fi 16452 16453 16454{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16455echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16456if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16457 echo $ECHO_N "(cached) $ECHO_C" >&6 16458else 16459 lt_cv_prog_compiler_c_o_GCJ=no 16460 $rm -r conftest 2>/dev/null 16461 mkdir conftest 16462 cd conftest 16463 mkdir out 16464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16465 16466 lt_compiler_flag="-o out/conftest2.$ac_objext" 16467 # Insert the option either (1) after the last *FLAGS variable, or 16468 # (2) before a word containing "conftest.", or (3) at the end. 16469 # Note that $ac_compile itself does not contain backslashes and begins 16470 # with a dollar sign (not a hyphen), so the echo should work correctly. 16471 lt_compile=`echo "$ac_compile" | $SED \ 16472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16474 -e 's:$: $lt_compiler_flag:'` 16475 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16476 (eval "$lt_compile" 2>out/conftest.err) 16477 ac_status=$? 16478 cat out/conftest.err >&5 16479 echo "$as_me:__oline__: \$? = $ac_status" >&5 16480 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16481 then 16482 # The compiler can only warn and ignore the option if not recognized 16483 # So say no if there are warnings 16484 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16487 lt_cv_prog_compiler_c_o_GCJ=yes 16488 fi 16489 fi 16490 chmod u+w . 2>&5 16491 $rm conftest* 16492 # SGI C++ compiler will create directory out/ii_files/ for 16493 # template instantiation 16494 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16495 $rm out/* && rmdir out 16496 cd .. 16497 rmdir conftest 16498 $rm conftest* 16499 16500fi 16501{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16502echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16503 16504 16505hard_links="nottested" 16506if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16507 # do not overwrite the value of need_locks provided by the user 16508 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16509echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16510 hard_links=yes 16511 $rm conftest* 16512 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16513 touch conftest.a 16514 ln conftest.a conftest.b 2>&5 || hard_links=no 16515 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16516 { echo "$as_me:$LINENO: result: $hard_links" >&5 16517echo "${ECHO_T}$hard_links" >&6; } 16518 if test "$hard_links" = no; then 16519 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16520echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16521 need_locks=warn 16522 fi 16523else 16524 need_locks=no 16525fi 16526 16527{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16528echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16529 16530 runpath_var= 16531 allow_undefined_flag_GCJ= 16532 enable_shared_with_static_runtimes_GCJ=no 16533 archive_cmds_GCJ= 16534 archive_expsym_cmds_GCJ= 16535 old_archive_From_new_cmds_GCJ= 16536 old_archive_from_expsyms_cmds_GCJ= 16537 export_dynamic_flag_spec_GCJ= 16538 whole_archive_flag_spec_GCJ= 16539 thread_safe_flag_spec_GCJ= 16540 hardcode_libdir_flag_spec_GCJ= 16541 hardcode_libdir_flag_spec_ld_GCJ= 16542 hardcode_libdir_separator_GCJ= 16543 hardcode_direct_GCJ=no 16544 hardcode_minus_L_GCJ=no 16545 hardcode_shlibpath_var_GCJ=unsupported 16546 link_all_deplibs_GCJ=unknown 16547 hardcode_automatic_GCJ=no 16548 module_cmds_GCJ= 16549 module_expsym_cmds_GCJ= 16550 always_export_symbols_GCJ=no 16551 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16552 # include_expsyms should be a list of space-separated symbols to be *always* 16553 # included in the symbol list 16554 include_expsyms_GCJ= 16555 # exclude_expsyms can be an extended regexp of symbols to exclude 16556 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16557 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16558 # as well as any symbol that contains `d'. 16559 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16560 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16561 # platforms (ab)use it in PIC code, but their linkers get confused if 16562 # the symbol is explicitly referenced. Since portable code cannot 16563 # rely on this symbol name, it's probably fine to never include it in 16564 # preloaded symbol tables. 16565 extract_expsyms_cmds= 16566 # Just being paranoid about ensuring that cc_basename is set. 16567 for cc_temp in $compiler""; do 16568 case $cc_temp in 16569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16571 \-*) ;; 16572 *) break;; 16573 esac 16574done 16575cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16576 16577 case $host_os in 16578 cygwin* | mingw* | pw32*) 16579 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16580 # When not using gcc, we currently assume that we are using 16581 # Microsoft Visual C++. 16582 if test "$GCC" != yes; then 16583 with_gnu_ld=no 16584 fi 16585 ;; 16586 interix*) 16587 # we just hope/assume this is gcc and not c89 (= MSVC++) 16588 with_gnu_ld=yes 16589 ;; 16590 openbsd*) 16591 with_gnu_ld=no 16592 ;; 16593 esac 16594 16595 ld_shlibs_GCJ=yes 16596 if test "$with_gnu_ld" = yes; then 16597 # If archive_cmds runs LD, not CC, wlarc should be empty 16598 wlarc='${wl}' 16599 16600 # Set some defaults for GNU ld with shared library support. These 16601 # are reset later if shared libraries are not supported. Putting them 16602 # here allows them to be overridden if necessary. 16603 runpath_var=LD_RUN_PATH 16604 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16605 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16606 # ancient GNU ld didn't support --whole-archive et. al. 16607 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16608 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16609 else 16610 whole_archive_flag_spec_GCJ= 16611 fi 16612 supports_anon_versioning=no 16613 case `$LD -v 2>/dev/null` in 16614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16617 *\ 2.11.*) ;; # other 2.11 versions 16618 *) supports_anon_versioning=yes ;; 16619 esac 16620 16621 # See if GNU ld supports shared libraries. 16622 case $host_os in 16623 aix3* | aix4* | aix5*) 16624 # On AIX/PPC, the GNU linker is very broken 16625 if test "$host_cpu" != ia64; then 16626 ld_shlibs_GCJ=no 16627 cat <<EOF 1>&2 16628 16629*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16630*** to be unable to reliably create shared libraries on AIX. 16631*** Therefore, libtool is disabling shared libraries support. If you 16632*** really care for shared libraries, you may want to modify your PATH 16633*** so that a non-GNU linker is found, and then restart. 16634 16635EOF 16636 fi 16637 ;; 16638 16639 amigaos*) 16640 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)' 16641 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16642 hardcode_minus_L_GCJ=yes 16643 16644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16645 # that the semantics of dynamic libraries on AmigaOS, at least up 16646 # to version 4, is to share data among multiple programs linked 16647 # with the same dynamic library. Since this doesn't match the 16648 # behavior of shared libraries on other platforms, we can't use 16649 # them. 16650 ld_shlibs_GCJ=no 16651 ;; 16652 16653 beos*) 16654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16655 allow_undefined_flag_GCJ=unsupported 16656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16657 # support --undefined. This deserves some investigation. FIXME 16658 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16659 else 16660 ld_shlibs_GCJ=no 16661 fi 16662 ;; 16663 16664 cygwin* | mingw* | pw32*) 16665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16666 # as there is no search path for DLLs. 16667 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16668 allow_undefined_flag_GCJ=unsupported 16669 always_export_symbols_GCJ=no 16670 enable_shared_with_static_runtimes_GCJ=yes 16671 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16672 16673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16675 # If the export-symbols file already is a .def file (1st line 16676 # is EXPORTS), use it as is; otherwise, prepend... 16677 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16678 cp $export_symbols $output_objdir/$soname.def; 16679 else 16680 echo EXPORTS > $output_objdir/$soname.def; 16681 cat $export_symbols >> $output_objdir/$soname.def; 16682 fi~ 16683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16684 else 16685 ld_shlibs_GCJ=no 16686 fi 16687 ;; 16688 16689 interix3*) 16690 hardcode_direct_GCJ=no 16691 hardcode_shlibpath_var_GCJ=no 16692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16693 export_dynamic_flag_spec_GCJ='${wl}-E' 16694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16695 # Instead, shared libraries are loaded at an image base (0x10000000 by 16696 # default) and relocated if they conflict, which is a slow very memory 16697 # consuming and fragmenting process. To avoid this, we pick a random, 16698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16699 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16700 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' 16701 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' 16702 ;; 16703 16704 linux* | k*bsd*-gnu) 16705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16706 tmp_addflag= 16707 case $cc_basename,$host_cpu in 16708 pgcc*) # Portland Group C compiler 16709 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' 16710 tmp_addflag=' $pic_flag' 16711 ;; 16712 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16713 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' 16714 tmp_addflag=' $pic_flag -Mnomain' ;; 16715 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16716 tmp_addflag=' -i_dynamic' ;; 16717 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16718 tmp_addflag=' -i_dynamic -nofor_main' ;; 16719 ifc* | ifort*) # Intel Fortran compiler 16720 tmp_addflag=' -nofor_main' ;; 16721 esac 16722 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16723 16724 if test $supports_anon_versioning = yes; then 16725 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16727 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16728 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16729 fi 16730 link_all_deplibs_GCJ=no 16731 else 16732 ld_shlibs_GCJ=no 16733 fi 16734 ;; 16735 16736 netbsd* | netbsdelf*-gnu) 16737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16738 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16739 wlarc= 16740 else 16741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16742 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16743 fi 16744 ;; 16745 16746 solaris*) 16747 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16748 ld_shlibs_GCJ=no 16749 cat <<EOF 1>&2 16750 16751*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16752*** create shared libraries on Solaris systems. Therefore, libtool 16753*** is disabling shared libraries support. We urge you to upgrade GNU 16754*** binutils to release 2.9.1 or newer. Another option is to modify 16755*** your PATH or compiler configuration so that the native linker is 16756*** used, and then restart. 16757 16758EOF 16759 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16760 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16761 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16762 else 16763 ld_shlibs_GCJ=no 16764 fi 16765 ;; 16766 16767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16768 case `$LD -v 2>&1` in 16769 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16770 ld_shlibs_GCJ=no 16771 cat <<_LT_EOF 1>&2 16772 16773*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16774*** reliably create shared libraries on SCO systems. Therefore, libtool 16775*** is disabling shared libraries support. We urge you to upgrade GNU 16776*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16777*** your PATH or compiler configuration so that the native linker is 16778*** used, and then restart. 16779 16780_LT_EOF 16781 ;; 16782 *) 16783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16784 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16786 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16787 else 16788 ld_shlibs_GCJ=no 16789 fi 16790 ;; 16791 esac 16792 ;; 16793 16794 sunos4*) 16795 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16796 wlarc= 16797 hardcode_direct_GCJ=yes 16798 hardcode_shlibpath_var_GCJ=no 16799 ;; 16800 16801 *) 16802 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16803 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16804 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16805 else 16806 ld_shlibs_GCJ=no 16807 fi 16808 ;; 16809 esac 16810 16811 if test "$ld_shlibs_GCJ" = no; then 16812 runpath_var= 16813 hardcode_libdir_flag_spec_GCJ= 16814 export_dynamic_flag_spec_GCJ= 16815 whole_archive_flag_spec_GCJ= 16816 fi 16817 else 16818 # PORTME fill in a description of your system's linker (not GNU ld) 16819 case $host_os in 16820 aix3*) 16821 allow_undefined_flag_GCJ=unsupported 16822 always_export_symbols_GCJ=yes 16823 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' 16824 # Note: this linker hardcodes the directories in LIBPATH if there 16825 # are no directories specified by -L. 16826 hardcode_minus_L_GCJ=yes 16827 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16828 # Neither direct hardcoding nor static linking is supported with a 16829 # broken collect2. 16830 hardcode_direct_GCJ=unsupported 16831 fi 16832 ;; 16833 16834 aix4* | aix5*) 16835 if test "$host_cpu" = ia64; then 16836 # On IA64, the linker does run time linking by default, so we don't 16837 # have to do anything special. 16838 aix_use_runtimelinking=no 16839 exp_sym_flag='-Bexport' 16840 no_entry_flag="" 16841 else 16842 # If we're using GNU nm, then we don't want the "-C" option. 16843 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16844 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16845 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' 16846 else 16847 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' 16848 fi 16849 aix_use_runtimelinking=no 16850 16851 # Test if we are trying to use run time linking or normal 16852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16853 # need to do runtime linking. 16854 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16855 for ld_flag in $LDFLAGS; do 16856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16857 aix_use_runtimelinking=yes 16858 break 16859 fi 16860 done 16861 ;; 16862 esac 16863 16864 exp_sym_flag='-bexport' 16865 no_entry_flag='-bnoentry' 16866 fi 16867 16868 # When large executables or shared objects are built, AIX ld can 16869 # have problems creating the table of contents. If linking a library 16870 # or program results in "error TOC overflow" add -mminimal-toc to 16871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16873 16874 archive_cmds_GCJ='' 16875 hardcode_direct_GCJ=yes 16876 hardcode_libdir_separator_GCJ=':' 16877 link_all_deplibs_GCJ=yes 16878 16879 if test "$GCC" = yes; then 16880 case $host_os in aix4.[012]|aix4.[012].*) 16881 # We only want to do this on AIX 4.2 and lower, the check 16882 # below for broken collect2 doesn't work under 4.3+ 16883 collect2name=`${CC} -print-prog-name=collect2` 16884 if test -f "$collect2name" && \ 16885 strings "$collect2name" | grep resolve_lib_name >/dev/null 16886 then 16887 # We have reworked collect2 16888 hardcode_direct_GCJ=yes 16889 else 16890 # We have old collect2 16891 hardcode_direct_GCJ=unsupported 16892 # It fails to find uninstalled libraries when the uninstalled 16893 # path is not listed in the libpath. Setting hardcode_minus_L 16894 # to unsupported forces relinking 16895 hardcode_minus_L_GCJ=yes 16896 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16897 hardcode_libdir_separator_GCJ= 16898 fi 16899 ;; 16900 esac 16901 shared_flag='-shared' 16902 if test "$aix_use_runtimelinking" = yes; then 16903 shared_flag="$shared_flag "'${wl}-G' 16904 fi 16905 else 16906 # not using gcc 16907 if test "$host_cpu" = ia64; then 16908 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16909 # chokes on -Wl,-G. The following line is correct: 16910 shared_flag='-G' 16911 else 16912 if test "$aix_use_runtimelinking" = yes; then 16913 shared_flag='${wl}-G' 16914 else 16915 shared_flag='${wl}-bM:SRE' 16916 fi 16917 fi 16918 fi 16919 16920 # It seems that -bexpall does not export symbols beginning with 16921 # underscore (_), so it is better to generate a list of symbols to export. 16922 always_export_symbols_GCJ=yes 16923 if test "$aix_use_runtimelinking" = yes; then 16924 # Warning - without using the other runtime loading flags (-brtl), 16925 # -berok will link without error, but may produce a broken library. 16926 allow_undefined_flag_GCJ='-berok' 16927 # Determine the default libpath from the value encoded in an empty executable. 16928 cat >conftest.$ac_ext <<_ACEOF 16929/* confdefs.h. */ 16930_ACEOF 16931cat confdefs.h >>conftest.$ac_ext 16932cat >>conftest.$ac_ext <<_ACEOF 16933/* end confdefs.h. */ 16934 16935int 16936main () 16937{ 16938 16939 ; 16940 return 0; 16941} 16942_ACEOF 16943rm -f conftest.$ac_objext conftest$ac_exeext 16944if { (ac_try="$ac_link" 16945case "(($ac_try" in 16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16947 *) ac_try_echo=$ac_try;; 16948esac 16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16950 (eval "$ac_link") 2>conftest.er1 16951 ac_status=$? 16952 grep -v '^ *+' conftest.er1 >conftest.err 16953 rm -f conftest.er1 16954 cat conftest.err >&5 16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16956 (exit $ac_status); } && { 16957 test -z "$ac_c_werror_flag" || 16958 test ! -s conftest.err 16959 } && test -s conftest$ac_exeext && 16960 $as_test_x conftest$ac_exeext; then 16961 16962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16963}'` 16964# Check for a 64-bit object if we didn't find anything. 16965if 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; } 16966}'`; fi 16967else 16968 echo "$as_me: failed program was:" >&5 16969sed 's/^/| /' conftest.$ac_ext >&5 16970 16971 16972fi 16973 16974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16975 conftest$ac_exeext conftest.$ac_ext 16976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16977 16978 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16979 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" 16980 else 16981 if test "$host_cpu" = ia64; then 16982 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16983 allow_undefined_flag_GCJ="-z nodefs" 16984 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" 16985 else 16986 # Determine the default libpath from the value encoded in an empty executable. 16987 cat >conftest.$ac_ext <<_ACEOF 16988/* confdefs.h. */ 16989_ACEOF 16990cat confdefs.h >>conftest.$ac_ext 16991cat >>conftest.$ac_ext <<_ACEOF 16992/* end confdefs.h. */ 16993 16994int 16995main () 16996{ 16997 16998 ; 16999 return 0; 17000} 17001_ACEOF 17002rm -f conftest.$ac_objext conftest$ac_exeext 17003if { (ac_try="$ac_link" 17004case "(($ac_try" in 17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17006 *) ac_try_echo=$ac_try;; 17007esac 17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17009 (eval "$ac_link") 2>conftest.er1 17010 ac_status=$? 17011 grep -v '^ *+' conftest.er1 >conftest.err 17012 rm -f conftest.er1 17013 cat conftest.err >&5 17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17015 (exit $ac_status); } && { 17016 test -z "$ac_c_werror_flag" || 17017 test ! -s conftest.err 17018 } && test -s conftest$ac_exeext && 17019 $as_test_x conftest$ac_exeext; then 17020 17021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17022}'` 17023# Check for a 64-bit object if we didn't find anything. 17024if 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; } 17025}'`; fi 17026else 17027 echo "$as_me: failed program was:" >&5 17028sed 's/^/| /' conftest.$ac_ext >&5 17029 17030 17031fi 17032 17033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17034 conftest$ac_exeext conftest.$ac_ext 17035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17036 17037 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17038 # Warning - without using the other run time loading flags, 17039 # -berok will link without error, but may produce a broken library. 17040 no_undefined_flag_GCJ=' ${wl}-bernotok' 17041 allow_undefined_flag_GCJ=' ${wl}-berok' 17042 # Exported symbols can be pulled into shared objects from archives 17043 whole_archive_flag_spec_GCJ='$convenience' 17044 archive_cmds_need_lc_GCJ=yes 17045 # This is similar to how AIX traditionally builds its shared libraries. 17046 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' 17047 fi 17048 fi 17049 ;; 17050 17051 amigaos*) 17052 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)' 17053 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17054 hardcode_minus_L_GCJ=yes 17055 # see comment about different semantics on the GNU ld section 17056 ld_shlibs_GCJ=no 17057 ;; 17058 17059 bsdi[45]*) 17060 export_dynamic_flag_spec_GCJ=-rdynamic 17061 ;; 17062 17063 cygwin* | mingw* | pw32*) 17064 # When not using gcc, we currently assume that we are using 17065 # Microsoft Visual C++. 17066 # hardcode_libdir_flag_spec is actually meaningless, as there is 17067 # no search path for DLLs. 17068 hardcode_libdir_flag_spec_GCJ=' ' 17069 allow_undefined_flag_GCJ=unsupported 17070 # Tell ltmain to make .lib files, not .a files. 17071 libext=lib 17072 # Tell ltmain to make .dll files, not .so files. 17073 shrext_cmds=".dll" 17074 # FIXME: Setting linknames here is a bad hack. 17075 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17076 # The linker will automatically build a .lib file if we build a DLL. 17077 old_archive_From_new_cmds_GCJ='true' 17078 # FIXME: Should let the user specify the lib program. 17079 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17080 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17081 enable_shared_with_static_runtimes_GCJ=yes 17082 ;; 17083 17084 darwin* | rhapsody*) 17085 case $host_os in 17086 rhapsody* | darwin1.[012]) 17087 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17088 ;; 17089 *) # Darwin 1.3 on 17090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17091 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17092 else 17093 case ${MACOSX_DEPLOYMENT_TARGET} in 17094 10.[012]) 17095 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17096 ;; 17097 10.*) 17098 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17099 ;; 17100 esac 17101 fi 17102 ;; 17103 esac 17104 archive_cmds_need_lc_GCJ=no 17105 hardcode_direct_GCJ=no 17106 hardcode_automatic_GCJ=yes 17107 hardcode_shlibpath_var_GCJ=unsupported 17108 whole_archive_flag_spec_GCJ='' 17109 link_all_deplibs_GCJ=yes 17110 if test "$GCC" = yes ; then 17111 output_verbose_link_cmd='echo' 17112 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17113 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17115 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}' 17116 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}' 17117 else 17118 case $cc_basename in 17119 xlc*) 17120 output_verbose_link_cmd='echo' 17121 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17122 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17124 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}' 17125 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}' 17126 ;; 17127 *) 17128 ld_shlibs_GCJ=no 17129 ;; 17130 esac 17131 fi 17132 ;; 17133 17134 dgux*) 17135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17136 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17137 hardcode_shlibpath_var_GCJ=no 17138 ;; 17139 17140 freebsd1*) 17141 ld_shlibs_GCJ=no 17142 ;; 17143 17144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17145 # support. Future versions do this automatically, but an explicit c++rt0.o 17146 # does not break anything, and helps significantly (at the cost of a little 17147 # extra space). 17148 freebsd2.2*) 17149 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17150 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17151 hardcode_direct_GCJ=yes 17152 hardcode_shlibpath_var_GCJ=no 17153 ;; 17154 17155 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17156 freebsd2*) 17157 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17158 hardcode_direct_GCJ=yes 17159 hardcode_minus_L_GCJ=yes 17160 hardcode_shlibpath_var_GCJ=no 17161 ;; 17162 17163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17164 freebsd* | dragonfly*) 17165 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17166 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17167 hardcode_direct_GCJ=yes 17168 hardcode_shlibpath_var_GCJ=no 17169 ;; 17170 17171 hpux9*) 17172 if test "$GCC" = yes; then 17173 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' 17174 else 17175 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' 17176 fi 17177 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17178 hardcode_libdir_separator_GCJ=: 17179 hardcode_direct_GCJ=yes 17180 17181 # hardcode_minus_L: Not really in the search PATH, 17182 # but as the default location of the library. 17183 hardcode_minus_L_GCJ=yes 17184 export_dynamic_flag_spec_GCJ='${wl}-E' 17185 ;; 17186 17187 hpux10*) 17188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17189 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17190 else 17191 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17192 fi 17193 if test "$with_gnu_ld" = no; then 17194 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17195 hardcode_libdir_separator_GCJ=: 17196 17197 hardcode_direct_GCJ=yes 17198 export_dynamic_flag_spec_GCJ='${wl}-E' 17199 17200 # hardcode_minus_L: Not really in the search PATH, 17201 # but as the default location of the library. 17202 hardcode_minus_L_GCJ=yes 17203 fi 17204 ;; 17205 17206 hpux11*) 17207 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17208 case $host_cpu in 17209 hppa*64*) 17210 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17211 ;; 17212 ia64*) 17213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17214 ;; 17215 *) 17216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17217 ;; 17218 esac 17219 else 17220 case $host_cpu in 17221 hppa*64*) 17222 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17223 ;; 17224 ia64*) 17225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17226 ;; 17227 *) 17228 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17229 ;; 17230 esac 17231 fi 17232 if test "$with_gnu_ld" = no; then 17233 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17234 hardcode_libdir_separator_GCJ=: 17235 17236 case $host_cpu in 17237 hppa*64*|ia64*) 17238 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17239 hardcode_direct_GCJ=no 17240 hardcode_shlibpath_var_GCJ=no 17241 ;; 17242 *) 17243 hardcode_direct_GCJ=yes 17244 export_dynamic_flag_spec_GCJ='${wl}-E' 17245 17246 # hardcode_minus_L: Not really in the search PATH, 17247 # but as the default location of the library. 17248 hardcode_minus_L_GCJ=yes 17249 ;; 17250 esac 17251 fi 17252 ;; 17253 17254 irix5* | irix6* | nonstopux*) 17255 if test "$GCC" = yes; then 17256 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' 17257 else 17258 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' 17259 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17260 fi 17261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17262 hardcode_libdir_separator_GCJ=: 17263 link_all_deplibs_GCJ=yes 17264 ;; 17265 17266 netbsd* | netbsdelf*-gnu) 17267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17268 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17269 else 17270 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17271 fi 17272 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17273 hardcode_direct_GCJ=yes 17274 hardcode_shlibpath_var_GCJ=no 17275 ;; 17276 17277 newsos6) 17278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17279 hardcode_direct_GCJ=yes 17280 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17281 hardcode_libdir_separator_GCJ=: 17282 hardcode_shlibpath_var_GCJ=no 17283 ;; 17284 17285 openbsd*) 17286 hardcode_direct_GCJ=yes 17287 hardcode_shlibpath_var_GCJ=no 17288 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17289 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17290 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17292 export_dynamic_flag_spec_GCJ='${wl}-E' 17293 else 17294 case $host_os in 17295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17296 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17297 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17298 ;; 17299 *) 17300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17302 ;; 17303 esac 17304 fi 17305 ;; 17306 17307 os2*) 17308 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17309 hardcode_minus_L_GCJ=yes 17310 allow_undefined_flag_GCJ=unsupported 17311 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' 17312 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17313 ;; 17314 17315 osf3*) 17316 if test "$GCC" = yes; then 17317 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17318 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' 17319 else 17320 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17321 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' 17322 fi 17323 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17324 hardcode_libdir_separator_GCJ=: 17325 ;; 17326 17327 osf4* | osf5*) # as osf3* with the addition of -msym flag 17328 if test "$GCC" = yes; then 17329 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17330 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' 17331 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17332 else 17333 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17334 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' 17335 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~ 17336 $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' 17337 17338 # Both c and cxx compiler support -rpath directly 17339 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17340 fi 17341 hardcode_libdir_separator_GCJ=: 17342 ;; 17343 17344 solaris*) 17345 no_undefined_flag_GCJ=' -z text' 17346 if test "$GCC" = yes; then 17347 wlarc='${wl}' 17348 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17349 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17350 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17351 else 17352 wlarc='' 17353 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17354 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17355 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17356 fi 17357 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17358 hardcode_shlibpath_var_GCJ=no 17359 case $host_os in 17360 solaris2.[0-5] | solaris2.[0-5].*) ;; 17361 *) 17362 # The compiler driver will combine linker options so we 17363 # cannot just pass the convience library names through 17364 # without $wl, iff we do not link with $LD. 17365 # Luckily, gcc supports the same syntax we need for Sun Studio. 17366 # Supported since Solaris 2.6 (maybe 2.5.1?) 17367 case $wlarc in 17368 '') 17369 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17370 *) 17371 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' ;; 17372 esac ;; 17373 esac 17374 link_all_deplibs_GCJ=yes 17375 ;; 17376 17377 sunos4*) 17378 if test "x$host_vendor" = xsequent; then 17379 # Use $CC to link under sequent, because it throws in some extra .o 17380 # files that make .init and .fini sections work. 17381 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17382 else 17383 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17384 fi 17385 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17386 hardcode_direct_GCJ=yes 17387 hardcode_minus_L_GCJ=yes 17388 hardcode_shlibpath_var_GCJ=no 17389 ;; 17390 17391 sysv4) 17392 case $host_vendor in 17393 sni) 17394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17395 hardcode_direct_GCJ=yes # is this really true??? 17396 ;; 17397 siemens) 17398 ## LD is ld it makes a PLAMLIB 17399 ## CC just makes a GrossModule. 17400 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17401 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17402 hardcode_direct_GCJ=no 17403 ;; 17404 motorola) 17405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17406 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17407 ;; 17408 esac 17409 runpath_var='LD_RUN_PATH' 17410 hardcode_shlibpath_var_GCJ=no 17411 ;; 17412 17413 sysv4.3*) 17414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17415 hardcode_shlibpath_var_GCJ=no 17416 export_dynamic_flag_spec_GCJ='-Bexport' 17417 ;; 17418 17419 sysv4*MP*) 17420 if test -d /usr/nec; then 17421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17422 hardcode_shlibpath_var_GCJ=no 17423 runpath_var=LD_RUN_PATH 17424 hardcode_runpath_var=yes 17425 ld_shlibs_GCJ=yes 17426 fi 17427 ;; 17428 17429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17430 no_undefined_flag_GCJ='${wl}-z,text' 17431 archive_cmds_need_lc_GCJ=no 17432 hardcode_shlibpath_var_GCJ=no 17433 runpath_var='LD_RUN_PATH' 17434 17435 if test "$GCC" = yes; then 17436 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17437 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17438 else 17439 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17440 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17441 fi 17442 ;; 17443 17444 sysv5* | sco3.2v5* | sco5v6*) 17445 # Note: We can NOT use -z defs as we might desire, because we do not 17446 # link with -lc, and that would cause any symbols used from libc to 17447 # always be unresolved, which means just about no library would 17448 # ever link correctly. If we're not using GNU ld we use -z text 17449 # though, which does catch some bad symbols but isn't as heavy-handed 17450 # as -z defs. 17451 no_undefined_flag_GCJ='${wl}-z,text' 17452 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17453 archive_cmds_need_lc_GCJ=no 17454 hardcode_shlibpath_var_GCJ=no 17455 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17456 hardcode_libdir_separator_GCJ=':' 17457 link_all_deplibs_GCJ=yes 17458 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17459 runpath_var='LD_RUN_PATH' 17460 17461 if test "$GCC" = yes; then 17462 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17463 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17464 else 17465 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17466 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17467 fi 17468 ;; 17469 17470 uts4*) 17471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17472 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17473 hardcode_shlibpath_var_GCJ=no 17474 ;; 17475 17476 *) 17477 ld_shlibs_GCJ=no 17478 ;; 17479 esac 17480 fi 17481 17482{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17483echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17484test "$ld_shlibs_GCJ" = no && can_build_shared=no 17485 17486# 17487# Do we need to explicitly link libc? 17488# 17489case "x$archive_cmds_need_lc_GCJ" in 17490x|xyes) 17491 # Assume -lc should be added 17492 archive_cmds_need_lc_GCJ=yes 17493 17494 if test "$enable_shared" = yes && test "$GCC" = yes; then 17495 case $archive_cmds_GCJ in 17496 *'~'*) 17497 # FIXME: we may have to deal with multi-command sequences. 17498 ;; 17499 '$CC '*) 17500 # Test whether the compiler implicitly links with -lc since on some 17501 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17502 # to ld, don't add -lc before -lgcc. 17503 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17504echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17505 $rm conftest* 17506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17507 17508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17509 (eval $ac_compile) 2>&5 17510 ac_status=$? 17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17512 (exit $ac_status); } 2>conftest.err; then 17513 soname=conftest 17514 lib=conftest 17515 libobjs=conftest.$ac_objext 17516 deplibs= 17517 wl=$lt_prog_compiler_wl_GCJ 17518 pic_flag=$lt_prog_compiler_pic_GCJ 17519 compiler_flags=-v 17520 linker_flags=-v 17521 verstring= 17522 output_objdir=. 17523 libname=conftest 17524 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17525 allow_undefined_flag_GCJ= 17526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17527 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17528 ac_status=$? 17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17530 (exit $ac_status); } 17531 then 17532 archive_cmds_need_lc_GCJ=no 17533 else 17534 archive_cmds_need_lc_GCJ=yes 17535 fi 17536 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17537 else 17538 cat conftest.err 1>&5 17539 fi 17540 $rm conftest* 17541 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17542echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17543 ;; 17544 esac 17545 fi 17546 ;; 17547esac 17548 17549{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17550echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17551library_names_spec= 17552libname_spec='lib$name' 17553soname_spec= 17554shrext_cmds=".so" 17555postinstall_cmds= 17556postuninstall_cmds= 17557finish_cmds= 17558finish_eval= 17559shlibpath_var= 17560shlibpath_overrides_runpath=unknown 17561version_type=none 17562dynamic_linker="$host_os ld.so" 17563sys_lib_dlsearch_path_spec="/lib /usr/lib" 17564if test "$GCC" = yes; then 17565 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17566 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17567 # if the path contains ";" then we assume it to be the separator 17568 # otherwise default to the standard path separator (i.e. ":") - it is 17569 # assumed that no part of a normal pathname contains ";" but that should 17570 # okay in the real world where ";" in dirpaths is itself problematic. 17571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17572 else 17573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17574 fi 17575else 17576 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17577fi 17578need_lib_prefix=unknown 17579hardcode_into_libs=no 17580 17581# when you set need_version to no, make sure it does not cause -set_version 17582# flags to be left without arguments 17583need_version=unknown 17584 17585case $host_os in 17586aix3*) 17587 version_type=linux 17588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17589 shlibpath_var=LIBPATH 17590 17591 # AIX 3 has no versioning support, so we append a major version to the name. 17592 soname_spec='${libname}${release}${shared_ext}$major' 17593 ;; 17594 17595aix4* | aix5*) 17596 version_type=linux 17597 need_lib_prefix=no 17598 need_version=no 17599 hardcode_into_libs=yes 17600 if test "$host_cpu" = ia64; then 17601 # AIX 5 supports IA64 17602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17603 shlibpath_var=LD_LIBRARY_PATH 17604 else 17605 # With GCC up to 2.95.x, collect2 would create an import file 17606 # for dependence libraries. The import file would start with 17607 # the line `#! .'. This would cause the generated library to 17608 # depend on `.', always an invalid library. This was fixed in 17609 # development snapshots of GCC prior to 3.0. 17610 case $host_os in 17611 aix4 | aix4.[01] | aix4.[01].*) 17612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17613 echo ' yes ' 17614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17615 : 17616 else 17617 can_build_shared=no 17618 fi 17619 ;; 17620 esac 17621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17622 # soname into executable. Probably we can add versioning support to 17623 # collect2, so additional links can be useful in future. 17624 if test "$aix_use_runtimelinking" = yes; then 17625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17626 # instead of lib<name>.a to let people know that these are not 17627 # typical AIX shared libraries. 17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17629 else 17630 # We preserve .a as extension for shared libraries through AIX4.2 17631 # and later when we are not doing run time linking. 17632 library_names_spec='${libname}${release}.a $libname.a' 17633 soname_spec='${libname}${release}${shared_ext}$major' 17634 fi 17635 shlibpath_var=LIBPATH 17636 fi 17637 ;; 17638 17639amigaos*) 17640 library_names_spec='$libname.ixlibrary $libname.a' 17641 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17642 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' 17643 ;; 17644 17645beos*) 17646 library_names_spec='${libname}${shared_ext}' 17647 dynamic_linker="$host_os ld.so" 17648 shlibpath_var=LIBRARY_PATH 17649 ;; 17650 17651bsdi[45]*) 17652 version_type=linux 17653 need_version=no 17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17655 soname_spec='${libname}${release}${shared_ext}$major' 17656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17657 shlibpath_var=LD_LIBRARY_PATH 17658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17660 # the default ld.so.conf also contains /usr/contrib/lib and 17661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17662 # libtool to hard-code these into programs 17663 ;; 17664 17665cygwin* | mingw* | pw32*) 17666 version_type=windows 17667 shrext_cmds=".dll" 17668 need_version=no 17669 need_lib_prefix=no 17670 17671 case $GCC,$host_os in 17672 yes,cygwin* | yes,mingw* | yes,pw32*) 17673 library_names_spec='$libname.dll.a' 17674 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17675 postinstall_cmds='base_file=`basename \${file}`~ 17676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17677 dldir=$destdir/`dirname \$dlpath`~ 17678 test -d \$dldir || mkdir -p \$dldir~ 17679 $install_prog $dir/$dlname \$dldir/$dlname~ 17680 chmod a+x \$dldir/$dlname' 17681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17682 dlpath=$dir/\$dldll~ 17683 $rm \$dlpath' 17684 shlibpath_overrides_runpath=yes 17685 17686 case $host_os in 17687 cygwin*) 17688 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17691 ;; 17692 mingw*) 17693 # MinGW DLLs use traditional 'lib' prefix 17694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17697 # It is most probably a Windows format PATH printed by 17698 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17699 # path with ; separators, and with drive letters. We can handle the 17700 # drive letters (cygwin fileutils understands them), so leave them, 17701 # especially as we might pass files found there to a mingw objdump, 17702 # which wouldn't understand a cygwinified path. Ahh. 17703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17704 else 17705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17706 fi 17707 ;; 17708 pw32*) 17709 # pw32 DLLs use 'pw' prefix rather than 'lib' 17710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17711 ;; 17712 esac 17713 ;; 17714 17715 *) 17716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17717 ;; 17718 esac 17719 dynamic_linker='Win32 ld.exe' 17720 # FIXME: first we should search . and the directory the executable is in 17721 shlibpath_var=PATH 17722 ;; 17723 17724darwin* | rhapsody*) 17725 dynamic_linker="$host_os dyld" 17726 version_type=darwin 17727 need_lib_prefix=no 17728 need_version=no 17729 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17730 soname_spec='${libname}${release}${major}$shared_ext' 17731 shlibpath_overrides_runpath=yes 17732 shlibpath_var=DYLD_LIBRARY_PATH 17733 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17734 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17735 if test "$GCC" = yes; then 17736 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"` 17737 else 17738 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17739 fi 17740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17741 ;; 17742 17743dgux*) 17744 version_type=linux 17745 need_lib_prefix=no 17746 need_version=no 17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17748 soname_spec='${libname}${release}${shared_ext}$major' 17749 shlibpath_var=LD_LIBRARY_PATH 17750 ;; 17751 17752freebsd1*) 17753 dynamic_linker=no 17754 ;; 17755 17756freebsd* | dragonfly*) 17757 # DragonFly does not have aout. When/if they implement a new 17758 # versioning mechanism, adjust this. 17759 if test -x /usr/bin/objformat; then 17760 objformat=`/usr/bin/objformat` 17761 else 17762 case $host_os in 17763 freebsd[123]*) objformat=aout ;; 17764 *) objformat=elf ;; 17765 esac 17766 fi 17767 version_type=freebsd-$objformat 17768 case $version_type in 17769 freebsd-elf*) 17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17771 need_version=no 17772 need_lib_prefix=no 17773 ;; 17774 freebsd-*) 17775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17776 need_version=yes 17777 ;; 17778 esac 17779 shlibpath_var=LD_LIBRARY_PATH 17780 case $host_os in 17781 freebsd2*) 17782 shlibpath_overrides_runpath=yes 17783 ;; 17784 freebsd3.[01]* | freebsdelf3.[01]*) 17785 shlibpath_overrides_runpath=yes 17786 hardcode_into_libs=yes 17787 ;; 17788 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17789 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17790 shlibpath_overrides_runpath=no 17791 hardcode_into_libs=yes 17792 ;; 17793 freebsd*) # from 4.6 on 17794 shlibpath_overrides_runpath=yes 17795 hardcode_into_libs=yes 17796 ;; 17797 esac 17798 ;; 17799 17800gnu*) 17801 version_type=linux 17802 need_lib_prefix=no 17803 need_version=no 17804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17805 soname_spec='${libname}${release}${shared_ext}$major' 17806 shlibpath_var=LD_LIBRARY_PATH 17807 hardcode_into_libs=yes 17808 ;; 17809 17810hpux9* | hpux10* | hpux11*) 17811 # Give a soname corresponding to the major version so that dld.sl refuses to 17812 # link against other versions. 17813 version_type=sunos 17814 need_lib_prefix=no 17815 need_version=no 17816 case $host_cpu in 17817 ia64*) 17818 shrext_cmds='.so' 17819 hardcode_into_libs=yes 17820 dynamic_linker="$host_os dld.so" 17821 shlibpath_var=LD_LIBRARY_PATH 17822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17824 soname_spec='${libname}${release}${shared_ext}$major' 17825 if test "X$HPUX_IA64_MODE" = X32; then 17826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17827 else 17828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17829 fi 17830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17831 ;; 17832 hppa*64*) 17833 shrext_cmds='.sl' 17834 hardcode_into_libs=yes 17835 dynamic_linker="$host_os dld.sl" 17836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17839 soname_spec='${libname}${release}${shared_ext}$major' 17840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17842 ;; 17843 *) 17844 shrext_cmds='.sl' 17845 dynamic_linker="$host_os dld.sl" 17846 shlibpath_var=SHLIB_PATH 17847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17849 soname_spec='${libname}${release}${shared_ext}$major' 17850 ;; 17851 esac 17852 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17853 postinstall_cmds='chmod 555 $lib' 17854 ;; 17855 17856interix3*) 17857 version_type=linux 17858 need_lib_prefix=no 17859 need_version=no 17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17861 soname_spec='${libname}${release}${shared_ext}$major' 17862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17863 shlibpath_var=LD_LIBRARY_PATH 17864 shlibpath_overrides_runpath=no 17865 hardcode_into_libs=yes 17866 ;; 17867 17868irix5* | irix6* | nonstopux*) 17869 case $host_os in 17870 nonstopux*) version_type=nonstopux ;; 17871 *) 17872 if test "$lt_cv_prog_gnu_ld" = yes; then 17873 version_type=linux 17874 else 17875 version_type=irix 17876 fi ;; 17877 esac 17878 need_lib_prefix=no 17879 need_version=no 17880 soname_spec='${libname}${release}${shared_ext}$major' 17881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17882 case $host_os in 17883 irix5* | nonstopux*) 17884 libsuff= shlibsuff= 17885 ;; 17886 *) 17887 case $LD in # libtool.m4 will add one of these switches to LD 17888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17889 libsuff= shlibsuff= libmagic=32-bit;; 17890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17891 libsuff=32 shlibsuff=N32 libmagic=N32;; 17892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17893 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17894 *) libsuff= shlibsuff= libmagic=never-match;; 17895 esac 17896 ;; 17897 esac 17898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17899 shlibpath_overrides_runpath=no 17900 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17901 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17902 hardcode_into_libs=yes 17903 ;; 17904 17905# No shared lib support for Linux oldld, aout, or coff. 17906linux*oldld* | linux*aout* | linux*coff*) 17907 dynamic_linker=no 17908 ;; 17909 17910# This must be Linux ELF. 17911linux* | k*bsd*-gnu) 17912 version_type=linux 17913 need_lib_prefix=no 17914 need_version=no 17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17916 soname_spec='${libname}${release}${shared_ext}$major' 17917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17918 shlibpath_var=LD_LIBRARY_PATH 17919 shlibpath_overrides_runpath=no 17920 # This implies no fast_install, which is unacceptable. 17921 # Some rework will be needed to allow for fast_install 17922 # before this can be enabled. 17923 hardcode_into_libs=yes 17924 17925 # Append ld.so.conf contents to the search path 17926 if test -f /etc/ld.so.conf; then 17927 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' ' '` 17928 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17929 fi 17930 17931 # We used to test for /lib/ld.so.1 and disable shared libraries on 17932 # powerpc, because MkLinux only supported shared libraries with the 17933 # GNU dynamic linker. Since this was broken with cross compilers, 17934 # most powerpc-linux boxes support dynamic linking these days and 17935 # people can always --disable-shared, the test was removed, and we 17936 # assume the GNU/Linux dynamic linker is in use. 17937 dynamic_linker='GNU/Linux ld.so' 17938 ;; 17939 17940netbsdelf*-gnu) 17941 version_type=linux 17942 need_lib_prefix=no 17943 need_version=no 17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17945 soname_spec='${libname}${release}${shared_ext}$major' 17946 shlibpath_var=LD_LIBRARY_PATH 17947 shlibpath_overrides_runpath=no 17948 hardcode_into_libs=yes 17949 dynamic_linker='NetBSD ld.elf_so' 17950 ;; 17951 17952netbsd*) 17953 version_type=sunos 17954 need_lib_prefix=no 17955 need_version=no 17956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17959 dynamic_linker='NetBSD (a.out) ld.so' 17960 else 17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17962 soname_spec='${libname}${release}${shared_ext}$major' 17963 dynamic_linker='NetBSD ld.elf_so' 17964 fi 17965 shlibpath_var=LD_LIBRARY_PATH 17966 shlibpath_overrides_runpath=yes 17967 hardcode_into_libs=yes 17968 ;; 17969 17970newsos6) 17971 version_type=linux 17972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17973 shlibpath_var=LD_LIBRARY_PATH 17974 shlibpath_overrides_runpath=yes 17975 ;; 17976 17977nto-qnx*) 17978 version_type=linux 17979 need_lib_prefix=no 17980 need_version=no 17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17982 soname_spec='${libname}${release}${shared_ext}$major' 17983 shlibpath_var=LD_LIBRARY_PATH 17984 shlibpath_overrides_runpath=yes 17985 ;; 17986 17987openbsd*) 17988 version_type=sunos 17989 sys_lib_dlsearch_path_spec="/usr/lib" 17990 need_lib_prefix=no 17991 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17992 case $host_os in 17993 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17994 *) need_version=no ;; 17995 esac 17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17998 shlibpath_var=LD_LIBRARY_PATH 17999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18000 case $host_os in 18001 openbsd2.[89] | openbsd2.[89].*) 18002 shlibpath_overrides_runpath=no 18003 ;; 18004 *) 18005 shlibpath_overrides_runpath=yes 18006 ;; 18007 esac 18008 else 18009 shlibpath_overrides_runpath=yes 18010 fi 18011 ;; 18012 18013os2*) 18014 libname_spec='$name' 18015 shrext_cmds=".dll" 18016 need_lib_prefix=no 18017 library_names_spec='$libname${shared_ext} $libname.a' 18018 dynamic_linker='OS/2 ld.exe' 18019 shlibpath_var=LIBPATH 18020 ;; 18021 18022osf3* | osf4* | osf5*) 18023 version_type=osf 18024 need_lib_prefix=no 18025 need_version=no 18026 soname_spec='${libname}${release}${shared_ext}$major' 18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18028 shlibpath_var=LD_LIBRARY_PATH 18029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18031 ;; 18032 18033solaris*) 18034 version_type=linux 18035 need_lib_prefix=no 18036 need_version=no 18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18038 soname_spec='${libname}${release}${shared_ext}$major' 18039 shlibpath_var=LD_LIBRARY_PATH 18040 shlibpath_overrides_runpath=yes 18041 hardcode_into_libs=yes 18042 # ldd complains unless libraries are executable 18043 postinstall_cmds='chmod +x $lib' 18044 ;; 18045 18046sunos4*) 18047 version_type=sunos 18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18050 shlibpath_var=LD_LIBRARY_PATH 18051 shlibpath_overrides_runpath=yes 18052 if test "$with_gnu_ld" = yes; then 18053 need_lib_prefix=no 18054 fi 18055 need_version=yes 18056 ;; 18057 18058sysv4 | sysv4.3*) 18059 version_type=linux 18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18061 soname_spec='${libname}${release}${shared_ext}$major' 18062 shlibpath_var=LD_LIBRARY_PATH 18063 case $host_vendor in 18064 sni) 18065 shlibpath_overrides_runpath=no 18066 need_lib_prefix=no 18067 export_dynamic_flag_spec='${wl}-Blargedynsym' 18068 runpath_var=LD_RUN_PATH 18069 ;; 18070 siemens) 18071 need_lib_prefix=no 18072 ;; 18073 motorola) 18074 need_lib_prefix=no 18075 need_version=no 18076 shlibpath_overrides_runpath=no 18077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18078 ;; 18079 esac 18080 ;; 18081 18082sysv4*MP*) 18083 if test -d /usr/nec ;then 18084 version_type=linux 18085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18086 soname_spec='$libname${shared_ext}.$major' 18087 shlibpath_var=LD_LIBRARY_PATH 18088 fi 18089 ;; 18090 18091sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18092 version_type=freebsd-elf 18093 need_lib_prefix=no 18094 need_version=no 18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18096 soname_spec='${libname}${release}${shared_ext}$major' 18097 shlibpath_var=LD_LIBRARY_PATH 18098 hardcode_into_libs=yes 18099 if test "$with_gnu_ld" = yes; then 18100 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18101 shlibpath_overrides_runpath=no 18102 else 18103 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18104 shlibpath_overrides_runpath=yes 18105 case $host_os in 18106 sco3.2v5*) 18107 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18108 ;; 18109 esac 18110 fi 18111 sys_lib_dlsearch_path_spec='/usr/lib' 18112 ;; 18113 18114uts4*) 18115 version_type=linux 18116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18117 soname_spec='${libname}${release}${shared_ext}$major' 18118 shlibpath_var=LD_LIBRARY_PATH 18119 ;; 18120 18121*) 18122 dynamic_linker=no 18123 ;; 18124esac 18125{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18126echo "${ECHO_T}$dynamic_linker" >&6; } 18127test "$dynamic_linker" = no && can_build_shared=no 18128 18129variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18130if test "$GCC" = yes; then 18131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18132fi 18133 18134{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18135echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18136hardcode_action_GCJ= 18137if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18138 test -n "$runpath_var_GCJ" || \ 18139 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18140 18141 # We can hardcode non-existant directories. 18142 if test "$hardcode_direct_GCJ" != no && 18143 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18144 # have to relink, otherwise we might link with an installed library 18145 # when we should be linking with a yet-to-be-installed one 18146 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18147 test "$hardcode_minus_L_GCJ" != no; then 18148 # Linking always hardcodes the temporary library directory. 18149 hardcode_action_GCJ=relink 18150 else 18151 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18152 hardcode_action_GCJ=immediate 18153 fi 18154else 18155 # We cannot hardcode anything, or else we can only hardcode existing 18156 # directories. 18157 hardcode_action_GCJ=unsupported 18158fi 18159{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18160echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18161 18162if test "$hardcode_action_GCJ" = relink; then 18163 # Fast installation is not supported 18164 enable_fast_install=no 18165elif test "$shlibpath_overrides_runpath" = yes || 18166 test "$enable_shared" = no; then 18167 # Fast installation is not necessary 18168 enable_fast_install=needless 18169fi 18170 18171 18172# The else clause should only fire when bootstrapping the 18173# libtool distribution, otherwise you forgot to ship ltmain.sh 18174# with your package, and you will get complaints that there are 18175# no rules to generate ltmain.sh. 18176if test -f "$ltmain"; then 18177 # See if we are running on zsh, and set the options which allow our commands through 18178 # without removal of \ escapes. 18179 if test -n "${ZSH_VERSION+set}" ; then 18180 setopt NO_GLOB_SUBST 18181 fi 18182 # Now quote all the things that may contain metacharacters while being 18183 # careful not to overquote the AC_SUBSTed values. We take copies of the 18184 # variables and quote the copies for generation of the libtool script. 18185 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18186 SED SHELL STRIP \ 18187 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18188 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18189 deplibs_check_method reload_flag reload_cmds need_locks \ 18190 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18191 lt_cv_sys_global_symbol_to_c_name_address \ 18192 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18193 old_postinstall_cmds old_postuninstall_cmds \ 18194 compiler_GCJ \ 18195 CC_GCJ \ 18196 LD_GCJ \ 18197 lt_prog_compiler_wl_GCJ \ 18198 lt_prog_compiler_pic_GCJ \ 18199 lt_prog_compiler_static_GCJ \ 18200 lt_prog_compiler_no_builtin_flag_GCJ \ 18201 export_dynamic_flag_spec_GCJ \ 18202 thread_safe_flag_spec_GCJ \ 18203 whole_archive_flag_spec_GCJ \ 18204 enable_shared_with_static_runtimes_GCJ \ 18205 old_archive_cmds_GCJ \ 18206 old_archive_from_new_cmds_GCJ \ 18207 predep_objects_GCJ \ 18208 postdep_objects_GCJ \ 18209 predeps_GCJ \ 18210 postdeps_GCJ \ 18211 compiler_lib_search_path_GCJ \ 18212 archive_cmds_GCJ \ 18213 archive_expsym_cmds_GCJ \ 18214 postinstall_cmds_GCJ \ 18215 postuninstall_cmds_GCJ \ 18216 old_archive_from_expsyms_cmds_GCJ \ 18217 allow_undefined_flag_GCJ \ 18218 no_undefined_flag_GCJ \ 18219 export_symbols_cmds_GCJ \ 18220 hardcode_libdir_flag_spec_GCJ \ 18221 hardcode_libdir_flag_spec_ld_GCJ \ 18222 hardcode_libdir_separator_GCJ \ 18223 hardcode_automatic_GCJ \ 18224 module_cmds_GCJ \ 18225 module_expsym_cmds_GCJ \ 18226 lt_cv_prog_compiler_c_o_GCJ \ 18227 exclude_expsyms_GCJ \ 18228 include_expsyms_GCJ; do 18229 18230 case $var in 18231 old_archive_cmds_GCJ | \ 18232 old_archive_from_new_cmds_GCJ | \ 18233 archive_cmds_GCJ | \ 18234 archive_expsym_cmds_GCJ | \ 18235 module_cmds_GCJ | \ 18236 module_expsym_cmds_GCJ | \ 18237 old_archive_from_expsyms_cmds_GCJ | \ 18238 export_symbols_cmds_GCJ | \ 18239 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18240 postinstall_cmds | postuninstall_cmds | \ 18241 old_postinstall_cmds | old_postuninstall_cmds | \ 18242 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18243 # Double-quote double-evaled strings. 18244 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18245 ;; 18246 *) 18247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18248 ;; 18249 esac 18250 done 18251 18252 case $lt_echo in 18253 *'\$0 --fallback-echo"') 18254 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18255 ;; 18256 esac 18257 18258cfgfile="$ofile" 18259 18260 cat <<__EOF__ >> "$cfgfile" 18261# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18262 18263# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18264 18265# Shell to use when invoking shell scripts. 18266SHELL=$lt_SHELL 18267 18268# Whether or not to build shared libraries. 18269build_libtool_libs=$enable_shared 18270 18271# Whether or not to build static libraries. 18272build_old_libs=$enable_static 18273 18274# Whether or not to add -lc for building shared libraries. 18275build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18276 18277# Whether or not to disallow shared libs when runtime libs are static 18278allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18279 18280# Whether or not to optimize for fast installation. 18281fast_install=$enable_fast_install 18282 18283# The host system. 18284host_alias=$host_alias 18285host=$host 18286host_os=$host_os 18287 18288# The build system. 18289build_alias=$build_alias 18290build=$build 18291build_os=$build_os 18292 18293# An echo program that does not interpret backslashes. 18294echo=$lt_echo 18295 18296# The archiver. 18297AR=$lt_AR 18298AR_FLAGS=$lt_AR_FLAGS 18299 18300# A C compiler. 18301LTCC=$lt_LTCC 18302 18303# LTCC compiler flags. 18304LTCFLAGS=$lt_LTCFLAGS 18305 18306# A language-specific compiler. 18307CC=$lt_compiler_GCJ 18308 18309# Is the compiler the GNU C compiler? 18310with_gcc=$GCC_GCJ 18311 18312# An ERE matcher. 18313EGREP=$lt_EGREP 18314 18315# The linker used to build libraries. 18316LD=$lt_LD_GCJ 18317 18318# Whether we need hard or soft links. 18319LN_S=$lt_LN_S 18320 18321# A BSD-compatible nm program. 18322NM=$lt_NM 18323 18324# A symbol stripping program 18325STRIP=$lt_STRIP 18326 18327# Used to examine libraries when file_magic_cmd begins "file" 18328MAGIC_CMD=$MAGIC_CMD 18329 18330# Used on cygwin: DLL creation program. 18331DLLTOOL="$DLLTOOL" 18332 18333# Used on cygwin: object dumper. 18334OBJDUMP="$OBJDUMP" 18335 18336# Used on cygwin: assembler. 18337AS="$AS" 18338 18339# The name of the directory that contains temporary libtool files. 18340objdir=$objdir 18341 18342# How to create reloadable object files. 18343reload_flag=$lt_reload_flag 18344reload_cmds=$lt_reload_cmds 18345 18346# How to pass a linker flag through the compiler. 18347wl=$lt_lt_prog_compiler_wl_GCJ 18348 18349# Object file suffix (normally "o"). 18350objext="$ac_objext" 18351 18352# Old archive suffix (normally "a"). 18353libext="$libext" 18354 18355# Shared library suffix (normally ".so"). 18356shrext_cmds='$shrext_cmds' 18357 18358# Executable file suffix (normally ""). 18359exeext="$exeext" 18360 18361# Additional compiler flags for building library objects. 18362pic_flag=$lt_lt_prog_compiler_pic_GCJ 18363pic_mode=$pic_mode 18364 18365# What is the maximum length of a command? 18366max_cmd_len=$lt_cv_sys_max_cmd_len 18367 18368# Does compiler simultaneously support -c and -o options? 18369compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18370 18371# Must we lock files when doing compilation? 18372need_locks=$lt_need_locks 18373 18374# Do we need the lib prefix for modules? 18375need_lib_prefix=$need_lib_prefix 18376 18377# Do we need a version for libraries? 18378need_version=$need_version 18379 18380# Whether dlopen is supported. 18381dlopen_support=$enable_dlopen 18382 18383# Whether dlopen of programs is supported. 18384dlopen_self=$enable_dlopen_self 18385 18386# Whether dlopen of statically linked programs is supported. 18387dlopen_self_static=$enable_dlopen_self_static 18388 18389# Compiler flag to prevent dynamic linking. 18390link_static_flag=$lt_lt_prog_compiler_static_GCJ 18391 18392# Compiler flag to turn off builtin functions. 18393no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18394 18395# Compiler flag to allow reflexive dlopens. 18396export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18397 18398# Compiler flag to generate shared objects directly from archives. 18399whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18400 18401# Compiler flag to generate thread-safe objects. 18402thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18403 18404# Library versioning type. 18405version_type=$version_type 18406 18407# Format of library name prefix. 18408libname_spec=$lt_libname_spec 18409 18410# List of archive names. First name is the real one, the rest are links. 18411# The last name is the one that the linker finds with -lNAME. 18412library_names_spec=$lt_library_names_spec 18413 18414# The coded name of the library, if different from the real name. 18415soname_spec=$lt_soname_spec 18416 18417# Commands used to build and install an old-style archive. 18418RANLIB=$lt_RANLIB 18419old_archive_cmds=$lt_old_archive_cmds_GCJ 18420old_postinstall_cmds=$lt_old_postinstall_cmds 18421old_postuninstall_cmds=$lt_old_postuninstall_cmds 18422 18423# Create an old-style archive from a shared archive. 18424old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18425 18426# Create a temporary old-style archive to link instead of a shared archive. 18427old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18428 18429# Commands used to build and install a shared archive. 18430archive_cmds=$lt_archive_cmds_GCJ 18431archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18432postinstall_cmds=$lt_postinstall_cmds 18433postuninstall_cmds=$lt_postuninstall_cmds 18434 18435# Commands used to build a loadable module (assumed same as above if empty) 18436module_cmds=$lt_module_cmds_GCJ 18437module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18438 18439# Commands to strip libraries. 18440old_striplib=$lt_old_striplib 18441striplib=$lt_striplib 18442 18443# Dependencies to place before the objects being linked to create a 18444# shared library. 18445predep_objects=$lt_predep_objects_GCJ 18446 18447# Dependencies to place after the objects being linked to create a 18448# shared library. 18449postdep_objects=$lt_postdep_objects_GCJ 18450 18451# Dependencies to place before the objects being linked to create a 18452# shared library. 18453predeps=$lt_predeps_GCJ 18454 18455# Dependencies to place after the objects being linked to create a 18456# shared library. 18457postdeps=$lt_postdeps_GCJ 18458 18459# The library search path used internally by the compiler when linking 18460# a shared library. 18461compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18462 18463# Method to check whether dependent libraries are shared objects. 18464deplibs_check_method=$lt_deplibs_check_method 18465 18466# Command to use when deplibs_check_method == file_magic. 18467file_magic_cmd=$lt_file_magic_cmd 18468 18469# Flag that allows shared libraries with undefined symbols to be built. 18470allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18471 18472# Flag that forces no undefined symbols. 18473no_undefined_flag=$lt_no_undefined_flag_GCJ 18474 18475# Commands used to finish a libtool library installation in a directory. 18476finish_cmds=$lt_finish_cmds 18477 18478# Same as above, but a single script fragment to be evaled but not shown. 18479finish_eval=$lt_finish_eval 18480 18481# Take the output of nm and produce a listing of raw symbols and C names. 18482global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18483 18484# Transform the output of nm in a proper C declaration 18485global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18486 18487# Transform the output of nm in a C name address pair 18488global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18489 18490# This is the shared library runtime path variable. 18491runpath_var=$runpath_var 18492 18493# This is the shared library path variable. 18494shlibpath_var=$shlibpath_var 18495 18496# Is shlibpath searched before the hard-coded library search path? 18497shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18498 18499# How to hardcode a shared library path into an executable. 18500hardcode_action=$hardcode_action_GCJ 18501 18502# Whether we should hardcode library paths into libraries. 18503hardcode_into_libs=$hardcode_into_libs 18504 18505# Flag to hardcode \$libdir into a binary during linking. 18506# This must work even if \$libdir does not exist. 18507hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18508 18509# If ld is used when linking, flag to hardcode \$libdir into 18510# a binary during linking. This must work even if \$libdir does 18511# not exist. 18512hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18513 18514# Whether we need a single -rpath flag with a separated argument. 18515hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18516 18517# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18518# resulting binary. 18519hardcode_direct=$hardcode_direct_GCJ 18520 18521# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18522# resulting binary. 18523hardcode_minus_L=$hardcode_minus_L_GCJ 18524 18525# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18526# the resulting binary. 18527hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18528 18529# Set to yes if building a shared library automatically hardcodes DIR into the library 18530# and all subsequent libraries and executables linked against it. 18531hardcode_automatic=$hardcode_automatic_GCJ 18532 18533# Variables whose values should be saved in libtool wrapper scripts and 18534# restored at relink time. 18535variables_saved_for_relink="$variables_saved_for_relink" 18536 18537# Whether libtool must link a program against all its dependency libraries. 18538link_all_deplibs=$link_all_deplibs_GCJ 18539 18540# Compile-time system search path for libraries 18541sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18542 18543# Run-time system search path for libraries 18544sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18545 18546# Fix the shell variable \$srcfile for the compiler. 18547fix_srcfile_path="$fix_srcfile_path_GCJ" 18548 18549# Set to yes if exported symbols are required. 18550always_export_symbols=$always_export_symbols_GCJ 18551 18552# The commands to list exported symbols. 18553export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18554 18555# The commands to extract the exported symbol list from a shared archive. 18556extract_expsyms_cmds=$lt_extract_expsyms_cmds 18557 18558# Symbols that should not be listed in the preloaded symbols. 18559exclude_expsyms=$lt_exclude_expsyms_GCJ 18560 18561# Symbols that must always be exported. 18562include_expsyms=$lt_include_expsyms_GCJ 18563 18564# ### END LIBTOOL TAG CONFIG: $tagname 18565 18566__EOF__ 18567 18568 18569else 18570 # If there is no Makefile yet, we rely on a make rule to execute 18571 # `config.status --recheck' to rerun these tests and create the 18572 # libtool script then. 18573 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18574 if test -f "$ltmain_in"; then 18575 test -f Makefile && make "$ltmain" 18576 fi 18577fi 18578 18579 18580ac_ext=c 18581ac_cpp='$CPP $CPPFLAGS' 18582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18584ac_compiler_gnu=$ac_cv_c_compiler_gnu 18585 18586CC="$lt_save_CC" 18587 18588 else 18589 tagname="" 18590 fi 18591 ;; 18592 18593 RC) 18594 18595 18596# Source file extension for RC test sources. 18597ac_ext=rc 18598 18599# Object file extension for compiled RC test sources. 18600objext=o 18601objext_RC=$objext 18602 18603# Code to be used in simple compile tests 18604lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18605 18606# Code to be used in simple link tests 18607lt_simple_link_test_code="$lt_simple_compile_test_code" 18608 18609# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18610 18611# If no C compiler was specified, use CC. 18612LTCC=${LTCC-"$CC"} 18613 18614# If no C compiler flags were specified, use CFLAGS. 18615LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18616 18617# Allow CC to be a program name with arguments. 18618compiler=$CC 18619 18620 18621# save warnings/boilerplate of simple test code 18622ac_outfile=conftest.$ac_objext 18623printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18625_lt_compiler_boilerplate=`cat conftest.err` 18626$rm conftest* 18627 18628ac_outfile=conftest.$ac_objext 18629printf "$lt_simple_link_test_code" >conftest.$ac_ext 18630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18631_lt_linker_boilerplate=`cat conftest.err` 18632$rm conftest* 18633 18634 18635# Allow CC to be a program name with arguments. 18636lt_save_CC="$CC" 18637CC=${RC-"windres"} 18638compiler=$CC 18639compiler_RC=$CC 18640for cc_temp in $compiler""; do 18641 case $cc_temp in 18642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18644 \-*) ;; 18645 *) break;; 18646 esac 18647done 18648cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18649 18650lt_cv_prog_compiler_c_o_RC=yes 18651 18652# The else clause should only fire when bootstrapping the 18653# libtool distribution, otherwise you forgot to ship ltmain.sh 18654# with your package, and you will get complaints that there are 18655# no rules to generate ltmain.sh. 18656if test -f "$ltmain"; then 18657 # See if we are running on zsh, and set the options which allow our commands through 18658 # without removal of \ escapes. 18659 if test -n "${ZSH_VERSION+set}" ; then 18660 setopt NO_GLOB_SUBST 18661 fi 18662 # Now quote all the things that may contain metacharacters while being 18663 # careful not to overquote the AC_SUBSTed values. We take copies of the 18664 # variables and quote the copies for generation of the libtool script. 18665 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18666 SED SHELL STRIP \ 18667 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18668 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18669 deplibs_check_method reload_flag reload_cmds need_locks \ 18670 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18671 lt_cv_sys_global_symbol_to_c_name_address \ 18672 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18673 old_postinstall_cmds old_postuninstall_cmds \ 18674 compiler_RC \ 18675 CC_RC \ 18676 LD_RC \ 18677 lt_prog_compiler_wl_RC \ 18678 lt_prog_compiler_pic_RC \ 18679 lt_prog_compiler_static_RC \ 18680 lt_prog_compiler_no_builtin_flag_RC \ 18681 export_dynamic_flag_spec_RC \ 18682 thread_safe_flag_spec_RC \ 18683 whole_archive_flag_spec_RC \ 18684 enable_shared_with_static_runtimes_RC \ 18685 old_archive_cmds_RC \ 18686 old_archive_from_new_cmds_RC \ 18687 predep_objects_RC \ 18688 postdep_objects_RC \ 18689 predeps_RC \ 18690 postdeps_RC \ 18691 compiler_lib_search_path_RC \ 18692 archive_cmds_RC \ 18693 archive_expsym_cmds_RC \ 18694 postinstall_cmds_RC \ 18695 postuninstall_cmds_RC \ 18696 old_archive_from_expsyms_cmds_RC \ 18697 allow_undefined_flag_RC \ 18698 no_undefined_flag_RC \ 18699 export_symbols_cmds_RC \ 18700 hardcode_libdir_flag_spec_RC \ 18701 hardcode_libdir_flag_spec_ld_RC \ 18702 hardcode_libdir_separator_RC \ 18703 hardcode_automatic_RC \ 18704 module_cmds_RC \ 18705 module_expsym_cmds_RC \ 18706 lt_cv_prog_compiler_c_o_RC \ 18707 exclude_expsyms_RC \ 18708 include_expsyms_RC; do 18709 18710 case $var in 18711 old_archive_cmds_RC | \ 18712 old_archive_from_new_cmds_RC | \ 18713 archive_cmds_RC | \ 18714 archive_expsym_cmds_RC | \ 18715 module_cmds_RC | \ 18716 module_expsym_cmds_RC | \ 18717 old_archive_from_expsyms_cmds_RC | \ 18718 export_symbols_cmds_RC | \ 18719 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18720 postinstall_cmds | postuninstall_cmds | \ 18721 old_postinstall_cmds | old_postuninstall_cmds | \ 18722 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18723 # Double-quote double-evaled strings. 18724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18725 ;; 18726 *) 18727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18728 ;; 18729 esac 18730 done 18731 18732 case $lt_echo in 18733 *'\$0 --fallback-echo"') 18734 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18735 ;; 18736 esac 18737 18738cfgfile="$ofile" 18739 18740 cat <<__EOF__ >> "$cfgfile" 18741# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18742 18743# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18744 18745# Shell to use when invoking shell scripts. 18746SHELL=$lt_SHELL 18747 18748# Whether or not to build shared libraries. 18749build_libtool_libs=$enable_shared 18750 18751# Whether or not to build static libraries. 18752build_old_libs=$enable_static 18753 18754# Whether or not to add -lc for building shared libraries. 18755build_libtool_need_lc=$archive_cmds_need_lc_RC 18756 18757# Whether or not to disallow shared libs when runtime libs are static 18758allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18759 18760# Whether or not to optimize for fast installation. 18761fast_install=$enable_fast_install 18762 18763# The host system. 18764host_alias=$host_alias 18765host=$host 18766host_os=$host_os 18767 18768# The build system. 18769build_alias=$build_alias 18770build=$build 18771build_os=$build_os 18772 18773# An echo program that does not interpret backslashes. 18774echo=$lt_echo 18775 18776# The archiver. 18777AR=$lt_AR 18778AR_FLAGS=$lt_AR_FLAGS 18779 18780# A C compiler. 18781LTCC=$lt_LTCC 18782 18783# LTCC compiler flags. 18784LTCFLAGS=$lt_LTCFLAGS 18785 18786# A language-specific compiler. 18787CC=$lt_compiler_RC 18788 18789# Is the compiler the GNU C compiler? 18790with_gcc=$GCC_RC 18791 18792# An ERE matcher. 18793EGREP=$lt_EGREP 18794 18795# The linker used to build libraries. 18796LD=$lt_LD_RC 18797 18798# Whether we need hard or soft links. 18799LN_S=$lt_LN_S 18800 18801# A BSD-compatible nm program. 18802NM=$lt_NM 18803 18804# A symbol stripping program 18805STRIP=$lt_STRIP 18806 18807# Used to examine libraries when file_magic_cmd begins "file" 18808MAGIC_CMD=$MAGIC_CMD 18809 18810# Used on cygwin: DLL creation program. 18811DLLTOOL="$DLLTOOL" 18812 18813# Used on cygwin: object dumper. 18814OBJDUMP="$OBJDUMP" 18815 18816# Used on cygwin: assembler. 18817AS="$AS" 18818 18819# The name of the directory that contains temporary libtool files. 18820objdir=$objdir 18821 18822# How to create reloadable object files. 18823reload_flag=$lt_reload_flag 18824reload_cmds=$lt_reload_cmds 18825 18826# How to pass a linker flag through the compiler. 18827wl=$lt_lt_prog_compiler_wl_RC 18828 18829# Object file suffix (normally "o"). 18830objext="$ac_objext" 18831 18832# Old archive suffix (normally "a"). 18833libext="$libext" 18834 18835# Shared library suffix (normally ".so"). 18836shrext_cmds='$shrext_cmds' 18837 18838# Executable file suffix (normally ""). 18839exeext="$exeext" 18840 18841# Additional compiler flags for building library objects. 18842pic_flag=$lt_lt_prog_compiler_pic_RC 18843pic_mode=$pic_mode 18844 18845# What is the maximum length of a command? 18846max_cmd_len=$lt_cv_sys_max_cmd_len 18847 18848# Does compiler simultaneously support -c and -o options? 18849compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18850 18851# Must we lock files when doing compilation? 18852need_locks=$lt_need_locks 18853 18854# Do we need the lib prefix for modules? 18855need_lib_prefix=$need_lib_prefix 18856 18857# Do we need a version for libraries? 18858need_version=$need_version 18859 18860# Whether dlopen is supported. 18861dlopen_support=$enable_dlopen 18862 18863# Whether dlopen of programs is supported. 18864dlopen_self=$enable_dlopen_self 18865 18866# Whether dlopen of statically linked programs is supported. 18867dlopen_self_static=$enable_dlopen_self_static 18868 18869# Compiler flag to prevent dynamic linking. 18870link_static_flag=$lt_lt_prog_compiler_static_RC 18871 18872# Compiler flag to turn off builtin functions. 18873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18874 18875# Compiler flag to allow reflexive dlopens. 18876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18877 18878# Compiler flag to generate shared objects directly from archives. 18879whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18880 18881# Compiler flag to generate thread-safe objects. 18882thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18883 18884# Library versioning type. 18885version_type=$version_type 18886 18887# Format of library name prefix. 18888libname_spec=$lt_libname_spec 18889 18890# List of archive names. First name is the real one, the rest are links. 18891# The last name is the one that the linker finds with -lNAME. 18892library_names_spec=$lt_library_names_spec 18893 18894# The coded name of the library, if different from the real name. 18895soname_spec=$lt_soname_spec 18896 18897# Commands used to build and install an old-style archive. 18898RANLIB=$lt_RANLIB 18899old_archive_cmds=$lt_old_archive_cmds_RC 18900old_postinstall_cmds=$lt_old_postinstall_cmds 18901old_postuninstall_cmds=$lt_old_postuninstall_cmds 18902 18903# Create an old-style archive from a shared archive. 18904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18905 18906# Create a temporary old-style archive to link instead of a shared archive. 18907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18908 18909# Commands used to build and install a shared archive. 18910archive_cmds=$lt_archive_cmds_RC 18911archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18912postinstall_cmds=$lt_postinstall_cmds 18913postuninstall_cmds=$lt_postuninstall_cmds 18914 18915# Commands used to build a loadable module (assumed same as above if empty) 18916module_cmds=$lt_module_cmds_RC 18917module_expsym_cmds=$lt_module_expsym_cmds_RC 18918 18919# Commands to strip libraries. 18920old_striplib=$lt_old_striplib 18921striplib=$lt_striplib 18922 18923# Dependencies to place before the objects being linked to create a 18924# shared library. 18925predep_objects=$lt_predep_objects_RC 18926 18927# Dependencies to place after the objects being linked to create a 18928# shared library. 18929postdep_objects=$lt_postdep_objects_RC 18930 18931# Dependencies to place before the objects being linked to create a 18932# shared library. 18933predeps=$lt_predeps_RC 18934 18935# Dependencies to place after the objects being linked to create a 18936# shared library. 18937postdeps=$lt_postdeps_RC 18938 18939# The library search path used internally by the compiler when linking 18940# a shared library. 18941compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18942 18943# Method to check whether dependent libraries are shared objects. 18944deplibs_check_method=$lt_deplibs_check_method 18945 18946# Command to use when deplibs_check_method == file_magic. 18947file_magic_cmd=$lt_file_magic_cmd 18948 18949# Flag that allows shared libraries with undefined symbols to be built. 18950allow_undefined_flag=$lt_allow_undefined_flag_RC 18951 18952# Flag that forces no undefined symbols. 18953no_undefined_flag=$lt_no_undefined_flag_RC 18954 18955# Commands used to finish a libtool library installation in a directory. 18956finish_cmds=$lt_finish_cmds 18957 18958# Same as above, but a single script fragment to be evaled but not shown. 18959finish_eval=$lt_finish_eval 18960 18961# Take the output of nm and produce a listing of raw symbols and C names. 18962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18963 18964# Transform the output of nm in a proper C declaration 18965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18966 18967# Transform the output of nm in a C name address pair 18968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18969 18970# This is the shared library runtime path variable. 18971runpath_var=$runpath_var 18972 18973# This is the shared library path variable. 18974shlibpath_var=$shlibpath_var 18975 18976# Is shlibpath searched before the hard-coded library search path? 18977shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18978 18979# How to hardcode a shared library path into an executable. 18980hardcode_action=$hardcode_action_RC 18981 18982# Whether we should hardcode library paths into libraries. 18983hardcode_into_libs=$hardcode_into_libs 18984 18985# Flag to hardcode \$libdir into a binary during linking. 18986# This must work even if \$libdir does not exist. 18987hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18988 18989# If ld is used when linking, flag to hardcode \$libdir into 18990# a binary during linking. This must work even if \$libdir does 18991# not exist. 18992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18993 18994# Whether we need a single -rpath flag with a separated argument. 18995hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18996 18997# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18998# resulting binary. 18999hardcode_direct=$hardcode_direct_RC 19000 19001# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19002# resulting binary. 19003hardcode_minus_L=$hardcode_minus_L_RC 19004 19005# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19006# the resulting binary. 19007hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19008 19009# Set to yes if building a shared library automatically hardcodes DIR into the library 19010# and all subsequent libraries and executables linked against it. 19011hardcode_automatic=$hardcode_automatic_RC 19012 19013# Variables whose values should be saved in libtool wrapper scripts and 19014# restored at relink time. 19015variables_saved_for_relink="$variables_saved_for_relink" 19016 19017# Whether libtool must link a program against all its dependency libraries. 19018link_all_deplibs=$link_all_deplibs_RC 19019 19020# Compile-time system search path for libraries 19021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19022 19023# Run-time system search path for libraries 19024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19025 19026# Fix the shell variable \$srcfile for the compiler. 19027fix_srcfile_path="$fix_srcfile_path_RC" 19028 19029# Set to yes if exported symbols are required. 19030always_export_symbols=$always_export_symbols_RC 19031 19032# The commands to list exported symbols. 19033export_symbols_cmds=$lt_export_symbols_cmds_RC 19034 19035# The commands to extract the exported symbol list from a shared archive. 19036extract_expsyms_cmds=$lt_extract_expsyms_cmds 19037 19038# Symbols that should not be listed in the preloaded symbols. 19039exclude_expsyms=$lt_exclude_expsyms_RC 19040 19041# Symbols that must always be exported. 19042include_expsyms=$lt_include_expsyms_RC 19043 19044# ### END LIBTOOL TAG CONFIG: $tagname 19045 19046__EOF__ 19047 19048 19049else 19050 # If there is no Makefile yet, we rely on a make rule to execute 19051 # `config.status --recheck' to rerun these tests and create the 19052 # libtool script then. 19053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19054 if test -f "$ltmain_in"; then 19055 test -f Makefile && make "$ltmain" 19056 fi 19057fi 19058 19059 19060ac_ext=c 19061ac_cpp='$CPP $CPPFLAGS' 19062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19064ac_compiler_gnu=$ac_cv_c_compiler_gnu 19065 19066CC="$lt_save_CC" 19067 19068 ;; 19069 19070 *) 19071 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19072echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19073 { (exit 1); exit 1; }; } 19074 ;; 19075 esac 19076 19077 # Append the new tag name to the list of available tags. 19078 if test -n "$tagname" ; then 19079 available_tags="$available_tags $tagname" 19080 fi 19081 fi 19082 done 19083 IFS="$lt_save_ifs" 19084 19085 # Now substitute the updated list of available tags. 19086 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19087 mv "${ofile}T" "$ofile" 19088 chmod +x "$ofile" 19089 else 19090 rm -f "${ofile}T" 19091 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19092echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19093 { (exit 1); exit 1; }; } 19094 fi 19095fi 19096 19097 19098 19099# This can be used to rebuild libtool when needed 19100LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19101 19102# Always use our own libtool. 19103LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19104 19105# Prevent multiple expansion 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127# Checks for libraries. 19128 19129{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19130echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 19131if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19132 echo $ECHO_N "(cached) $ECHO_C" >&6 19133else 19134 ac_check_lib_save_LIBS=$LIBS 19135LIBS="-ldl $LIBS" 19136cat >conftest.$ac_ext <<_ACEOF 19137/* confdefs.h. */ 19138_ACEOF 19139cat confdefs.h >>conftest.$ac_ext 19140cat >>conftest.$ac_ext <<_ACEOF 19141/* end confdefs.h. */ 19142 19143/* Override any GCC internal prototype to avoid an error. 19144 Use char because int might match the return type of a GCC 19145 builtin and then its argument prototype would still apply. */ 19146#ifdef __cplusplus 19147extern "C" 19148#endif 19149char dlopen (); 19150int 19151main () 19152{ 19153return dlopen (); 19154 ; 19155 return 0; 19156} 19157_ACEOF 19158rm -f conftest.$ac_objext conftest$ac_exeext 19159if { (ac_try="$ac_link" 19160case "(($ac_try" in 19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19162 *) ac_try_echo=$ac_try;; 19163esac 19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19165 (eval "$ac_link") 2>conftest.er1 19166 ac_status=$? 19167 grep -v '^ *+' conftest.er1 >conftest.err 19168 rm -f conftest.er1 19169 cat conftest.err >&5 19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19171 (exit $ac_status); } && { 19172 test -z "$ac_c_werror_flag" || 19173 test ! -s conftest.err 19174 } && test -s conftest$ac_exeext && 19175 $as_test_x conftest$ac_exeext; then 19176 ac_cv_lib_dl_dlopen=yes 19177else 19178 echo "$as_me: failed program was:" >&5 19179sed 's/^/| /' conftest.$ac_ext >&5 19180 19181 ac_cv_lib_dl_dlopen=no 19182fi 19183 19184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19185 conftest$ac_exeext conftest.$ac_ext 19186LIBS=$ac_check_lib_save_LIBS 19187fi 19188{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19189echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 19190if test $ac_cv_lib_dl_dlopen = yes; then 19191 cat >>confdefs.h <<_ACEOF 19192@%:@define HAVE_LIBDL 1 19193_ACEOF 19194 19195 LIBS="-ldl $LIBS" 19196 19197fi 19198 19199 19200{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 19201echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 19202if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 19203 echo $ECHO_N "(cached) $ECHO_C" >&6 19204else 19205 ac_check_lib_save_LIBS=$LIBS 19206LIBS="-lpthread $LIBS" 19207cat >conftest.$ac_ext <<_ACEOF 19208/* confdefs.h. */ 19209_ACEOF 19210cat confdefs.h >>conftest.$ac_ext 19211cat >>conftest.$ac_ext <<_ACEOF 19212/* end confdefs.h. */ 19213 19214/* Override any GCC internal prototype to avoid an error. 19215 Use char because int might match the return type of a GCC 19216 builtin and then its argument prototype would still apply. */ 19217#ifdef __cplusplus 19218extern "C" 19219#endif 19220char pthread_create (); 19221int 19222main () 19223{ 19224return pthread_create (); 19225 ; 19226 return 0; 19227} 19228_ACEOF 19229rm -f conftest.$ac_objext conftest$ac_exeext 19230if { (ac_try="$ac_link" 19231case "(($ac_try" in 19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19233 *) ac_try_echo=$ac_try;; 19234esac 19235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19236 (eval "$ac_link") 2>conftest.er1 19237 ac_status=$? 19238 grep -v '^ *+' conftest.er1 >conftest.err 19239 rm -f conftest.er1 19240 cat conftest.err >&5 19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19242 (exit $ac_status); } && { 19243 test -z "$ac_c_werror_flag" || 19244 test ! -s conftest.err 19245 } && test -s conftest$ac_exeext && 19246 $as_test_x conftest$ac_exeext; then 19247 ac_cv_lib_pthread_pthread_create=yes 19248else 19249 echo "$as_me: failed program was:" >&5 19250sed 's/^/| /' conftest.$ac_ext >&5 19251 19252 ac_cv_lib_pthread_pthread_create=no 19253fi 19254 19255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19256 conftest$ac_exeext conftest.$ac_ext 19257LIBS=$ac_check_lib_save_LIBS 19258fi 19259{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 19260echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 19261if test $ac_cv_lib_pthread_pthread_create = yes; then 19262 cat >>confdefs.h <<_ACEOF 19263@%:@define HAVE_LIBPTHREAD 1 19264_ACEOF 19265 19266 LIBS="-lpthread $LIBS" 19267 19268fi 19269 19270 19271# Checks for header files. 19272{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19273echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 19274if test "${ac_cv_header_stdc+set}" = set; then 19275 echo $ECHO_N "(cached) $ECHO_C" >&6 19276else 19277 cat >conftest.$ac_ext <<_ACEOF 19278/* confdefs.h. */ 19279_ACEOF 19280cat confdefs.h >>conftest.$ac_ext 19281cat >>conftest.$ac_ext <<_ACEOF 19282/* end confdefs.h. */ 19283#include <stdlib.h> 19284#include <stdarg.h> 19285#include <string.h> 19286#include <float.h> 19287 19288int 19289main () 19290{ 19291 19292 ; 19293 return 0; 19294} 19295_ACEOF 19296rm -f conftest.$ac_objext 19297if { (ac_try="$ac_compile" 19298case "(($ac_try" in 19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19300 *) ac_try_echo=$ac_try;; 19301esac 19302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19303 (eval "$ac_compile") 2>conftest.er1 19304 ac_status=$? 19305 grep -v '^ *+' conftest.er1 >conftest.err 19306 rm -f conftest.er1 19307 cat conftest.err >&5 19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19309 (exit $ac_status); } && { 19310 test -z "$ac_c_werror_flag" || 19311 test ! -s conftest.err 19312 } && test -s conftest.$ac_objext; then 19313 ac_cv_header_stdc=yes 19314else 19315 echo "$as_me: failed program was:" >&5 19316sed 's/^/| /' conftest.$ac_ext >&5 19317 19318 ac_cv_header_stdc=no 19319fi 19320 19321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19322 19323if test $ac_cv_header_stdc = yes; then 19324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19325 cat >conftest.$ac_ext <<_ACEOF 19326/* confdefs.h. */ 19327_ACEOF 19328cat confdefs.h >>conftest.$ac_ext 19329cat >>conftest.$ac_ext <<_ACEOF 19330/* end confdefs.h. */ 19331#include <string.h> 19332 19333_ACEOF 19334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19335 $EGREP "memchr" >/dev/null 2>&1; then 19336 : 19337else 19338 ac_cv_header_stdc=no 19339fi 19340rm -f conftest* 19341 19342fi 19343 19344if test $ac_cv_header_stdc = yes; then 19345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19346 cat >conftest.$ac_ext <<_ACEOF 19347/* confdefs.h. */ 19348_ACEOF 19349cat confdefs.h >>conftest.$ac_ext 19350cat >>conftest.$ac_ext <<_ACEOF 19351/* end confdefs.h. */ 19352#include <stdlib.h> 19353 19354_ACEOF 19355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19356 $EGREP "free" >/dev/null 2>&1; then 19357 : 19358else 19359 ac_cv_header_stdc=no 19360fi 19361rm -f conftest* 19362 19363fi 19364 19365if test $ac_cv_header_stdc = yes; then 19366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19367 if test "$cross_compiling" = yes; then 19368 : 19369else 19370 cat >conftest.$ac_ext <<_ACEOF 19371/* confdefs.h. */ 19372_ACEOF 19373cat confdefs.h >>conftest.$ac_ext 19374cat >>conftest.$ac_ext <<_ACEOF 19375/* end confdefs.h. */ 19376#include <ctype.h> 19377#include <stdlib.h> 19378#if ((' ' & 0x0FF) == 0x020) 19379# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19380# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19381#else 19382# define ISLOWER(c) \ 19383 (('a' <= (c) && (c) <= 'i') \ 19384 || ('j' <= (c) && (c) <= 'r') \ 19385 || ('s' <= (c) && (c) <= 'z')) 19386# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19387#endif 19388 19389#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19390int 19391main () 19392{ 19393 int i; 19394 for (i = 0; i < 256; i++) 19395 if (XOR (islower (i), ISLOWER (i)) 19396 || toupper (i) != TOUPPER (i)) 19397 return 2; 19398 return 0; 19399} 19400_ACEOF 19401rm -f conftest$ac_exeext 19402if { (ac_try="$ac_link" 19403case "(($ac_try" in 19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19405 *) ac_try_echo=$ac_try;; 19406esac 19407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19408 (eval "$ac_link") 2>&5 19409 ac_status=$? 19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19412 { (case "(($ac_try" in 19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19414 *) ac_try_echo=$ac_try;; 19415esac 19416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19417 (eval "$ac_try") 2>&5 19418 ac_status=$? 19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19420 (exit $ac_status); }; }; then 19421 : 19422else 19423 echo "$as_me: program exited with status $ac_status" >&5 19424echo "$as_me: failed program was:" >&5 19425sed 's/^/| /' conftest.$ac_ext >&5 19426 19427( exit $ac_status ) 19428ac_cv_header_stdc=no 19429fi 19430rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19431fi 19432 19433 19434fi 19435fi 19436{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19437echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 19438if test $ac_cv_header_stdc = yes; then 19439 19440cat >>confdefs.h <<\_ACEOF 19441@%:@define STDC_HEADERS 1 19442_ACEOF 19443 19444fi 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457for ac_header in float.h inttypes.h limits.h locale.h stddef.h stdint.h stdlib.h string.h unistd.h wchar.h wctype.h 19458do 19459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19461 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19464 echo $ECHO_N "(cached) $ECHO_C" >&6 19465fi 19466ac_res=`eval echo '${'$as_ac_Header'}'` 19467 { echo "$as_me:$LINENO: result: $ac_res" >&5 19468echo "${ECHO_T}$ac_res" >&6; } 19469else 19470 # Is the header compilable? 19471{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19473cat >conftest.$ac_ext <<_ACEOF 19474/* confdefs.h. */ 19475_ACEOF 19476cat confdefs.h >>conftest.$ac_ext 19477cat >>conftest.$ac_ext <<_ACEOF 19478/* end confdefs.h. */ 19479$ac_includes_default 19480@%:@include <$ac_header> 19481_ACEOF 19482rm -f conftest.$ac_objext 19483if { (ac_try="$ac_compile" 19484case "(($ac_try" in 19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19486 *) ac_try_echo=$ac_try;; 19487esac 19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19489 (eval "$ac_compile") 2>conftest.er1 19490 ac_status=$? 19491 grep -v '^ *+' conftest.er1 >conftest.err 19492 rm -f conftest.er1 19493 cat conftest.err >&5 19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19495 (exit $ac_status); } && { 19496 test -z "$ac_c_werror_flag" || 19497 test ! -s conftest.err 19498 } && test -s conftest.$ac_objext; then 19499 ac_header_compiler=yes 19500else 19501 echo "$as_me: failed program was:" >&5 19502sed 's/^/| /' conftest.$ac_ext >&5 19503 19504 ac_header_compiler=no 19505fi 19506 19507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19508{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19509echo "${ECHO_T}$ac_header_compiler" >&6; } 19510 19511# Is the header present? 19512{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19514cat >conftest.$ac_ext <<_ACEOF 19515/* confdefs.h. */ 19516_ACEOF 19517cat confdefs.h >>conftest.$ac_ext 19518cat >>conftest.$ac_ext <<_ACEOF 19519/* end confdefs.h. */ 19520@%:@include <$ac_header> 19521_ACEOF 19522if { (ac_try="$ac_cpp conftest.$ac_ext" 19523case "(($ac_try" in 19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19525 *) ac_try_echo=$ac_try;; 19526esac 19527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19529 ac_status=$? 19530 grep -v '^ *+' conftest.er1 >conftest.err 19531 rm -f conftest.er1 19532 cat conftest.err >&5 19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19534 (exit $ac_status); } >/dev/null && { 19535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19536 test ! -s conftest.err 19537 }; then 19538 ac_header_preproc=yes 19539else 19540 echo "$as_me: failed program was:" >&5 19541sed 's/^/| /' conftest.$ac_ext >&5 19542 19543 ac_header_preproc=no 19544fi 19545 19546rm -f conftest.err conftest.$ac_ext 19547{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19548echo "${ECHO_T}$ac_header_preproc" >&6; } 19549 19550# So? What about this header? 19551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19552 yes:no: ) 19553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19557 ac_header_preproc=yes 19558 ;; 19559 no:yes:* ) 19560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19572 ( cat <<\_ASBOX 19573@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 19574@%:@@%:@ Report this to http://sourceforge.net/tracker/?group_id=8903&atid=108903 @%:@@%:@ 19575@%:@@%:@ ------------------------------------------------------------------------ @%:@@%:@ 19576_ASBOX 19577 ) | sed "s/^/$as_me: WARNING: /" >&2 19578 ;; 19579esac 19580{ echo "$as_me:$LINENO: checking for $ac_header" >&5 19581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19583 echo $ECHO_N "(cached) $ECHO_C" >&6 19584else 19585 eval "$as_ac_Header=\$ac_header_preproc" 19586fi 19587ac_res=`eval echo '${'$as_ac_Header'}'` 19588 { echo "$as_me:$LINENO: result: $ac_res" >&5 19589echo "${ECHO_T}$ac_res" >&6; } 19590 19591fi 19592if test `eval echo '${'$as_ac_Header'}'` = yes; then 19593 cat >>confdefs.h <<_ACEOF 19594@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19595_ACEOF 19596 19597fi 19598 19599done 19600 19601 19602# Checks for typedefs, structures, and compiler characteristics. 19603{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19604echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 19605if test "${ac_cv_c_const+set}" = set; then 19606 echo $ECHO_N "(cached) $ECHO_C" >&6 19607else 19608 cat >conftest.$ac_ext <<_ACEOF 19609/* confdefs.h. */ 19610_ACEOF 19611cat confdefs.h >>conftest.$ac_ext 19612cat >>conftest.$ac_ext <<_ACEOF 19613/* end confdefs.h. */ 19614 19615int 19616main () 19617{ 19618/* FIXME: Include the comments suggested by Paul. */ 19619#ifndef __cplusplus 19620 /* Ultrix mips cc rejects this. */ 19621 typedef int charset[2]; 19622 const charset cs; 19623 /* SunOS 4.1.1 cc rejects this. */ 19624 char const *const *pcpcc; 19625 char **ppc; 19626 /* NEC SVR4.0.2 mips cc rejects this. */ 19627 struct point {int x, y;}; 19628 static struct point const zero = {0,0}; 19629 /* AIX XL C 1.02.0.0 rejects this. 19630 It does not let you subtract one const X* pointer from another in 19631 an arm of an if-expression whose if-part is not a constant 19632 expression */ 19633 const char *g = "string"; 19634 pcpcc = &g + (g ? g-g : 0); 19635 /* HPUX 7.0 cc rejects these. */ 19636 ++pcpcc; 19637 ppc = (char**) pcpcc; 19638 pcpcc = (char const *const *) ppc; 19639 { /* SCO 3.2v4 cc rejects this. */ 19640 char *t; 19641 char const *s = 0 ? (char *) 0 : (char const *) 0; 19642 19643 *t++ = 0; 19644 if (s) return 0; 19645 } 19646 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19647 int x[] = {25, 17}; 19648 const int *foo = &x[0]; 19649 ++foo; 19650 } 19651 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19652 typedef const int *iptr; 19653 iptr p = 0; 19654 ++p; 19655 } 19656 { /* AIX XL C 1.02.0.0 rejects this saying 19657 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19658 struct s { int j; const int *ap[3]; }; 19659 struct s *b; b->j = 5; 19660 } 19661 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19662 const int foo = 10; 19663 if (!foo) return 0; 19664 } 19665 return !cs[0] && !zero.x; 19666#endif 19667 19668 ; 19669 return 0; 19670} 19671_ACEOF 19672rm -f conftest.$ac_objext 19673if { (ac_try="$ac_compile" 19674case "(($ac_try" in 19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19676 *) ac_try_echo=$ac_try;; 19677esac 19678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19679 (eval "$ac_compile") 2>conftest.er1 19680 ac_status=$? 19681 grep -v '^ *+' conftest.er1 >conftest.err 19682 rm -f conftest.er1 19683 cat conftest.err >&5 19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19685 (exit $ac_status); } && { 19686 test -z "$ac_c_werror_flag" || 19687 test ! -s conftest.err 19688 } && test -s conftest.$ac_objext; then 19689 ac_cv_c_const=yes 19690else 19691 echo "$as_me: failed program was:" >&5 19692sed 's/^/| /' conftest.$ac_ext >&5 19693 19694 ac_cv_c_const=no 19695fi 19696 19697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19698fi 19699{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19700echo "${ECHO_T}$ac_cv_c_const" >&6; } 19701if test $ac_cv_c_const = no; then 19702 19703cat >>confdefs.h <<\_ACEOF 19704@%:@define const 19705_ACEOF 19706 19707fi 19708 19709{ echo "$as_me:$LINENO: checking for size_t" >&5 19710echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 19711if test "${ac_cv_type_size_t+set}" = set; then 19712 echo $ECHO_N "(cached) $ECHO_C" >&6 19713else 19714 cat >conftest.$ac_ext <<_ACEOF 19715/* confdefs.h. */ 19716_ACEOF 19717cat confdefs.h >>conftest.$ac_ext 19718cat >>conftest.$ac_ext <<_ACEOF 19719/* end confdefs.h. */ 19720$ac_includes_default 19721typedef size_t ac__type_new_; 19722int 19723main () 19724{ 19725if ((ac__type_new_ *) 0) 19726 return 0; 19727if (sizeof (ac__type_new_)) 19728 return 0; 19729 ; 19730 return 0; 19731} 19732_ACEOF 19733rm -f conftest.$ac_objext 19734if { (ac_try="$ac_compile" 19735case "(($ac_try" in 19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19737 *) ac_try_echo=$ac_try;; 19738esac 19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19740 (eval "$ac_compile") 2>conftest.er1 19741 ac_status=$? 19742 grep -v '^ *+' conftest.er1 >conftest.err 19743 rm -f conftest.er1 19744 cat conftest.err >&5 19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19746 (exit $ac_status); } && { 19747 test -z "$ac_c_werror_flag" || 19748 test ! -s conftest.err 19749 } && test -s conftest.$ac_objext; then 19750 ac_cv_type_size_t=yes 19751else 19752 echo "$as_me: failed program was:" >&5 19753sed 's/^/| /' conftest.$ac_ext >&5 19754 19755 ac_cv_type_size_t=no 19756fi 19757 19758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19759fi 19760{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19761echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 19762if test $ac_cv_type_size_t = yes; then 19763 : 19764else 19765 19766cat >>confdefs.h <<_ACEOF 19767@%:@define size_t unsigned int 19768_ACEOF 19769 19770fi 19771 19772{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 19773echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 19774if test "${ac_cv_struct_tm+set}" = set; then 19775 echo $ECHO_N "(cached) $ECHO_C" >&6 19776else 19777 cat >conftest.$ac_ext <<_ACEOF 19778/* confdefs.h. */ 19779_ACEOF 19780cat confdefs.h >>conftest.$ac_ext 19781cat >>conftest.$ac_ext <<_ACEOF 19782/* end confdefs.h. */ 19783#include <sys/types.h> 19784#include <time.h> 19785 19786int 19787main () 19788{ 19789struct tm tm; 19790 int *p = &tm.tm_sec; 19791 return !p; 19792 ; 19793 return 0; 19794} 19795_ACEOF 19796rm -f conftest.$ac_objext 19797if { (ac_try="$ac_compile" 19798case "(($ac_try" in 19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19800 *) ac_try_echo=$ac_try;; 19801esac 19802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19803 (eval "$ac_compile") 2>conftest.er1 19804 ac_status=$? 19805 grep -v '^ *+' conftest.er1 >conftest.err 19806 rm -f conftest.er1 19807 cat conftest.err >&5 19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19809 (exit $ac_status); } && { 19810 test -z "$ac_c_werror_flag" || 19811 test ! -s conftest.err 19812 } && test -s conftest.$ac_objext; then 19813 ac_cv_struct_tm=time.h 19814else 19815 echo "$as_me: failed program was:" >&5 19816sed 's/^/| /' conftest.$ac_ext >&5 19817 19818 ac_cv_struct_tm=sys/time.h 19819fi 19820 19821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19822fi 19823{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 19824echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 19825if test $ac_cv_struct_tm = sys/time.h; then 19826 19827cat >>confdefs.h <<\_ACEOF 19828@%:@define TM_IN_SYS_TIME 1 19829_ACEOF 19830 19831fi 19832 19833{ echo "$as_me:$LINENO: checking for working volatile" >&5 19834echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } 19835if test "${ac_cv_c_volatile+set}" = set; then 19836 echo $ECHO_N "(cached) $ECHO_C" >&6 19837else 19838 cat >conftest.$ac_ext <<_ACEOF 19839/* confdefs.h. */ 19840_ACEOF 19841cat confdefs.h >>conftest.$ac_ext 19842cat >>conftest.$ac_ext <<_ACEOF 19843/* end confdefs.h. */ 19844 19845int 19846main () 19847{ 19848 19849volatile int x; 19850int * volatile y = (int *) 0; 19851return !x && !y; 19852 ; 19853 return 0; 19854} 19855_ACEOF 19856rm -f conftest.$ac_objext 19857if { (ac_try="$ac_compile" 19858case "(($ac_try" in 19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19860 *) ac_try_echo=$ac_try;; 19861esac 19862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19863 (eval "$ac_compile") 2>conftest.er1 19864 ac_status=$? 19865 grep -v '^ *+' conftest.er1 >conftest.err 19866 rm -f conftest.er1 19867 cat conftest.err >&5 19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19869 (exit $ac_status); } && { 19870 test -z "$ac_c_werror_flag" || 19871 test ! -s conftest.err 19872 } && test -s conftest.$ac_objext; then 19873 ac_cv_c_volatile=yes 19874else 19875 echo "$as_me: failed program was:" >&5 19876sed 's/^/| /' conftest.$ac_ext >&5 19877 19878 ac_cv_c_volatile=no 19879fi 19880 19881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19882fi 19883{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 19884echo "${ECHO_T}$ac_cv_c_volatile" >&6; } 19885if test $ac_cv_c_volatile = no; then 19886 19887cat >>confdefs.h <<\_ACEOF 19888@%:@define volatile 19889_ACEOF 19890 19891fi 19892 19893{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 19894echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 19895if test "${ac_cv_type_ptrdiff_t+set}" = set; then 19896 echo $ECHO_N "(cached) $ECHO_C" >&6 19897else 19898 cat >conftest.$ac_ext <<_ACEOF 19899/* confdefs.h. */ 19900_ACEOF 19901cat confdefs.h >>conftest.$ac_ext 19902cat >>conftest.$ac_ext <<_ACEOF 19903/* end confdefs.h. */ 19904$ac_includes_default 19905typedef ptrdiff_t ac__type_new_; 19906int 19907main () 19908{ 19909if ((ac__type_new_ *) 0) 19910 return 0; 19911if (sizeof (ac__type_new_)) 19912 return 0; 19913 ; 19914 return 0; 19915} 19916_ACEOF 19917rm -f conftest.$ac_objext 19918if { (ac_try="$ac_compile" 19919case "(($ac_try" in 19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19921 *) ac_try_echo=$ac_try;; 19922esac 19923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19924 (eval "$ac_compile") 2>conftest.er1 19925 ac_status=$? 19926 grep -v '^ *+' conftest.er1 >conftest.err 19927 rm -f conftest.er1 19928 cat conftest.err >&5 19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19930 (exit $ac_status); } && { 19931 test -z "$ac_c_werror_flag" || 19932 test ! -s conftest.err 19933 } && test -s conftest.$ac_objext; then 19934 ac_cv_type_ptrdiff_t=yes 19935else 19936 echo "$as_me: failed program was:" >&5 19937sed 's/^/| /' conftest.$ac_ext >&5 19938 19939 ac_cv_type_ptrdiff_t=no 19940fi 19941 19942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19943fi 19944{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 19945echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 19946if test $ac_cv_type_ptrdiff_t = yes; then 19947 19948cat >>confdefs.h <<_ACEOF 19949@%:@define HAVE_PTRDIFF_T 1 19950_ACEOF 19951 19952 19953fi 19954 19955 19956# Checks for library functions. 19957{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 19958echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 19959if test "${ac_cv_type_signal+set}" = set; then 19960 echo $ECHO_N "(cached) $ECHO_C" >&6 19961else 19962 cat >conftest.$ac_ext <<_ACEOF 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968#include <sys/types.h> 19969#include <signal.h> 19970 19971int 19972main () 19973{ 19974return *(signal (0, 0)) (0) == 1; 19975 ; 19976 return 0; 19977} 19978_ACEOF 19979rm -f conftest.$ac_objext 19980if { (ac_try="$ac_compile" 19981case "(($ac_try" in 19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19983 *) ac_try_echo=$ac_try;; 19984esac 19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19986 (eval "$ac_compile") 2>conftest.er1 19987 ac_status=$? 19988 grep -v '^ *+' conftest.er1 >conftest.err 19989 rm -f conftest.er1 19990 cat conftest.err >&5 19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19992 (exit $ac_status); } && { 19993 test -z "$ac_c_werror_flag" || 19994 test ! -s conftest.err 19995 } && test -s conftest.$ac_objext; then 19996 ac_cv_type_signal=int 19997else 19998 echo "$as_me: failed program was:" >&5 19999sed 's/^/| /' conftest.$ac_ext >&5 20000 20001 ac_cv_type_signal=void 20002fi 20003 20004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20005fi 20006{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 20007echo "${ECHO_T}$ac_cv_type_signal" >&6; } 20008 20009cat >>confdefs.h <<_ACEOF 20010@%:@define RETSIGTYPE $ac_cv_type_signal 20011_ACEOF 20012 20013 20014{ echo "$as_me:$LINENO: checking for working strcoll" >&5 20015echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; } 20016if test "${ac_cv_func_strcoll_works+set}" = set; then 20017 echo $ECHO_N "(cached) $ECHO_C" >&6 20018else 20019 if test "$cross_compiling" = yes; then 20020 ac_cv_func_strcoll_works=no 20021else 20022 cat >conftest.$ac_ext <<_ACEOF 20023/* confdefs.h. */ 20024_ACEOF 20025cat confdefs.h >>conftest.$ac_ext 20026cat >>conftest.$ac_ext <<_ACEOF 20027/* end confdefs.h. */ 20028$ac_includes_default 20029int 20030main () 20031{ 20032return (strcoll ("abc", "def") >= 0 || 20033 strcoll ("ABC", "DEF") >= 0 || 20034 strcoll ("123", "456") >= 0) 20035 ; 20036 return 0; 20037} 20038_ACEOF 20039rm -f conftest$ac_exeext 20040if { (ac_try="$ac_link" 20041case "(($ac_try" in 20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20043 *) ac_try_echo=$ac_try;; 20044esac 20045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20046 (eval "$ac_link") 2>&5 20047 ac_status=$? 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20050 { (case "(($ac_try" in 20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20052 *) ac_try_echo=$ac_try;; 20053esac 20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20055 (eval "$ac_try") 2>&5 20056 ac_status=$? 20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20058 (exit $ac_status); }; }; then 20059 ac_cv_func_strcoll_works=yes 20060else 20061 echo "$as_me: program exited with status $ac_status" >&5 20062echo "$as_me: failed program was:" >&5 20063sed 's/^/| /' conftest.$ac_ext >&5 20064 20065( exit $ac_status ) 20066ac_cv_func_strcoll_works=no 20067fi 20068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20069fi 20070 20071 20072fi 20073{ echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 20074echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; } 20075if test $ac_cv_func_strcoll_works = yes; then 20076 20077cat >>confdefs.h <<\_ACEOF 20078@%:@define HAVE_STRCOLL 1 20079_ACEOF 20080 20081fi 20082 20083 20084for ac_func in strftime 20085do 20086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20087{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20090 echo $ECHO_N "(cached) $ECHO_C" >&6 20091else 20092 cat >conftest.$ac_ext <<_ACEOF 20093/* confdefs.h. */ 20094_ACEOF 20095cat confdefs.h >>conftest.$ac_ext 20096cat >>conftest.$ac_ext <<_ACEOF 20097/* end confdefs.h. */ 20098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20100#define $ac_func innocuous_$ac_func 20101 20102/* System header to define __stub macros and hopefully few prototypes, 20103 which can conflict with char $ac_func (); below. 20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20105 <limits.h> exists even on freestanding compilers. */ 20106 20107#ifdef __STDC__ 20108# include <limits.h> 20109#else 20110# include <assert.h> 20111#endif 20112 20113#undef $ac_func 20114 20115/* Override any GCC internal prototype to avoid an error. 20116 Use char because int might match the return type of a GCC 20117 builtin and then its argument prototype would still apply. */ 20118#ifdef __cplusplus 20119extern "C" 20120#endif 20121char $ac_func (); 20122/* The GNU C library defines this for functions which it implements 20123 to always fail with ENOSYS. Some functions are actually named 20124 something starting with __ and the normal name is an alias. */ 20125#if defined __stub_$ac_func || defined __stub___$ac_func 20126choke me 20127#endif 20128 20129int 20130main () 20131{ 20132return $ac_func (); 20133 ; 20134 return 0; 20135} 20136_ACEOF 20137rm -f conftest.$ac_objext conftest$ac_exeext 20138if { (ac_try="$ac_link" 20139case "(($ac_try" in 20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20141 *) ac_try_echo=$ac_try;; 20142esac 20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20144 (eval "$ac_link") 2>conftest.er1 20145 ac_status=$? 20146 grep -v '^ *+' conftest.er1 >conftest.err 20147 rm -f conftest.er1 20148 cat conftest.err >&5 20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20150 (exit $ac_status); } && { 20151 test -z "$ac_c_werror_flag" || 20152 test ! -s conftest.err 20153 } && test -s conftest$ac_exeext && 20154 $as_test_x conftest$ac_exeext; then 20155 eval "$as_ac_var=yes" 20156else 20157 echo "$as_me: failed program was:" >&5 20158sed 's/^/| /' conftest.$ac_ext >&5 20159 20160 eval "$as_ac_var=no" 20161fi 20162 20163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20164 conftest$ac_exeext conftest.$ac_ext 20165fi 20166ac_res=`eval echo '${'$as_ac_var'}'` 20167 { echo "$as_me:$LINENO: result: $ac_res" >&5 20168echo "${ECHO_T}$ac_res" >&6; } 20169if test `eval echo '${'$as_ac_var'}'` = yes; then 20170 cat >>confdefs.h <<_ACEOF 20171@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20172_ACEOF 20173 20174else 20175 # strftime is in -lintl on SCO UNIX. 20176{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 20177echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } 20178if test "${ac_cv_lib_intl_strftime+set}" = set; then 20179 echo $ECHO_N "(cached) $ECHO_C" >&6 20180else 20181 ac_check_lib_save_LIBS=$LIBS 20182LIBS="-lintl $LIBS" 20183cat >conftest.$ac_ext <<_ACEOF 20184/* confdefs.h. */ 20185_ACEOF 20186cat confdefs.h >>conftest.$ac_ext 20187cat >>conftest.$ac_ext <<_ACEOF 20188/* end confdefs.h. */ 20189 20190/* Override any GCC internal prototype to avoid an error. 20191 Use char because int might match the return type of a GCC 20192 builtin and then its argument prototype would still apply. */ 20193#ifdef __cplusplus 20194extern "C" 20195#endif 20196char strftime (); 20197int 20198main () 20199{ 20200return strftime (); 20201 ; 20202 return 0; 20203} 20204_ACEOF 20205rm -f conftest.$ac_objext conftest$ac_exeext 20206if { (ac_try="$ac_link" 20207case "(($ac_try" in 20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20209 *) ac_try_echo=$ac_try;; 20210esac 20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20212 (eval "$ac_link") 2>conftest.er1 20213 ac_status=$? 20214 grep -v '^ *+' conftest.er1 >conftest.err 20215 rm -f conftest.er1 20216 cat conftest.err >&5 20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20218 (exit $ac_status); } && { 20219 test -z "$ac_c_werror_flag" || 20220 test ! -s conftest.err 20221 } && test -s conftest$ac_exeext && 20222 $as_test_x conftest$ac_exeext; then 20223 ac_cv_lib_intl_strftime=yes 20224else 20225 echo "$as_me: failed program was:" >&5 20226sed 's/^/| /' conftest.$ac_ext >&5 20227 20228 ac_cv_lib_intl_strftime=no 20229fi 20230 20231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20232 conftest$ac_exeext conftest.$ac_ext 20233LIBS=$ac_check_lib_save_LIBS 20234fi 20235{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 20236echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } 20237if test $ac_cv_lib_intl_strftime = yes; then 20238 cat >>confdefs.h <<\_ACEOF 20239@%:@define HAVE_STRFTIME 1 20240_ACEOF 20241 20242LIBS="-lintl $LIBS" 20243fi 20244 20245fi 20246done 20247 20248{ echo "$as_me:$LINENO: checking for working strtod" >&5 20249echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } 20250if test "${ac_cv_func_strtod+set}" = set; then 20251 echo $ECHO_N "(cached) $ECHO_C" >&6 20252else 20253 if test "$cross_compiling" = yes; then 20254 ac_cv_func_strtod=no 20255else 20256 cat >conftest.$ac_ext <<_ACEOF 20257/* confdefs.h. */ 20258_ACEOF 20259cat confdefs.h >>conftest.$ac_ext 20260cat >>conftest.$ac_ext <<_ACEOF 20261/* end confdefs.h. */ 20262 20263$ac_includes_default 20264#ifndef strtod 20265double strtod (); 20266#endif 20267int 20268main() 20269{ 20270 { 20271 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 20272 char *string = " +69"; 20273 char *term; 20274 double value; 20275 value = strtod (string, &term); 20276 if (value != 69 || term != (string + 4)) 20277 return 1; 20278 } 20279 20280 { 20281 /* Under Solaris 2.4, strtod returns the wrong value for the 20282 terminating character under some conditions. */ 20283 char *string = "NaN"; 20284 char *term; 20285 strtod (string, &term); 20286 if (term != string && *(term - 1) == 0) 20287 return 1; 20288 } 20289 return 0; 20290} 20291 20292_ACEOF 20293rm -f conftest$ac_exeext 20294if { (ac_try="$ac_link" 20295case "(($ac_try" in 20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20297 *) ac_try_echo=$ac_try;; 20298esac 20299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20300 (eval "$ac_link") 2>&5 20301 ac_status=$? 20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20304 { (case "(($ac_try" in 20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20306 *) ac_try_echo=$ac_try;; 20307esac 20308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20309 (eval "$ac_try") 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); }; }; then 20313 ac_cv_func_strtod=yes 20314else 20315 echo "$as_me: program exited with status $ac_status" >&5 20316echo "$as_me: failed program was:" >&5 20317sed 's/^/| /' conftest.$ac_ext >&5 20318 20319( exit $ac_status ) 20320ac_cv_func_strtod=no 20321fi 20322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20323fi 20324 20325 20326fi 20327{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 20328echo "${ECHO_T}$ac_cv_func_strtod" >&6; } 20329if test $ac_cv_func_strtod = no; then 20330 case " $LIB@&t@OBJS " in 20331 *" strtod.$ac_objext "* ) ;; 20332 *) LIB@&t@OBJS="$LIB@&t@OBJS strtod.$ac_objext" 20333 ;; 20334esac 20335 20336{ echo "$as_me:$LINENO: checking for pow" >&5 20337echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 20338if test "${ac_cv_func_pow+set}" = set; then 20339 echo $ECHO_N "(cached) $ECHO_C" >&6 20340else 20341 cat >conftest.$ac_ext <<_ACEOF 20342/* confdefs.h. */ 20343_ACEOF 20344cat confdefs.h >>conftest.$ac_ext 20345cat >>conftest.$ac_ext <<_ACEOF 20346/* end confdefs.h. */ 20347/* Define pow to an innocuous variant, in case <limits.h> declares pow. 20348 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20349#define pow innocuous_pow 20350 20351/* System header to define __stub macros and hopefully few prototypes, 20352 which can conflict with char pow (); below. 20353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20354 <limits.h> exists even on freestanding compilers. */ 20355 20356#ifdef __STDC__ 20357# include <limits.h> 20358#else 20359# include <assert.h> 20360#endif 20361 20362#undef pow 20363 20364/* Override any GCC internal prototype to avoid an error. 20365 Use char because int might match the return type of a GCC 20366 builtin and then its argument prototype would still apply. */ 20367#ifdef __cplusplus 20368extern "C" 20369#endif 20370char pow (); 20371/* The GNU C library defines this for functions which it implements 20372 to always fail with ENOSYS. Some functions are actually named 20373 something starting with __ and the normal name is an alias. */ 20374#if defined __stub_pow || defined __stub___pow 20375choke me 20376#endif 20377 20378int 20379main () 20380{ 20381return pow (); 20382 ; 20383 return 0; 20384} 20385_ACEOF 20386rm -f conftest.$ac_objext conftest$ac_exeext 20387if { (ac_try="$ac_link" 20388case "(($ac_try" in 20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20390 *) ac_try_echo=$ac_try;; 20391esac 20392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20393 (eval "$ac_link") 2>conftest.er1 20394 ac_status=$? 20395 grep -v '^ *+' conftest.er1 >conftest.err 20396 rm -f conftest.er1 20397 cat conftest.err >&5 20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20399 (exit $ac_status); } && { 20400 test -z "$ac_c_werror_flag" || 20401 test ! -s conftest.err 20402 } && test -s conftest$ac_exeext && 20403 $as_test_x conftest$ac_exeext; then 20404 ac_cv_func_pow=yes 20405else 20406 echo "$as_me: failed program was:" >&5 20407sed 's/^/| /' conftest.$ac_ext >&5 20408 20409 ac_cv_func_pow=no 20410fi 20411 20412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20413 conftest$ac_exeext conftest.$ac_ext 20414fi 20415{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 20416echo "${ECHO_T}$ac_cv_func_pow" >&6; } 20417 20418if test $ac_cv_func_pow = no; then 20419 { echo "$as_me:$LINENO: checking for pow in -lm" >&5 20420echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 20421if test "${ac_cv_lib_m_pow+set}" = set; then 20422 echo $ECHO_N "(cached) $ECHO_C" >&6 20423else 20424 ac_check_lib_save_LIBS=$LIBS 20425LIBS="-lm $LIBS" 20426cat >conftest.$ac_ext <<_ACEOF 20427/* confdefs.h. */ 20428_ACEOF 20429cat confdefs.h >>conftest.$ac_ext 20430cat >>conftest.$ac_ext <<_ACEOF 20431/* end confdefs.h. */ 20432 20433/* Override any GCC internal prototype to avoid an error. 20434 Use char because int might match the return type of a GCC 20435 builtin and then its argument prototype would still apply. */ 20436#ifdef __cplusplus 20437extern "C" 20438#endif 20439char pow (); 20440int 20441main () 20442{ 20443return pow (); 20444 ; 20445 return 0; 20446} 20447_ACEOF 20448rm -f conftest.$ac_objext conftest$ac_exeext 20449if { (ac_try="$ac_link" 20450case "(($ac_try" in 20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20452 *) ac_try_echo=$ac_try;; 20453esac 20454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20455 (eval "$ac_link") 2>conftest.er1 20456 ac_status=$? 20457 grep -v '^ *+' conftest.er1 >conftest.err 20458 rm -f conftest.er1 20459 cat conftest.err >&5 20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20461 (exit $ac_status); } && { 20462 test -z "$ac_c_werror_flag" || 20463 test ! -s conftest.err 20464 } && test -s conftest$ac_exeext && 20465 $as_test_x conftest$ac_exeext; then 20466 ac_cv_lib_m_pow=yes 20467else 20468 echo "$as_me: failed program was:" >&5 20469sed 's/^/| /' conftest.$ac_ext >&5 20470 20471 ac_cv_lib_m_pow=no 20472fi 20473 20474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20475 conftest$ac_exeext conftest.$ac_ext 20476LIBS=$ac_check_lib_save_LIBS 20477fi 20478{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 20479echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 20480if test $ac_cv_lib_m_pow = yes; then 20481 POW_LIB=-lm 20482else 20483 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 20484echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 20485fi 20486 20487fi 20488 20489fi 20490 20491 20492for ac_func in vprintf 20493do 20494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20495{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20498 echo $ECHO_N "(cached) $ECHO_C" >&6 20499else 20500 cat >conftest.$ac_ext <<_ACEOF 20501/* confdefs.h. */ 20502_ACEOF 20503cat confdefs.h >>conftest.$ac_ext 20504cat >>conftest.$ac_ext <<_ACEOF 20505/* end confdefs.h. */ 20506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20507 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20508#define $ac_func innocuous_$ac_func 20509 20510/* System header to define __stub macros and hopefully few prototypes, 20511 which can conflict with char $ac_func (); below. 20512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20513 <limits.h> exists even on freestanding compilers. */ 20514 20515#ifdef __STDC__ 20516# include <limits.h> 20517#else 20518# include <assert.h> 20519#endif 20520 20521#undef $ac_func 20522 20523/* Override any GCC internal prototype to avoid an error. 20524 Use char because int might match the return type of a GCC 20525 builtin and then its argument prototype would still apply. */ 20526#ifdef __cplusplus 20527extern "C" 20528#endif 20529char $ac_func (); 20530/* The GNU C library defines this for functions which it implements 20531 to always fail with ENOSYS. Some functions are actually named 20532 something starting with __ and the normal name is an alias. */ 20533#if defined __stub_$ac_func || defined __stub___$ac_func 20534choke me 20535#endif 20536 20537int 20538main () 20539{ 20540return $ac_func (); 20541 ; 20542 return 0; 20543} 20544_ACEOF 20545rm -f conftest.$ac_objext conftest$ac_exeext 20546if { (ac_try="$ac_link" 20547case "(($ac_try" in 20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20549 *) ac_try_echo=$ac_try;; 20550esac 20551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20552 (eval "$ac_link") 2>conftest.er1 20553 ac_status=$? 20554 grep -v '^ *+' conftest.er1 >conftest.err 20555 rm -f conftest.er1 20556 cat conftest.err >&5 20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20558 (exit $ac_status); } && { 20559 test -z "$ac_c_werror_flag" || 20560 test ! -s conftest.err 20561 } && test -s conftest$ac_exeext && 20562 $as_test_x conftest$ac_exeext; then 20563 eval "$as_ac_var=yes" 20564else 20565 echo "$as_me: failed program was:" >&5 20566sed 's/^/| /' conftest.$ac_ext >&5 20567 20568 eval "$as_ac_var=no" 20569fi 20570 20571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20572 conftest$ac_exeext conftest.$ac_ext 20573fi 20574ac_res=`eval echo '${'$as_ac_var'}'` 20575 { echo "$as_me:$LINENO: result: $ac_res" >&5 20576echo "${ECHO_T}$ac_res" >&6; } 20577if test `eval echo '${'$as_ac_var'}'` = yes; then 20578 cat >>confdefs.h <<_ACEOF 20579@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20580_ACEOF 20581 20582{ echo "$as_me:$LINENO: checking for _doprnt" >&5 20583echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 20584if test "${ac_cv_func__doprnt+set}" = set; then 20585 echo $ECHO_N "(cached) $ECHO_C" >&6 20586else 20587 cat >conftest.$ac_ext <<_ACEOF 20588/* confdefs.h. */ 20589_ACEOF 20590cat confdefs.h >>conftest.$ac_ext 20591cat >>conftest.$ac_ext <<_ACEOF 20592/* end confdefs.h. */ 20593/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 20594 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20595#define _doprnt innocuous__doprnt 20596 20597/* System header to define __stub macros and hopefully few prototypes, 20598 which can conflict with char _doprnt (); below. 20599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20600 <limits.h> exists even on freestanding compilers. */ 20601 20602#ifdef __STDC__ 20603# include <limits.h> 20604#else 20605# include <assert.h> 20606#endif 20607 20608#undef _doprnt 20609 20610/* Override any GCC internal prototype to avoid an error. 20611 Use char because int might match the return type of a GCC 20612 builtin and then its argument prototype would still apply. */ 20613#ifdef __cplusplus 20614extern "C" 20615#endif 20616char _doprnt (); 20617/* The GNU C library defines this for functions which it implements 20618 to always fail with ENOSYS. Some functions are actually named 20619 something starting with __ and the normal name is an alias. */ 20620#if defined __stub__doprnt || defined __stub____doprnt 20621choke me 20622#endif 20623 20624int 20625main () 20626{ 20627return _doprnt (); 20628 ; 20629 return 0; 20630} 20631_ACEOF 20632rm -f conftest.$ac_objext conftest$ac_exeext 20633if { (ac_try="$ac_link" 20634case "(($ac_try" in 20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20636 *) ac_try_echo=$ac_try;; 20637esac 20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20639 (eval "$ac_link") 2>conftest.er1 20640 ac_status=$? 20641 grep -v '^ *+' conftest.er1 >conftest.err 20642 rm -f conftest.er1 20643 cat conftest.err >&5 20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20645 (exit $ac_status); } && { 20646 test -z "$ac_c_werror_flag" || 20647 test ! -s conftest.err 20648 } && test -s conftest$ac_exeext && 20649 $as_test_x conftest$ac_exeext; then 20650 ac_cv_func__doprnt=yes 20651else 20652 echo "$as_me: failed program was:" >&5 20653sed 's/^/| /' conftest.$ac_ext >&5 20654 20655 ac_cv_func__doprnt=no 20656fi 20657 20658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20659 conftest$ac_exeext conftest.$ac_ext 20660fi 20661{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 20662echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 20663if test $ac_cv_func__doprnt = yes; then 20664 20665cat >>confdefs.h <<\_ACEOF 20666@%:@define HAVE_DOPRNT 1 20667_ACEOF 20668 20669fi 20670 20671fi 20672done 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692for ac_func in floor isascii localeconv mblen memmove memset modf pow sqrt strcasecmp strchr strerror strncasecmp strrchr strstr strtol strtoul 20693do 20694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20695{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20697if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20698 echo $ECHO_N "(cached) $ECHO_C" >&6 20699else 20700 cat >conftest.$ac_ext <<_ACEOF 20701/* confdefs.h. */ 20702_ACEOF 20703cat confdefs.h >>conftest.$ac_ext 20704cat >>conftest.$ac_ext <<_ACEOF 20705/* end confdefs.h. */ 20706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20707 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20708#define $ac_func innocuous_$ac_func 20709 20710/* System header to define __stub macros and hopefully few prototypes, 20711 which can conflict with char $ac_func (); below. 20712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20713 <limits.h> exists even on freestanding compilers. */ 20714 20715#ifdef __STDC__ 20716# include <limits.h> 20717#else 20718# include <assert.h> 20719#endif 20720 20721#undef $ac_func 20722 20723/* Override any GCC internal prototype to avoid an error. 20724 Use char because int might match the return type of a GCC 20725 builtin and then its argument prototype would still apply. */ 20726#ifdef __cplusplus 20727extern "C" 20728#endif 20729char $ac_func (); 20730/* The GNU C library defines this for functions which it implements 20731 to always fail with ENOSYS. Some functions are actually named 20732 something starting with __ and the normal name is an alias. */ 20733#if defined __stub_$ac_func || defined __stub___$ac_func 20734choke me 20735#endif 20736 20737int 20738main () 20739{ 20740return $ac_func (); 20741 ; 20742 return 0; 20743} 20744_ACEOF 20745rm -f conftest.$ac_objext conftest$ac_exeext 20746if { (ac_try="$ac_link" 20747case "(($ac_try" in 20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20749 *) ac_try_echo=$ac_try;; 20750esac 20751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20752 (eval "$ac_link") 2>conftest.er1 20753 ac_status=$? 20754 grep -v '^ *+' conftest.er1 >conftest.err 20755 rm -f conftest.er1 20756 cat conftest.err >&5 20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20758 (exit $ac_status); } && { 20759 test -z "$ac_c_werror_flag" || 20760 test ! -s conftest.err 20761 } && test -s conftest$ac_exeext && 20762 $as_test_x conftest$ac_exeext; then 20763 eval "$as_ac_var=yes" 20764else 20765 echo "$as_me: failed program was:" >&5 20766sed 's/^/| /' conftest.$ac_ext >&5 20767 20768 eval "$as_ac_var=no" 20769fi 20770 20771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20772 conftest$ac_exeext conftest.$ac_ext 20773fi 20774ac_res=`eval echo '${'$as_ac_var'}'` 20775 { echo "$as_me:$LINENO: result: $ac_res" >&5 20776echo "${ECHO_T}$ac_res" >&6; } 20777if test `eval echo '${'$as_ac_var'}'` = yes; then 20778 cat >>confdefs.h <<_ACEOF 20779@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20780_ACEOF 20781 20782fi 20783done 20784 20785 20786# Versioning: 20787# Only change this if library is no longer 20788# ABI compatible with previous version 20789# (e.g. function declaration changed) 20790TALIB_LIBRARY_VERSION=0:0:0 20791 20792 20793 20794ac_config_files="$ac_config_files Makefile src/Makefile src/ta_abstract/Makefile src/ta_common/Makefile src/ta_func/Makefile src/tools/Makefile src/tools/gen_code/Makefile src/tools/ta_regtest/Makefile ta-lib-config ta-lib.spec ta-lib.dpkg" 20795 20796cat >confcache <<\_ACEOF 20797# This file is a shell script that caches the results of configure 20798# tests run on this system so they can be shared between configure 20799# scripts and configure runs, see configure's option --config-cache. 20800# It is not useful on other systems. If it contains results you don't 20801# want to keep, you may remove or edit it. 20802# 20803# config.status only pays attention to the cache file if you give it 20804# the --recheck option to rerun configure. 20805# 20806# `ac_cv_env_foo' variables (set or unset) will be overridden when 20807# loading this file, other *unset* `ac_cv_foo' will be assigned the 20808# following values. 20809 20810_ACEOF 20811 20812# The following way of writing the cache mishandles newlines in values, 20813# but we know of no workaround that is simple, portable, and efficient. 20814# So, we kill variables containing newlines. 20815# Ultrix sh set writes to stderr and can't be redirected directly, 20816# and sets the high bit in the cache file unless we assign to the vars. 20817( 20818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20819 eval ac_val=\$$ac_var 20820 case $ac_val in #( 20821 *${as_nl}*) 20822 case $ac_var in #( 20823 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20824echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20825 esac 20826 case $ac_var in #( 20827 _ | IFS | as_nl) ;; #( 20828 *) $as_unset $ac_var ;; 20829 esac ;; 20830 esac 20831 done 20832 20833 (set) 2>&1 | 20834 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20835 *${as_nl}ac_space=\ *) 20836 # `set' does not quote correctly, so add quotes (double-quote 20837 # substitution turns \\\\ into \\, and sed turns \\ into \). 20838 sed -n \ 20839 "s/'/'\\\\''/g; 20840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20841 ;; #( 20842 *) 20843 # `set' quotes correctly as required by POSIX, so do not add quotes. 20844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20845 ;; 20846 esac | 20847 sort 20848) | 20849 sed ' 20850 /^ac_cv_env_/b end 20851 t clear 20852 :clear 20853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20854 t end 20855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20856 :end' >>confcache 20857if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20858 if test -w "$cache_file"; then 20859 test "x$cache_file" != "x/dev/null" && 20860 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20861echo "$as_me: updating cache $cache_file" >&6;} 20862 cat confcache >$cache_file 20863 else 20864 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20865echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20866 fi 20867fi 20868rm -f confcache 20869 20870test "x$prefix" = xNONE && prefix=$ac_default_prefix 20871# Let make expand exec_prefix. 20872test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20873 20874DEFS=-DHAVE_CONFIG_H 20875 20876ac_libobjs= 20877ac_ltlibobjs= 20878for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 20879 # 1. Remove the extension, and $U if already installed. 20880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20881 ac_i=`echo "$ac_i" | sed "$ac_script"` 20882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20883 # will be set to the directory where LIBOBJS objects are built. 20884 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20885 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20886done 20887LIB@&t@OBJS=$ac_libobjs 20888 20889LTLIBOBJS=$ac_ltlibobjs 20890 20891 20892if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20893 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20894Usually this means the macro was only invoked conditionally." >&5 20895echo "$as_me: error: conditional \"AMDEP\" was never defined. 20896Usually this means the macro was only invoked conditionally." >&2;} 20897 { (exit 1); exit 1; }; } 20898fi 20899if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20900 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20901Usually this means the macro was only invoked conditionally." >&5 20902echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20903Usually this means the macro was only invoked conditionally." >&2;} 20904 { (exit 1); exit 1; }; } 20905fi 20906if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20907 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20908Usually this means the macro was only invoked conditionally." >&5 20909echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20910Usually this means the macro was only invoked conditionally." >&2;} 20911 { (exit 1); exit 1; }; } 20912fi 20913 20914: ${CONFIG_STATUS=./config.status} 20915ac_clean_files_save=$ac_clean_files 20916ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20917{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20918echo "$as_me: creating $CONFIG_STATUS" >&6;} 20919cat >$CONFIG_STATUS <<_ACEOF 20920#! $SHELL 20921# Generated by $as_me. 20922# Run this file to recreate the current configuration. 20923# Compiler output produced by configure, useful for debugging 20924# configure, is in config.log if it exists. 20925 20926debug=false 20927ac_cs_recheck=false 20928ac_cs_silent=false 20929SHELL=\${CONFIG_SHELL-$SHELL} 20930_ACEOF 20931 20932cat >>$CONFIG_STATUS <<\_ACEOF 20933## --------------------- ## 20934## M4sh Initialization. ## 20935## --------------------- ## 20936 20937# Be more Bourne compatible 20938DUALCASE=1; export DUALCASE # for MKS sh 20939if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20940 emulate sh 20941 NULLCMD=: 20942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20943 # is contrary to our usage. Disable this feature. 20944 alias -g '${1+"$@"}'='"$@"' 20945 setopt NO_GLOB_SUBST 20946else 20947 case `(set -o) 2>/dev/null` in 20948 *posix*) set -o posix ;; 20949esac 20950 20951fi 20952 20953 20954 20955 20956# PATH needs CR 20957# Avoid depending upon Character Ranges. 20958as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20959as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20960as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20961as_cr_digits='0123456789' 20962as_cr_alnum=$as_cr_Letters$as_cr_digits 20963 20964# The user is always right. 20965if test "${PATH_SEPARATOR+set}" != set; then 20966 echo "#! /bin/sh" >conf$$.sh 20967 echo "exit 0" >>conf$$.sh 20968 chmod +x conf$$.sh 20969 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20970 PATH_SEPARATOR=';' 20971 else 20972 PATH_SEPARATOR=: 20973 fi 20974 rm -f conf$$.sh 20975fi 20976 20977# Support unset when possible. 20978if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20979 as_unset=unset 20980else 20981 as_unset=false 20982fi 20983 20984 20985# IFS 20986# We need space, tab and new line, in precisely that order. Quoting is 20987# there to prevent editors from complaining about space-tab. 20988# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20989# splitting by setting IFS to empty value.) 20990as_nl=' 20991' 20992IFS=" "" $as_nl" 20993 20994# Find who we are. Look in the path if we contain no directory separator. 20995case $0 in 20996 *[\\/]* ) as_myself=$0 ;; 20997 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20998for as_dir in $PATH 20999do 21000 IFS=$as_save_IFS 21001 test -z "$as_dir" && as_dir=. 21002 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21003done 21004IFS=$as_save_IFS 21005 21006 ;; 21007esac 21008# We did not find ourselves, most probably we were run as `sh COMMAND' 21009# in which case we are not to be found in the path. 21010if test "x$as_myself" = x; then 21011 as_myself=$0 21012fi 21013if test ! -f "$as_myself"; then 21014 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21015 { (exit 1); exit 1; } 21016fi 21017 21018# Work around bugs in pre-3.0 UWIN ksh. 21019for as_var in ENV MAIL MAILPATH 21020do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21021done 21022PS1='$ ' 21023PS2='> ' 21024PS4='+ ' 21025 21026# NLS nuisances. 21027for as_var in \ 21028 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21029 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21030 LC_TELEPHONE LC_TIME 21031do 21032 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21033 eval $as_var=C; export $as_var 21034 else 21035 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21036 fi 21037done 21038 21039# Required to use basename. 21040if expr a : '\(a\)' >/dev/null 2>&1 && 21041 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21042 as_expr=expr 21043else 21044 as_expr=false 21045fi 21046 21047if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21048 as_basename=basename 21049else 21050 as_basename=false 21051fi 21052 21053 21054# Name of the executable. 21055as_me=`$as_basename -- "$0" || 21056$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21057 X"$0" : 'X\(//\)$' \| \ 21058 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21059echo X/"$0" | 21060 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21061 s//\1/ 21062 q 21063 } 21064 /^X\/\(\/\/\)$/{ 21065 s//\1/ 21066 q 21067 } 21068 /^X\/\(\/\).*/{ 21069 s//\1/ 21070 q 21071 } 21072 s/.*/./; q'` 21073 21074# CDPATH. 21075$as_unset CDPATH 21076 21077 21078 21079 as_lineno_1=$LINENO 21080 as_lineno_2=$LINENO 21081 test "x$as_lineno_1" != "x$as_lineno_2" && 21082 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21083 21084 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21085 # uniformly replaced by the line number. The first 'sed' inserts a 21086 # line-number line after each line using $LINENO; the second 'sed' 21087 # does the real work. The second script uses 'N' to pair each 21088 # line-number line with the line containing $LINENO, and appends 21089 # trailing '-' during substitution so that $LINENO is not a special 21090 # case at line end. 21091 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21092 # scripts with optimization help from Paolo Bonzini. Blame Lee 21093 # E. McMahon (1931-1989) for sed's syntax. :-) 21094 sed -n ' 21095 p 21096 /[$]LINENO/= 21097 ' <$as_myself | 21098 sed ' 21099 s/[$]LINENO.*/&-/ 21100 t lineno 21101 b 21102 :lineno 21103 N 21104 :loop 21105 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21106 t loop 21107 s/-\n.*// 21108 ' >$as_me.lineno && 21109 chmod +x "$as_me.lineno" || 21110 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21111 { (exit 1); exit 1; }; } 21112 21113 # Don't try to exec as it changes $[0], causing all sort of problems 21114 # (the dirname of $[0] is not the place where we might find the 21115 # original and so on. Autoconf is especially sensitive to this). 21116 . "./$as_me.lineno" 21117 # Exit status is that of the last command. 21118 exit 21119} 21120 21121 21122if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21123 as_dirname=dirname 21124else 21125 as_dirname=false 21126fi 21127 21128ECHO_C= ECHO_N= ECHO_T= 21129case `echo -n x` in 21130-n*) 21131 case `echo 'x\c'` in 21132 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21133 *) ECHO_C='\c';; 21134 esac;; 21135*) 21136 ECHO_N='-n';; 21137esac 21138 21139if expr a : '\(a\)' >/dev/null 2>&1 && 21140 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21141 as_expr=expr 21142else 21143 as_expr=false 21144fi 21145 21146rm -f conf$$ conf$$.exe conf$$.file 21147if test -d conf$$.dir; then 21148 rm -f conf$$.dir/conf$$.file 21149else 21150 rm -f conf$$.dir 21151 mkdir conf$$.dir 21152fi 21153echo >conf$$.file 21154if ln -s conf$$.file conf$$ 2>/dev/null; then 21155 as_ln_s='ln -s' 21156 # ... but there are two gotchas: 21157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21159 # In both cases, we have to default to `cp -p'. 21160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21161 as_ln_s='cp -p' 21162elif ln conf$$.file conf$$ 2>/dev/null; then 21163 as_ln_s=ln 21164else 21165 as_ln_s='cp -p' 21166fi 21167rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21168rmdir conf$$.dir 2>/dev/null 21169 21170if mkdir -p . 2>/dev/null; then 21171 as_mkdir_p=: 21172else 21173 test -d ./-p && rmdir ./-p 21174 as_mkdir_p=false 21175fi 21176 21177if test -x / >/dev/null 2>&1; then 21178 as_test_x='test -x' 21179else 21180 if ls -dL / >/dev/null 2>&1; then 21181 as_ls_L_option=L 21182 else 21183 as_ls_L_option= 21184 fi 21185 as_test_x=' 21186 eval sh -c '\'' 21187 if test -d "$1"; then 21188 test -d "$1/."; 21189 else 21190 case $1 in 21191 -*)set "./$1";; 21192 esac; 21193 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21194 ???[sx]*):;;*)false;;esac;fi 21195 '\'' sh 21196 ' 21197fi 21198as_executable_p=$as_test_x 21199 21200# Sed expression to map a string onto a valid CPP name. 21201as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21202 21203# Sed expression to map a string onto a valid variable name. 21204as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21205 21206 21207exec 6>&1 21208 21209# Save the log message, to keep $[0] and so on meaningful, and to 21210# report actual input values of CONFIG_FILES etc. instead of their 21211# values after options handling. 21212ac_log=" 21213This file was extended by ta-lib $as_me 0.4.0, which was 21214generated by GNU Autoconf 2.61. Invocation command line was 21215 21216 CONFIG_FILES = $CONFIG_FILES 21217 CONFIG_HEADERS = $CONFIG_HEADERS 21218 CONFIG_LINKS = $CONFIG_LINKS 21219 CONFIG_COMMANDS = $CONFIG_COMMANDS 21220 $ $0 $@ 21221 21222on `(hostname || uname -n) 2>/dev/null | sed 1q` 21223" 21224 21225_ACEOF 21226 21227cat >>$CONFIG_STATUS <<_ACEOF 21228# Files that config.status was made for. 21229config_files="$ac_config_files" 21230config_headers="$ac_config_headers" 21231config_commands="$ac_config_commands" 21232 21233_ACEOF 21234 21235cat >>$CONFIG_STATUS <<\_ACEOF 21236ac_cs_usage="\ 21237\`$as_me' instantiates files from templates according to the 21238current configuration. 21239 21240Usage: $0 [OPTIONS] [FILE]... 21241 21242 -h, --help print this help, then exit 21243 -V, --version print version number and configuration settings, then exit 21244 -q, --quiet do not print progress messages 21245 -d, --debug don't remove temporary files 21246 --recheck update $as_me by reconfiguring in the same conditions 21247 --file=FILE[:TEMPLATE] 21248 instantiate the configuration file FILE 21249 --header=FILE[:TEMPLATE] 21250 instantiate the configuration header FILE 21251 21252Configuration files: 21253$config_files 21254 21255Configuration headers: 21256$config_headers 21257 21258Configuration commands: 21259$config_commands 21260 21261Report bugs to <bug-autoconf@gnu.org>." 21262 21263_ACEOF 21264cat >>$CONFIG_STATUS <<_ACEOF 21265ac_cs_version="\\ 21266ta-lib config.status 0.4.0 21267configured by $0, generated by GNU Autoconf 2.61, 21268 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21269 21270Copyright (C) 2006 Free Software Foundation, Inc. 21271This config.status script is free software; the Free Software Foundation 21272gives unlimited permission to copy, distribute and modify it." 21273 21274ac_pwd='$ac_pwd' 21275srcdir='$srcdir' 21276INSTALL='$INSTALL' 21277MKDIR_P='$MKDIR_P' 21278_ACEOF 21279 21280cat >>$CONFIG_STATUS <<\_ACEOF 21281# If no file are specified by the user, then we need to provide default 21282# value. By we need to know if files were specified by the user. 21283ac_need_defaults=: 21284while test $# != 0 21285do 21286 case $1 in 21287 --*=*) 21288 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21290 ac_shift=: 21291 ;; 21292 *) 21293 ac_option=$1 21294 ac_optarg=$2 21295 ac_shift=shift 21296 ;; 21297 esac 21298 21299 case $ac_option in 21300 # Handling of the options. 21301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21302 ac_cs_recheck=: ;; 21303 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21304 echo "$ac_cs_version"; exit ;; 21305 --debug | --debu | --deb | --de | --d | -d ) 21306 debug=: ;; 21307 --file | --fil | --fi | --f ) 21308 $ac_shift 21309 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21310 ac_need_defaults=false;; 21311 --header | --heade | --head | --hea ) 21312 $ac_shift 21313 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21314 ac_need_defaults=false;; 21315 --he | --h) 21316 # Conflict between --help and --header 21317 { echo "$as_me: error: ambiguous option: $1 21318Try \`$0 --help' for more information." >&2 21319 { (exit 1); exit 1; }; };; 21320 --help | --hel | -h ) 21321 echo "$ac_cs_usage"; exit ;; 21322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21323 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21324 ac_cs_silent=: ;; 21325 21326 # This is an error. 21327 -*) { echo "$as_me: error: unrecognized option: $1 21328Try \`$0 --help' for more information." >&2 21329 { (exit 1); exit 1; }; } ;; 21330 21331 *) ac_config_targets="$ac_config_targets $1" 21332 ac_need_defaults=false ;; 21333 21334 esac 21335 shift 21336done 21337 21338ac_configure_extra_args= 21339 21340if $ac_cs_silent; then 21341 exec 6>/dev/null 21342 ac_configure_extra_args="$ac_configure_extra_args --silent" 21343fi 21344 21345_ACEOF 21346cat >>$CONFIG_STATUS <<_ACEOF 21347if \$ac_cs_recheck; then 21348 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21349 CONFIG_SHELL=$SHELL 21350 export CONFIG_SHELL 21351 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21352fi 21353 21354_ACEOF 21355cat >>$CONFIG_STATUS <<\_ACEOF 21356exec 5>>config.log 21357{ 21358 echo 21359 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 21360@%:@@%:@ Running $as_me. @%:@@%:@ 21361_ASBOX 21362 echo "$ac_log" 21363} >&5 21364 21365_ACEOF 21366cat >>$CONFIG_STATUS <<_ACEOF 21367# 21368# INIT-COMMANDS 21369# 21370AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21371 21372_ACEOF 21373 21374cat >>$CONFIG_STATUS <<\_ACEOF 21375 21376# Handling of arguments. 21377for ac_config_target in $ac_config_targets 21378do 21379 case $ac_config_target in 21380 "include/ta_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ta_config.h" ;; 21381 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21382 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21383 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21384 "src/ta_abstract/Makefile") CONFIG_FILES="$CONFIG_FILES src/ta_abstract/Makefile" ;; 21385 "src/ta_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/ta_common/Makefile" ;; 21386 "src/ta_func/Makefile") CONFIG_FILES="$CONFIG_FILES src/ta_func/Makefile" ;; 21387 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 21388 "src/tools/gen_code/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/gen_code/Makefile" ;; 21389 "src/tools/ta_regtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/ta_regtest/Makefile" ;; 21390 "ta-lib-config") CONFIG_FILES="$CONFIG_FILES ta-lib-config" ;; 21391 "ta-lib.spec") CONFIG_FILES="$CONFIG_FILES ta-lib.spec" ;; 21392 "ta-lib.dpkg") CONFIG_FILES="$CONFIG_FILES ta-lib.dpkg" ;; 21393 21394 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21395echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21396 { (exit 1); exit 1; }; };; 21397 esac 21398done 21399 21400 21401# If the user did not use the arguments to specify the items to instantiate, 21402# then the envvar interface is used. Set only those that are not. 21403# We use the long form for the default assignment because of an extremely 21404# bizarre bug on SunOS 4.1.3. 21405if $ac_need_defaults; then 21406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21408 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21409fi 21410 21411# Have a temporary directory for convenience. Make it in the build tree 21412# simply because there is no reason against having it here, and in addition, 21413# creating and moving files from /tmp can sometimes cause problems. 21414# Hook for its removal unless debugging. 21415# Note that there is a small window in which the directory will not be cleaned: 21416# after its creation but before its name has been assigned to `$tmp'. 21417$debug || 21418{ 21419 tmp= 21420 trap 'exit_status=$? 21421 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21422' 0 21423 trap '{ (exit 1); exit 1; }' 1 2 13 15 21424} 21425# Create a (secure) tmp directory for tmp files. 21426 21427{ 21428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21429 test -n "$tmp" && test -d "$tmp" 21430} || 21431{ 21432 tmp=./conf$$-$RANDOM 21433 (umask 077 && mkdir "$tmp") 21434} || 21435{ 21436 echo "$me: cannot create a temporary directory in ." >&2 21437 { (exit 1); exit 1; } 21438} 21439 21440# 21441# Set up the sed scripts for CONFIG_FILES section. 21442# 21443 21444# No need to generate the scripts if there are no CONFIG_FILES. 21445# This happens for instance when ./config.status config.h 21446if test -n "$CONFIG_FILES"; then 21447 21448_ACEOF 21449 21450 21451 21452ac_delim='%!_!# ' 21453for ac_last_try in false false false false false :; do 21454 cat >conf$$subs.sed <<_ACEOF 21455SHELL!$SHELL$ac_delim 21456PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21457PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21458PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21459PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21460PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21461PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21462exec_prefix!$exec_prefix$ac_delim 21463prefix!$prefix$ac_delim 21464program_transform_name!$program_transform_name$ac_delim 21465bindir!$bindir$ac_delim 21466sbindir!$sbindir$ac_delim 21467libexecdir!$libexecdir$ac_delim 21468datarootdir!$datarootdir$ac_delim 21469datadir!$datadir$ac_delim 21470sysconfdir!$sysconfdir$ac_delim 21471sharedstatedir!$sharedstatedir$ac_delim 21472localstatedir!$localstatedir$ac_delim 21473includedir!$includedir$ac_delim 21474oldincludedir!$oldincludedir$ac_delim 21475docdir!$docdir$ac_delim 21476infodir!$infodir$ac_delim 21477htmldir!$htmldir$ac_delim 21478dvidir!$dvidir$ac_delim 21479pdfdir!$pdfdir$ac_delim 21480psdir!$psdir$ac_delim 21481libdir!$libdir$ac_delim 21482localedir!$localedir$ac_delim 21483mandir!$mandir$ac_delim 21484DEFS!$DEFS$ac_delim 21485ECHO_C!$ECHO_C$ac_delim 21486ECHO_N!$ECHO_N$ac_delim 21487ECHO_T!$ECHO_T$ac_delim 21488LIBS!$LIBS$ac_delim 21489build_alias!$build_alias$ac_delim 21490host_alias!$host_alias$ac_delim 21491target_alias!$target_alias$ac_delim 21492INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21493INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21494INSTALL_DATA!$INSTALL_DATA$ac_delim 21495am__isrc!$am__isrc$ac_delim 21496CYGPATH_W!$CYGPATH_W$ac_delim 21497PACKAGE!$PACKAGE$ac_delim 21498VERSION!$VERSION$ac_delim 21499ACLOCAL!$ACLOCAL$ac_delim 21500AUTOCONF!$AUTOCONF$ac_delim 21501AUTOMAKE!$AUTOMAKE$ac_delim 21502AUTOHEADER!$AUTOHEADER$ac_delim 21503MAKEINFO!$MAKEINFO$ac_delim 21504install_sh!$install_sh$ac_delim 21505STRIP!$STRIP$ac_delim 21506INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21507mkdir_p!$mkdir_p$ac_delim 21508AWK!$AWK$ac_delim 21509SET_MAKE!$SET_MAKE$ac_delim 21510am__leading_dot!$am__leading_dot$ac_delim 21511AMTAR!$AMTAR$ac_delim 21512am__tar!$am__tar$ac_delim 21513am__untar!$am__untar$ac_delim 21514CC!$CC$ac_delim 21515CFLAGS!$CFLAGS$ac_delim 21516LDFLAGS!$LDFLAGS$ac_delim 21517CPPFLAGS!$CPPFLAGS$ac_delim 21518ac_ct_CC!$ac_ct_CC$ac_delim 21519EXEEXT!$EXEEXT$ac_delim 21520OBJEXT!$OBJEXT$ac_delim 21521DEPDIR!$DEPDIR$ac_delim 21522am__include!$am__include$ac_delim 21523am__quote!$am__quote$ac_delim 21524AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21525AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21526AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21527CCDEPMODE!$CCDEPMODE$ac_delim 21528am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21529am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21530build!$build$ac_delim 21531build_cpu!$build_cpu$ac_delim 21532build_vendor!$build_vendor$ac_delim 21533build_os!$build_os$ac_delim 21534host!$host$ac_delim 21535host_cpu!$host_cpu$ac_delim 21536host_vendor!$host_vendor$ac_delim 21537host_os!$host_os$ac_delim 21538GREP!$GREP$ac_delim 21539EGREP!$EGREP$ac_delim 21540LN_S!$LN_S$ac_delim 21541ECHO!$ECHO$ac_delim 21542AR!$AR$ac_delim 21543RANLIB!$RANLIB$ac_delim 21544CPP!$CPP$ac_delim 21545CXX!$CXX$ac_delim 21546CXXFLAGS!$CXXFLAGS$ac_delim 21547ac_ct_CXX!$ac_ct_CXX$ac_delim 21548CXXDEPMODE!$CXXDEPMODE$ac_delim 21549am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21550am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21551CXXCPP!$CXXCPP$ac_delim 21552_ACEOF 21553 21554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21555 break 21556 elif $ac_last_try; then 21557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21558echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21559 { (exit 1); exit 1; }; } 21560 else 21561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21562 fi 21563done 21564 21565ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21566if test -n "$ac_eof"; then 21567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21568 ac_eof=`expr $ac_eof + 1` 21569fi 21570 21571cat >>$CONFIG_STATUS <<_ACEOF 21572cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21574_ACEOF 21575sed ' 21576s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21577s/^/s,@/; s/!/@,|#_!!_#|/ 21578:n 21579t n 21580s/'"$ac_delim"'$/,g/; t 21581s/$/\\/; p 21582N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21583' >>$CONFIG_STATUS <conf$$subs.sed 21584rm -f conf$$subs.sed 21585cat >>$CONFIG_STATUS <<_ACEOF 21586CEOF$ac_eof 21587_ACEOF 21588 21589 21590ac_delim='%!_!# ' 21591for ac_last_try in false false false false false :; do 21592 cat >conf$$subs.sed <<_ACEOF 21593F77!$F77$ac_delim 21594FFLAGS!$FFLAGS$ac_delim 21595ac_ct_F77!$ac_ct_F77$ac_delim 21596LIBTOOL!$LIBTOOL$ac_delim 21597POW_LIB!$POW_LIB$ac_delim 21598LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim 21599TALIB_LIBRARY_VERSION!$TALIB_LIBRARY_VERSION$ac_delim 21600LTLIBOBJS!$LTLIBOBJS$ac_delim 21601_ACEOF 21602 21603 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then 21604 break 21605 elif $ac_last_try; then 21606 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21607echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21608 { (exit 1); exit 1; }; } 21609 else 21610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21611 fi 21612done 21613 21614ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21615if test -n "$ac_eof"; then 21616 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21617 ac_eof=`expr $ac_eof + 1` 21618fi 21619 21620cat >>$CONFIG_STATUS <<_ACEOF 21621cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21622/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21623_ACEOF 21624sed ' 21625s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21626s/^/s,@/; s/!/@,|#_!!_#|/ 21627:n 21628t n 21629s/'"$ac_delim"'$/,g/; t 21630s/$/\\/; p 21631N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21632' >>$CONFIG_STATUS <conf$$subs.sed 21633rm -f conf$$subs.sed 21634cat >>$CONFIG_STATUS <<_ACEOF 21635:end 21636s/|#_!!_#|//g 21637CEOF$ac_eof 21638_ACEOF 21639 21640 21641# VPATH may cause trouble with some makes, so we remove $(srcdir), 21642# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21643# trailing colons and then remove the whole line if VPATH becomes empty 21644# (actually we leave an empty line to preserve line numbers). 21645if test "x$srcdir" = x.; then 21646 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21647s/:*\$(srcdir):*/:/ 21648s/:*\${srcdir}:*/:/ 21649s/:*@srcdir@:*/:/ 21650s/^\([^=]*=[ ]*\):*/\1/ 21651s/:*$// 21652s/^[^=]*=[ ]*$// 21653}' 21654fi 21655 21656cat >>$CONFIG_STATUS <<\_ACEOF 21657fi # test -n "$CONFIG_FILES" 21658 21659 21660for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21661do 21662 case $ac_tag in 21663 :[FHLC]) ac_mode=$ac_tag; continue;; 21664 esac 21665 case $ac_mode$ac_tag in 21666 :[FHL]*:*);; 21667 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21668echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21669 { (exit 1); exit 1; }; };; 21670 :[FH]-) ac_tag=-:-;; 21671 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21672 esac 21673 ac_save_IFS=$IFS 21674 IFS=: 21675 set x $ac_tag 21676 IFS=$ac_save_IFS 21677 shift 21678 ac_file=$1 21679 shift 21680 21681 case $ac_mode in 21682 :L) ac_source=$1;; 21683 :[FH]) 21684 ac_file_inputs= 21685 for ac_f 21686 do 21687 case $ac_f in 21688 -) ac_f="$tmp/stdin";; 21689 *) # Look for the file first in the build tree, then in the source tree 21690 # (if the path is not absolute). The absolute path cannot be DOS-style, 21691 # because $ac_f cannot contain `:'. 21692 test -f "$ac_f" || 21693 case $ac_f in 21694 [\\/$]*) false;; 21695 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21696 esac || 21697 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21698echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21699 { (exit 1); exit 1; }; };; 21700 esac 21701 ac_file_inputs="$ac_file_inputs $ac_f" 21702 done 21703 21704 # Let's still pretend it is `configure' which instantiates (i.e., don't 21705 # use $as_me), people would be surprised to read: 21706 # /* config.h. Generated by config.status. */ 21707 configure_input="Generated from "`IFS=: 21708 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21709 if test x"$ac_file" != x-; then 21710 configure_input="$ac_file. $configure_input" 21711 { echo "$as_me:$LINENO: creating $ac_file" >&5 21712echo "$as_me: creating $ac_file" >&6;} 21713 fi 21714 21715 case $ac_tag in 21716 *:-:* | *:-) cat >"$tmp/stdin";; 21717 esac 21718 ;; 21719 esac 21720 21721 ac_dir=`$as_dirname -- "$ac_file" || 21722$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21723 X"$ac_file" : 'X\(//\)[^/]' \| \ 21724 X"$ac_file" : 'X\(//\)$' \| \ 21725 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21726echo X"$ac_file" | 21727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21728 s//\1/ 21729 q 21730 } 21731 /^X\(\/\/\)[^/].*/{ 21732 s//\1/ 21733 q 21734 } 21735 /^X\(\/\/\)$/{ 21736 s//\1/ 21737 q 21738 } 21739 /^X\(\/\).*/{ 21740 s//\1/ 21741 q 21742 } 21743 s/.*/./; q'` 21744 { as_dir="$ac_dir" 21745 case $as_dir in #( 21746 -*) as_dir=./$as_dir;; 21747 esac 21748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21749 as_dirs= 21750 while :; do 21751 case $as_dir in #( 21752 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21753 *) as_qdir=$as_dir;; 21754 esac 21755 as_dirs="'$as_qdir' $as_dirs" 21756 as_dir=`$as_dirname -- "$as_dir" || 21757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21758 X"$as_dir" : 'X\(//\)[^/]' \| \ 21759 X"$as_dir" : 'X\(//\)$' \| \ 21760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21761echo X"$as_dir" | 21762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21763 s//\1/ 21764 q 21765 } 21766 /^X\(\/\/\)[^/].*/{ 21767 s//\1/ 21768 q 21769 } 21770 /^X\(\/\/\)$/{ 21771 s//\1/ 21772 q 21773 } 21774 /^X\(\/\).*/{ 21775 s//\1/ 21776 q 21777 } 21778 s/.*/./; q'` 21779 test -d "$as_dir" && break 21780 done 21781 test -z "$as_dirs" || eval "mkdir $as_dirs" 21782 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21783echo "$as_me: error: cannot create directory $as_dir" >&2;} 21784 { (exit 1); exit 1; }; }; } 21785 ac_builddir=. 21786 21787case "$ac_dir" in 21788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21789*) 21790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21791 # A ".." for each directory in $ac_dir_suffix. 21792 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21793 case $ac_top_builddir_sub in 21794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21796 esac ;; 21797esac 21798ac_abs_top_builddir=$ac_pwd 21799ac_abs_builddir=$ac_pwd$ac_dir_suffix 21800# for backward compatibility: 21801ac_top_builddir=$ac_top_build_prefix 21802 21803case $srcdir in 21804 .) # We are building in place. 21805 ac_srcdir=. 21806 ac_top_srcdir=$ac_top_builddir_sub 21807 ac_abs_top_srcdir=$ac_pwd ;; 21808 [\\/]* | ?:[\\/]* ) # Absolute name. 21809 ac_srcdir=$srcdir$ac_dir_suffix; 21810 ac_top_srcdir=$srcdir 21811 ac_abs_top_srcdir=$srcdir ;; 21812 *) # Relative name. 21813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21814 ac_top_srcdir=$ac_top_build_prefix$srcdir 21815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21816esac 21817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21818 21819 21820 case $ac_mode in 21821 :F) 21822 # 21823 # CONFIG_FILE 21824 # 21825 21826 case $INSTALL in 21827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21829 esac 21830 ac_MKDIR_P=$MKDIR_P 21831 case $MKDIR_P in 21832 [\\/$]* | ?:[\\/]* ) ;; 21833 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21834 esac 21835_ACEOF 21836 21837cat >>$CONFIG_STATUS <<\_ACEOF 21838# If the template does not know about datarootdir, expand it. 21839# FIXME: This hack should be removed a few years after 2.60. 21840ac_datarootdir_hack=; ac_datarootdir_seen= 21841 21842case `sed -n '/datarootdir/ { 21843 p 21844 q 21845} 21846/@datadir@/p 21847/@docdir@/p 21848/@infodir@/p 21849/@localedir@/p 21850/@mandir@/p 21851' $ac_file_inputs` in 21852*datarootdir*) ac_datarootdir_seen=yes;; 21853*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21854 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21855echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21856_ACEOF 21857cat >>$CONFIG_STATUS <<_ACEOF 21858 ac_datarootdir_hack=' 21859 s&@datadir@&$datadir&g 21860 s&@docdir@&$docdir&g 21861 s&@infodir@&$infodir&g 21862 s&@localedir@&$localedir&g 21863 s&@mandir@&$mandir&g 21864 s&\\\${datarootdir}&$datarootdir&g' ;; 21865esac 21866_ACEOF 21867 21868# Neutralize VPATH when `$srcdir' = `.'. 21869# Shell code in configure.ac might set extrasub. 21870# FIXME: do we really want to maintain this feature? 21871cat >>$CONFIG_STATUS <<_ACEOF 21872 sed "$ac_vpsub 21873$extrasub 21874_ACEOF 21875cat >>$CONFIG_STATUS <<\_ACEOF 21876:t 21877/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21878s&@configure_input@&$configure_input&;t t 21879s&@top_builddir@&$ac_top_builddir_sub&;t t 21880s&@srcdir@&$ac_srcdir&;t t 21881s&@abs_srcdir@&$ac_abs_srcdir&;t t 21882s&@top_srcdir@&$ac_top_srcdir&;t t 21883s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21884s&@builddir@&$ac_builddir&;t t 21885s&@abs_builddir@&$ac_abs_builddir&;t t 21886s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21887s&@INSTALL@&$ac_INSTALL&;t t 21888s&@MKDIR_P@&$ac_MKDIR_P&;t t 21889$ac_datarootdir_hack 21890" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21891 21892test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21896which seems to be undefined. Please make sure it is defined." >&5 21897echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21898which seems to be undefined. Please make sure it is defined." >&2;} 21899 21900 rm -f "$tmp/stdin" 21901 case $ac_file in 21902 -) cat "$tmp/out"; rm -f "$tmp/out";; 21903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21904 esac 21905 ;; 21906 :H) 21907 # 21908 # CONFIG_HEADER 21909 # 21910_ACEOF 21911 21912# Transform confdefs.h into a sed script `conftest.defines', that 21913# substitutes the proper values into config.h.in to produce config.h. 21914rm -f conftest.defines conftest.tail 21915# First, append a space to every undef/define line, to ease matching. 21916echo 's/$/ /' >conftest.defines 21917# Then, protect against being on the right side of a sed subst, or in 21918# an unquoted here document, in config.status. If some macros were 21919# called several times there might be several #defines for the same 21920# symbol, which is useless. But do not sort them, since the last 21921# AC_DEFINE must be honored. 21922ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21923# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21924# NAME is the cpp macro being defined, VALUE is the value it is being given. 21925# PARAMS is the parameter list in the macro definition--in most cases, it's 21926# just an empty string. 21927ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21928ac_dB='\\)[ (].*,\\1define\\2' 21929ac_dC=' ' 21930ac_dD=' ,' 21931 21932uniq confdefs.h | 21933 sed -n ' 21934 t rset 21935 :rset 21936 s/^[ ]*#[ ]*define[ ][ ]*// 21937 t ok 21938 d 21939 :ok 21940 s/[\\&,]/\\&/g 21941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21943 ' >>conftest.defines 21944 21945# Remove the space that was appended to ease matching. 21946# Then replace #undef with comments. This is necessary, for 21947# example, in the case of _POSIX_SOURCE, which is predefined and required 21948# on some systems where configure will not decide to define it. 21949# (The regexp can be short, since the line contains either #define or #undef.) 21950echo 's/ $// 21951s,^[ #]*u.*,/* & */,' >>conftest.defines 21952 21953# Break up conftest.defines: 21954ac_max_sed_lines=50 21955 21956# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21957# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21958# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21959# et cetera. 21960ac_in='$ac_file_inputs' 21961ac_out='"$tmp/out1"' 21962ac_nxt='"$tmp/out2"' 21963 21964while : 21965do 21966 # Write a here document: 21967 cat >>$CONFIG_STATUS <<_ACEOF 21968 # First, check the format of the line: 21969 cat >"\$tmp/defines.sed" <<\\CEOF 21970/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21971/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21972b 21973:def 21974_ACEOF 21975 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21976 echo 'CEOF 21977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21978 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21979 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21980 grep . conftest.tail >/dev/null || break 21981 rm -f conftest.defines 21982 mv conftest.tail conftest.defines 21983done 21984rm -f conftest.defines conftest.tail 21985 21986echo "ac_result=$ac_in" >>$CONFIG_STATUS 21987cat >>$CONFIG_STATUS <<\_ACEOF 21988 if test x"$ac_file" != x-; then 21989 echo "/* $configure_input */" >"$tmp/config.h" 21990 cat "$ac_result" >>"$tmp/config.h" 21991 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21993echo "$as_me: $ac_file is unchanged" >&6;} 21994 else 21995 rm -f $ac_file 21996 mv "$tmp/config.h" $ac_file 21997 fi 21998 else 21999 echo "/* $configure_input */" 22000 cat "$ac_result" 22001 fi 22002 rm -f "$tmp/out12" 22003# Compute $ac_file's index in $config_headers. 22004_am_stamp_count=1 22005for _am_header in $config_headers :; do 22006 case $_am_header in 22007 $ac_file | $ac_file:* ) 22008 break ;; 22009 * ) 22010 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22011 esac 22012done 22013echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22014$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22015 X$ac_file : 'X\(//\)[^/]' \| \ 22016 X$ac_file : 'X\(//\)$' \| \ 22017 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22018echo X$ac_file | 22019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22020 s//\1/ 22021 q 22022 } 22023 /^X\(\/\/\)[^/].*/{ 22024 s//\1/ 22025 q 22026 } 22027 /^X\(\/\/\)$/{ 22028 s//\1/ 22029 q 22030 } 22031 /^X\(\/\).*/{ 22032 s//\1/ 22033 q 22034 } 22035 s/.*/./; q'`/stamp-h$_am_stamp_count 22036 ;; 22037 22038 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22039echo "$as_me: executing $ac_file commands" >&6;} 22040 ;; 22041 esac 22042 22043 22044 case $ac_file$ac_mode in 22045 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22046 # Strip MF so we end up with the name of the file. 22047 mf=`echo "$mf" | sed -e 's/:.*$//'` 22048 # Check whether this is an Automake generated Makefile or not. 22049 # We used to match only the files named `Makefile.in', but 22050 # some people rename them; so instead we look at the file content. 22051 # Grep'ing the first line is not enough: some people post-process 22052 # each Makefile.in and add a new line on top of each file to say so. 22053 # Grep'ing the whole file is not good either: AIX grep has a line 22054 # limit of 2048, but all sed's we know have understand at least 4000. 22055 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 22056 dirpart=`$as_dirname -- "$mf" || 22057$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22058 X"$mf" : 'X\(//\)[^/]' \| \ 22059 X"$mf" : 'X\(//\)$' \| \ 22060 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22061echo X"$mf" | 22062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22063 s//\1/ 22064 q 22065 } 22066 /^X\(\/\/\)[^/].*/{ 22067 s//\1/ 22068 q 22069 } 22070 /^X\(\/\/\)$/{ 22071 s//\1/ 22072 q 22073 } 22074 /^X\(\/\).*/{ 22075 s//\1/ 22076 q 22077 } 22078 s/.*/./; q'` 22079 else 22080 continue 22081 fi 22082 # Extract the definition of DEPDIR, am__include, and am__quote 22083 # from the Makefile without running `make'. 22084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22085 test -z "$DEPDIR" && continue 22086 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22087 test -z "am__include" && continue 22088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22089 # When using ansi2knr, U may be empty or an underscore; expand it 22090 U=`sed -n 's/^U = //p' < "$mf"` 22091 # Find all dependency output files, they are included files with 22092 # $(DEPDIR) in their names. We invoke sed twice because it is the 22093 # simplest approach to changing $(DEPDIR) to its actual value in the 22094 # expansion. 22095 for file in `sed -n " 22096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22098 # Make sure the directory exists. 22099 test -f "$dirpart/$file" && continue 22100 fdir=`$as_dirname -- "$file" || 22101$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22102 X"$file" : 'X\(//\)[^/]' \| \ 22103 X"$file" : 'X\(//\)$' \| \ 22104 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22105echo X"$file" | 22106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22107 s//\1/ 22108 q 22109 } 22110 /^X\(\/\/\)[^/].*/{ 22111 s//\1/ 22112 q 22113 } 22114 /^X\(\/\/\)$/{ 22115 s//\1/ 22116 q 22117 } 22118 /^X\(\/\).*/{ 22119 s//\1/ 22120 q 22121 } 22122 s/.*/./; q'` 22123 { as_dir=$dirpart/$fdir 22124 case $as_dir in #( 22125 -*) as_dir=./$as_dir;; 22126 esac 22127 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22128 as_dirs= 22129 while :; do 22130 case $as_dir in #( 22131 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22132 *) as_qdir=$as_dir;; 22133 esac 22134 as_dirs="'$as_qdir' $as_dirs" 22135 as_dir=`$as_dirname -- "$as_dir" || 22136$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22137 X"$as_dir" : 'X\(//\)[^/]' \| \ 22138 X"$as_dir" : 'X\(//\)$' \| \ 22139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22140echo X"$as_dir" | 22141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22142 s//\1/ 22143 q 22144 } 22145 /^X\(\/\/\)[^/].*/{ 22146 s//\1/ 22147 q 22148 } 22149 /^X\(\/\/\)$/{ 22150 s//\1/ 22151 q 22152 } 22153 /^X\(\/\).*/{ 22154 s//\1/ 22155 q 22156 } 22157 s/.*/./; q'` 22158 test -d "$as_dir" && break 22159 done 22160 test -z "$as_dirs" || eval "mkdir $as_dirs" 22161 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22162echo "$as_me: error: cannot create directory $as_dir" >&2;} 22163 { (exit 1); exit 1; }; }; } 22164 # echo "creating $dirpart/$file" 22165 echo '# dummy' > "$dirpart/$file" 22166 done 22167done 22168 ;; 22169 22170 esac 22171done # for ac_tag 22172 22173 22174{ (exit 0); exit 0; } 22175_ACEOF 22176chmod +x $CONFIG_STATUS 22177ac_clean_files=$ac_clean_files_save 22178 22179 22180# configure is writing to config.log, and then calls config.status. 22181# config.status does its own redirection, appending to config.log. 22182# Unfortunately, on DOS this fails, as config.log is still kept open 22183# by configure, so config.status won't be able to write to it; its 22184# output is simply discarded. So we exec the FD to /dev/null, 22185# effectively closing config.log, so it can be properly (re)opened and 22186# appended to by config.status. When coming back to configure, we 22187# need to make the FD available again. 22188if test "$no_create" != yes; then 22189 ac_cs_success=: 22190 ac_config_status_args= 22191 test "$silent" = yes && 22192 ac_config_status_args="$ac_config_status_args --quiet" 22193 exec 5>/dev/null 22194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22195 exec 5>>config.log 22196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22197 # would make configure fail if this is the last instruction. 22198 $ac_cs_success || { (exit 1); exit 1; } 22199fi 22200 22201